Vidalia
0.3.1
Main Page
Namespaces
Classes
Files
File List
File Members
src
vidalia
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
22
class
StatusTab
:
public
VidaliaTab
23
{
24
Q_OBJECT
25
26
public
:
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 */
47
bool
isCheckedShowOnStartup
();
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 */
51
void
hideCheckShowOnStartup
();
52
53
private
slots:
54
/** Called when the "show on startup" checkbox is toggled. */
55
void
toggleShowOnStartup
(
bool
checked);
56
57
protected
:
58
/** Called when the user changes the UI translation. */
59
void
retranslateUi
();
60
61
private
:
62
Ui::StatusTab
ui
;
63
};
64
65
#endif
Generated on Mon Jan 14 2013 08:44:27 for Vidalia by
1.8.3