comparison libgui/src/resource-manager.h @ 20108:a8a5415b05cb

new gui icons * resource-manager.cc (do_icon): new function for getting an icon from or from the fallback icon set if desired * resource-manager.h (icon): new static function icon calling do_icon if instance is ok * QTerminal.h (QTerminal) * files-dock-widget.cc (files_dock_widget,contextmenu_requested) * main-window.cc (construct_file_menu, construct_new_menu, construct_edit_menu, construct_tool_bar, construct_debug_menu_item) * webinfo.cc (webinfo) * file-editor.cc (construct): use icons from theme or icon set, change order of prev/next breakpoint * find-files-dialog.cc (find_files_dialog): new window icon * applications-system.svg, bp-next.svg, bp-prev.svg, bp-rm-all.svg, bp-toggle.svg, db-step-in.svg, db-step-out.svg, db-step.svg, db-stop.svg, document-new.svg, document-open.svg, document-print.svg, document-save-as.svg, document-save.svg, edit-copy.svg, edit-cut.svg, edit-paste.svg, edit-delete.svg, edit-find.svg, edit-find-replace.svg, edit-undo.svg, edit-redo.svg, folder-new.svg, folder.svg, go-first.svg, go-last.svg, go-up.svg, media-playback-start.svg, preferences-system.svg, system-run.svg user-home.svg, view-refresh.svg, zoom-in.svg, zoom-out.svg: added new icon files together with created png files * artsbuilderexecute.png, bp_next.png, bp_prev.png, bp_rm_all.png, bp_toggle.png, db_step_in.png, db_step_out.png, db_step.png, db_stop.png, db_cont.png, configure.png, editcopy.png, editcut.png, editdelete.png, editpaste.png, fileclose.png, filenew.png, fileopen.png, fileprint.png, filesave.png, filesaveas.png, find.png, findf.png, folder.png, folder_documents.png, folder_new.png, gear.png, home.png, ok.png, redo.png, reload.png, search.png, undo.png, zoom-in.png, zoom-out.png: removed old icon files * icons_license: update to new icon set * module.mk * resource.qrc remove png icons and add svg/png icons
author Torsten <ttl@justmail.de>
date Fri, 27 Feb 2015 08:41:59 +0100
parents 4197fc428c7d
children
comparison
equal deleted inserted replaced
20107:2eed41ae3b64 20108:a8a5415b05cb
42 ~resource_manager (); 42 ~resource_manager ();
43 43
44 static QSettings *get_settings (void) 44 static QSettings *get_settings (void)
45 { 45 {
46 return instance_ok () ? instance->do_get_settings () : 0; 46 return instance_ok () ? instance->do_get_settings () : 0;
47 }
48
49 static QIcon icon (const QString& icon_name, bool fallback = true)
50 {
51 if (instance_ok ())
52 return instance->do_icon (icon_name, fallback);
53
54 return QIcon ();
47 } 55 }
48 56
49 static QSettings *get_default_settings (void) 57 static QSettings *get_default_settings (void)
50 { 58 {
51 return instance_ok () ? instance->do_get_default_settings () : 0; 59 return instance_ok () ? instance->do_get_default_settings () : 0;
127 135
128 void do_update_network_settings (void); 136 void do_update_network_settings (void);
129 137
130 bool do_is_first_run (void) const; 138 bool do_is_first_run (void) const;
131 139
140 QIcon do_icon (const QString& icon, bool fallback);
141
132 }; 142 };
133 143
134 #endif // RESOURCEMANAGER_H 144 #endif // RESOURCEMANAGER_H