src/mainWindow.h

changeset 739
152b33a6d51b
parent 728
2a8c981d79fa
child 757
8ab9fa53142b
equal deleted inserted replaced
738:16b63398aa1f 739:152b33a6d51b
177 m_quickColors = colors; 177 m_quickColors = colors;
178 updateColorToolbar(); 178 updateColorToolbar();
179 } 179 }
180 180
181 //! Adds a message to the renderer's message manager. 181 //! Adds a message to the renderer's message manager.
182 void addMessage (QString msg); 182 void addMessage (String msg);
183 183
184 //! Updates the object list. Right now this just rebuilds it. 184 //! Updates the object list. Right now this just rebuilds it.
185 void refreshObjectList(); 185 void refreshObjectList();
186 186
187 //! Updates all actions to ensure they have the correct shortcut as 187 //! Updates all actions to ensure they have the correct shortcut as
316 316
317 //! Pointer to the instance of MainWindow. 317 //! Pointer to the instance of MainWindow.
318 extern MainWindow* g_win; 318 extern MainWindow* g_win;
319 319
320 //! Get an icon by name from the resources directory. 320 //! Get an icon by name from the resources directory.
321 QPixmap getIcon (QString iconName); 321 QPixmap getIcon (String iconName);
322 322
323 //! \returns a list of quick colors based on the configuration entry. 323 //! \returns a list of quick colors based on the configuration entry.
324 QList<LDQuickColor> quickColorsFromConfig(); 324 QList<LDQuickColor> quickColorsFromConfig();
325 325
326 //! Asks the user a yes/no question with the given \c message and the given 326 //! Asks the user a yes/no question with the given \c message and the given
327 //! window \c title. 327 //! window \c title.
328 //! \returns true if the user answered yes, false if no. 328 //! \returns true if the user answered yes, false if no.
329 bool confirm (const QString& title, const QString& message); // Generic confirm prompt 329 bool confirm (const String& title, const String& message); // Generic confirm prompt
330 330
331 //! An overload of \c confirm(), this asks the user a yes/no question with the 331 //! An overload of \c confirm(), this asks the user a yes/no question with the
332 //! given \c message. 332 //! given \c message.
333 //! \returns true if the user answered yes, false if no. 333 //! \returns true if the user answered yes, false if no.
334 bool confirm (const QString& message); 334 bool confirm (const String& message);
335 335
336 //! Displays an error prompt with the given \c message 336 //! Displays an error prompt with the given \c message
337 void critical (const QString& message); 337 void critical (const String& message);
338 338
339 //! Makes an icon of \c size x \c size pixels to represent \c colinfo 339 //! Makes an icon of \c size x \c size pixels to represent \c colinfo
340 QIcon makeColorIcon (LDColor* colinfo, const int size); 340 QIcon makeColorIcon (LDColor* colinfo, const int size);
341 341
342 //! Fills the given combo-box with color information 342 //! Fills the given combo-box with color information

mercurial