Vidalia 0.3.1
|
#include <UpdatesAvailableDialog.h>
Public Types | |
enum | UpdatesAvailableDialogExitCode { InstallUpdatesNow = 100 , InstallUpdatesLater = 101 } |
Public Member Functions | |
UpdatesAvailableDialog (const PackageList &packageList, QWidget *parent=0) | |
Protected Member Functions | |
virtual void | showEvent (QShowEvent *e) |
Private Slots | |
void | currentItemChanged (QTreeWidgetItem *current, QTreeWidgetItem *previous) |
void | installUpdatesNow () |
void | installUpdatesLater () |
Private Member Functions | |
void | loadPackagesTable (const PackageList &packageList) |
Private Attributes | |
Ui::UpdatesAvailableDialog | ui |
Definition at line 29 of file UpdatesAvailableDialog.h.
Enumerator | |
---|---|
InstallUpdatesNow | |
InstallUpdatesLater |
Definition at line 34 of file UpdatesAvailableDialog.h.
UpdatesAvailableDialog::UpdatesAvailableDialog | ( | const PackageList & | packageList, |
QWidget * | parent = 0 |
||
) |
Constructor.
Definition at line 24 of file UpdatesAvailableDialog.cpp.
References connect(), currentItemChanged(), installUpdatesLater(), installUpdatesNow(), loadPackagesTable(), and ui.
|
privateslot |
Called when the user selects a different package in the list. The widget displaying details on the selected package will be updated.
Definition at line 78 of file UpdatesAvailableDialog.cpp.
References ui.
Referenced by UpdatesAvailableDialog().
|
privateslot |
Called when the user opts to install the display software updates at a later time.
Definition at line 95 of file UpdatesAvailableDialog.cpp.
References InstallUpdatesLater.
Referenced by UpdatesAvailableDialog().
|
privateslot |
Called when the user opts to install the displayed software updates immediately.
Definition at line 89 of file UpdatesAvailableDialog.cpp.
References InstallUpdatesNow.
Referenced by UpdatesAvailableDialog().
|
private |
Populates the table of available updates with package information from packageList.
Definition at line 51 of file UpdatesAvailableDialog.cpp.
References PackageInfo::hasLongDescription(), PackageInfo::hasShortDescription(), Vidalia::language(), PackageInfo::longDescription(), PackageInfo::shortDescription(), ui, and PackageInfo::version().
Referenced by UpdatesAvailableDialog().
|
protectedvirtual |
Called when the dialog receives a QShowEvent. This simply adjusts the column widths to something close to sane and forwards the event to the parent.
Definition at line 43 of file UpdatesAvailableDialog.cpp.
References ui.
|
private |
Qt Designer generated object.
Definition at line 71 of file UpdatesAvailableDialog.h.
Referenced by currentItemChanged(), loadPackagesTable(), showEvent(), and UpdatesAvailableDialog().