MagicSmoke  $VERSION$
MTabWin Class Reference

Main Overview Window. More...

#include <tabwin.h>

Inheritance diagram for MTabWin:
MAclWindow MOverview

Public Slots

virtual QMenu * addMenu (QString)
 add a menu to the left side, where it is visible for all tabs More...
 
virtual void addTab (QWidget *tab, QString title, QList< QMenu * >menu=QList< QMenu * >())
 add a tab More...
 
QWidget * currentTab () const
 returns the current tab More...
 
QMenu * helpMenu () const
 returns a pointer to the help menu More...
 
void setCurrentTab (QWidget *)
 set the current tab More...
 
void setTabEnabled (QWidget *, bool)
 enables/disables a tab More...
 
void setWindowTitle (const QString &)
 overrides QWidget::setWindowTitle(const QString&) - adds basic session info More...
 

Public Member Functions

 MTabWin (QString, QWidget *parent=0)
 construct the window with web-request/session handler and QSettings-key for current profile More...
 
 ~MTabWin ()
 

Protected Slots

virtual void tabChanged (int tabid=-1)
 generic check which tab is active More...
 

Protected Attributes

QString profilekey
 

Detailed Description

Main Overview Window.

Constructor & Destructor Documentation

MTabWin::MTabWin ( QString  pk,
QWidget *  parent = 0 
)

construct the window with web-request/session handler and QSettings-key for current profile

References MApplication::helpMenu(), profilekey, req, setWindowTitle(), and tabChanged().

MTabWin::~MTabWin ( )

Member Function Documentation

QMenu * MTabWin::addMenu ( QString  l)
virtualslot

add a menu to the left side, where it is visible for all tabs

Referenced by MOverview::MOverview().

void MTabWin::addTab ( QWidget *  tab,
QString  title,
QList< QMenu * >  menu = QList<QMenu*>() 
)
virtualslot

add a tab

Referenced by MOverview::MOverview().

QWidget * MTabWin::currentTab ( ) const
slot

returns the current tab

QMenu * MTabWin::helpMenu ( ) const
slot

returns a pointer to the help menu

void MTabWin::setCurrentTab ( QWidget *  w)
slot

set the current tab

Referenced by MOverview::MOverview(), and MOverview::switchToCartTab().

void MTabWin::setTabEnabled ( QWidget *  w,
bool  e 
)
slot

enables/disables a tab

Referenced by MOverview::MOverview().

void MTabWin::setWindowTitle ( const QString &  t)
slot

overrides QWidget::setWindowTitle(const QString&) - adds basic session info

References profilekey, and req.

Referenced by MTabWin().

void MTabWin::tabChanged ( int  tabid = -1)
protectedvirtualslot

generic check which tab is active

Referenced by MTabWin().

Member Data Documentation

QString MTabWin::profilekey
protected

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