1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
/*=========================================================================
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.kitware.com/VolViewCopyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkVVApplicationSettingsInterfaceBase - a user interface panel.
// .SECTION Description
// A concrete implementation of a user interface panel. It extends the
// user interface defined in vtkKWApplicationSettingsInterfaceBase.
// See vtkKWUserInterfacePanel for a more detailed description.
// .SECTION See Also
// vtkKWApplicationSettingsInterfaceBase vtkKWUserInterfacePanel vtkKWUserInterfaceManager
#ifndef __vtkVVApplicationSettingsInterfaceBase_h
#define __vtkVVApplicationSettingsInterfaceBase_h
#include "vtkKWApplicationSettingsInterfacePro.h"
//----------------------------------------------------------------------------
class vtkKWLoadSaveButton;
class vtkKWEntryWithLabel;
class VTK_EXPORT vtkVVApplicationSettingsInterfaceBase
: public vtkKWApplicationSettingsInterfacePro
{
public:
static vtkVVApplicationSettingsInterfaceBase* New();
vtkTypeRevisionMacro(vtkVVApplicationSettingsInterfaceBase,
vtkKWApplicationSettingsInterfacePro);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Create the interface objects.
virtual void Create();
// Description:
// Refresh the interface given the current value of the Window and its
// views/composites/widgets.
virtual void Update();
// Description:
// Update the "enable" state of the object and its internal parts.
// Depending on different Ivars (this->Enabled, the application's
// Limited Edition Mode, etc.), the "enable" state of the object is updated
// and propagated to its internal parts/subwidgets. This will, for example,
// enable/disable parts of the widget UI, enable/disable the visibility
// of 3D widgets, etc.
virtual void UpdateEnableState();
// Description:
// Callbacks
virtual void UseAlphaChannelInScreenshotCallback(int state);
virtual void ExternalApplicationParametersCallback(const char*);
virtual void ExternalApplicationPathCallback();
protected:
vtkVVApplicationSettingsInterfaceBase();
~vtkVVApplicationSettingsInterfaceBase();
// Graphics settings
vtkKWCheckButton *UseAlphaChannelInScreenshotCheckButton;
// External Applications
vtkKWFrameWithLabel *ExternalApplicationsFrame;
vtkKWLoadSaveButton *ExternalApplicationLoadSaveButton;
vtkKWEntryWithLabel *ExternalApplicationParametersEntry;
private:
vtkVVApplicationSettingsInterfaceBase(const vtkVVApplicationSettingsInterfaceBase&); // Not implemented
void operator=(const vtkVVApplicationSettingsInterfaceBase&); // Not Implemented
};
#endif
|