Vidalia 0.2.15
Public Slots | Public Member Functions | Private Attributes
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 () const

Private Attributes

QHash< QAction *, ConfigPage * > _pages

Detailed Description

Definition at line 25 of file ConfigPageStack.h.


Constructor & Destructor Documentation

ConfigPageStack::ConfigPageStack ( QWidget *  parent = 0)

Constructor.

Default constructor.

Definition at line 22 of file ConfigPageStack.cpp.


Member Function Documentation

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

Adds a configuration page to the stack.

Adds a page to the stack.

Definition at line 29 of file ConfigPageStack.cpp.

References _pages.

QList< ConfigPage * > ConfigPageStack::pages ( ) const

Returns a list of all pages in the stack. The order of the pages in the returned QList is the same as the order in which the pages were initially added to the stack.

Definition at line 63 of file ConfigPageStack.cpp.

References i().

void ConfigPageStack::setCurrentIndex ( int  index)

Sets the current config page index and checks its action.

Definition at line 47 of file ConfigPageStack.cpp.

References setCurrentPage().

void ConfigPageStack::setCurrentPage ( ConfigPage page)

Sets the current config page and checks its action.

Definition at line 37 of file ConfigPageStack.cpp.

References _pages.

Referenced by setCurrentIndex().

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

Displays the page associated with the activated action.

Shows the config page associated with the activated action.

Definition at line 54 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 51 of file ConfigPageStack.h.

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


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