Vidalia
0.3.1
|
#include <StatusTab.h>
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 () |
![]() | |
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 () |
![]() | |
virtual void | changeEvent (QEvent *e) |
virtual void | closeEvent (QCloseEvent *event) |
Private Slots | |
void | toggleShowOnStartup (bool checked) |
Private Attributes | |
Ui::StatusTab | ui |
Additional Inherited Members | |
![]() | |
void | helpRequested (const QString &topic) |
void | closeTab () |
![]() | |
bool | _onTop |
Definition at line 22 of file StatusTab.h.
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.
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().
|
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().
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 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::setTorStatus | ( | const QString & | text | ) |
Sets the text to the general Tor status display
Definition at line 23 of file StatusTab.cpp.
References ui.
Sets the Tor status display to visible or hidden
Definition at line 42 of file StatusTab.cpp.
References ui.
Referenced by MainWindow::setStartupProgressVisible().
Called when the "show on startup" checkbox is toggled.
Definition at line 82 of file StatusTab.cpp.
References VidaliaSettings::setShowMainWindowAtStart().
|
private |
Definition at line 62 of file StatusTab.h.
Referenced by checkShowOnStartup(), hideCheckShowOnStartup(), isCheckedShowOnStartup(), retranslateUi(), setProgress(), setProgressVisible(), setTorStatus(), setTorStatusVisible(), and StatusTab().