1 #ifndef uiflatviewstdcontrol_h 2 #define uiflatviewstdcontrol_h 14 #include "uiflatviewmod.h" 32 float& x2pospercm,
bool isvertical);
69 , withscalebarbut_(false)
71 , withfixedaspectratio_(false)
72 , withhomebutton_(false)
74 , initialx1pospercm_(
mUdf(float))
75 , initialx2pospercm_(
mUdf(float))
104 void setEditMode(
bool yn);
105 float getCurrentPosPerCM(
bool forx1)
const;
107 static void setGlobalZoomLevel(
float x1pospercm,
float x2pospercm,
109 static void getGlobalZoomLevel(
float& x1pospercm,
float& x2pospercm,
111 bool isEditModeOn()
const;
112 bool isRubberBandOn()
const;
143 virtual void finalPrepare();
145 void updatePosButtonStates();
146 void updateZoomLevel(
float x1pospercm,
float x2pospercm);
147 void doZoom(
bool zoomin,
bool onlyvertzoom,
uiFlatViewer&);
174 virtual bool handleUserClick(
int vwridx);
uiToolButton * editbut_
Definition: uiflatviewstdcontrol.h:136
#define mExpClass(module)
Definition: commondefs.h:160
virtual uiFlatViewColTabEd * colTabEd()
Definition: uiflatviewstdcontrol.h:103
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
float defx1pospercm_
Definition: uiflatviewstdcontrol.h:120
uiToolButton * gotohomezoombut_
Definition: uiflatviewstdcontrol.h:132
FlatView color table editor.
Definition: uiflatviewcoltabed.h:26
Definition of a mouse cursor, can be either a predefined shape (from the enum, or a file...
Definition: mousecursor.h:26
virtual void vwrAdded(CallBacker *)
Definition: uiflatviewstdcontrol.h:167
uiToolBar * edittb_
Definition: uiflatviewstdcontrol.h:124
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
uiToolButton * fittoscrnbut_
Definition: uiflatviewstdcontrol.h:134
Interface class for Notifier. See comments there.
Definition: callback.h:161
uiGenInput * x1fld_
Definition: uiflatviewstdcontrol.h:40
HelpKey helpkey_
Definition: uiflatviewstdcontrol.h:181
Definition: uiparent.h:26
uiGenInput * x2fld_
Definition: uiflatviewstdcontrol.h:41
Definition: helpview.h:49
uiToolButton * zoominbut_
Definition: uiflatviewstdcontrol.h:126
uiToolButton * vertzoomoutbut_
Definition: uiflatviewstdcontrol.h:129
Definition: uidialog.h:42
Definition: uimenuhandler.h:27
uiToolBar * tb_
Definition: uiflatviewstdcontrol.h:123
uiToolButton * rubbandzoombut_
Definition: uiflatviewstdcontrol.h:125
float & x2pospercm_
Definition: uiflatviewstdcontrol.h:38
uiToolButton * cancelzoombut_
Definition: uiflatviewstdcontrol.h:130
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:272
Setup(uiParent *p=0)
Definition: uiflatviewstdcontrol.h:60
uiToolButton * scalebarbut_
Definition: uiflatviewstdcontrol.h:133
The standard tools to control uiFlatViewer(s).
Definition: uiflatviewstdcontrol.h:54
uiToolBar * editToolBar()
Definition: uiflatviewstdcontrol.h:102
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:137
Tools to control uiFlatViewer(s).
Definition: uiflatviewcontrol.h:29
bool mousepressed_
Definition: uiflatviewstdcontrol.h:117
uiToolButton * sethomezoombut_
Definition: uiflatviewstdcontrol.h:131
Definition: uiflatviewstdcontrol.h:28
float defx2pospercm_
Definition: uiflatviewstdcontrol.h:121
MenuItem propertiesmnuitem_
Definition: uiflatviewstdcontrol.h:177
uiPoint mousedownpt_
Definition: uiflatviewstdcontrol.h:118
float & x1pospercm_
Definition: uiflatviewstdcontrol.h:37
uiMenuHandler & menu_
Definition: uiflatviewstdcontrol.h:176
uiToolButton * zoomoutbut_
Definition: uiflatviewstdcontrol.h:127
uiToolButton * parsbut_
Definition: uiflatviewstdcontrol.h:135
uiFlatViewColTabEd * ctabed_
Definition: uiflatviewstdcontrol.h:139
Definition: uibutton.h:134
uiFlatViewer & vwr_
Definition: uiflatviewstdcontrol.h:138
Fulfills the FlatView::Viewer specifications using 'ui' classes.
Definition: uiflatviewer.h:33
uiToolButton * vertzoominbut_
Definition: uiflatviewstdcontrol.h:128
uiCheckBox * saveglobalfld_
Definition: uiflatviewstdcontrol.h:42
Definition: uiflatviewstdcontrol.h:58
const Setup setup_
Definition: uiflatviewstdcontrol.h:141