Vidalia
0.2.15
|
#include <ControlPasswordInputDialog.h>
Signals | |
void | helpRequested (const QString &topic) |
Public Member Functions | |
ControlPasswordInputDialog (QWidget *parent=0) | |
QString | password () const |
bool | isSavePasswordChecked () const |
void | setResetEnabled (bool enabled) |
Protected Slots | |
void | clicked (QAbstractButton *button) |
void | passwordEdited (const QString &text) |
Protected Member Functions | |
virtual void | setVisible (bool visible) |
Private Attributes | |
Ui::ControlPasswordInputDialog | ui |
Definition at line 26 of file ControlPasswordInputDialog.h.
ControlPasswordInputDialog::ControlPasswordInputDialog | ( | QWidget * | parent = 0 | ) |
Default constructor.
Definition at line 22 of file ControlPasswordInputDialog.cpp.
References clicked(), passwordEdited(), and ui.
void ControlPasswordInputDialog::clicked | ( | QAbstractButton * | button | ) | [protected, slot] |
Called when one of the QDialogButtonBox's buttons is clicked. The dialog is closed if button is the "Ok", "Cancel", or "Reset" button, and the clicked button's QDialogButtonBox::StandardButton enum value is returned as the dialog's result code.
Definition at line 76 of file ControlPasswordInputDialog.cpp.
References helpRequested(), and ui.
Referenced by ControlPasswordInputDialog().
void ControlPasswordInputDialog::helpRequested | ( | const QString & | topic | ) | [signal] |
Emitted when the user clicks on the "Help" dialog button.
Referenced by clicked().
bool ControlPasswordInputDialog::isSavePasswordChecked | ( | ) | const |
Returns true if the "Remember my password" checkbox was checked at the time the dialog was dismissed.
Definition at line 62 of file ControlPasswordInputDialog.cpp.
References ui.
Referenced by MainWindow::authenticationFailed().
QString ControlPasswordInputDialog::password | ( | ) | const |
Returns the password entered in the dialog. If the dialog was dismissed with the "Cancel" button, then the returned QString will be empty.
Definition at line 56 of file ControlPasswordInputDialog.cpp.
References ui.
Referenced by MainWindow::authenticationFailed().
void ControlPasswordInputDialog::passwordEdited | ( | const QString & | text | ) | [protected, slot] |
Called when the user changes the password QLineEdit. If the password is empty, then the "Ok" button will be disabled. Otherwise, it is enabled.
Definition at line 68 of file ControlPasswordInputDialog.cpp.
References ui.
Referenced by ControlPasswordInputDialog().
void ControlPasswordInputDialog::setResetEnabled | ( | bool | enabled | ) |
If enabled is true, then the "Reset" button will be visible on the password input dialog. Otherwise, the "Reset" button will be hidden.
Definition at line 44 of file ControlPasswordInputDialog.cpp.
References ui.
Referenced by MainWindow::authenticationFailed().
void ControlPasswordInputDialog::setVisible | ( | bool | visible | ) | [protected, virtual] |
Adjusts the size of the input dialog when it is displayed.
Definition at line 96 of file ControlPasswordInputDialog.cpp.
Ui::ControlPasswordInputDialog ControlPasswordInputDialog::ui [private] |
Qt Designer generated object.
Definition at line 73 of file ControlPasswordInputDialog.h.
Referenced by clicked(), ControlPasswordInputDialog(), isSavePasswordChecked(), password(), passwordEdited(), and setResetEnabled().