Vidalia  0.3.1
Public Member Functions | Protected Member Functions | Private Slots | Private Attributes | List of all members
StatusTab Class Reference

#include <StatusTab.h>

Inheritance diagram for StatusTab:
VidaliaTab

Public Member Functions

 StatusTab (QWidget *parent=0)
 
 ~StatusTab ()
 
void setTorStatus (const QPixmap &icon)
 
void setTorStatus (const QString &text)
 
void setTorStatus (const QPixmap &icon, const QString &text)
 
void setTorStatusVisible (bool visible)
 
void setProgress (int progress, const QString &description)
 
void setProgressVisible (bool visible)
 
bool isCheckedShowOnStartup ()
 
void checkShowOnStartup (bool check)
 
void hideCheckShowOnStartup ()
 
- Public Member Functions inherited from VidaliaTab
 VidaliaTab (const QString &title, const QString &name="", QWidget *parent=0)
 
 ~VidaliaTab ()
 
QString getTitle () const
 
void setTitle (const QString &title)
 
void setShortcut (const QString &shortcut, const char *slot)
 
QVariant getSetting (QString name, QVariant defaultValue)
 
void saveSetting (QString name, QVariant value)
 
void setOnTop (bool top)
 

Protected Member Functions

void retranslateUi ()
 
- Protected Member Functions inherited from VidaliaTab
virtual void changeEvent (QEvent *e)
 
virtual void closeEvent (QCloseEvent *event)
 

Private Slots

void toggleShowOnStartup (bool checked)
 

Private Attributes

Ui::StatusTab ui
 

Additional Inherited Members

- Signals inherited from VidaliaTab
void helpRequested (const QString &topic)
 
void closeTab ()
 
- Protected Attributes inherited from VidaliaTab
bool _onTop
 

Detailed Description

Definition at line 22 of file StatusTab.h.

Constructor & Destructor Documentation

StatusTab::StatusTab ( QWidget *  parent = 0)

Default constructor

Definition at line 7 of file StatusTab.cpp.

References DEFAULT_MAX_MSG_COUNT, VidaliaTab::getSetting(), SETTING_MAX_MSG_COUNT, and ui.

StatusTab::~StatusTab ( )

Destructor.

Definition at line 17 of file StatusTab.cpp.

Member Function Documentation

void StatusTab::checkShowOnStartup ( bool  check)

Sets "Show on start up" checkbox checked if check is true

Definition at line 69 of file StatusTab.cpp.

References ui.

Referenced by MainWindow::createTrayIcon().

void StatusTab::hideCheckShowOnStartup ( )

Hides the "Show on start up" checkbox

Definition at line 75 of file StatusTab.cpp.

References ui.

Referenced by MainWindow::setVisible().

bool StatusTab::isCheckedShowOnStartup ( )

Returns true if the "Show on start up" checkbox is checked

Definition at line 63 of file StatusTab.cpp.

References ui.

Referenced by MainWindow::createTrayIcon().

void StatusTab::retranslateUi ( )
protectedvirtual

Called when the user changes the UI translation.

Reimplemented from VidaliaTab.

Definition at line 89 of file StatusTab.cpp.

References VidaliaTab::setTitle(), and ui.

void StatusTab::setProgress ( int  progress,
const QString &  description 
)

Sets the progress bar and its description

Definition at line 49 of file StatusTab.cpp.

References ui.

Referenced by MainWindow::setStartupProgress().

void StatusTab::setProgressVisible ( bool  visible)

Sets the visibility of the progress bar

Definition at line 56 of file StatusTab.cpp.

References ui.

Referenced by MainWindow::setStartupProgressVisible().

void StatusTab::setTorStatus ( const QPixmap &  icon)

Sets the icon to the general Tor status display

Definition at line 29 of file StatusTab.cpp.

References ui.

Referenced by MainWindow::updateTorStatus().

void StatusTab::setTorStatus ( const QString &  text)

Sets the text to the general Tor status display

Definition at line 23 of file StatusTab.cpp.

References ui.

void StatusTab::setTorStatus ( const QPixmap &  icon,
const QString &  text 
)

Wrapper for the first two methods for ease of use

Definition at line 35 of file StatusTab.cpp.

References ui.

void StatusTab::setTorStatusVisible ( bool  visible)

Sets the Tor status display to visible or hidden

Definition at line 42 of file StatusTab.cpp.

References ui.

Referenced by MainWindow::setStartupProgressVisible().

void StatusTab::toggleShowOnStartup ( bool  checked)
privateslot

Called when the "show on startup" checkbox is toggled.

Definition at line 82 of file StatusTab.cpp.

References VidaliaSettings::setShowMainWindowAtStart().

Member Data Documentation

Ui::StatusTab StatusTab::ui
private

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