NCBI C++ ToolKit
|
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>
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< int > | TWidths |
typedef vector< wxWindow * > | TIndexToWindow |
Protected Member Functions | |
DECLARE_EVENT_TABLE () | |
Protected Attributes | |
TWidths | m_FieldWidths |
TIndexToWindow | m_FieldWindows |
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.
|
protected |
Definition at line 82 of file app_status_bar.hpp.
|
protected |
Definition at line 81 of file app_status_bar.hpp.
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.
|
virtual |
Definition at line 59 of file app_status_bar.cpp.
|
virtual |
Definition at line 119 of file app_status_bar.cpp.
References SetFieldWindow().
|
protected |
|
static |
Definition at line 165 of file app_status_bar.cpp.
References GetAverage().
Referenced by CMessageSlotPopupWindow::CMessageSlotPopupWindow(), CMessageSlot::OnPaint(), CSelectionBroadcastSlot::OnPaint(), CMessageSlotPopupWindow::x_CreateMessageSlotPanel(), and CSelectionBroadcastSlot::x_Update().
|
static |
Definition at line 177 of file app_status_bar.cpp.
Referenced by CMessageSlot::OnPaint(), CSelectionBroadcastSlot::OnPaint(), and CSelectionBroadcastSlot::x_Update().
Definition at line 106 of file app_status_bar.cpp.
References int, Layout(), m_FieldWidths, m_FieldWindows, and n.
Referenced by CStatusBarService::InsertSlot().
|
virtual |
Definition at line 144 of file app_status_bar.cpp.
References i, m_FieldWindows, and n.
Referenced by CStatusBarService::CreateStatusBar(), InsertFieldWindow(), OnSize(), and CwxMainFrame::x_SetupStatusBar().
void CStatusBar::OnSize | ( | wxSizeEvent & | event | ) |
Definition at line 138 of file app_status_bar.cpp.
References Layout().
|
virtual |
Definition at line 127 of file app_status_bar.cpp.
References int, m_FieldWidths, m_FieldWindows, and n.
Referenced by CStatusBarService::RemoveSlot().
Definition at line 64 of file app_status_bar.cpp.
References i, m_FieldWidths, m_FieldWindows, and number.
Referenced by CwxMainFrame::CreateControls(), and CwxMainFrame::x_SetupStatusBar().
|
virtual |
Definition at line 90 of file app_status_bar.cpp.
References m_FieldWindows, and NULL.
Referenced by AddFieldWindow(), and CwxMainFrame::x_SetupStatusBar().
Definition at line 80 of file app_status_bar.cpp.
References i, m_FieldWidths, and number.
|
protected |
Definition at line 84 of file app_status_bar.hpp.
Referenced by InsertFieldWindow(), RemoveFieldWindow(), SetFieldsCount(), and SetStatusWidths().
|
protected |
Definition at line 85 of file app_status_bar.hpp.
Referenced by InsertFieldWindow(), Layout(), RemoveFieldWindow(), SetFieldsCount(), and SetFieldWindow().