171 class ExtProgramToolset* externalPrograms() |
171 class ExtProgramToolset* externalPrograms() |
172 { |
172 { |
173 return m_externalPrograms; |
173 return m_externalPrograms; |
174 } |
174 } |
175 |
175 |
|
176 class GuiUtilities* guiUtilities() |
|
177 { |
|
178 return m_guiUtilities; |
|
179 } |
|
180 |
176 public slots: |
181 public slots: |
177 void updatePrimitives(); |
182 void updatePrimitives(); |
178 void changeCurrentFile(); |
183 void changeCurrentFile(); |
179 void closeTab (int tabindex); |
184 void closeTab (int tabindex); |
180 void ringToolHiResClicked (bool clicked); |
185 void ringToolHiResClicked (bool clicked); |
186 |
191 |
187 private: |
192 private: |
188 struct ToolInfo { QMetaMethod method; Toolset* object; }; |
193 struct ToolInfo { QMetaMethod method; Toolset* object; }; |
189 |
194 |
190 ConfigurationValueBag m_configOptions; |
195 ConfigurationValueBag m_configOptions; |
|
196 class GuiUtilities* m_guiUtilities; |
191 GLRenderer* m_renderer; |
197 GLRenderer* m_renderer; |
192 LDObjectList m_sel; |
198 LDObjectList m_sel; |
193 QList<LDQuickColor> m_quickColors; |
199 QList<LDQuickColor> m_quickColors; |
194 QList<QToolButton*> m_colorButtons; |
200 QList<QToolButton*> m_colorButtons; |
195 QList<QAction*> m_recentFiles; |
201 QList<QAction*> m_recentFiles; |
230 bool Confirm (const QString& message); |
236 bool Confirm (const QString& message); |
231 |
237 |
232 //! Displays an error prompt with the given \c message |
238 //! Displays an error prompt with the given \c message |
233 void Critical (const QString& message); |
239 void Critical (const QString& message); |
234 |
240 |
235 //! Makes an icon of \c size x \c size pixels to represent \c colinfo |
|
236 QIcon MakeColorIcon (LDColor colinfo, const int size); |
|
237 |
|
238 //! Fills the given combo-box with color information |
|
239 void MakeColorComboBox (QComboBox* box); |
|
240 |
|
241 //! \returns a QImage from the given raw GL \c data |
241 //! \returns a QImage from the given raw GL \c data |
242 QImage GetImageFromScreencap (uchar* data, int w, int h); |
242 QImage GetImageFromScreencap (uchar* data, int w, int h); |
243 |
243 |
244 //! |
244 //! |
245 //! Takes in pairs of radio buttons and respective values and finds the first |
245 //! Takes in pairs of radio buttons and respective values and finds the first |