CEBL  2.1
Public Member Functions | Protected Member Functions | Protected Attributes
Tab Class Reference

#include <Tab.hpp>

Public Member Functions

 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 updateView ()=0
 Updates the view from the model.
virtual void updateModel ()=0
 updates model from view
virtual void onHide ()
 optional function to be called when page is hidden
virtual void onShow ()
 optional function to be called when page is selected

Protected Member Functions

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.

Protected Attributes

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 36 of file Tab.hpp.


Constructor & Destructor Documentation

Tab::Tab ( string  title,
GtkWidget *  notebook,
CEBLViewGTK view 
)

Definition at line 7 of file Tab.cpp.

Tab::~Tab ( )
virtual

Definition at line 26 of file Tab.cpp.


Member Function Documentation

GtkWidget * Tab::GetContainer ( )

Get the container widget.

Definition at line 36 of file Tab.cpp.

string Tab::GetTitle ( )

Get the title of the tab.

Definition at line 31 of file Tab.cpp.

CEBLViewGTK* Tab::getView ( )
inline
virtual void Tab::onHide ( )
inlinevirtual

optional function to be called when page is hidden

Reimplemented in TabTraining, TabFeatures, TabMonitor, TabRealTimeClassification, and TabDecision.

Definition at line 87 of file Tab.hpp.

virtual void Tab::onShow ( )
inlinevirtual

optional function to be called when page is selected

Definition at line 89 of file Tab.hpp.

void Tab::TabAdd ( GtkWidget *  widget,
bool  expand,
bool  fill,
int  padding 
)
protected
void Tab::TabAdd ( GtkWidget *  widget)
protected

Add a widget to the tab;.

Add a widget to the tab.

Definition at line 54 of file Tab.cpp.

References TabAdd().

Referenced by TabAdd().

void Tab::TabFrameAdd ( GtkWidget *  widget,
const char *  title = "",
bool  expand = false,
bool  fill = false 
)
protected
GtkWidget * Tab::TabFrameCreate ( GtkWidget *  widget,
const char *  title = "" 
)
protected

Function to create a standardized from.

Creates a standardized frame containing the widget to add to the tab.

Definition at line 66 of file Tab.cpp.

Referenced by TabEEGRecording::CreateGUI().

void Tab::TabRemove ( GtkWidget *  widget)
protected

Remove a widget from the tab.

Definition at line 41 of file Tab.cpp.

virtual void Tab::updateModel ( )
pure virtual
virtual void Tab::updateView ( )
pure virtual

Field Documentation

GtkWidget* Tab::container
protected

main container to hold tab contents

Definition at line 44 of file Tab.hpp.

int Tab::notebook_id
protected

id of tab in notebook

Definition at line 50 of file Tab.hpp.

string Tab::title
protected
CEBLViewGTK* Tab::view
protected

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