src/gui.h

changeset 606
3dd6f343ec06
parent 604
01bdac75994a
child 611
6679e47b019f
equal deleted inserted replaced
605:2983f7c7e7c9 606:3dd6f343ec06
125 inline void setQuickColors (QList<LDQuickColor>& colors) 125 inline void setQuickColors (QList<LDQuickColor>& colors)
126 { 126 {
127 m_quickColors = colors; 127 m_quickColors = colors;
128 } 128 }
129 129
130 void addMessage (str msg); 130 void addMessage (QString msg);
131 void refreshObjectList(); 131 void refreshObjectList();
132 void updateActionShortcuts(); 132 void updateActionShortcuts();
133 KeySequenceConfig* shortcutForAction (QAction* act); 133 KeySequenceConfig* shortcutForAction (QAction* act);
134 void endAction(); 134 void endAction();
135 135
262 // Pointer to the instance of ForgeWindow. 262 // Pointer to the instance of ForgeWindow.
263 extern ForgeWindow* g_win; 263 extern ForgeWindow* g_win;
264 264
265 // ----------------------------------------------------------------------------- 265 // -----------------------------------------------------------------------------
266 // Other GUI-related stuff not directly part of ForgeWindow: 266 // Other GUI-related stuff not directly part of ForgeWindow:
267 QPixmap getIcon (str iconName); // Get an icon from the resource dir 267 QPixmap getIcon (QString iconName); // Get an icon from the resource dir
268 QList<LDQuickColor> quickColorsFromConfig(); // Make a list of quick colors based on config 268 QList<LDQuickColor> quickColorsFromConfig(); // Make a list of quick colors based on config
269 bool confirm (str title, str msg); // Generic confirm prompt 269 bool confirm (QString title, QString msg); // Generic confirm prompt
270 bool confirm (str msg); // Generic confirm prompt 270 bool confirm (QString msg); // Generic confirm prompt
271 void critical (str msg); // Generic error prompt 271 void critical (QString msg); // Generic error prompt
272 QIcon makeColorIcon (LDColor* colinfo, const int size); // Makes an icon for the given color 272 QIcon makeColorIcon (LDColor* colinfo, const int size); // Makes an icon for the given color
273 void makeColorComboBox (QComboBox* box); // Fills the given combo-box with color information 273 void makeColorComboBox (QComboBox* box); // Fills the given combo-box with color information
274 QImage imageFromScreencap (uchar* data, int w, int h); 274 QImage imageFromScreencap (uchar* data, int w, int h);
275 275
276 // ============================================================================= 276 // =============================================================================

mercurial