Updraft  1.0
Open source glider flight visualisation tool.
Updraft::Core::Tab Class Reference

Implementation of an opened tab in the bottom pane. More...

#include <tab.h>

Inheritance diagram for Updraft::Core::Tab:
Collaboration diagram for Updraft::Core::Tab:

List of all members.

Public Slots

void close ()
 Close this tab.

Signals

void tabCloseRequested ()
void tabRemoved (QWidget *tab)
void selected ()
void deselected ()

Public Member Functions

 Tab (QWidget *content, QString title, QTabWidget *parent)
 Add a new tab to parent.
 ~Tab ()
QWidget * getWidget ()
void select ()
 Select this tab in the tab pane.
void setTitle (const QString &title)
 Sets new title of this tab.
void connectSlotClose (const QObject *sender, const char *signal)
 Connect to the close(void) slot of tab.
void connectSignalCloseRequested (const QObject *receiver, const char *method)
 Connect to a signal tabCloseRequested(void) that is emited before closing the tab.
void connectCloseRequestToClose ()
 Connect signal tabCloseRequested(void) to slot close.
void connectSignalSelected (const QObject *receiver, const char *method)
 Connects to a signal selected(void) -- tab gets focus.
void connectSignalDeselected (const QObject *receiver, const char *method)
 Connects to a signal selected(void) -- tab loses focus.

Private Attributes

QWidget * widget
QTabWidget * tabWidget
PluginBaseplugin

Friends

class MainWindow

Detailed Description

Implementation of an opened tab in the bottom pane.


Constructor & Destructor Documentation

Updraft::Core::Tab::Tab ( QWidget *  content,
QString  title,
QTabWidget *  parent 
)

Add a new tab to parent.

Takes ownership of content.


Member Function Documentation

void Updraft::Core::Tab::close ( void  ) [virtual, slot]

Close this tab.

This method deletes the tab and its widget.

Implements Updraft::TabInterface.

Connect signal tabCloseRequested(void) to slot close.

Call this method when the automatic closing is desired.

See also:
QObject::connect()

Implements Updraft::TabInterface.

void Updraft::Core::Tab::connectSignalCloseRequested ( const QObject *  receiver,
const char *  method 
) [virtual]

Connect to a signal tabCloseRequested(void) that is emited before closing the tab.

See also:
QObject::connect()

Implements Updraft::TabInterface.

void Updraft::Core::Tab::connectSignalDeselected ( const QObject *  receiver,
const char *  method 
) [virtual]

Connects to a signal selected(void) -- tab loses focus.

See also:
QObject::connect()

Implements Updraft::TabInterface.

void Updraft::Core::Tab::connectSignalSelected ( const QObject *  receiver,
const char *  method 
) [virtual]

Connects to a signal selected(void) -- tab gets focus.

See also:
QObject::connect()

Implements Updraft::TabInterface.

void Updraft::Core::Tab::connectSlotClose ( const QObject *  sender,
const char *  signal 
) [virtual]

Connect to the close(void) slot of tab.

After this slot is called signal closed is emited and pointer to this becomes invalid.

See also:
QObject::connect()

Implements Updraft::TabInterface.

void Updraft::Core::Tab::deselected ( ) [signal]
QWidget* Updraft::Core::Tab::getWidget ( ) [inline]
void Updraft::Core::Tab::select ( ) [virtual]

Select this tab in the tab pane.

Implements Updraft::TabInterface.

void Updraft::Core::Tab::selected ( ) [signal]
void Updraft::Core::Tab::setTitle ( const QString &  title) [virtual]

Sets new title of this tab.

Implements Updraft::TabInterface.

void Updraft::Core::Tab::tabRemoved ( QWidget *  tab) [signal]

Friends And Related Function Documentation

friend class MainWindow [friend]

Member Data Documentation

QTabWidget* Updraft::Core::Tab::tabWidget [private]
QWidget* Updraft::Core::Tab::widget [private]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines