Vidalia 0.2.15
|
#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.
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 currentItemChanged(), installUpdatesLater(), installUpdatesNow(), loadPackagesTable(), and ui.
void UpdatesAvailableDialog::currentItemChanged | ( | QTreeWidgetItem * | current, |
QTreeWidgetItem * | previous | ||
) | [private, slot] |
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().
void UpdatesAvailableDialog::installUpdatesLater | ( | ) | [private, slot] |
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().
void UpdatesAvailableDialog::installUpdatesNow | ( | ) | [private, slot] |
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().
void UpdatesAvailableDialog::loadPackagesTable | ( | const PackageList & | packageList | ) | [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().
void UpdatesAvailableDialog::showEvent | ( | QShowEvent * | e | ) | [protected, virtual] |
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.
Ui::UpdatesAvailableDialog UpdatesAvailableDialog::ui [private] |
Qt Designer generated object.
Definition at line 71 of file UpdatesAvailableDialog.h.
Referenced by currentItemChanged(), loadPackagesTable(), showEvent(), and UpdatesAvailableDialog().