47 // Shortcuts tab |
47 // Shortcuts tab |
48 QListWidget* qShortcutList; |
48 QListWidget* qShortcutList; |
49 QPushButton* qSetShortcut, *qResetShortcut, *qClearShortcut; |
49 QPushButton* qSetShortcut, *qResetShortcut, *qClearShortcut; |
50 std::vector<QListWidgetItem*> qaShortcutItems; |
50 std::vector<QListWidgetItem*> qaShortcutItems; |
51 |
51 |
|
52 // ========================================================================= |
|
53 // Quick color toolbar tab |
|
54 QListWidget* qQuickColorList; |
|
55 QPushButton* qAddColor, *qDelColor, *qChangeColor, *qAddColorSeparator, |
|
56 *qMoveColorUp, *qMoveColorDown, *qClearColors; |
|
57 std::vector<QListWidgetItem*> qaQuickColorItems; |
|
58 std::vector<quickColorMetaEntry> quickColorMeta; |
|
59 |
|
60 // ========================================================================= |
52 QDialogButtonBox* qButtons; |
61 QDialogButtonBox* qButtons; |
53 |
62 |
54 ConfigDialog (ForgeWindow* parent); |
63 ConfigDialog (ForgeWindow* parent); |
55 ~ConfigDialog (); |
64 ~ConfigDialog (); |
56 static void staticDialog (ForgeWindow* window); |
65 static void staticDialog (); |
57 |
66 |
58 private: |
67 private: |
59 void initMainTab (); |
68 void initMainTab (); |
60 void initShortcutsTab (); |
69 void initShortcutsTab (); |
|
70 void initQuickColorTab (); |
61 |
71 |
62 void makeSlider (QSlider*& qSlider, short int dMin, short int dMax, short int dDefault); |
72 void makeSlider (QSlider*& qSlider, short int dMin, short int dMax, short int dDefault); |
63 void setButtonBackground (QPushButton* qButton, str zValue); |
73 void setButtonBackground (QPushButton* qButton, str zValue); |
64 void pickColor (strconfig& cfg, QPushButton* qButton); |
74 void pickColor (strconfig& cfg, QPushButton* qButton); |
|
75 void updateQuickColorList (quickColorMetaEntry* pSel = nullptr); |
65 void setShortcutText (QListWidgetItem* qItem, actionmeta meta); |
76 void setShortcutText (QListWidgetItem* qItem, actionmeta meta); |
66 long getItemRow (QListWidgetItem* qItem); |
77 long getItemRow (QListWidgetItem* qItem, std::vector<QListWidgetItem*>& haystack); |
|
78 str makeColorToolBarString (); |
|
79 QListWidgetItem* getSelectedQuickColor (); |
67 |
80 |
68 private slots: |
81 private slots: |
69 void slot_findLDrawPath (); |
82 void slot_findLDrawPath (); |
70 void slot_setGLBackground (); |
83 void slot_setGLBackground (); |
71 void slot_setGLForeground (); |
84 void slot_setGLForeground (); |
|
85 |
72 void slot_setShortcut (); |
86 void slot_setShortcut (); |
73 void slot_resetShortcut (); |
87 void slot_resetShortcut (); |
74 void slot_clearShortcut (); |
88 void slot_clearShortcut (); |
|
89 |
|
90 void slot_setColor (); |
|
91 void slot_delColor (); |
|
92 void slot_addColorSeparator (); |
|
93 void slot_moveColor (); |
|
94 void slot_clearColors (); |
75 }; |
95 }; |
76 |
96 |
77 // ============================================================================= |
97 // ============================================================================= |
78 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
98 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
79 // ============================================================================= |
99 // ============================================================================= |