#include <MainWindow.h>
Public Member Functions | |
CMainWindow () | |
~CMainWindow () | |
void | loadSettings () |
Public Attributes | |
CSettings * | configuration |
Protected Member Functions | |
void | closeEvent (QCloseEvent *event) |
Private Slots | |
void | showPreferences () |
void | showAbout () |
Private Member Functions | |
void | parseMountPoints () |
void | startupSettings () |
void | createActions () |
void | createTrayIcon () |
Private Attributes | |
QList< SHardDrive * > | disk |
QList< QProgressBar * > | hddProgressBar |
QList< QLabel * > | hddInfoLabel |
CPreferences * | preferences |
CAboutDialog * | about |
QProcess * | readMountPoints |
QAction * | restoreAction |
QAction * | quitAction |
QSystemTrayIcon * | trayIcon |
QMenu * | trayIconMenu |
Classes | |
struct | SHardDrive |
Definition at line 9 of file MainWindow.h.
CMainWindow::CMainWindow | ( | ) |
Definition at line 3 of file MainWindow.cpp.
References createActions(), createTrayIcon(), parseMountPoints(), showAbout(), showPreferences(), and startupSettings().
CMainWindow::~CMainWindow | ( | ) |
void CMainWindow::loadSettings | ( | ) |
Definition at line 212 of file MainWindow.cpp.
References configuration, SConfiguration::language, SConfiguration::otherLanuage, CSettings::settings, SConfiguration::systemTray, and trayIcon.
Referenced by main(), and showPreferences().
void CMainWindow::closeEvent | ( | QCloseEvent * | event | ) | [protected] |
void CMainWindow::parseMountPoints | ( | ) | [private] |
Definition at line 23 of file MainWindow.cpp.
References CMainWindow::SHardDrive::available, disk, CMainWindow::SHardDrive::filesystem, hddInfoLabel, hddProgressBar, CMainWindow::SHardDrive::mountPoint, readMountPoints, CMainWindow::SHardDrive::size, CMainWindow::SHardDrive::used, and CMainWindow::SHardDrive::usedPercent.
Referenced by CMainWindow().
void CMainWindow::startupSettings | ( | ) | [private] |
Definition at line 134 of file MainWindow.cpp.
References hddInfoLabel, and hddProgressBar.
Referenced by CMainWindow().
void CMainWindow::createActions | ( | ) | [private] |
Definition at line 178 of file MainWindow.cpp.
References quitAction, and restoreAction.
Referenced by CMainWindow().
void CMainWindow::createTrayIcon | ( | ) | [private] |
Definition at line 188 of file MainWindow.cpp.
References quitAction, restoreAction, trayIcon, and trayIconMenu.
Referenced by CMainWindow().
void CMainWindow::showPreferences | ( | ) | [private, slot] |
Definition at line 165 of file MainWindow.cpp.
References loadSettings(), and preferences.
Referenced by CMainWindow().
void CMainWindow::showAbout | ( | ) | [private, slot] |
QList<SHardDrive*> CMainWindow::disk [private] |
QList<QProgressBar*> CMainWindow::hddProgressBar [private] |
Definition at line 35 of file MainWindow.h.
Referenced by parseMountPoints(), and startupSettings().
QList<QLabel*> CMainWindow::hddInfoLabel [private] |
Definition at line 36 of file MainWindow.h.
Referenced by parseMountPoints(), and startupSettings().
CPreferences* CMainWindow::preferences [private] |
CAboutDialog* CMainWindow::about [private] |
QProcess* CMainWindow::readMountPoints [private] |
QAction* CMainWindow::restoreAction [private] |
QAction* CMainWindow::quitAction [private] |
QSystemTrayIcon* CMainWindow::trayIcon [private] |
Definition at line 42 of file MainWindow.h.
Referenced by closeEvent(), createTrayIcon(), and loadSettings().
QMenu* CMainWindow::trayIconMenu [private] |