1 #ifndef GUI_WIDGETS_GL___GLPANE_WIDGET__HPP
2 #define GUI_WIDGETS_GL___GLPANE_WIDGET__HPP
53 #define ncbi_round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5))
70 const wxPoint& pos = wxDefaultPosition,
71 const wxSize&
size = wxDefaultSize,
102 void OnEnterWindow(wxMouseEvent& event);
103 void OnTimer(wxTimerEvent& event);
104 void OnMouseDown(wxMouseEvent& event);
105 void OnMouseUp(wxMouseEvent& event);
106 void OnMotion(wxMouseEvent& event);
107 void OnMouseWheel(wxMouseEvent& event);
108 void OnMouseCaptureLost(wxMouseCaptureLostEvent& event);
109 void OnLeaveWindow(wxMouseEvent& event);
110 void OnKeyEvent(wxKeyEvent& event);
111 void OnSetFocus(wxFocusEvent& event);
112 void OnKillFocus(wxFocusEvent& event);
113 void OnSize(wxSizeEvent& event);
114 void OnCmdEvent(wxCommandEvent& event);
115 void OnTipRemoved(wxCommandEvent& event);
121 void DlgOverlayFix();
122 void CheckOverlayTimer();
125 virtual int x_GetAreaByWindowPos(
const wxPoint& pos);
131 virtual bool x_GrabFocus();
146 bool x_Handlers_handle(wxEvent& event,
int area,
bool ignore_curr =
true);
147 bool x_DispatchEventToHandler(wxEvent& event,
SHandlerRec* rec);
148 void x_HandleAccels(wxKeyEvent& event);
227 const wxPoint& pos = wxDefaultPosition,
228 const wxSize&
size = wxDefaultSize,
229 long style = wxTAB_TRAVERSAL,
230 const wxString& name =
wxT(
"panel"));
235 virtual void Create();
239 virtual void SetRegistryPath(
const string& reg_path);
240 virtual void LoadSettings();
241 virtual void SaveSettings()
const;
250 void OnSize(wxSizeEvent& event);
251 void OnScroll(wxScrollEvent& event);
253 void OnZoomIn(wxCommandEvent& event);
254 void OnZoomInX(wxCommandEvent& event);
255 void OnZoomInY(wxCommandEvent& event);
256 void OnZoomInMouse(wxCommandEvent& event);
258 void OnZoomOut(wxCommandEvent& event);
259 void OnZoomOutX(wxCommandEvent& event);
260 void OnZoomOutY(wxCommandEvent& event);
261 void OnZoomOutMouse(wxCommandEvent& event);
263 void OnZoomAll(wxCommandEvent& event);
264 void OnZoomAllX(wxCommandEvent& event);
265 void OnZoomAllY(wxCommandEvent& event);
267 void OnEnableCmdUpdate(wxUpdateUIEvent& event);
276 virtual void NotifyVisibleRangeChanged();
283 virtual bool DoPopupMenu(wxMenu *menu,
int x,
int y);
286 virtual void x_CreateControls(
void);
292 virtual void x_RedrawControls(
void);
293 virtual void x_Update();
302 virtual void x_ZoomIn(
int options);
303 virtual void x_ZoomOut(
int options);
304 virtual void x_ZoomAll(
int options);
305 virtual void x_UpdateOnZoom();
307 virtual void x_UpdateOnHScroll();
308 virtual void x_UpdateOnVScroll();
310 virtual void x_UpdateScrollbars();
311 virtual void x_OnScrollX(
int pos);
312 virtual void x_OnScrollY(
int pos);
315 virtual void x_ShowDecoratedPopupMenu(wxMenu* menu);
this class converts model units to the integers distribited in [0, m_IntRange] and vice versa
CNormalizer(double min, double max, int int_range)
int RealToInt(double real)
int SizeToInt(double size)
virtual void GHH_ReleaseMouse()=0
releases captured mouse
virtual void GHH_CaptureMouse()=0
captures mouse events in the hosting window for D&D
virtual void GHH_SetCursor(const wxCursor &cursor)=0
changes the cursor in the hosting window
IRegSettings An interface for objects that save / restore settings using CGuiRegistry.
void(*)(CSeq_entry_Handle seh, IWorkbench *wb, const CSerialObject &obj) handler
EZoomOptions
EZoomOptions flags control behavior of Zoom operations.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIWIDGETS_GL_EXPORT
const struct ncbi::grid::netcache::search::fields::SIZE size
Floating-point support routines.
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.