NCBI C++ ToolKit
Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
CStatusBar Class Reference

Search Toolkit Book for CStatusBar

CStatusBar CStatusBar provides basic support for adding windows to status bar slots when status bar is resized the windows are resized automatically. More...

#include <gui/widgets/wx/app_status_bar.hpp>

+ Inheritance diagram for CStatusBar:
+ Collaboration diagram for CStatusBar:

Public Member Functions

 CStatusBar (wxWindow *parent, wxWindowID id=wxID_ANY, long style=wxST_SIZEGRIP, const wxString &name=wxT("statusBar"))
 
virtual ~CStatusBar ()
 
virtual void SetStatusWidths (int number, const int *widths)
 
virtual void SetFieldsCount (int number=1, const int *widths=NULL)
 
virtual void SetFieldWindow (int index, wxWindow *window)
 
virtual void InsertFieldWindow (int index, wxWindow *window, int width=50)
 
virtual int AddFieldWindow (wxWindow *window)
 
virtual void RemoveFieldWindow (int index)
 
virtual bool Layout ()
 
void OnSize (wxSizeEvent &event)
 

Static Public Member Functions

static wxColour GetBackColor (bool hot)
 
static wxColour GetTextColor (bool hot)
 

Protected Types

typedef vector< intTWidths
 
typedef vector< wxWindow * > TIndexToWindow
 

Protected Member Functions

 DECLARE_EVENT_TABLE ()
 

Protected Attributes

TWidths m_FieldWidths
 
TIndexToWindow m_FieldWindows
 

Detailed Description

CStatusBar CStatusBar provides basic support for adding windows to status bar slots when status bar is resized the windows are resized automatically.

Definition at line 52 of file app_status_bar.hpp.

Member Typedef Documentation

◆ TIndexToWindow

typedef vector<wxWindow*> CStatusBar::TIndexToWindow
protected

Definition at line 82 of file app_status_bar.hpp.

◆ TWidths

typedef vector<int> CStatusBar::TWidths
protected

Definition at line 81 of file app_status_bar.hpp.

Constructor & Destructor Documentation

◆ CStatusBar()

CStatusBar::CStatusBar ( wxWindow *  parent,
wxWindowID  id = wxID_ANY,
long  style = wxST_SIZEGRIP,
const wxString &  name = wxT("statusBar") 
)

Definition at line 52 of file app_status_bar.cpp.

◆ ~CStatusBar()

CStatusBar::~CStatusBar ( )
virtual

Definition at line 59 of file app_status_bar.cpp.

Member Function Documentation

◆ AddFieldWindow()

int CStatusBar::AddFieldWindow ( wxWindow *  window)
virtual

Definition at line 119 of file app_status_bar.cpp.

References SetFieldWindow().

◆ DECLARE_EVENT_TABLE()

CStatusBar::DECLARE_EVENT_TABLE ( )
protected

◆ GetBackColor()

wxColour CStatusBar::GetBackColor ( bool  hot)
static

◆ GetTextColor()

wxColour CStatusBar::GetTextColor ( bool  hot)
static

◆ InsertFieldWindow()

void CStatusBar::InsertFieldWindow ( int  index,
wxWindow *  window,
int  width = 50 
)
virtual

Definition at line 106 of file app_status_bar.cpp.

References int, Layout(), m_FieldWidths, m_FieldWindows, and n.

Referenced by CStatusBarService::InsertSlot().

◆ Layout()

bool CStatusBar::Layout ( void  )
virtual

◆ OnSize()

void CStatusBar::OnSize ( wxSizeEvent &  event)

Definition at line 138 of file app_status_bar.cpp.

References Layout().

◆ RemoveFieldWindow()

void CStatusBar::RemoveFieldWindow ( int  index)
virtual

Definition at line 127 of file app_status_bar.cpp.

References int, m_FieldWidths, m_FieldWindows, and n.

Referenced by CStatusBarService::RemoveSlot().

◆ SetFieldsCount()

void CStatusBar::SetFieldsCount ( int  number = 1,
const int widths = NULL 
)
virtual

◆ SetFieldWindow()

void CStatusBar::SetFieldWindow ( int  index,
wxWindow *  window 
)
virtual

Definition at line 90 of file app_status_bar.cpp.

References m_FieldWindows, and NULL.

Referenced by AddFieldWindow(), and CwxMainFrame::x_SetupStatusBar().

◆ SetStatusWidths()

void CStatusBar::SetStatusWidths ( int  number,
const int widths 
)
virtual

Definition at line 80 of file app_status_bar.cpp.

References i, m_FieldWidths, and number.

Member Data Documentation

◆ m_FieldWidths

TWidths CStatusBar::m_FieldWidths
protected

◆ m_FieldWindows

TIndexToWindow CStatusBar::m_FieldWindows
protected

The documentation for this class was generated from the following files:
Modified on Wed Apr 24 14:18:36 2024 by modify_doxy.py rev. 669887