16#ifndef __albaGUIMDIFrame_H__
17#define __albaGUIMDIFrame_H__
26#include "albaServiceClient.h"
33class vtkProcessObject;
36class albaGUIMDIFrameCallback;
45class ALBA_EXPORT
albaGUIMDIFrame:
public wxMDIParentFrame,
public albaServiceClient
49 albaGUIMDIFrame(
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style=0);
64 void AddDockPane(wxWindow *window,
wxPaneInfo& pane_info,
const wxString &menu = _(
"&View"),
const wxString &subMenu = wxEmptyString);
111 void BindToProgressBar(vtkObject* vtkobj);
114 void BindToProgressBar(vtkProcessObject* filter);
117 void BindToProgressBar(vtkViewport* ren);
120 void OnSize(wxSizeEvent& event);
123 albaGUIMDIFrameCallback *m_StartCallback;
124 albaGUIMDIFrameCallback *m_EndCallback; ;
125 albaGUIMDIFrameCallback *m_ProgressCallback;
189 DECLARE_EVENT_TABLE()
class name: albaGUIDockManager Represent a frame manager for gui dock elements.
Class Name: albaGUIMDIFrame.
bool DockPaneIsShown(wxString pane_name)
tell if a given Dockable Pane is shown – the Paneis specified by name
void AddDockPane(wxWindow *window, wxPaneInfo &pane_info, const wxString &menu=_("&View"), const wxString &subMenu=wxEmptyString)
add a new Dockable Pane containing the given Window.
void OnCloseWindow(wxCloseEvent &event)
Send the MENU_FILE_QUIT event.
void ProgressBarSetText(wxString *msg)
Set the progress text for the progress bar.
void ShowDockPane(wxWindow *window, bool show=true)
Show/Hide a Dockable Pane – the Pane is specified by content.
albaGUIMDIFrame(const wxString &title, const wxPoint &pos, const wxSize &size, long style=0)
constructor.
albaObserver * m_Listener
void FreeMemorySizeOnIdle(wxIdleEvent &event)
Update the memory status on the status bas , with information that needs to walk the heap (bad perfor...
void OnDropFile(wxDropFilesEvent &event)
Send an event to open the msf or zip file.
void OnUpdateUI(wxUpdateUIEvent &e)
Send the UI event.
albaGUIDockManager m_DockManager
void Ready()
End the progress.
void LayoutWindow()
Redraw widgets on interface.
void OnSashDrag(wxSashEvent &event)
Redraw sash panels.
void OnMenuOp(wxCommandEvent &e)
Send the 'Operations' men event.
void OnMenuView(wxCommandEvent &e)
Send the 'Views' men event.
void OnMenu(wxCommandEvent &e)
Send the men event.
void ProgressBarHide()
Hide the progress bar.
void OnIdle(wxIdleEvent &event)
Update the memory status on the status bas.
void ProgressBarSetVal(int progress)
Set the progress value for the progress bar.
int m_MemoryLimitAlert
Used to alert the user when memory decrease under this limit value.
void RenderStart()
Start rendering progress.
bool DockPaneIsShown(wxWindow *window)
tell if a given Dockable Pane is shown – the Pane is specified by content
~albaGUIMDIFrame()
destructor.
void OnLayout(wxCommandEvent &event)
Call LayoutWindow method.
albaGUIDockManager & GetDockManager()
Retrieve the Docking Manager.
void CreateStatusbar()
Create the status bar on main application frame.
void RenderEnd()
End rendering progress.
void SetListener(albaObserver *Listener)
Set the listener object, i.e.
void ShowDockPane(wxString pane_name, bool show=true)
Show/Hide a Dockable Pane – the Pane is specified by name.
void OnQuit()
must be called @ shutdown
void ProgressBarShow()
Show the progress bar.
void Busy()
Show the 'Busy' text on the status bar.
wxStaticText * m_BusyLabel
int ProgressBarGetStatus()
Get the progress bar status.
void RemoveDockPane(wxString pane_name)
remove a Dockable Pane - the contained window is not destroyed
std::vector< int > m_PBCalls
void OnMenuWizard(wxCommandEvent &e)
Send the 'Wizard' men event.
albaGUI is a panel with function to easily create GUI.
Interface implementing the Observer of the Subject/Observer design pattern.
class name: wxPaneInfo This class define properties of a pane.