ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
#include <src/ckb/mainwindow.h>
Public Slots | |
void | showWindow () |
void | stateChange (Qt::ApplicationState state) |
void | quitApp () |
Public Member Functions | |
MainWindow (QWidget *parent=0) | |
~MainWindow () | |
void | toggleTrayIcon (bool visible) |
Static Public Attributes | |
static MainWindow * | mainWindow = 0 |
Private Slots | |
void | addDevice (Kb *device) |
void | removeDevice (Kb *device) |
void | updateVersion () |
void | checkFwUpdates () |
void | timerTick () |
void | iconClicked (QSystemTrayIcon::ActivationReason reason) |
void | cleanup () |
void | showFwUpdateNotification (QWidget *widget, float version) |
Private Member Functions | |
void | closeEvent (QCloseEvent *event) |
Private Attributes | |
SettingsWidget * | settingsWidget |
QList< KbWidget * > | kbWidgets |
QAction * | restoreAction |
QAction * | closeAction |
QMenu * | trayIconMenu |
QSystemTrayIcon * | trayIcon |
Ui::MainWindow * | ui |
Definition at line 27 of file mainwindow.h.
|
explicit |
Definition at line 49 of file mainwindow.cpp.
References Ui_MainWindow::actionExit, addDevice(), cleanup(), closeAction, configLabel, daemonDialogText, devpath, CkbSettings::get(), iconClicked(), KbManager::init(), KbManager::kbManager(), mainWindow, quitApp(), removeDevice(), restoreAction, KbManager::scanTimer(), SettingsWidget::setStatus(), settingsWidget, Ui_MainWindow::setupUi(), SettingsWidget::setVersion(), showWindow(), stateChange(), Ui_MainWindow::tabWidget, timerTick(), toggleTrayIcon(), trayIcon, trayIconMenu, ui, and updateVersion().
MainWindow::~MainWindow | ( | ) |
|
privateslot |
Definition at line 159 of file mainwindow.cpp.
References KbWidget::device, kbWidgets, KbWidget::name(), Ui_MainWindow::tabWidget, ui, and updateVersion().
Referenced by MainWindow().
|
privateslot |
Definition at line 210 of file mainwindow.cpp.
References KbWidget::device, Kb::features, Kb::firmware, KbWidget::hasShownNewFW, kbWidgets, mainWindow, KbWidget::updateFwButton(), and KbFirmware::versionForBoard().
Referenced by timerTick().
|
privateslot |
Definition at line 333 of file mainwindow.cpp.
References CkbSettings::cleanUp(), kbWidgets, and KbManager::stop().
Referenced by MainWindow(), and ~MainWindow().
|
private |
Definition at line 247 of file mainwindow.cpp.
References CkbSettings::get(), and CkbSettings::set().
|
privateslot |
Definition at line 295 of file mainwindow.cpp.
References showWindow().
Referenced by MainWindow().
|
slot |
Definition at line 329 of file mainwindow.cpp.
Referenced by MainWindow().
|
privateslot |
Definition at line 177 of file mainwindow.cpp.
References KbWidget::device, kbWidgets, Ui_MainWindow::tabWidget, ui, and updateVersion().
Referenced by MainWindow().
|
privateslot |
Definition at line 230 of file mainwindow.cpp.
References KbWidget::device, kbWidgets, KbWidget::showFwUpdate(), KbWidget::showLastTab(), showWindow(), Ui_MainWindow::tabWidget, ui, and Kb::usbModel.
|
slot |
Definition at line 308 of file mainwindow.cpp.
Referenced by iconClicked(), MainWindow(), showFwUpdateNotification(), stateChange(), and timerTick().
|
slot |
Definition at line 314 of file mainwindow.cpp.
References showWindow().
Referenced by MainWindow().
|
privateslot |
Definition at line 261 of file mainwindow.cpp.
References appShare, checkFwUpdates(), KbFirmware::checkUpdates(), CkbSettings::get(), SettingsWidget::pollUpdates(), settingsWidget, and showWindow().
Referenced by MainWindow().
void MainWindow::toggleTrayIcon | ( | bool | visible | ) |
Definition at line 150 of file mainwindow.cpp.
References trayIcon.
Referenced by MainWindow(), and ExtraSettingsWidget::on_trayBox_clicked().
|
privateslot |
Definition at line 191 of file mainwindow.cpp.
References KbManager::ckbDaemonVersion(), KbManager::ckbDaemonVersionF(), KbManager::ckbGuiVersionF(), DAEMON_UNAVAILABLE_STR, kbWidgets, SettingsWidget::setStatus(), and settingsWidget.
Referenced by addDevice(), MainWindow(), and removeDevice().
|
private |
Definition at line 44 of file mainwindow.h.
Referenced by MainWindow().
|
private |
Definition at line 41 of file mainwindow.h.
Referenced by addDevice(), checkFwUpdates(), cleanup(), removeDevice(), showFwUpdateNotification(), and updateVersion().
|
static |
Definition at line 35 of file mainwindow.h.
Referenced by checkFwUpdates(), MainWindow(), and ExtraSettingsWidget::on_trayBox_clicked().
|
private |
Definition at line 43 of file mainwindow.h.
Referenced by MainWindow().
|
private |
Definition at line 40 of file mainwindow.h.
Referenced by MainWindow(), timerTick(), and updateVersion().
|
private |
Definition at line 54 of file mainwindow.h.
Referenced by MainWindow(), and toggleTrayIcon().
|
private |
Definition at line 53 of file mainwindow.h.
Referenced by MainWindow().
|
private |
Definition at line 75 of file mainwindow.h.
Referenced by addDevice(), MainWindow(), removeDevice(), showFwUpdateNotification(), and ~MainWindow().