ConfigPageStack Class Reference

#include <configpagestack.h>

List of all members.

Public Slots

void showPage (QAction *pageAction)

Public Member Functions

 ConfigPageStack (QWidget *parent=0)
void add (ConfigPage *page, QAction *action)
void setCurrentPage (ConfigPage *page)
void setCurrentIndex (int index)
QList< ConfigPage * > pages ()

Private Attributes

QHash< QAction *, ConfigPage * > _pages


Detailed Description

Definition at line 37 of file configpagestack.h.


Constructor & Destructor Documentation

ConfigPageStack::ConfigPageStack ( QWidget *  parent = 0  ) 

Constructor.

Definition at line 32 of file configpagestack.cpp.


Member Function Documentation

void ConfigPageStack::add ( ConfigPage page,
QAction *  action 
)

Adds a configuration page to the stack.

Definition at line 39 of file configpagestack.cpp.

References _pages.

void ConfigPageStack::setCurrentPage ( ConfigPage page  ) 

Sets the current config page and checks its action.

Definition at line 47 of file configpagestack.cpp.

References _pages.

Referenced by setCurrentIndex().

void ConfigPageStack::setCurrentIndex ( int  index  ) 

Sets the current config page index and checks its action.

Definition at line 57 of file configpagestack.cpp.

References setCurrentPage().

QList<ConfigPage*> ConfigPageStack::pages (  )  [inline]

Returns a list of all pages in the stack.

Definition at line 53 of file configpagestack.h.

References _pages.

void ConfigPageStack::showPage ( QAction *  pageAction  )  [slot]

Displays the page associated with the activated action.

Definition at line 64 of file configpagestack.cpp.

References _pages.


Member Data Documentation

QHash<QAction*, ConfigPage*> ConfigPageStack::_pages [private]

Maps an action to a config page.

Definition at line 61 of file configpagestack.h.

Referenced by add(), pages(), setCurrentPage(), and showPage().


The documentation for this class was generated from the following files:
Generated on Mon Oct 23 20:08:16 2006 for Vidalia by  doxygen 1.5.0