ALBA
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
albaGUIFlagSplitter Class Reference

#include <albaGUIFlagSplitter.h>

Inheritance diagram for albaGUIFlagSplitter:
Inheritance graph
[legend]
Collaboration diagram for albaGUIFlagSplitter:
Collaboration graph
[legend]

Public Member Functions

 albaGUIFlagSplitter (wxWindow *parent, wxWindowID id=-1)
 
virtual ~albaGUIFlagSplitter ()
 
void SetListener (albaObserver *Listener)
 
void SetSplitPos (int x1, int x2)
 
void Put (wxWindow *w, int i)
 
- Public Member Functions inherited from albaGUIPanel
 albaGUIPanel (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL, const wxString &name="panel")
 

Protected Member Functions

void OnSize (wxSizeEvent &event)
 
void OnLayout ()
 
void OnLeftMouseButtonDown (wxMouseEvent &event)
 
void OnLeftMouseButtonUp (wxMouseEvent &event)
 
void OnMouseMotion (wxMouseEvent &event)
 
FlagSplitterDragModes HitTest (wxMouseEvent &event)
 
void DrawTracker (int x)
 

Protected Attributes

albaObserverm_Listener
 
wxCursor * m_CursorWE
 
wxPen * m_Pen
 
FlagSplitterDragModes m_Dragging
 
int m_Margin
 
int m_With
 
int m_Height
 
int m_XPos1
 
int m_XPos2
 
int m_XPosOld
 
wxWindow * m_FocusedPanel
 
wxWindow * m_ViewPanel1
 
wxWindow * m_ViewPanel2
 
wxWindow * m_ViewPanel3
 
bool m_Maximized
 

Additional Inherited Members

- Public Attributes inherited from albaGUIPanel
albaGUIPanelm_NextPanel
 

Detailed Description

Use Put(w,id) to place widgets on the various pane - id should be in 0..2.

Putting a new pane delete the previous

Definition at line 47 of file albaGUIFlagSplitter.h.

Constructor & Destructor Documentation

◆ albaGUIFlagSplitter()

albaGUIFlagSplitter::albaGUIFlagSplitter ( wxWindow *  parent,
wxWindowID  id = -1 
)

◆ ~albaGUIFlagSplitter()

virtual albaGUIFlagSplitter::~albaGUIFlagSplitter ( )
virtual

Member Function Documentation

◆ SetListener()

void albaGUIFlagSplitter::SetListener ( albaObserver Listener)
inline

Definition at line 53 of file albaGUIFlagSplitter.h.

References m_Listener.

◆ SetSplitPos()

void albaGUIFlagSplitter::SetSplitPos ( int  x1,
int  x2 
)

Set the split position and redraw the four panels.

◆ Put()

void albaGUIFlagSplitter::Put ( wxWindow *  w,
int  i 
)

Put the window into the panel 'i'.

◆ OnSize()

void albaGUIFlagSplitter::OnSize ( wxSizeEvent &  event)
protected

Adjust the panels size.

◆ OnLayout()

void albaGUIFlagSplitter::OnLayout ( )
protected

Adjust the panels.

◆ OnLeftMouseButtonDown()

void albaGUIFlagSplitter::OnLeftMouseButtonDown ( wxMouseEvent &  event)
protected

Intercept the mouse button down and call DrawTracker with mouse position.

◆ OnLeftMouseButtonUp()

void albaGUIFlagSplitter::OnLeftMouseButtonUp ( wxMouseEvent &  event)
protected

Intercept the mouse button up and call SetSplitPos with new position.

◆ OnMouseMotion()

void albaGUIFlagSplitter::OnMouseMotion ( wxMouseEvent &  event)
protected

Manage the mouse movement to draw the cross of cross splitter.

◆ HitTest()

FlagSplitterDragModes albaGUIFlagSplitter::HitTest ( wxMouseEvent &  event)
protected

Hit the mouse position and return the drag modality.

◆ DrawTracker()

void albaGUIFlagSplitter::DrawTracker ( int  x)
protected

Draw the cross representing the position of cross splitter.

Member Data Documentation

◆ m_Listener

albaObserver* albaGUIFlagSplitter::m_Listener
protected

Definition at line 63 of file albaGUIFlagSplitter.h.

Referenced by SetListener().

◆ m_CursorWE

wxCursor* albaGUIFlagSplitter::m_CursorWE
protected

Definition at line 64 of file albaGUIFlagSplitter.h.

◆ m_Pen

wxPen* albaGUIFlagSplitter::m_Pen
protected

Definition at line 65 of file albaGUIFlagSplitter.h.

◆ m_Dragging

FlagSplitterDragModes albaGUIFlagSplitter::m_Dragging
protected

Definition at line 67 of file albaGUIFlagSplitter.h.

◆ m_Margin

int albaGUIFlagSplitter::m_Margin
protected

Definition at line 69 of file albaGUIFlagSplitter.h.

◆ m_With

int albaGUIFlagSplitter::m_With
protected

Definition at line 70 of file albaGUIFlagSplitter.h.

◆ m_Height

int albaGUIFlagSplitter::m_Height
protected

Definition at line 70 of file albaGUIFlagSplitter.h.

◆ m_XPos1

int albaGUIFlagSplitter::m_XPos1
protected

Definition at line 71 of file albaGUIFlagSplitter.h.

◆ m_XPos2

int albaGUIFlagSplitter::m_XPos2
protected

Definition at line 71 of file albaGUIFlagSplitter.h.

◆ m_XPosOld

int albaGUIFlagSplitter::m_XPosOld
protected

Definition at line 72 of file albaGUIFlagSplitter.h.

◆ m_FocusedPanel

wxWindow* albaGUIFlagSplitter::m_FocusedPanel
protected

Definition at line 74 of file albaGUIFlagSplitter.h.

◆ m_ViewPanel1

wxWindow* albaGUIFlagSplitter::m_ViewPanel1
protected

Definition at line 75 of file albaGUIFlagSplitter.h.

◆ m_ViewPanel2

wxWindow* albaGUIFlagSplitter::m_ViewPanel2
protected

Definition at line 76 of file albaGUIFlagSplitter.h.

◆ m_ViewPanel3

wxWindow* albaGUIFlagSplitter::m_ViewPanel3
protected

Definition at line 77 of file albaGUIFlagSplitter.h.

◆ m_Maximized

bool albaGUIFlagSplitter::m_Maximized
protected

Definition at line 102 of file albaGUIFlagSplitter.h.


The documentation for this class was generated from the following file: