CEBL  2.1
Public Member Functions | Protected Member Functions
TabMonitor Class Reference

#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
- Public Member Functions inherited from Tab
 Tab (string title, GtkWidget *notebook, CEBLViewGTK *view)
virtual ~Tab ()
string GetTitle ()
 Get the title of the tab.
GtkWidget * GetContainer ()
 Get the container widget.
CEBLViewGTKgetView ()
 Get the parent view.
virtual void onShow ()
 optional function to be called when page is selected

Protected Member Functions

void CreateGUI ()
 Initialize the tab.
- Protected Member Functions inherited from 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

- Protected Attributes inherited from Tab
CEBLViewGTKview
 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

Detailed Description

Definition at line 37 of file TabMonitor.hpp.


Constructor & Destructor Documentation

TabMonitor::TabMonitor ( string  title,
GtkWidget *  notebook,
CEBLViewGTK view 
)
inline

Definition at line 86 of file TabMonitor.hpp.

References CreateGUI().

TabMonitor::~TabMonitor ( )

TabMonitor.cpp

Author:
Jeshua Bratman

Definition at line 15 of file TabMonitor.cpp.


Member Function Documentation

void TabMonitor::CreateGUI ( )
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().

void TabMonitor::onHide ( )
virtual
void TabMonitor::updateModel ( )
virtual

updates model from view

Implements Tab.

Definition at line 147 of file TabMonitor.cpp.

void TabMonitor::updateView ( )
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().


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