gui.h

changeset 174
963697b36118
parent 169
f562323760a2
child 175
b094d5e9d6e0
equal deleted inserted replaced
173:2368e3c23ef3 174:963697b36118
33 #include "config.h" 33 #include "config.h"
34 34
35 class ForgeWindow; 35 class ForgeWindow;
36 class color; 36 class color;
37 class QSplitter; 37 class QSplitter;
38 class DelHistory;
38 39
39 // Stuff for dialogs 40 // Stuff for dialogs
40 #define IMPLEMENT_DIALOG_BUTTONS \ 41 #define IMPLEMENT_DIALOG_BUTTONS \
41 bbx_buttons = new QDialogButtonBox (QDialogButtonBox::Ok | QDialogButtonBox::Cancel); \ 42 bbx_buttons = new QDialogButtonBox (QDialogButtonBox::Ok | QDialogButtonBox::Cancel); \
42 connect (bbx_buttons, SIGNAL (accepted ()), this, SLOT (accept ())); \ 43 connect (bbx_buttons, SIGNAL (accepted ()), this, SLOT (accept ())); \
134 bool isSelected (LDObject* obj); 135 bool isSelected (LDObject* obj);
135 short getSelectedColor(); 136 short getSelectedColor();
136 LDObject::Type uniformSelectedType (); 137 LDObject::Type uniformSelectedType ();
137 void scrollToSelection (); 138 void scrollToSelection ();
138 void spawnContextMenu (const QPoint pos); 139 void spawnContextMenu (const QPoint pos);
140 DelHistory* deleteSelection ();
139 GLRenderer* R () { return m_renderer; } 141 GLRenderer* R () { return m_renderer; }
140 std::vector<LDObject*>& sel () { return m_sel; } 142 std::vector<LDObject*>& sel () { return m_sel; }
141 void setQuickColorMeta (std::vector<quickColorMetaEntry>& quickColorMeta) { 143 void setQuickColorMeta (std::vector<quickColorMetaEntry>& quickColorMeta) {
142 m_colorMeta = quickColorMeta; 144 m_colorMeta = quickColorMeta;
143 } 145 }

mercurial