CEBL
2.1
|
#include <TabMonitor.hpp>
Public Member Functions | |
TabMonitor (string title, GtkWidget *notebook, CEBLViewGTK *view) | |
~TabMonitor () | |
void | updateView () |
update the view from model | |
void | updateModel () |
updates model from view | |
void | onHide () |
called when this tab is hidden | |
![]() | |
Tab (string title, GtkWidget *notebook, CEBLViewGTK *view) | |
virtual | ~Tab () |
string | GetTitle () |
Get the title of the tab. | |
GtkWidget * | GetContainer () |
Get the container widget. | |
CEBLViewGTK * | getView () |
Get the parent view. | |
virtual void | onShow () |
optional function to be called when page is selected |
Protected Member Functions | |
void | CreateGUI () |
Initialize the tab. | |
![]() | |
void | TabAdd (GtkWidget *, bool expand, bool fill, int padding) |
Add a widget to the tab. | |
void | TabAdd (GtkWidget *) |
Add a widget to the tab;. | |
void | TabFrameAdd (GtkWidget *, const char *title="", bool expand=false, bool fill=false) |
Add a widget to a frame inside the tab. | |
GtkWidget * | TabFrameCreate (GtkWidget *widget, const char *title="") |
Function to create a standardized from. | |
void | TabRemove (GtkWidget *) |
Remove a widget from the tab. |
Additional Inherited Members | |
![]() | |
CEBLViewGTK * | view |
pointer to view | |
GtkWidget * | container |
main container to hold tab contents | |
string | title |
title of the tab | |
int | notebook_id |
id of tab in notebook |
Definition at line 37 of file TabMonitor.hpp.
|
inline |
Definition at line 86 of file TabMonitor.hpp.
References CreateGUI().
TabMonitor::~TabMonitor | ( | ) |
Definition at line 15 of file TabMonitor.cpp.
|
protected |
Initialize the tab.
Definition at line 26 of file TabMonitor.cpp.
References Tab::getView(), Tab::TabAdd(), Tab::TabFrameAdd(), and Tab::title.
Referenced by TabMonitor().
|
virtual |
called when this tab is hidden
Reimplemented from Tab.
Definition at line 153 of file TabMonitor.cpp.
References CEBLModel::dataSetStoreFlag(), CEBLModel::dataStop(), CEBLView::getModel(), CEBLViewGTK::getStatusBar(), Tab::getView(), CEBLGtkWidgetDetachable::isDetached(), StatusBar::remove(), and updateView().
|
virtual |
|
virtual |
update the view from model
Implements Tab.
Definition at line 109 of file TabMonitor.cpp.
References CEBLModel::dataGetStoreNumSamples(), filter(), CEBLView::getModel(), Tab::getView(), TextUtils::IntToString(), and CEBLModel::processGetFilterEnabled().
Referenced by onHide().