32 #define ID_DENSITY 20000
33 #define ID_RPLUS 20001
34 #define ID_RMINUS 20002
36 #define STATE_TIMER 3689
41 iENCToolbar(wxWindow *parent, wxPoint position,
long orient,
45 void LoadToolBitmaps();
46 void OnToolLeftClick(wxCommandEvent &event);
47 void SetDensityToolBitmap(
int nDensity);
48 void SetRangeToolBitmap();
50 void StateTimerEvent(wxTimerEvent &event);
51 void SetColorScheme(ColorScheme cs);
53 wxBitmap m_bmMinimum, m_bmStandard, m_bmAll, m_bmUStd, m_bmRPlus, m_bmRMinus;
54 wxBitmap *m_pbmScratch;
55 wxBitmap m_bmTemplate;
57 wxToolBarToolBase *m_toolDensity;
60 wxTimer m_state_timer;
65 void OnClose( wxCloseEvent& event );
66 void OnWindowCreate( wxWindowCreateEvent& event );
67 void OnToolLeftClick( wxCommandEvent& event );
68 void MouseEvent( wxMouseEvent& event );
69 void FadeTimerEvent( wxTimerEvent& event );
70 bool IsToolbarShown() {
return ( m_ptoolbar != 0 ); }
71 float GetScaleFactor() {
return m_sizefactor; }
72 void SetGrabber( wxString icon_name );
73 void DestroyTimerEvent( wxTimerEvent& event );
79 void CreateConfigMenu();
80 bool _toolbarConfigMenuUtil(
int toolid, wxString tipString );
83 void SubmergeToGrabber();
84 bool isSubmergedToGrabber();
86 void SurfaceFromGrabber();
89 void EnableTooltips() {
if(m_ptoolbar) m_ptoolbar->EnableTooltips(); }
90 void DisableTooltips() {
if(m_ptoolbar) m_ptoolbar->DisableTooltips(); }
91 void UpdateRecoveryWindow(
bool b_toolbarEnable);
92 void EnableTool(
int toolid,
bool enable );
93 void SetToolShortHelp(
int toolid,
const wxString& helpString );
95 void DestroyToolBar();
96 void ToggleOrientation();
97 void MoveDialogInScreenCoords( wxPoint posn, wxPoint posn_old );
99 void LockPosition(
bool lock){ m_block = lock; }
100 void SetColorScheme( ColorScheme cs );
101 ColorScheme GetColorScheme(){
return m_cs; }
102 bool CheckSurfaceRequest( wxMouseEvent &event );
104 void SetGeometry(
bool bAvoid, wxRect rectAvoid);
108 void RefreshFadeTimer();
109 void SetAutoHideTimer(
int time);
110 void SetAutoHide(
bool hide ){ m_bAutoHideToolbar = hide; }
118 bool toolbarConfigChanged;
119 GrabberWin *m_pRecoverwin;
122 wxMenu *m_FloatingToolbarConfigMenu;
126 void DoFade(
int value );
129 bool m_bsubmergedToGrabber;
133 wxBoxSizer *m_topSizer;
135 GrabberWin *m_pGrabberwin;
138 wxTimer m_fade_timer;
148 bool m_marginsInvisible;
150 wxTimer m_destroyTimer;
151 GrabberWin *m_destroyGrabber;
152 wxSize m_recoversize;
154 bool m_bAutoHideToolbar;
155 int m_nAutoHideToolbar;