53 |
53 |
54 explicit ConfigDialog (Tab deftab = InterfaceTab, QWidget* parent = null, Qt::WindowFlags f = 0); |
54 explicit ConfigDialog (Tab deftab = InterfaceTab, QWidget* parent = null, Qt::WindowFlags f = 0); |
55 virtual ~ConfigDialog(); |
55 virtual ~ConfigDialog(); |
56 float getGridValue (int i, int j) const; |
56 float getGridValue (int i, int j) const; |
57 |
57 |
58 List<LDQuickColor> quickColors; |
58 QList<LDQuickColor> quickColors; |
59 QDoubleSpinBox* dsb_gridData[3][4]; |
59 QDoubleSpinBox* dsb_gridData[3][4]; |
60 |
60 |
61 private: |
61 private: |
62 Ui_ConfigUI* ui; |
62 Ui_ConfigUI* ui; |
63 QLabel* lb_gridLabels[3]; |
63 QLabel* lb_gridLabels[3]; |
64 QLabel* lb_gridIcons[3]; |
64 QLabel* lb_gridIcons[3]; |
65 List<QListWidgetItem*> quickColorItems; |
65 QList<QListWidgetItem*> quickColorItems; |
66 |
66 |
67 void applySettings(); |
67 void applySettings(); |
68 void addShortcut (KeySequenceConfig& cfg, QAction* act, int& i); |
68 void addShortcut (KeySequenceConfig& cfg, QAction* act, int& i); |
69 void setButtonBackground (QPushButton* button, str value); |
69 void setButtonBackground (QPushButton* button, str value); |
70 void pickColor (StringConfig& cfg, QPushButton* button); |
70 void pickColor (StringConfig& cfg, QPushButton* button); |
71 void updateQuickColorList (LDQuickColor* sel = null); |
71 void updateQuickColorList (LDQuickColor* sel = null); |
72 void setShortcutText (ShortcutListItem* item); |
72 void setShortcutText (ShortcutListItem* item); |
73 int getItemRow (QListWidgetItem* item, List<QListWidgetItem*>& haystack); |
73 int getItemRow (QListWidgetItem* item, QList<QListWidgetItem*>& haystack); |
74 str quickColorString(); |
74 str quickColorString(); |
75 QListWidgetItem* getSelectedQuickColor(); |
75 QListWidgetItem* getSelectedQuickColor(); |
76 QList<ShortcutListItem*> getShortcutSelection(); |
76 QList<ShortcutListItem*> getShortcutSelection(); |
77 void initGrids(); |
77 void initGrids(); |
78 void initExtProgs(); |
78 void initExtProgs(); |