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

#include <albaGUICrossSplitter.h>

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

Public Member Functions

 albaGUICrossSplitter (wxWindow *parent, wxWindowID id=-1)
 
virtual ~albaGUICrossSplitter ()
 
void SetListener (albaObserver *Listener)
 
void Split (CrossSplitterModes mode)
 
void SetSplitPos (int x, int y)
 
void SetSplitPosRel (float x, float y)
 
void Maximize ()
 
void Put (wxWindow *w, int i)
 
void SetFocusedPanel (wxWindow *w)
 
- 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 OnLeftMouseButtonDown (wxMouseEvent &event)
 
void OnLeftMouseButtonUp (wxMouseEvent &event)
 
void OnMouseMotion (wxMouseEvent &event)
 
void OnLayout ()
 
CrossSplitterDragModes HitTest (wxMouseEvent &event)
 
void DrawTracker (int x, int y)
 

Protected Attributes

albaObserverm_Listener
 
wxCursor * m_CursorWE
 
wxCursor * m_CursorNS
 
wxCursor * m_CursorNSWE
 
wxPen * m_Pen
 
CrossSplitterModes m_Mode
 
CrossSplitterDragModes m_Dragging
 
int m_Margin
 
int m_XPos
 
int m_YPos
 
int m_With
 
int m_Height
 
int m_OldXPos
 
int m_OldYPos
 
float m_RelXPos
 
float m_RelYPos
 
wxWindow * m_FocusedPanel
 
wxWindow * m_ViewPanel1
 
wxWindow * m_ViewPanel2
 
wxWindow * m_ViewPanel3
 
wxWindow * m_ViewPanel4
 
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..3.

Putting a new pane delete the previous

Definition at line 58 of file albaGUICrossSplitter.h.

Constructor & Destructor Documentation

◆ albaGUICrossSplitter()

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

◆ ~albaGUICrossSplitter()

virtual albaGUICrossSplitter::~albaGUICrossSplitter ( )
virtual

Member Function Documentation

◆ SetListener()

void albaGUICrossSplitter::SetListener ( albaObserver Listener)
inline

Definition at line 64 of file albaGUICrossSplitter.h.

◆ Split()

void albaGUICrossSplitter::Split ( CrossSplitterModes  mode)

Show/Hide the four panel according to a splitting modality.

◆ SetSplitPos()

void albaGUICrossSplitter::SetSplitPos ( int  x,
int  y 
)

Set the split position and redraw the four panels.

◆ SetSplitPosRel()

void albaGUICrossSplitter::SetSplitPosRel ( float  x,
float  y 
)

Set the split position in relative coordinates and redraw the four panels.

◆ Maximize()

void albaGUICrossSplitter::Maximize ( )

Maximize the founded panel.

◆ Put()

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

Put the window into the panel 'i'.

◆ SetFocusedPanel()

void albaGUICrossSplitter::SetFocusedPanel ( wxWindow *  w)

Set the focus on window 'w'.

◆ OnSize()

void albaGUICrossSplitter::OnSize ( wxSizeEvent &  event)
protected

Adjust the panels size.

◆ OnLeftMouseButtonDown()

void albaGUICrossSplitter::OnLeftMouseButtonDown ( wxMouseEvent &  event)
protected

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

◆ OnLeftMouseButtonUp()

void albaGUICrossSplitter::OnLeftMouseButtonUp ( wxMouseEvent &  event)
protected

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

◆ OnMouseMotion()

void albaGUICrossSplitter::OnMouseMotion ( wxMouseEvent &  event)
protected

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

◆ OnLayout()

void albaGUICrossSplitter::OnLayout ( )
protected

Adjust the four panel.

◆ HitTest()

CrossSplitterDragModes albaGUICrossSplitter::HitTest ( wxMouseEvent &  event)
protected

Hit the mouse position and return the drag modality.

◆ DrawTracker()

void albaGUICrossSplitter::DrawTracker ( int  x,
int  y 
)
protected

Draw the cross representing the position of creoss splitter.

Member Data Documentation

◆ m_Listener

albaObserver* albaGUICrossSplitter::m_Listener
protected

Definition at line 86 of file albaGUICrossSplitter.h.

◆ m_CursorWE

wxCursor* albaGUICrossSplitter::m_CursorWE
protected

Definition at line 88 of file albaGUICrossSplitter.h.

◆ m_CursorNS

wxCursor* albaGUICrossSplitter::m_CursorNS
protected

Definition at line 89 of file albaGUICrossSplitter.h.

◆ m_CursorNSWE

wxCursor* albaGUICrossSplitter::m_CursorNSWE
protected

Definition at line 90 of file albaGUICrossSplitter.h.

◆ m_Pen

wxPen* albaGUICrossSplitter::m_Pen
protected

Definition at line 91 of file albaGUICrossSplitter.h.

◆ m_Mode

CrossSplitterModes albaGUICrossSplitter::m_Mode
protected

Definition at line 93 of file albaGUICrossSplitter.h.

◆ m_Dragging

CrossSplitterDragModes albaGUICrossSplitter::m_Dragging
protected

Definition at line 94 of file albaGUICrossSplitter.h.

◆ m_Margin

int albaGUICrossSplitter::m_Margin
protected

Definition at line 96 of file albaGUICrossSplitter.h.

◆ m_XPos

int albaGUICrossSplitter::m_XPos
protected

Definition at line 97 of file albaGUICrossSplitter.h.

◆ m_YPos

int albaGUICrossSplitter::m_YPos
protected

Definition at line 97 of file albaGUICrossSplitter.h.

◆ m_With

int albaGUICrossSplitter::m_With
protected

Definition at line 97 of file albaGUICrossSplitter.h.

◆ m_Height

int albaGUICrossSplitter::m_Height
protected

Definition at line 97 of file albaGUICrossSplitter.h.

◆ m_OldXPos

int albaGUICrossSplitter::m_OldXPos
protected

Definition at line 98 of file albaGUICrossSplitter.h.

◆ m_OldYPos

int albaGUICrossSplitter::m_OldYPos
protected

Definition at line 98 of file albaGUICrossSplitter.h.

◆ m_RelXPos

float albaGUICrossSplitter::m_RelXPos
protected

Definition at line 99 of file albaGUICrossSplitter.h.

◆ m_RelYPos

float albaGUICrossSplitter::m_RelYPos
protected

Definition at line 99 of file albaGUICrossSplitter.h.

◆ m_FocusedPanel

wxWindow* albaGUICrossSplitter::m_FocusedPanel
protected

Definition at line 101 of file albaGUICrossSplitter.h.

◆ m_ViewPanel1

wxWindow* albaGUICrossSplitter::m_ViewPanel1
protected

Definition at line 102 of file albaGUICrossSplitter.h.

◆ m_ViewPanel2

wxWindow* albaGUICrossSplitter::m_ViewPanel2
protected

Definition at line 103 of file albaGUICrossSplitter.h.

◆ m_ViewPanel3

wxWindow* albaGUICrossSplitter::m_ViewPanel3
protected

Definition at line 104 of file albaGUICrossSplitter.h.

◆ m_ViewPanel4

wxWindow* albaGUICrossSplitter::m_ViewPanel4
protected

Definition at line 105 of file albaGUICrossSplitter.h.

◆ m_Maximized

bool albaGUICrossSplitter::m_Maximized
protected

Definition at line 129 of file albaGUICrossSplitter.h.


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