59 QList<LDQuickColor> quickColors; |
59 QList<LDQuickColor> quickColors; |
60 |
60 |
61 private: |
61 private: |
62 Ui_ConfigUI* ui; |
62 Ui_ConfigUI* ui; |
63 QList<QListWidgetItem*> quickColorItems; |
63 QList<QListWidgetItem*> quickColorItems; |
|
64 QMap<QPushButton*, QColor> _buttonColors; |
64 |
65 |
65 void applySettings(); |
66 void applySettings(); |
66 void addShortcut (QAction* act); |
67 void addShortcut (QAction* act); |
67 void setButtonBackground (QPushButton* button, QString value); |
68 void setButtonBackground (QPushButton* button, QString value); |
68 void pickColor (QString& conf, QPushButton* button); |
|
69 void updateQuickColorList (LDQuickColor* sel = null); |
69 void updateQuickColorList (LDQuickColor* sel = null); |
70 void setShortcutText (ShortcutListItem* item); |
70 void setShortcutText (ShortcutListItem* item); |
71 int getItemRow (QListWidgetItem* item, QList<QListWidgetItem*>& haystack); |
71 int getItemRow (QListWidgetItem* item, QList<QListWidgetItem*>& haystack); |
72 QString quickColorString(); |
72 QString quickColorString(); |
73 QListWidgetItem* getSelectedQuickColor(); |
73 QListWidgetItem* getSelectedQuickColor(); |
74 QList<ShortcutListItem*> getShortcutSelection(); |
74 QList<ShortcutListItem*> getShortcutSelection(); |
75 void initExtProgs(); |
75 void initExtProgs(); |
|
76 void _applyToWidgetOptions (std::function<void (QWidget*, AbstractConfigEntry*)> func); |
76 |
77 |
77 private slots: |
78 private slots: |
78 void slot_setGLBackground(); |
79 void setButtonColor(); |
79 void slot_setGLForeground(); |
|
80 void slot_setGLSelectColor(); |
|
81 void slot_setShortcut(); |
80 void slot_setShortcut(); |
82 void slot_resetShortcut(); |
81 void slot_resetShortcut(); |
83 void slot_clearShortcut(); |
82 void slot_clearShortcut(); |
84 void slot_setColor(); |
83 void slot_setColor(); |
85 void slot_delColor(); |
84 void slot_delColor(); |