20 #ifndef GUIDialog_EditViewport_h 21 #define GUIDialog_EditViewport_h 85 long onCmdOk(FXObject*, FXSelector,
void*);
91 long onCmdLoad(FXObject*, FXSelector,
void*);
94 long onCmdSave(FXObject*, FXSelector,
void*);
105 void setValues(
double zoom,
double xoff,
double yoff);
139 FXRealSpinDial* myLookAtX, *myLookAtY, *myLookAtZ;
long onCmdOk(FXObject *, FXSelector, void *)
Called when the user wants to keep the viewport.
bool haveGrabbed() const
Returns the information whether one of the spin dialers is grabbed.
long onCmdCancel(FXObject *, FXSelector, void *)
Called when the user wants to restore the viewport.
long onCmdChanged(FXObject *, FXSelector, void *)
Called when the user changes the viewport.
void writeXML(OutputDevice &dev)
write the settings to the given device
long onCmdLoad(FXObject *, FXSelector, void *)
Called when the user wants to load a viewport.
FXRealSpinDial * myZoom
The spin dialers used to change the view.
FXButton * buttonOk
OK button.
A point in 2D or 3D with translation and scaling methods.
GUIDialog_EditViewport()
FOX needs this.
~GUIDialog_EditViewport()
Destructor.
long onCmdSave(FXObject *, FXSelector, void *)
Called when the user wants to save a viewport.
GUISUMOAbstractView * myParent
The calling view.
Position myOldLookFrom
The old viewport.
void show()
overload show function to focus always in OK Button
Static storage of an output device and its base (abstract) implementation.
A dialog to change the viewport.
void setValues(double zoom, double xoff, double yoff)
Sets the given values into the dialog.
void setOldValues(const Position &lookFrom, const Position &lookAt)
Resets old values.