Vidalia 0.3.1
StatusTab.h
Go to the documentation of this file.
1/*
2** This file is part of Vidalia, and is subject to the license terms in the
3** LICENSE file, found in the top level directory of this distribution. If you
4** did not receive the LICENSE file with this file, you may obtain it from the
5** Vidalia source package distributed by the Vidalia Project at
6** http://www.vidalia-project.net/. No part of Vidalia, including this file,
7** may be copied, modified, propagated, or distributed except according to the
8** terms described in the LICENSE file.
9*/
10
11/*
12** \file StatusTab.h
13** \brief Main tab that shows the current Tor status
14*/
15
16#ifndef _STATUSTAB_H
17#define _STATUSTAB_H
18
19#include "ui_StatusTab.h"
20#include "VidaliaTab.h"
21
22class StatusTab : public VidaliaTab
23{
24 Q_OBJECT
25
26public:
27 /** Default constructor */
28 StatusTab(QWidget *parent = 0);
29 /** Destructor. */
30 ~StatusTab();
31
32 /** Sets the icon to the general Tor status display */
33 void setTorStatus(const QPixmap &icon);
34 /** Sets the text to the general Tor status display */
35 void setTorStatus(const QString &text);
36 /** Wrapper for the first two methods for ease of use */
37 void setTorStatus(const QPixmap &icon, const QString &text);
38 /** Sets the Tor status display to visible or hidden */
39 void setTorStatusVisible(bool visible);
40
41 /** Sets the progress bar and its description */
42 void setProgress(int progress, const QString &description);
43 /** Sets the visibility of the progress bar */
44 void setProgressVisible(bool visible);
45
46 /** Returns true if the "Show on start up" checkbox is checked */
48 /** Sets "Show on start up" checkbox checked if check is true */
49 void checkShowOnStartup(bool check);
50 /** Hides the "Show on start up" checkbox */
52
53private slots:
54 /** Called when the "show on startup" checkbox is toggled. */
55 void toggleShowOnStartup(bool checked);
56
57protected:
58 /** Called when the user changes the UI translation. */
59 void retranslateUi();
60
61private:
62 Ui::StatusTab ui;
63};
64
65#endif
Ui::StatusTab ui
Definition: StatusTab.h:62
StatusTab(QWidget *parent=0)
Definition: StatusTab.cpp:7
void setProgressVisible(bool visible)
Definition: StatusTab.cpp:56
void toggleShowOnStartup(bool checked)
Definition: StatusTab.cpp:82
void checkShowOnStartup(bool check)
Definition: StatusTab.cpp:69
void setTorStatus(const QPixmap &icon)
Definition: StatusTab.cpp:29
void retranslateUi()
Definition: StatusTab.cpp:89
void setTorStatusVisible(bool visible)
Definition: StatusTab.cpp:42
bool isCheckedShowOnStartup()
Definition: StatusTab.cpp:63
void setProgress(int progress, const QString &description)
Definition: StatusTab.cpp:49
void hideCheckShowOnStartup()
Definition: StatusTab.cpp:75