16#ifndef __albaGUIFlagSplitter_H__
17#define __albaGUIFlagSplitter_H__
23#include <wx/splitter.h>
60 void Put(wxWindow* w,
int i);
Use Put(w,id) to place widgets on the various pane - id should be in 0..2.
virtual ~albaGUIFlagSplitter()
void SetSplitPos(int x1, int x2)
Set the split position and redraw the four panels.
FlagSplitterDragModes m_Dragging
FlagSplitterDragModes HitTest(wxMouseEvent &event)
Hit the mouse position and return the drag modality.
albaGUIFlagSplitter(wxWindow *parent, wxWindowID id=-1)
void DrawTracker(int x)
Draw the cross representing the position of cross splitter.
void SetListener(albaObserver *Listener)
void OnLayout()
Adjust the panels.
albaObserver * m_Listener
void OnLeftMouseButtonUp(wxMouseEvent &event)
Intercept the mouse button up and call SetSplitPos with new position.
void Put(wxWindow *w, int i)
Put the window into the panel 'i'.
wxWindow * m_FocusedPanel
void OnSize(wxSizeEvent &event)
Adjust the panels size.
void OnMouseMotion(wxMouseEvent &event)
Manage the mouse movement to draw the cross of cross splitter.
void OnLeftMouseButtonDown(wxMouseEvent &event)
Intercept the mouse button down and call DrawTracker with mouse position.
class name: albaGUIPanel Inherits directly from wxPanel and adds the pointer to the next panel
Interface implementing the Observer of the Subject/Observer design pattern.