ckb-next
v0.2.8 at branch master
ckb-next driver for corsair devices
|
#include <src/ckb/kbprofiledialog.h>
Public Member Functions | |
KbProfileDialog (KbWidget *parent=0) | |
~KbProfileDialog () | |
Private Slots | |
void | profileList_reordered () |
void | on_profileList_currentItemChanged (QListWidgetItem *current, QListWidgetItem *previous) |
void | on_profileList_itemClicked (QListWidgetItem *item) |
void | on_profileList_itemChanged (QListWidgetItem *item) |
void | on_profileList_customContextMenuRequested (const QPoint &pos) |
Private Member Functions | |
void | repopulate () |
void | addNewProfileItem () |
Private Attributes | |
Ui::KbProfileDialog * | ui |
Kb * | device |
Static Private Attributes | |
static const int | GUID = Qt::UserRole |
static const int | NEW_FLAG = Qt::UserRole + 1 |
Definition at line 11 of file kbprofiledialog.h.
|
explicit |
Definition at line 5 of file kbprofiledialog.cpp.
References Ui_KbProfileDialog::profileList, profileList_reordered(), repopulate(), Ui_KbProfileDialog::setupUi(), and ui.
KbProfileDialog::~KbProfileDialog | ( | ) |
Definition at line 16 of file kbprofiledialog.cpp.
References ui.
|
private |
Definition at line 66 of file kbprofiledialog.cpp.
References NEW_FLAG, Ui_KbProfileDialog::profileList, and ui.
Referenced by on_profileList_itemClicked(), and repopulate().
|
privateslot |
Definition at line 39 of file kbprofiledialog.cpp.
References device, Kb::find(), GUID, and Kb::setCurrentProfile().
|
privateslot |
Definition at line 109 of file kbprofiledialog.cpp.
References Kb::currentProfile(), device, Kb::find(), UsbId::guid, GUID, Kb::hwProfile(), Kb::hwSave(), KbProfile::id(), Kb::indexOf(), NEW_FLAG, KbProfile::newId(), Kb::newProfile(), Ui_KbProfileDialog::profileList, Kb::profiles(), KbProfile::removeAll(), repopulate(), Kb::setCurrentProfile(), and ui.
|
privateslot |
Definition at line 100 of file kbprofiledialog.cpp.
References Kb::currentProfile(), device, UsbId::guid, GUID, KbProfile::id(), and KbProfile::name().
|
privateslot |
Definition at line 78 of file kbprofiledialog.cpp.
References addNewProfileItem(), Kb::appendProfile(), device, UsbId::guid, GUID, KbProfile::id(), NEW_FLAG, Kb::newProfile(), Ui_KbProfileDialog::profileList, Kb::setCurrentProfile(), and ui.
|
privateslot |
Definition at line 20 of file kbprofiledialog.cpp.
References KbProfile::append(), device, Kb::find(), GUID, Ui_KbProfileDialog::profileList, Kb::profiles(), and ui.
Referenced by KbProfileDialog().
|
private |
Definition at line 48 of file kbprofiledialog.cpp.
References addNewProfileItem(), current, Kb::currentProfile(), device, UsbId::guid, GUID, Kb::hwProfile(), KbProfile::id(), KbProfile::name(), Ui_KbProfileDialog::profileList, Kb::profiles(), and ui.
Referenced by KbProfileDialog(), and on_profileList_customContextMenuRequested().
|
private |
Definition at line 29 of file kbprofiledialog.h.
Referenced by on_profileList_currentItemChanged(), on_profileList_customContextMenuRequested(), on_profileList_itemChanged(), on_profileList_itemClicked(), profileList_reordered(), and repopulate().
|
staticprivate |
Definition at line 30 of file kbprofiledialog.h.
Referenced by on_profileList_currentItemChanged(), on_profileList_customContextMenuRequested(), on_profileList_itemChanged(), on_profileList_itemClicked(), profileList_reordered(), and repopulate().
|
staticprivate |
Definition at line 31 of file kbprofiledialog.h.
Referenced by addNewProfileItem(), on_profileList_customContextMenuRequested(), and on_profileList_itemClicked().
|
private |
Definition at line 27 of file kbprofiledialog.h.
Referenced by addNewProfileItem(), KbProfileDialog(), on_profileList_customContextMenuRequested(), on_profileList_itemClicked(), profileList_reordered(), repopulate(), and ~KbProfileDialog().