Commit 0500f5d3 authored by Claes Sjöfors's avatar Claes Sjöfors

System icons replaced

parent 5cbbdcc6
...@@ -70,7 +70,7 @@ PnViewerQt::PnViewerQt(const char* v_name, const char* v_device, ...@@ -70,7 +70,7 @@ PnViewerQt::PnViewerQt(const char* v_name, const char* v_device,
// File Entry // File Entry
QMenu* file = menu_bar->addMenu(translate_utf8("&File")); QMenu* file = menu_bar->addMenu(translate_utf8("&File"));
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "xtt_close.png");
// Functions Entry // Functions Entry
QMenu* functions = menu_bar->addMenu(translate_utf8("F&unctions")); QMenu* functions = menu_bar->addMenu(translate_utf8("F&unctions"));
...@@ -84,16 +84,16 @@ PnViewerQt::PnViewerQt(const char* v_name, const char* v_device, ...@@ -84,16 +84,16 @@ PnViewerQt::PnViewerQt(const char* v_name, const char* v_device,
// View menu // View menu
QMenu* view = menu_bar->addMenu(translate_utf8("&View")); QMenu* view = menu_bar->addMenu(translate_utf8("&View"));
addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I", addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I",
"zoom-in"); "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O", addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O",
"zoom-out"); "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "", addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "",
"zoom-original"); "$pwr_exe/xtt_zoom_reset.png");
// Help menu // Help menu
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem( addMenuItem(
toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "system-help"); toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "$pwr_exe/xtt_help.png");
// Statusbar and cmd input // Statusbar and cmd input
QStatusBar* statusbar = new QStatusBar(); QStatusBar* statusbar = new QStatusBar();
......
...@@ -230,9 +230,9 @@ GsdAttrQt::GsdAttrQt(void* a_parent_ctx, void* a_object, pb_gsd* a_gsd, ...@@ -230,9 +230,9 @@ GsdAttrQt::GsdAttrQt(void* a_parent_ctx, void* a_object, pb_gsd* a_gsd,
// File entry // File entry
QMenu* file = menu_bar->addMenu(translate_utf8("&File")); QMenu* file = menu_bar->addMenu(translate_utf8("&File"));
addMenuItem( addMenuItem(
toplevel, file, "&Print", SLOT(activate_print()), "", "document-print"); toplevel, file, "&Print", SLOT(activate_print()), "", "$pwr_exe/wb_print.png");
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Edit entry // Edit entry
QMenu* edit = menu_bar->addMenu(translate_utf8("&Edit")); QMenu* edit = menu_bar->addMenu(translate_utf8("&Edit"));
...@@ -251,16 +251,16 @@ GsdAttrQt::GsdAttrQt(void* a_parent_ctx, void* a_object, pb_gsd* a_gsd, ...@@ -251,16 +251,16 @@ GsdAttrQt::GsdAttrQt(void* a_parent_ctx, void* a_object, pb_gsd* a_gsd,
// View Entry // View Entry
QMenu* view = menu_bar->addMenu(translate_utf8("&View")); QMenu* view = menu_bar->addMenu(translate_utf8("&View"));
addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I", addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I",
"zoom-in"); "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O", addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O",
"zoom-out"); "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "", addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "",
"zoom-original"); "$pwr_exe/xtt_zoom_reset.png");
// Help entry // Help entry
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem( addMenuItem(
toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "system-help"); toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "$pwr_exe/xtt_help.png");
// Navigator // Navigator
attrnav = new GsdAttrNavQt(this, "Plant", gsd, edit_mode, &brow_widget, &sts); attrnav = new GsdAttrNavQt(this, "Plant", gsd, edit_mode, &brow_widget, &sts);
......
...@@ -267,9 +267,9 @@ GsdmlAttrQt::GsdmlAttrQt(void* a_parent_ctx, void* a_object, pn_gsdml* a_gsdml, ...@@ -267,9 +267,9 @@ GsdmlAttrQt::GsdmlAttrQt(void* a_parent_ctx, void* a_object, pn_gsdml* a_gsdml,
// File entry // File entry
QMenu* file = menu_bar->addMenu(translate_utf8("&File")); QMenu* file = menu_bar->addMenu(translate_utf8("&File"));
addMenuItem( addMenuItem(
toplevel, file, "&Print", SLOT(activate_print()), "", "document-print"); toplevel, file, "&Print", SLOT(activate_print()), "", "$pwr_exe/wb_print.png");
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Edit entry // Edit entry
QMenu* edit = menu_bar->addMenu(translate_utf8("&Edit")); QMenu* edit = menu_bar->addMenu(translate_utf8("&Edit"));
...@@ -303,16 +303,16 @@ GsdmlAttrQt::GsdmlAttrQt(void* a_parent_ctx, void* a_object, pn_gsdml* a_gsdml, ...@@ -303,16 +303,16 @@ GsdmlAttrQt::GsdmlAttrQt(void* a_parent_ctx, void* a_object, pn_gsdml* a_gsdml,
addCheckableMenuItem( addCheckableMenuItem(
toplevel, view, "_View I/O", SLOT(activate_viewio(bool))); toplevel, view, "_View I/O", SLOT(activate_viewio(bool)));
addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I", addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I",
"zoom-in"); "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O", addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O",
"zoom-out"); "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "", addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "",
"zoom-original"); "$pwr_exe/xtt_zoom_reset.png");
// Help entry // Help entry
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem( addMenuItem(
toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "system-help"); toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "$pwr_exe/xtt_help.png");
// Navigator // Navigator
attrnav = new GsdmlAttrNavQt(this, "Plant", gsdml, edit_mode, &brow_widget, attrnav = new GsdmlAttrNavQt(this, "Plant", gsdml, edit_mode, &brow_widget,
......
...@@ -249,11 +249,11 @@ XttTblQt::XttTblQt(void* a_parent_ctx, sevcli_tCtx a_sevcli, ...@@ -249,11 +249,11 @@ XttTblQt::XttTblQt(void* a_parent_ctx, sevcli_tCtx a_sevcli,
// File entry // File entry
QMenu* file = menu_bar->addMenu(translate_utf8("&File")); QMenu* file = menu_bar->addMenu(translate_utf8("&File"));
addMenuItem( addMenuItem(
toplevel, file, "&Print", SLOT(activate_print()), "", "document-print"); toplevel, file, "&Print", SLOT(activate_print()), "", "$pwr_exe/wb_print.png");
addMenuItem(toplevel, file, "&Login", SLOT(activate_login())); addMenuItem(toplevel, file, "&Login", SLOT(activate_login()));
addMenuItem(toplevel, file, "Log&Out", SLOT(activate_logout())); addMenuItem(toplevel, file, "Log&Out", SLOT(activate_logout()));
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Functions entry // Functions entry
QMenu* functions = menu_bar->addMenu(translate_utf8("F&unctions")); QMenu* functions = menu_bar->addMenu(translate_utf8("F&unctions"));
...@@ -269,16 +269,16 @@ XttTblQt::XttTblQt(void* a_parent_ctx, sevcli_tCtx a_sevcli, ...@@ -269,16 +269,16 @@ XttTblQt::XttTblQt(void* a_parent_ctx, sevcli_tCtx a_sevcli,
addMenuItem(toplevel, view, "&Tree Layout", SLOT(activate_tree_layout())); addMenuItem(toplevel, view, "&Tree Layout", SLOT(activate_tree_layout()));
addMenuItem(toplevel, view, "&List Layout", SLOT(activate_list_layout())); addMenuItem(toplevel, view, "&List Layout", SLOT(activate_list_layout()));
addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I", addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I",
"zoom-in"); "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O", addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O",
"zoom-out"); "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "", addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "",
"zoom-original"); "$pwr_exe/xtt_zoom_reset.png");
// Help entry // Help entry
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem(toplevel, help, "&Overview", SLOT(activate_help()), "CTRL+H", addMenuItem(toplevel, help, "&Overview", SLOT(activate_help()), "CTRL+H",
"system-help"); "$pwr_exe/xtt_help.png");
addMenuItem(toplevel, help, "&Project", SLOT(activate_help_project())); addMenuItem(toplevel, help, "&Project", SLOT(activate_help_project()));
addMenuItem(toplevel, help, "&About Proview", SLOT(activate_help_proview())); addMenuItem(toplevel, help, "&About Proview", SLOT(activate_help_proview()));
......
...@@ -358,7 +358,7 @@ WPkgGtk::WPkgGtk(GtkWidget* wa_parent_wid, void* wa_parent_ctx) ...@@ -358,7 +358,7 @@ WPkgGtk::WPkgGtk(GtkWidget* wa_parent_wid, void* wa_parent_ctx)
GtkToolbar* tools = (GtkToolbar*)g_object_new(GTK_TYPE_TOOLBAR, NULL); GtkToolbar* tools = (GtkToolbar*)g_object_new(GTK_TYPE_TOOLBAR, NULL);
GtkWidget* tools_distribute = gtk_button_new(); GtkWidget* tools_distribute = gtk_button_new();
dcli_translate_filename(fname, "$pwr_exe/wpkg_distribute.png"); dcli_translate_filename(fname, "$pwr_exe/wb_send.png");
gtk_container_add( gtk_container_add(
GTK_CONTAINER(tools_distribute), gtk_image_new_from_file(fname)); GTK_CONTAINER(tools_distribute), gtk_image_new_from_file(fname));
g_signal_connect(tools_distribute, "clicked", g_signal_connect(tools_distribute, "clicked",
......
...@@ -2839,8 +2839,8 @@ WttGtk::WttGtk(void* wt_parent_ctx, GtkWidget* wt_parent_wid, ...@@ -2839,8 +2839,8 @@ WttGtk::WttGtk(void* wt_parent_ctx, GtkWidget* wt_parent_wid,
GtkToolbar* tools = (GtkToolbar*)g_object_new(GTK_TYPE_TOOLBAR, NULL); GtkToolbar* tools = (GtkToolbar*)g_object_new(GTK_TYPE_TOOLBAR, NULL);
tools_save_w = gtk_button_new(); tools_save_w = gtk_button_new();
gtk_container_add(GTK_CONTAINER(tools_save_w), dcli_translate_filename(fname, "$pwr_exe/wb_save.png");
gtk_image_new_from_stock("gtk-save", GTK_ICON_SIZE_SMALL_TOOLBAR)); gtk_container_add(GTK_CONTAINER(tools_save_w), gtk_image_new_from_file(fname));
g_signal_connect( g_signal_connect(
tools_save_w, "clicked", G_CALLBACK(WttGtk::activate_save), this); tools_save_w, "clicked", G_CALLBACK(WttGtk::activate_save), this);
g_object_set(tools_save_w, "can-focus", FALSE, NULL); g_object_set(tools_save_w, "can-focus", FALSE, NULL);
...@@ -2856,8 +2856,8 @@ WttGtk::WttGtk(void* wt_parent_ctx, GtkWidget* wt_parent_wid, ...@@ -2856,8 +2856,8 @@ WttGtk::WttGtk(void* wt_parent_ctx, GtkWidget* wt_parent_wid,
gtk_toolbar_append_widget(tools, tools_edit_w, "Edit", ""); gtk_toolbar_append_widget(tools, tools_edit_w, "Edit", "");
tools_buildnode_w = gtk_button_new(); tools_buildnode_w = gtk_button_new();
gtk_container_add(GTK_CONTAINER(tools_buildnode_w), dcli_translate_filename(fname, "$pwr_exe/wb_build.png");
gtk_image_new_from_stock("gtk-execute", GTK_ICON_SIZE_SMALL_TOOLBAR)); gtk_container_add(GTK_CONTAINER(tools_buildnode_w), gtk_image_new_from_file(fname));
if (wb_type == wb_eType_ClassEditor if (wb_type == wb_eType_ClassEditor
|| (wbctx && volid && (volclass == pwr_eClass_SharedVolume || (wbctx && volid && (volclass == pwr_eClass_SharedVolume
|| volclass == pwr_eClass_SubVolume))) { || volclass == pwr_eClass_SubVolume))) {
...@@ -2927,8 +2927,8 @@ WttGtk::WttGtk(void* wt_parent_ctx, GtkWidget* wt_parent_wid, ...@@ -2927,8 +2927,8 @@ WttGtk::WttGtk(void* wt_parent_ctx, GtkWidget* wt_parent_wid,
gtk_toolbar_append_widget(tools, tools_messages, "Show Messages", ""); gtk_toolbar_append_widget(tools, tools_messages, "Show Messages", "");
GtkWidget* tools_options = gtk_button_new(); GtkWidget* tools_options = gtk_button_new();
gtk_container_add(GTK_CONTAINER(tools_options), dcli_translate_filename(fname, "$pwr_exe/wb_options.png");
gtk_image_new_from_stock("gtk-preferences", GTK_ICON_SIZE_SMALL_TOOLBAR)); gtk_container_add(GTK_CONTAINER(tools_options), gtk_image_new_from_file(fname));
g_signal_connect( g_signal_connect(
tools_options, "clicked", G_CALLBACK(WttGtk::activate_view), this); tools_options, "clicked", G_CALLBACK(WttGtk::activate_view), this);
g_object_set(tools_options, "can-focus", FALSE, NULL); g_object_set(tools_options, "can-focus", FALSE, NULL);
......
...@@ -65,12 +65,12 @@ WbBckWQt::WbBckWQt(void* bckw_parent_ctx, ldh_tSession bckw_ldhses, ...@@ -65,12 +65,12 @@ WbBckWQt::WbBckWQt(void* bckw_parent_ctx, ldh_tSession bckw_ldhses,
addMenuItem(toplevel, file, "&Compare Backup File", SLOT(activate_diff())); addMenuItem(toplevel, file, "&Compare Backup File", SLOT(activate_diff()));
addMenuItem(toplevel, file, "C&ompare Database", SLOT(activate_diff_wb())); addMenuItem(toplevel, file, "C&ompare Database", SLOT(activate_diff_wb()));
addMenuItem( addMenuItem(
toplevel, file, "&Print", SLOT(activate_print()), "", "document-print"); toplevel, file, "&Print", SLOT(activate_print()), "", "$pwr_exe/wb_print.png");
addMenuItem( addMenuItem(
toplevel, file, "&Transfer to database", SLOT(activate_transfer_wb())); toplevel, file, "&Transfer to database", SLOT(activate_transfer_wb()));
addMenuItem(toplevel, file, "&Filter", SLOT(activate_filter())); addMenuItem(toplevel, file, "&Filter", SLOT(activate_filter()));
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Edit menu // Edit menu
QMenu* edit = menu_bar->addMenu(translate_utf8("&Edit")); QMenu* edit = menu_bar->addMenu(translate_utf8("&Edit"));
...@@ -80,16 +80,16 @@ WbBckWQt::WbBckWQt(void* bckw_parent_ctx, ldh_tSession bckw_ldhses, ...@@ -80,16 +80,16 @@ WbBckWQt::WbBckWQt(void* bckw_parent_ctx, ldh_tSession bckw_ldhses,
// View menu // View menu
QMenu* view = menu_bar->addMenu(translate_utf8("&View")); QMenu* view = menu_bar->addMenu(translate_utf8("&View"));
addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I", addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I",
"zoom-in"); "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O", addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O",
"zoom-out"); "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "", addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "",
"zoom-original"); "$pwr_exe/xtt_zoom_reset.png");
// Help menu // Help menu
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem( addMenuItem(
toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "system-help"); toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "$pwr_exe/xtt_help.png");
QVBoxLayout* form = new QVBoxLayout(toplevel); QVBoxLayout* form = new QVBoxLayout(toplevel);
......
...@@ -63,7 +63,7 @@ WbExpWQt::WbExpWQt(void* expw_parent_ctx, ldh_tSession expw_ldhses, ...@@ -63,7 +63,7 @@ WbExpWQt::WbExpWQt(void* expw_parent_ctx, ldh_tSession expw_ldhses,
QMenu* file = menu_bar->addMenu(translate_utf8("&File")); QMenu* file = menu_bar->addMenu(translate_utf8("&File"));
addMenuItem(toplevel, file, btext, SLOT(activate_export())); addMenuItem(toplevel, file, btext, SLOT(activate_export()));
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Edit menu // Edit menu
QMenu* edit = menu_bar->addMenu(translate_utf8("&Edit")); QMenu* edit = menu_bar->addMenu(translate_utf8("&Edit"));
...@@ -77,16 +77,16 @@ WbExpWQt::WbExpWQt(void* expw_parent_ctx, ldh_tSession expw_ldhses, ...@@ -77,16 +77,16 @@ WbExpWQt::WbExpWQt(void* expw_parent_ctx, ldh_tSession expw_ldhses,
// View menu // View menu
QMenu* view = menu_bar->addMenu(translate_utf8("&View")); QMenu* view = menu_bar->addMenu(translate_utf8("&View"));
addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I", addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I",
"zoom-in"); "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O", addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O",
"zoom-out"); "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "", addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "",
"zoom-original"); "$pwr_exe/xtt_zoom_reset.png");
// Help Entry // Help Entry
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem( addMenuItem(
toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "system-help"); toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "$pwr_exe/xtt_help.png");
// Toolbar // Toolbar
QToolBar* tools = new QToolBar(); QToolBar* tools = new QToolBar();
......
...@@ -771,7 +771,7 @@ pwr_tStatus WFoeQt::create_window(int x_top, int y_top, int width_adb, ...@@ -771,7 +771,7 @@ pwr_tStatus WFoeQt::create_window(int x_top, int y_top, int width_adb,
syntax syntax
= addMenuItem(toplevel, file, "Synta&x Check", SLOT(activate_syntax())); = addMenuItem(toplevel, file, "Synta&x Check", SLOT(activate_syntax()));
compile = addMenuItem(toplevel, file, "&Build", SLOT(activate_compile()), compile = addMenuItem(toplevel, file, "&Build", SLOT(activate_compile()),
"CTRL+SHIFT+B", "system-run"); "CTRL+SHIFT+B", "$pwr_exe/wb_build.png");
plcattribute = addMenuItem( plcattribute = addMenuItem(
toplevel, file, "Plc &Attributes...", SLOT(activate_plcattribute())); toplevel, file, "Plc &Attributes...", SLOT(activate_plcattribute()));
winddelete = addMenuItem( winddelete = addMenuItem(
...@@ -782,7 +782,7 @@ pwr_tStatus WFoeQt::create_window(int x_top, int y_top, int width_adb, ...@@ -782,7 +782,7 @@ pwr_tStatus WFoeQt::create_window(int x_top, int y_top, int width_adb,
toplevel, file, "&Restore Trace", SLOT(activate_restoretrace())); toplevel, file, "&Restore Trace", SLOT(activate_restoretrace()));
addMenuItem(toplevel, file, "&History", SLOT(activate_history())); addMenuItem(toplevel, file, "&History", SLOT(activate_history()));
exit = addMenuItem( exit = addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Edit Entry // Edit Entry
edit = menu_bar->addMenu(translate_utf8("&Edit")); edit = menu_bar->addMenu(translate_utf8("&Edit"));
...@@ -928,11 +928,11 @@ pwr_tStatus WFoeQt::create_window(int x_top, int y_top, int width_adb, ...@@ -928,11 +928,11 @@ pwr_tStatus WFoeQt::create_window(int x_top, int y_top, int width_adb,
// Zoom submenu // Zoom submenu
QMenu* view_zoom = menu_bar->addMenu(translate_utf8("&Zoom")); QMenu* view_zoom = menu_bar->addMenu(translate_utf8("&Zoom"));
addMenuItem(toplevel, view_zoom, "Zoom &In", SLOT(activate_zoomin()), addMenuItem(toplevel, view_zoom, "Zoom &In", SLOT(activate_zoomin()),
"CTRL+I", "zoom-in"); "CTRL+I", "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view_zoom, "Zoom &Out", SLOT(activate_zoomout()), addMenuItem(toplevel, view_zoom, "Zoom &Out", SLOT(activate_zoomout()),
"CTRL+O", "zoom-out"); "CTRL+O", "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view_zoom, "Zoom &Reset", SLOT(activate_unzoom()), "", addMenuItem(toplevel, view_zoom, "Zoom &Reset", SLOT(activate_unzoom()), "",
"zoom-original"); "$pwr_exe/xtt_zoom_reset.png");
addCheckableMenuItem( addCheckableMenuItem(
toplevel, view, "S&how Execute Order", SLOT(activate_showexeord(bool))); toplevel, view, "S&how Execute Order", SLOT(activate_showexeord(bool)));
...@@ -961,7 +961,7 @@ pwr_tStatus WFoeQt::create_window(int x_top, int y_top, int width_adb, ...@@ -961,7 +961,7 @@ pwr_tStatus WFoeQt::create_window(int x_top, int y_top, int width_adb,
// Menu Help // Menu Help
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem( addMenuItem(
toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "system-help"); toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "$pwr_exe/xtt_help.png");
addMenuItem(toplevel, help, "H&elp on PlcPgm", SLOT(activate_helpplc())); addMenuItem(toplevel, help, "H&elp on PlcPgm", SLOT(activate_helpplc()));
addMenuItem( addMenuItem(
toplevel, help, "He&lp PlcPgm Overview", SLOT(activate_helpplclist())); toplevel, help, "He&lp PlcPgm Overview", SLOT(activate_helpplclist()));
...@@ -969,15 +969,15 @@ pwr_tStatus WFoeQt::create_window(int x_top, int y_top, int width_adb, ...@@ -969,15 +969,15 @@ pwr_tStatus WFoeQt::create_window(int x_top, int y_top, int width_adb,
// Toolbar // Toolbar
QToolBar* tools = new QToolBar(); QToolBar* tools = new QToolBar();
tools_save = addToolItem( tools_save = addToolItem(
toplevel, tools, "Save", SLOT(activate_save()), "document-save"); toplevel, tools, "Save", SLOT(activate_save()), "$pwr_exe/wb_save.png");
addToolItem(toplevel, tools, "Print documents", SLOT(activate_print()), addToolItem(toplevel, tools, "Print documents", SLOT(activate_print()),
"document-print"); "$pwr_exe/wb_print.png");
addCheckableToolItem(toplevel, tools, "Set edit mode", addToolItem(toplevel, tools, "Set edit mode", SLOT(activate_edit_togg()),
SLOT(activate_edit_togg(bool)), "$pwr_exe/foe_edit.png"); "$pwr_exe/foe_edit.png");
addCheckableToolItem(toplevel, tools, "Set view mode", addToolItem(toplevel, tools, "Set view mode", SLOT(activate_view_togg()),
SLOT(activate_view_togg(bool)), "$pwr_exe/foe_view.png"); "$pwr_exe/foe_view.png");
tools_build = addToolItem( tools_build = addToolItem(
toplevel, tools, "Build Program", SLOT(activate_compile()), "system-run"); toplevel, tools, "Build Program", SLOT(activate_compile()), "$pwr_exe/wb_build.png");
addToolItem(toplevel, tools, "Zoom in", SLOT(activate_zoomin()), addToolItem(toplevel, tools, "Zoom in", SLOT(activate_zoomin()),
"$pwr_exe/xtt_zoom_in.png"); "$pwr_exe/xtt_zoom_in.png");
addToolItem(toplevel, tools, "Zoom out", SLOT(activate_zoomout()), addToolItem(toplevel, tools, "Zoom out", SLOT(activate_zoomout()),
......
...@@ -161,7 +161,7 @@ WUtedQt::WUtedQt(void* wu_parent_ctx, const char* wu_name, ...@@ -161,7 +161,7 @@ WUtedQt::WUtedQt(void* wu_parent_ctx, const char* wu_name,
// File Entry // File Entry
QMenu* file = menu_bar->addMenu(translate_utf8("&File")); QMenu* file = menu_bar->addMenu(translate_utf8("&File"));
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// View Entry // View Entry
QMenu* view = menu_bar->addMenu(translate_utf8("&View")); QMenu* view = menu_bar->addMenu(translate_utf8("&View"));
...@@ -224,7 +224,7 @@ WUtedQt::WUtedQt(void* wu_parent_ctx, const char* wu_name, ...@@ -224,7 +224,7 @@ WUtedQt::WUtedQt(void* wu_parent_ctx, const char* wu_name,
// Menu Help // Menu Help
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem(toplevel, help, "&On Window", SLOT(activate_helputils()), addMenuItem(toplevel, help, "&On Window", SLOT(activate_helputils()),
"CTRL+H", "system-help"); "CTRL+H", "$pwr_exe/xtt_help.png");
addMenuItem(toplevel, help, "On &Commands", SLOT(activate_helppwr_plc())); addMenuItem(toplevel, help, "On &Commands", SLOT(activate_helppwr_plc()));
// Qualifier labels, entries and checkboxes // Qualifier labels, entries and checkboxes
......
...@@ -255,7 +255,7 @@ WVselQt::WVselQt(pwr_tStatus* status, void* wv_parent_ctx, ...@@ -255,7 +255,7 @@ WVselQt::WVselQt(pwr_tStatus* status, void* wv_parent_ctx,
// File Entry // File Entry
QMenu* file = menu_bar->addMenu(translate_utf8("&File")); QMenu* file = menu_bar->addMenu(translate_utf8("&File"));
addMenuItem(toplevel, file, "&Close", SLOT(activate_close()), "CTRL+W", addMenuItem(toplevel, file, "&Close", SLOT(activate_close()), "CTRL+W",
"window-close"); "$pwr_exe/xtt_close.png");
// Functions Entry // Functions Entry
QMenu* functions = menu_bar->addMenu(translate_utf8("F&unctions")); QMenu* functions = menu_bar->addMenu(translate_utf8("F&unctions"));
......
...@@ -399,7 +399,7 @@ WAttQt::WAttQt(void* wa_parent_ctx, ldh_tSesContext wa_ldhses, ...@@ -399,7 +399,7 @@ WAttQt::WAttQt(void* wa_parent_ctx, ldh_tSesContext wa_ldhses,
QMenu* file = menu_bar->addMenu(translate_utf8("&File")); QMenu* file = menu_bar->addMenu(translate_utf8("&File"));
addMenuItem(toplevel, file, "&Print", SLOT(activate_print())); addMenuItem(toplevel, file, "&Print", SLOT(activate_print()));
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Functions entry // Functions entry
QMenu* functions = menu_bar->addMenu(translate_utf8("&Functions")); QMenu* functions = menu_bar->addMenu(translate_utf8("&Functions"));
...@@ -411,7 +411,7 @@ WAttQt::WAttQt(void* wa_parent_ctx, ldh_tSesContext wa_ldhses, ...@@ -411,7 +411,7 @@ WAttQt::WAttQt(void* wa_parent_ctx, ldh_tSesContext wa_ldhses,
// Help entry // Help entry
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem( addMenuItem(
toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "system-help"); toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "$pwr_exe/xtt_help.png");
pane = new QSplitter(Qt::Vertical); pane = new QSplitter(Qt::Vertical);
......
...@@ -213,7 +213,7 @@ WAttTextQt::WAttTextQt(void* wa_parent_ctx, ldh_tSesContext wa_ldhses, ...@@ -213,7 +213,7 @@ WAttTextQt::WAttTextQt(void* wa_parent_ctx, ldh_tSesContext wa_ldhses,
"document-save"); "document-save");
addMenuItem(toplevel, file, "S&ave and close", SLOT(activate_ok()), "CTRL+T"); addMenuItem(toplevel, file, "S&ave and close", SLOT(activate_ok()), "CTRL+T");
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Edit entry // Edit entry
QMenu* edit = menu_bar->addMenu(translate_utf8("&Edit")); QMenu* edit = menu_bar->addMenu(translate_utf8("&Edit"));
...@@ -227,7 +227,7 @@ WAttTextQt::WAttTextQt(void* wa_parent_ctx, ldh_tSesContext wa_ldhses, ...@@ -227,7 +227,7 @@ WAttTextQt::WAttTextQt(void* wa_parent_ctx, ldh_tSesContext wa_ldhses,
// Help entry // Help entry
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem( addMenuItem(
toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "system-help"); toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "$pwr_exe/xtt_help.png");
if (((WUtility*)parent_ctx)->utype == wb_eUtility_WNav) { if (((WUtility*)parent_ctx)->utype == wb_eUtility_WNav) {
parent_ctx = ((WNav*)parent_ctx)->parent_ctx; parent_ctx = ((WNav*)parent_ctx)->parent_ctx;
......
...@@ -495,7 +495,7 @@ WdaQt::WdaQt(void* wa_parent_ctx, ldh_tSesContext wa_ldhses, ...@@ -495,7 +495,7 @@ WdaQt::WdaQt(void* wa_parent_ctx, ldh_tSesContext wa_ldhses,
toplevel, file, "Import from Textfile", SLOT(activate_import_text())); toplevel, file, "Import from Textfile", SLOT(activate_import_text()));
addMenuItem(toplevel, file, "&Print", SLOT(activate_print())); addMenuItem(toplevel, file, "&Print", SLOT(activate_print()));
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Functions entry // Functions entry
QMenu* functions = menu_bar->addMenu(translate_utf8("&Functions")); QMenu* functions = menu_bar->addMenu(translate_utf8("&Functions"));
...@@ -507,7 +507,7 @@ WdaQt::WdaQt(void* wa_parent_ctx, ldh_tSesContext wa_ldhses, ...@@ -507,7 +507,7 @@ WdaQt::WdaQt(void* wa_parent_ctx, ldh_tSesContext wa_ldhses,
// Help entry // Help entry
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem( addMenuItem(
toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "system-help"); toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "$pwr_exe/xtt_help.png");
pane = new QSplitter(Qt::Vertical); pane = new QSplitter(Qt::Vertical);
......
...@@ -229,21 +229,21 @@ WGeQt::WGeQt(void* wge_parent_ctx, char* wge_name, char* wge_filename, ...@@ -229,21 +229,21 @@ WGeQt::WGeQt(void* wge_parent_ctx, char* wge_name, char* wge_filename,
// File Entry // File Entry
QMenu* file = menu_bar->addMenu(translate_utf8("&File")); QMenu* file = menu_bar->addMenu(translate_utf8("&File"));
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// View menu // View menu
QMenu* view = menu_bar->addMenu(translate_utf8("&View")); QMenu* view = menu_bar->addMenu(translate_utf8("&View"));
addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I", addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I",
"zoom-in"); "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()),
"CTRL+O", "zoom-out"); "CTRL+O", "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "", addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "",
"zoom-original"); "$pwr_exe/xtt_zoom_reset.png");
// Menu Help // Menu Help
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem(toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", addMenuItem(toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H",
"system-help"); "$pwr_exe/xtt_help.png");
graph_form->setMenuBar(menu_bar); graph_form->setMenuBar(menu_bar);
} }
......
...@@ -187,7 +187,7 @@ WPkgQt::WPkgQt(void* wa_parent_ctx) : WPkg(wa_parent_ctx) ...@@ -187,7 +187,7 @@ WPkgQt::WPkgQt(void* wa_parent_ctx) : WPkg(wa_parent_ctx)
QMenu* file = menu_bar->addMenu(translate_utf8("&File")); QMenu* file = menu_bar->addMenu(translate_utf8("&File"));
addMenuItem(toplevel, file, "&History", SLOT(activate_history())); addMenuItem(toplevel, file, "&History", SLOT(activate_history()));
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Functions Entry // Functions Entry
QMenu* functions = menu_bar->addMenu(translate_utf8("F&unctions")); QMenu* functions = menu_bar->addMenu(translate_utf8("F&unctions"));
...@@ -201,11 +201,11 @@ WPkgQt::WPkgQt(void* wa_parent_ctx) : WPkg(wa_parent_ctx) ...@@ -201,11 +201,11 @@ WPkgQt::WPkgQt(void* wa_parent_ctx) : WPkg(wa_parent_ctx)
// View menu // View menu
QMenu* view = menu_bar->addMenu(translate_utf8("&View")); QMenu* view = menu_bar->addMenu(translate_utf8("&View"));
addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I", addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I",
"zoom-in"); "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O", addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O",
"zoom-out"); "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "", addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "",
"zoom-original"); "$pwr_exe/xtt_zoom_reset.png");
addCheckableMenuItem(toplevel, view, "&Display File Differences", addCheckableMenuItem(toplevel, view, "&Display File Differences",
SLOT(activate_dmode_filediff(bool))); SLOT(activate_dmode_filediff(bool)));
addCheckableMenuItem(toplevel, view, "Display Files In &Time Order", addCheckableMenuItem(toplevel, view, "Display Files In &Time Order",
......
...@@ -179,7 +179,7 @@ WRevQt::WRevQt(void* wa_parent_ctx, ldh_tSession wa_ldhses) ...@@ -179,7 +179,7 @@ WRevQt::WRevQt(void* wa_parent_ctx, ldh_tSession wa_ldhses)
QMenu* file = menu_bar->addMenu(translate_utf8("&File")); QMenu* file = menu_bar->addMenu(translate_utf8("&File"));
addMenuItem(toplevel, file, "&History", SLOT(activate_history())); addMenuItem(toplevel, file, "&History", SLOT(activate_history()));
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Functions Entry // Functions Entry
QMenu* functions = menu_bar->addMenu(translate_utf8("F&unctions")); QMenu* functions = menu_bar->addMenu(translate_utf8("F&unctions"));
...@@ -192,16 +192,16 @@ WRevQt::WRevQt(void* wa_parent_ctx, ldh_tSession wa_ldhses) ...@@ -192,16 +192,16 @@ WRevQt::WRevQt(void* wa_parent_ctx, ldh_tSession wa_ldhses)
// View menu // View menu
QMenu* view = menu_bar->addMenu(translate_utf8("&View")); QMenu* view = menu_bar->addMenu(translate_utf8("&View"));
addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I", addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I",
"zoom-in"); "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O", addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O",
"zoom-out"); "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "", addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "",
"zoom-original"); "$pwr_exe/xtt_zoom_reset.png");
// Menu Help // Menu Help
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem( addMenuItem(
toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "system-help"); toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "$pwr_exe/xtt_help.png");
// Toolbar // Toolbar
QToolBar* tools = new QToolBar(); QToolBar* tools = new QToolBar();
......
...@@ -1916,15 +1916,15 @@ WttQt::WttQt(void* wt_parent_ctx, const char* wt_name, const char* iconname, ...@@ -1916,15 +1916,15 @@ WttQt::WttQt(void* wt_parent_ctx, const char* wt_name, const char* iconname,
addMenuItem( addMenuItem(
toplevel, file, "Volume &Attributes...", SLOT(activate_openvolobject())); toplevel, file, "Volume &Attributes...", SLOT(activate_openvolobject()));
addMenuItem( addMenuItem(
toplevel, file, "&Print", SLOT(activate_print()), "", "document-print"); toplevel, file, "&Print", SLOT(activate_print()), "", "$pwr_exe/wb_print.png");
menu_save_w = addMenuItem(toplevel, file, "&Save", SLOT(activate_save()), menu_save_w = addMenuItem(toplevel, file, "&Save", SLOT(activate_save()),
"CTRL+S", "document-save"); "CTRL+S", "$pwr_exe/wb_save.png");
menu_revert_w = addMenuItem(toplevel, file, "&Revert", menu_revert_w = addMenuItem(toplevel, file, "&Revert",
SLOT(activate_revert()), "", "document-revert"); SLOT(activate_revert()), "", "$pwr_exe/wb_revert.png");
addMenuItem(toplevel, file, "&History", SLOT(activate_history())); addMenuItem(toplevel, file, "&History", SLOT(activate_history()));
addMenuItem(toplevel, file, "R&evisions", SLOT(activate_revisions())); addMenuItem(toplevel, file, "R&evisions", SLOT(activate_revisions()));
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Edit Entry // Edit Entry
QMenu* edit = menu_bar->addMenu(translate_utf8("&Edit")); QMenu* edit = menu_bar->addMenu(translate_utf8("&Edit"));
...@@ -2003,7 +2003,7 @@ WttQt::WttQt(void* wt_parent_ctx, const char* wt_name, const char* iconname, ...@@ -2003,7 +2003,7 @@ WttQt::WttQt(void* wt_parent_ctx, const char* wt_name, const char* iconname,
// Submenu Build // Submenu Build
QMenu* functions_build = functions->addMenu(translate_utf8("&Build")); QMenu* functions_build = functions->addMenu(translate_utf8("&Build"));
menu_buildnode_w = addMenuItem(toplevel, functions_build, "&Build Node", menu_buildnode_w = addMenuItem(toplevel, functions_build, "&Build Node",
SLOT(activate_buildnode()), "CTRL+SHIFT+B", "system-run"); SLOT(activate_buildnode()), "CTRL+SHIFT+B", "$pwr_exe/wb_build.png");
menu_buildvolume_w = addMenuItem( menu_buildvolume_w = addMenuItem(
toplevel, functions_build, "B&uild Volume", SLOT(activate_buildvolume())); toplevel, functions_build, "B&uild Volume", SLOT(activate_buildvolume()));
menu_buildobject_w = addMenuItem( menu_buildobject_w = addMenuItem(
...@@ -2049,11 +2049,11 @@ WttQt::WttQt(void* wt_parent_ctx, const char* wt_name, const char* iconname, ...@@ -2049,11 +2049,11 @@ WttQt::WttQt(void* wt_parent_ctx, const char* wt_name, const char* iconname,
// View menu // View menu
QMenu* view = menu_bar->addMenu(translate_utf8("&View")); QMenu* view = menu_bar->addMenu(translate_utf8("&View"));
addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I", addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I",
"zoom-in"); "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O", addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O",
"zoom-out"); "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "", addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "",
"zoom-original"); "$pwr_exe/xtt_zoom_reset.png");
addMenuItem( addMenuItem(
toplevel, view, "T&wo Windows", SLOT(activate_twowindows()), "CTRL+T"); toplevel, view, "T&wo Windows", SLOT(activate_twowindows()), "CTRL+T");
view_alltoplevel_w = addMenuItem( view_alltoplevel_w = addMenuItem(
...@@ -2084,14 +2084,14 @@ WttQt::WttQt(void* wt_parent_ctx, const char* wt_name, const char* iconname, ...@@ -2084,14 +2084,14 @@ WttQt::WttQt(void* wt_parent_ctx, const char* wt_name, const char* iconname,
// Menu Help // Menu Help
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem(toplevel, help, "&Overview", SLOT(activate_help()), "CTRL+H", addMenuItem(toplevel, help, "&Overview", SLOT(activate_help()), "CTRL+H",
"system-help"); "$pwr_exe/xtt_help.png");
addMenuItem(toplevel, help, "&Project", SLOT(activate_help_project())); addMenuItem(toplevel, help, "&Project", SLOT(activate_help_project()));
addMenuItem(toplevel, help, "&About Proview", SLOT(activate_help_proview())); addMenuItem(toplevel, help, "&About Proview", SLOT(activate_help_proview()));
// Toolbar // Toolbar
QToolBar* tools = new QToolBar(); QToolBar* tools = new QToolBar();
tools_save_w = addToolItem( tools_save_w = addToolItem(
toplevel, tools, "Save", SLOT(activate_save()), "document-save"); toplevel, tools, "Save", SLOT(activate_save()), "$pwr_exe/wb_save.png");
tools_edit_w = addToolItem(toplevel, tools, "Edit", tools_edit_w = addToolItem(toplevel, tools, "Edit",
SLOT(activate_configure()), "$pwr_exe/foe_edit.png"); SLOT(activate_configure()), "$pwr_exe/foe_edit.png");
...@@ -2099,10 +2099,10 @@ WttQt::WttQt(void* wt_parent_ctx, const char* wt_name, const char* iconname, ...@@ -2099,10 +2099,10 @@ WttQt::WttQt(void* wt_parent_ctx, const char* wt_name, const char* iconname,
|| (wbctx && volid && (volclass == pwr_eClass_SharedVolume || (wbctx && volid && (volclass == pwr_eClass_SharedVolume
|| volclass == pwr_eClass_SubVolume))) { || volclass == pwr_eClass_SubVolume))) {
tools_buildnode_w = addToolItem(toplevel, tools, "Build Volume", tools_buildnode_w = addToolItem(toplevel, tools, "Build Volume",
SLOT(activate_buildvolume()), "system-run"); SLOT(activate_buildvolume()), "$pwr_exe/wb_build.png");
} else { } else {
tools_buildnode_w = addToolItem(toplevel, tools, "Build Node", tools_buildnode_w = addToolItem(toplevel, tools, "Build Node",
SLOT(activate_buildnode()), "system-run"); SLOT(activate_buildnode()), "$pwr_exe/wb_build.png");
} }
addToolItem(toplevel, tools, "Distribute", SLOT(activate_distribute()), addToolItem(toplevel, tools, "Distribute", SLOT(activate_distribute()),
...@@ -2118,7 +2118,7 @@ WttQt::WttQt(void* wt_parent_ctx, const char* wt_name, const char* iconname, ...@@ -2118,7 +2118,7 @@ WttQt::WttQt(void* wt_parent_ctx, const char* wt_name, const char* iconname,
addToolItem(toplevel, tools, "Show Messages", SLOT(activate_messages()), addToolItem(toplevel, tools, "Show Messages", SLOT(activate_messages()),
"$pwr_exe/wtt_messages.png"); "$pwr_exe/wtt_messages.png");
addToolItem( addToolItem(
toplevel, tools, "Options", SLOT(activate_view()), "preferences-system"); toplevel, tools, "Options", SLOT(activate_view()), "$pwr_exe/wb_options.png");
addToolItem(toplevel, tools, "Zoom in", SLOT(activate_zoom_in()), addToolItem(toplevel, tools, "Zoom in", SLOT(activate_zoom_in()),
"$pwr_exe/xtt_zoom_in.png"); "$pwr_exe/xtt_zoom_in.png");
addToolItem(toplevel, tools, "Zoom out", SLOT(activate_zoom_out()), addToolItem(toplevel, tools, "Zoom out", SLOT(activate_zoom_out()),
......
...@@ -143,9 +143,9 @@ WCrrQt::WCrrQt(void* xa_parent_ctx, ldh_tSesContext xa_ldhses, ...@@ -143,9 +143,9 @@ WCrrQt::WCrrQt(void* xa_parent_ctx, ldh_tSesContext xa_ldhses,
// File entry // File entry
QMenu* file = menu_bar->addMenu(translate_utf8("&File")); QMenu* file = menu_bar->addMenu(translate_utf8("&File"));
addMenuItem( addMenuItem(
toplevel, file, "&Print", SLOT(activate_print()), "", "document-print"); toplevel, file, "&Print", SLOT(activate_print()), "", "$pwr_exe/wb_print.png");
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Functions entry // Functions entry
QMenu* functions = menu_bar->addMenu(translate_utf8("&Functions")); QMenu* functions = menu_bar->addMenu(translate_utf8("&Functions"));
......
...@@ -1028,8 +1028,8 @@ XttGtk::XttGtk(int argc, char* argv[], int* return_sts) ...@@ -1028,8 +1028,8 @@ XttGtk::XttGtk(int argc, char* argv[], int* return_sts)
GtkToolbar* tools = (GtkToolbar*)g_object_new(GTK_TYPE_TOOLBAR, NULL); GtkToolbar* tools = (GtkToolbar*)g_object_new(GTK_TYPE_TOOLBAR, NULL);
GtkWidget* tools_back = gtk_button_new(); GtkWidget* tools_back = gtk_button_new();
gtk_container_add(GTK_CONTAINER(tools_back), dcli_translate_filename(fname, "$pwr_exe/xtt_arrowleft.png");
gtk_image_new_from_stock("gtk-go-back", GTK_ICON_SIZE_SMALL_TOOLBAR)); gtk_container_add(GTK_CONTAINER(tools_back), gtk_image_new_from_file(fname));
g_signal_connect(tools_back, "clicked", G_CALLBACK(activate_back), this); g_signal_connect(tools_back, "clicked", G_CALLBACK(activate_back), this);
g_object_set(tools_back, "can-focus", FALSE, NULL); g_object_set(tools_back, "can-focus", FALSE, NULL);
gtk_toolbar_append_widget( gtk_toolbar_append_widget(
......
...@@ -617,11 +617,11 @@ XttQt::XttQt(int argc, char* argv[], int* return_sts) ...@@ -617,11 +617,11 @@ XttQt::XttQt(int argc, char* argv[], int* return_sts)
// File Entry // File Entry
QMenu* file = menu_bar->addMenu(translate_utf8("&File")); QMenu* file = menu_bar->addMenu(translate_utf8("&File"));
addMenuItem( addMenuItem(
toplevel, file, "&Print", SLOT(activate_print()), "", "document-print"); toplevel, file, "&Print", SLOT(activate_print()), "", "$pwr_exe/wb_print.png");
addMenuItem(toplevel, file, "&Login", SLOT(activate_login())); addMenuItem(toplevel, file, "&Login", SLOT(activate_login()));
addMenuItem(toplevel, file, "Log&out", SLOT(activate_logout())); addMenuItem(toplevel, file, "Log&out", SLOT(activate_logout()));
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Edit Entry // Edit Entry
QMenu* edit = menu_bar->addMenu(translate_utf8("&Edit")); QMenu* edit = menu_bar->addMenu(translate_utf8("&Edit"));
...@@ -682,23 +682,23 @@ XttQt::XttQt(int argc, char* argv[], int* return_sts) ...@@ -682,23 +682,23 @@ XttQt::XttQt(int argc, char* argv[], int* return_sts)
// View menu // View menu
QMenu* view = menu_bar->addMenu(translate_utf8("&View")); QMenu* view = menu_bar->addMenu(translate_utf8("&View"));
addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I", addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I",
"zoom-in"); "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O", addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O",
"zoom-out"); "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "", addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "",
"zoom-original"); "$pwr_exe/xtt_zoom_reset.png");
// Menu Help // Menu Help
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem(toplevel, help, "&Overview", SLOT(activate_help()), "CTRL+H", addMenuItem(toplevel, help, "&Overview", SLOT(activate_help()), "CTRL+H",
"system-help"); "$pwr_exe/xtt_help.png");
addMenuItem(toplevel, help, "&Navigator", SLOT(activate_help_navigator())); addMenuItem(toplevel, help, "&Navigator", SLOT(activate_help_navigator()));
addMenuItem(toplevel, help, "&Project", SLOT(activate_help_project())); addMenuItem(toplevel, help, "&Project", SLOT(activate_help_project()));
addMenuItem(toplevel, help, "&About Proview", SLOT(activate_help_proview())); addMenuItem(toplevel, help, "&About Proview", SLOT(activate_help_proview()));
// Toolbar // Toolbar
QToolBar* tools = new QToolBar(); QToolBar* tools = new QToolBar();
addToolItem(toplevel, tools, "Go back", SLOT(activate_back()), "go-previous"); addToolItem(toplevel, tools, "Go back", SLOT(activate_back()), "$pwr_exe/xtt_arrowleft.png");
QAction* tools_advuser = addToolItem(toplevel, tools, "Advanced user", QAction* tools_advuser = addToolItem(toplevel, tools, "Advanced user",
SLOT(activate_advanceduser()), "$pwr_exe/xtt_advuser.png"); SLOT(activate_advanceduser()), "$pwr_exe/xtt_advuser.png");
addToolItem(toplevel, tools, "Zoom in", SLOT(activate_zoom_in()), addToolItem(toplevel, tools, "Zoom in", SLOT(activate_zoom_in()),
......
...@@ -60,18 +60,18 @@ CoLogWQt::CoLogWQt(void* logw_parent_ctx, const char* logw_name, ...@@ -60,18 +60,18 @@ CoLogWQt::CoLogWQt(void* logw_parent_ctx, const char* logw_name,
// File Entry // File Entry
QMenu* file = menu_bar->addMenu("&File"); QMenu* file = menu_bar->addMenu("&File");
addMenuItem( addMenuItem(
toplevel, file, "&Print", SLOT(activate_print()), "", "document-print"); toplevel, file, "&Print", SLOT(activate_print()), "", "$pwr_exe/wb_print.png");
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// View menu // View menu
QMenu* view = menu_bar->addMenu("&View"); QMenu* view = menu_bar->addMenu("&View");
addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I", addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I",
"zoom-in"); "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O", addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O",
"zoom-out"); "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "", addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "",
"zoom-original"); "$pwr_exe/xtt_zoom_reset.png");
QVBoxLayout* form = new QVBoxLayout(toplevel); QVBoxLayout* form = new QVBoxLayout(toplevel);
......
...@@ -70,16 +70,16 @@ MsgWindowQt::MsgWindowQt(void* msg_parent_ctx, const char* msg_name, ...@@ -70,16 +70,16 @@ MsgWindowQt::MsgWindowQt(void* msg_parent_ctx, const char* msg_name,
addMenuItem(toplevel, file, "C&lear", SLOT(activate_clear())); addMenuItem(toplevel, file, "C&lear", SLOT(activate_clear()));
addMenuItem(toplevel, file, "&Print", SLOT(activate_print())); addMenuItem(toplevel, file, "&Print", SLOT(activate_print()));
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// View menu // View menu
QMenu* view = menu_bar->addMenu(translate_utf8("&View")); QMenu* view = menu_bar->addMenu(translate_utf8("&View"));
addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I", addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I",
"zoom-in"); "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O", addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O",
"zoom-out"); "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "", addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "",
"zoom-original"); "$pwr_exe/xtt_zoom_reset.png");
// Create msgnav // Create msgnav
QVBoxLayout* form = new QVBoxLayout(); QVBoxLayout* form = new QVBoxLayout();
......
...@@ -103,21 +103,21 @@ RtMonQt::RtMonQt(void* rtmon_parent_ctx, const char* rtmon_name, ...@@ -103,21 +103,21 @@ RtMonQt::RtMonQt(void* rtmon_parent_ctx, const char* rtmon_name,
file_op = addMenuItem( file_op = addMenuItem(
toplevel, file, "&Start Operator Environment", SLOT(activate_op())); toplevel, file, "&Start Operator Environment", SLOT(activate_op()));
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// View menu // View menu
QMenu* view = menu_bar->addMenu(translate_utf8("&View")); QMenu* view = menu_bar->addMenu(translate_utf8("&View"));
addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I", addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I",
"zoom-in"); "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O", addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O",
"zoom-out"); "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "", addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "",
"zoom-original"); "$pwr_exe/xtt_zoom_reset.png");
// Menu Help // Menu Help
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem( addMenuItem(
toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "system-help"); toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "$pwr_exe/xtt_help.png");
QVBoxLayout* vbox = new QVBoxLayout(); QVBoxLayout* vbox = new QVBoxLayout();
nodelistnav = new NodelistNavQt(this, 0, nodename, nodelistnav = new NodelistNavQt(this, 0, nodename,
......
...@@ -95,7 +95,7 @@ NodelistQt::NodelistQt(void* nodelist_parent_ctx, const char* nodelist_name, ...@@ -95,7 +95,7 @@ NodelistQt::NodelistQt(void* nodelist_parent_ctx, const char* nodelist_name,
addMenuItem(toplevel, file, "Open Runtime &Monitor", addMenuItem(toplevel, file, "Open Runtime &Monitor",
SLOT(activate_open_rtmon()), "", fname); SLOT(activate_open_rtmon()), "", fname);
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// View menu // View menu
QMenu* view = menu_bar->addMenu(translate_utf8("&View")); QMenu* view = menu_bar->addMenu(translate_utf8("&View"));
...@@ -133,16 +133,16 @@ NodelistQt::NodelistQt(void* nodelist_parent_ctx, const char* nodelist_name, ...@@ -133,16 +133,16 @@ NodelistQt::NodelistQt(void* nodelist_parent_ctx, const char* nodelist_name,
a->setData(nodelist_eMode_Status5); a->setData(nodelist_eMode_Status5);
addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I", addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I",
"zoom-in"); "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O", addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O",
"zoom-out"); "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "", addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "",
"zoom-original"); "$pwr_exe/xtt_zoom_reset.png");
// Menu Help // Menu Help
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem( addMenuItem(
toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "system-help"); toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "$pwr_exe/xtt_help.png");
msg_window = new MsgWindowQt(this, "Status Events", &sts); msg_window = new MsgWindowQt(this, "Status Events", &sts);
msg_window->find_wnav_cb = find_node_cb; msg_window->find_wnav_cb = find_node_cb;
...@@ -155,7 +155,7 @@ NodelistQt::NodelistQt(void* nodelist_parent_ctx, const char* nodelist_name, ...@@ -155,7 +155,7 @@ NodelistQt::NodelistQt(void* nodelist_parent_ctx, const char* nodelist_name,
// Toolbar // Toolbar
QToolBar* tools = new QToolBar(); QToolBar* tools = new QToolBar();
addToolItem(toplevel, tools, "Save configuration", SLOT(activate_save()), addToolItem(toplevel, tools, "Save configuration", SLOT(activate_save()),
"document-save"); "$pwr_exe/wb_save.png");
addToolItem( addToolItem(
toplevel, tools, "Add node", SLOT(activate_add_node()), "list-add"); toplevel, tools, "Add node", SLOT(activate_add_node()), "list-add");
addToolItem(toplevel, tools, "Remove node", SLOT(activate_remove_node()), addToolItem(toplevel, tools, "Remove node", SLOT(activate_remove_node()),
......
...@@ -144,23 +144,23 @@ CowTreeQt::CowTreeQt(void* a_parent_ctx, const char* title, ...@@ -144,23 +144,23 @@ CowTreeQt::CowTreeQt(void* a_parent_ctx, const char* title,
QMenu* file = menu_bar->addMenu(translate_utf8("&File")); QMenu* file = menu_bar->addMenu(translate_utf8("&File"));
addMenuItem(toplevel, file, "&Print", SLOT(activate_print())); addMenuItem(toplevel, file, "&Print", SLOT(activate_print()));
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// View menu // View menu
QMenu* view = menu_bar->addMenu(translate_utf8("&View")); QMenu* view = menu_bar->addMenu(translate_utf8("&View"));
addMenuItem(toplevel, view, "&Tree Layout", SLOT(activate_tree_layout())); addMenuItem(toplevel, view, "&Tree Layout", SLOT(activate_tree_layout()));
addMenuItem(toplevel, view, "&List Layout", SLOT(activate_list_layout())); addMenuItem(toplevel, view, "&List Layout", SLOT(activate_list_layout()));
addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I", addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I",
"zoom-in"); "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O", addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O",
"zoom-out"); "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "", addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "",
"zoom-original"); "$pwr_exe/xtt_zoom_reset.png");
// Help entry // Help entry
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem(toplevel, help, "&Overview", SLOT(activate_help()), "CTRL+H", addMenuItem(toplevel, help, "&Overview", SLOT(activate_help()), "CTRL+H",
"system-help"); "$pwr_exe/xtt_help.png");
// Toolbar // Toolbar
QToolBar* tools = new QToolBar(); QToolBar* tools = new QToolBar();
......
...@@ -203,12 +203,12 @@ CoXHelpQt::CoXHelpQt(void* xa_parent_ctx, xhelp_eUtility utility, int* xa_sts) ...@@ -203,12 +203,12 @@ CoXHelpQt::CoXHelpQt(void* xa_parent_ctx, xhelp_eUtility utility, int* xa_sts)
addMenuItem(toplevel, file, "&Previous Topic", SLOT(activate_previoustopic()), addMenuItem(toplevel, file, "&Previous Topic", SLOT(activate_previoustopic()),
"CTRL+P"); "CTRL+P");
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Edit entry // Edit entry
QMenu* edit = menu_bar->addMenu(translate_utf8("&Edit")); QMenu* edit = menu_bar->addMenu(translate_utf8("&Edit"));
addMenuItem(toplevel, edit, "&Search", SLOT(activate_search()), "CTRL+F", addMenuItem(toplevel, edit, "&Search", SLOT(activate_search()), "CTRL+F",
"system-search"); "$pwr_exe/wb_search.png");
addMenuItem( addMenuItem(
toplevel, edit, "Search &Next", SLOT(activate_searchnext()), "CTRL+G"); toplevel, edit, "Search &Next", SLOT(activate_searchnext()), "CTRL+G");
addMenuItem(toplevel, edit, "Search &Previous", addMenuItem(toplevel, edit, "Search &Previous",
...@@ -217,16 +217,16 @@ CoXHelpQt::CoXHelpQt(void* xa_parent_ctx, xhelp_eUtility utility, int* xa_sts) ...@@ -217,16 +217,16 @@ CoXHelpQt::CoXHelpQt(void* xa_parent_ctx, xhelp_eUtility utility, int* xa_sts)
// Menu View // Menu View
QMenu* view = menu_bar->addMenu(translate_utf8("&View")); QMenu* view = menu_bar->addMenu(translate_utf8("&View"));
addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I", addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I",
"zoom-in"); "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O", addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O",
"zoom-out"); "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "", addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "",
"zoom-original"); "$pwr_exe/xtt_zoom_reset.png");
// Menu Help // Menu Help
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem( addMenuItem(
toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "system-help"); toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "$pwr_exe/xtt_help.png");
// Toolbar // Toolbar
QToolBar* tools = new QToolBar(); QToolBar* tools = new QToolBar();
......
...@@ -2831,15 +2831,11 @@ GeGtk::GeGtk(void* x_parent_ctx, GtkWidget* x_parent_widget, ...@@ -2831,15 +2831,11 @@ GeGtk::GeGtk(void* x_parent_ctx, GtkWidget* x_parent_widget,
// Tools row // Tools row
GtkWidget* tools_save = gtk_button_new(); GtkWidget* tools_save = image_button("$pwr_exe/wb_save.png");
gtk_container_add(GTK_CONTAINER(tools_save),
gtk_image_new_from_stock("gtk-save", GTK_ICON_SIZE_SMALL_TOOLBAR));
gtk_toolbar_append_widget(tools3, tools_save, "Save", ""); gtk_toolbar_append_widget(tools3, tools_save, "Save", "");
g_signal_connect(tools_save, "clicked", G_CALLBACK(activate_save), this); g_signal_connect(tools_save, "clicked", G_CALLBACK(activate_save), this);
GtkWidget* tools_build = gtk_button_new(); GtkWidget* tools_build = image_button("$pwr_exe/wb_build.png");
gtk_container_add(GTK_CONTAINER(tools_build),
gtk_image_new_from_stock("gtk-execute", GTK_ICON_SIZE_SMALL_TOOLBAR));
gtk_toolbar_append_widget(tools3, tools_build, "Build", ""); gtk_toolbar_append_widget(tools3, tools_build, "Build", "");
g_signal_connect(tools_build, "clicked", G_CALLBACK(activate_build), this); g_signal_connect(tools_build, "clicked", G_CALLBACK(activate_build), this);
......
...@@ -327,7 +327,7 @@ AttrQt::AttrQt(QWidget* a_parent_wid, void* a_parent_ctx, attr_eType a_type, ...@@ -327,7 +327,7 @@ AttrQt::AttrQt(QWidget* a_parent_wid, void* a_parent_ctx, attr_eType a_type,
// File entry // File entry
QMenu* file = menu_bar->addMenu(translate_utf8("&File")); QMenu* file = menu_bar->addMenu(translate_utf8("&File"));
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Functions entry // Functions entry
QMenu* functions = menu_bar->addMenu(translate_utf8("&Functions")); QMenu* functions = menu_bar->addMenu(translate_utf8("&Functions"));
...@@ -343,7 +343,7 @@ AttrQt::AttrQt(QWidget* a_parent_wid, void* a_parent_ctx, attr_eType a_type, ...@@ -343,7 +343,7 @@ AttrQt::AttrQt(QWidget* a_parent_wid, void* a_parent_ctx, attr_eType a_type,
// Help entry // Help entry
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem(toplevel, help, "&Help", SLOT(attr_activate_help()), "CTRL+H", addMenuItem(toplevel, help, "&Help", SLOT(attr_activate_help()), "CTRL+H",
"system-help"); "$pwr_exe/xtt_help.png");
pane = new QSplitter(Qt::Vertical); pane = new QSplitter(Qt::Vertical);
......
...@@ -755,23 +755,23 @@ GeCurveQt::GeCurveQt(void* gc_parent_ctx, char* curve_name, char* filename, ...@@ -755,23 +755,23 @@ GeCurveQt::GeCurveQt(void* gc_parent_ctx, char* curve_name, char* filename,
menu_add = addMenuItem(toplevel, file, "&Add", SLOT(activate_madd())); menu_add = addMenuItem(toplevel, file, "&Add", SLOT(activate_madd()));
addMenuItem(toplevel, file, "&Refresh", SLOT(activate_configure()), "CTRL+R"); addMenuItem(toplevel, file, "&Refresh", SLOT(activate_configure()), "CTRL+R");
addMenuItem( addMenuItem(
toplevel, file, "&Print", SLOT(activate_print()), "", "document-print"); toplevel, file, "&Print", SLOT(activate_print()), "", "$pwr_exe/wb_print.png");
menu_new = addMenuItem(toplevel, file, "&New", SLOT(activate_new())); menu_new = addMenuItem(toplevel, file, "&New", SLOT(activate_new()));
menu_open = addMenuItem(toplevel, file, "&Open", SLOT(activate_open())); menu_open = addMenuItem(toplevel, file, "&Open", SLOT(activate_open()));
menu_save = addMenuItem(toplevel, file, "S&ave", SLOT(activate_save()), "CTRL+S"); menu_save = addMenuItem(toplevel, file, "S&ave", SLOT(activate_save()), "CTRL+S");
menu_snapshot = addMenuItem(toplevel, file, "&Snapshot", SLOT(activate_snapshot()), "CTRL+N"); menu_snapshot = addMenuItem(toplevel, file, "&Snapshot", SLOT(activate_snapshot()), "CTRL+N");
menu_export = addMenuItem(toplevel, file, "&Export", SLOT(activate_export())); menu_export = addMenuItem(toplevel, file, "&Export", SLOT(activate_export()));
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// View menu // View menu
QMenu* view = menu_bar->addMenu(translate_utf8("&View")); QMenu* view = menu_bar->addMenu(translate_utf8("&View"));
addMenuItem( addMenuItem(
toplevel, view, "Zoom &In", SLOT(activate_zoomin()), "CTRL+I", "zoom-in"); toplevel, view, "Zoom &In", SLOT(activate_zoomin()), "CTRL+I", "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoomout()), "CTRL+O", addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoomout()), "CTRL+O",
"zoom-out"); "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoomreset()), "", addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoomreset()), "",
"zoom-original"); "$pwr_exe/xtt_zoom_reset.png");
addMenuItem(toplevel, view, "&Background Color", SLOT(activate_background())); addMenuItem(toplevel, view, "&Background Color", SLOT(activate_background()));
addMenuItem( addMenuItem(
toplevel, view, "&Show Names", SLOT(activate_showname()), "CTRL+W"); toplevel, view, "&Show Names", SLOT(activate_showname()), "CTRL+W");
...@@ -782,7 +782,7 @@ GeCurveQt::GeCurveQt(void* gc_parent_ctx, char* curve_name, char* filename, ...@@ -782,7 +782,7 @@ GeCurveQt::GeCurveQt(void* gc_parent_ctx, char* curve_name, char* filename,
// Menu Help // Menu Help
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem( addMenuItem(
toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "system-help"); toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "$pwr_exe/xtt_help.png");
// Toolbar // Toolbar
QToolBar* tools = new QToolBar(); QToolBar* tools = new QToolBar();
......
...@@ -1340,7 +1340,7 @@ GeQt::GeQt(void* x_parent_ctx, ldh_tSesContext x_ldhses, int x_exit_when_close, ...@@ -1340,7 +1340,7 @@ GeQt::GeQt(void* x_parent_ctx, ldh_tSesContext x_ldhses, int x_exit_when_close,
addMenuItem( addMenuItem(
toplevel, file, "&Open...", SLOT(activate_open()), "", "document-open"); toplevel, file, "&Open...", SLOT(activate_open()), "", "document-open");
addMenuItem( addMenuItem(
toplevel, file, "Save", SLOT(activate_save()), "", "document-save"); toplevel, file, "Save", SLOT(activate_save()), "CTRL+S", "$pwr_exe/wb_save.png");
addMenuItem(toplevel, file, "Save As", SLOT(activate_save_as()), addMenuItem(toplevel, file, "Save As", SLOT(activate_save_as()),
"CTRL+SHIFT+S", "document-save-as"); "CTRL+SHIFT+S", "document-save-as");
addMenuItem(toplevel, file, "&Build", SLOT(activate_build())); addMenuItem(toplevel, file, "&Build", SLOT(activate_build()));
...@@ -1385,9 +1385,9 @@ GeQt::GeQt(void* x_parent_ctx, ldh_tSesContext x_ldhses, int x_exit_when_close, ...@@ -1385,9 +1385,9 @@ GeQt::GeQt(void* x_parent_ctx, ldh_tSesContext x_ldhses, int x_exit_when_close,
SLOT(activate_creanextpage()), "CTRL+SHIFT+N"); SLOT(activate_creanextpage()), "CTRL+SHIFT+N");
addMenuItem(toplevel, file, "&History", SLOT(activate_history())); addMenuItem(toplevel, file, "&History", SLOT(activate_history()));
addMenuItem( addMenuItem(
toplevel, file, "&Print", SLOT(activate_print()), "", "document-print"); toplevel, file, "&Print", SLOT(activate_print()), "", "$pwr_exe/wb_print.png");
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Edit entry // Edit entry
QMenu* edit = menu_bar->addMenu(translate_utf8("&Edit")); QMenu* edit = menu_bar->addMenu(translate_utf8("&Edit"));
...@@ -1400,7 +1400,7 @@ GeQt::GeQt(void* x_parent_ctx, ldh_tSesContext x_ldhses, int x_exit_when_close, ...@@ -1400,7 +1400,7 @@ GeQt::GeQt(void* x_parent_ctx, ldh_tSesContext x_ldhses, int x_exit_when_close,
addMenuItem(toplevel, edit, "&Delete", SLOT(activate_delete()), "Delete", addMenuItem(toplevel, edit, "&Delete", SLOT(activate_delete()), "Delete",
"edit-delete"); "edit-delete");
addMenuItem( addMenuItem(
toplevel, edit, "&Undo", SLOT(activate_undo()), "CTRL+Z", "edit-undo"); toplevel, edit, "&Undo", SLOT(activate_undo()), "CTRL+Z", "$pwr_exe/ge_undo.png");
addMenuItem(toplevel, edit, "&Redo", SLOT(activate_redo()), "CTRL+ALT+Z", addMenuItem(toplevel, edit, "&Redo", SLOT(activate_redo()), "CTRL+ALT+Z",
"edit-redo"); "edit-redo");
addMenuItem(toplevel, edit, "&Rotate...", SLOT(activate_rotate()), "CTRL+R"); addMenuItem(toplevel, edit, "&Rotate...", SLOT(activate_rotate()), "CTRL+R");
...@@ -1576,11 +1576,11 @@ GeQt::GeQt(void* x_parent_ctx, ldh_tSesContext x_ldhses, int x_exit_when_close, ...@@ -1576,11 +1576,11 @@ GeQt::GeQt(void* x_parent_ctx, ldh_tSesContext x_ldhses, int x_exit_when_close,
addMenuItem(toplevel, view, "&Preview", SLOT(activate_preview_start())); addMenuItem(toplevel, view, "&Preview", SLOT(activate_preview_start()));
addMenuItem(toplevel, view, "Preview &Stop", SLOT(activate_preview_stop())); addMenuItem(toplevel, view, "Preview &Stop", SLOT(activate_preview_stop()));
addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I", addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I",
"zoom-in"); "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O", addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O",
"zoom-out"); "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "", addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "",
"zoom-original"); "$pwr_exe/xtt_zoom_reset.png");
view_plant_w = addCheckableMenuItem( view_plant_w = addCheckableMenuItem(
toplevel, view, "Vi&ew Plant", SLOT(activate_view_plant(bool)), "CTRL+P"); toplevel, view, "Vi&ew Plant", SLOT(activate_view_plant(bool)), "CTRL+P");
view_graphlist_w = addCheckableMenuItem( view_graphlist_w = addCheckableMenuItem(
...@@ -1591,7 +1591,7 @@ GeQt::GeQt(void* x_parent_ctx, ldh_tSesContext x_ldhses, int x_exit_when_close, ...@@ -1591,7 +1591,7 @@ GeQt::GeQt(void* x_parent_ctx, ldh_tSesContext x_ldhses, int x_exit_when_close,
// Menu Help // Menu Help
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem( addMenuItem(
toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "system-help"); toplevel, help, "&Help", SLOT(activate_help()), "", "$pwr_exe/xtt_help.png");
addMenuItem( addMenuItem(
toplevel, help, "H&elp on Subgraphs", SLOT(activate_help_subgraph())); toplevel, help, "H&elp on Subgraphs", SLOT(activate_help_subgraph()));
...@@ -1684,8 +1684,8 @@ GeQt::GeQt(void* x_parent_ctx, ldh_tSesContext x_ldhses, int x_exit_when_close, ...@@ -1684,8 +1684,8 @@ GeQt::GeQt(void* x_parent_ctx, ldh_tSesContext x_ldhses, int x_exit_when_close,
SLOT(activate_flip_vert()), "$pwr_exe/ge_mirrorvertical.png"); SLOT(activate_flip_vert()), "$pwr_exe/ge_mirrorvertical.png");
// Toolbar 3 // Toolbar 3
addToolItem(toplevel, tools3, "Save", SLOT(activate_save()), "document-save"); addToolItem(toplevel, tools3, "Save", SLOT(activate_save()), "$pwr_exe/wb_save.png");
addToolItem(toplevel, tools3, "Build", SLOT(activate_build()), "system-run"); addToolItem(toplevel, tools3, "Build", SLOT(activate_build()), "$pwr_exe/wb_build.png");
addToolItem(toplevel, tools3, "Zoom in", SLOT(activate_zoom_in()), addToolItem(toplevel, tools3, "Zoom in", SLOT(activate_zoom_in()),
"$pwr_exe/ge_zoom_in.png"); "$pwr_exe/ge_zoom_in.png");
addToolItem(toplevel, tools3, "Zoom out", SLOT(activate_zoom_out()), addToolItem(toplevel, tools3, "Zoom out", SLOT(activate_zoom_out()),
......
...@@ -137,7 +137,7 @@ SubGraphsQt::SubGraphsQt(void* xn_parent_ctx, const char* xn_name, ...@@ -137,7 +137,7 @@ SubGraphsQt::SubGraphsQt(void* xn_parent_ctx, const char* xn_name,
addMenuItem(toplevel, file, "Set A&ll Extern", addMenuItem(toplevel, file, "Set A&ll Extern",
SLOT(subgraphs_activate_set_all_extern()), "CTRL+K"); SLOT(subgraphs_activate_set_all_extern()), "CTRL+K");
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Help entry // Help entry
QMenu* help = menu_bar->addMenu(fl("&Help")); QMenu* help = menu_bar->addMenu(fl("&Help"));
......
...@@ -88,21 +88,21 @@ CLogQt::CLogQt(void* clog_parent_ctx, const char* clog_name, ...@@ -88,21 +88,21 @@ CLogQt::CLogQt(void* clog_parent_ctx, const char* clog_name,
addMenuItem(toplevel, file, "&Update", SLOT(activate_update()), "CTRL+U"); addMenuItem(toplevel, file, "&Update", SLOT(activate_update()), "CTRL+U");
addMenuItem(toplevel, file, "&Print", SLOT(activate_print())); addMenuItem(toplevel, file, "&Print", SLOT(activate_print()));
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/wb_close.png");
// View menu // View menu
QMenu* view = menu_bar->addMenu(translate_utf8("&View")); QMenu* view = menu_bar->addMenu(translate_utf8("&View"));
addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I", addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I",
"zoom-in"); "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O", addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O",
"zoom-out"); "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()),
"CTRL+B", "zoom-original"); "CTRL+B", "$pwr_exe/xtt_zoom_reset.png");
// Menu Help // Menu Help
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem(toplevel, help, "&Help on System Messages", SLOT(activate_help()), addMenuItem(toplevel, help, "&Help on System Messages", SLOT(activate_help()),
"CTRL+H", "system-help"); "CTRL+H", "$pwr_exe/xtt_help.png");
addMenuItem( addMenuItem(
toplevel, help, "Help on &Selected Message", SLOT(activate_helpmsg())); toplevel, help, "Help on &Selected Message", SLOT(activate_helpmsg()));
......
...@@ -138,7 +138,7 @@ EvQt::EvQt(void* ev_parent_ctx, char* eve_name, char* ala_name, char* blk_name, ...@@ -138,7 +138,7 @@ EvQt::EvQt(void* ev_parent_ctx, char* eve_name, char* ala_name, char* blk_name,
addMenuItem(object, file, "&Export", SLOT(eve_activate_export())); addMenuItem(object, file, "&Export", SLOT(eve_activate_export()));
addMenuItem(object, file, "&Analyse", SLOT(eve_activate_analyse())); addMenuItem(object, file, "&Analyse", SLOT(eve_activate_analyse()));
addMenuItem( addMenuItem(
object, file, "&Close", SLOT(eve_activate_exit()), "CTRL+W", "window-close"); object, file, "&Close", SLOT(eve_activate_exit()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Functions entry // Functions entry
QMenu* functions = menu_bar->addMenu(translate_utf8("&Functions")); QMenu* functions = menu_bar->addMenu(translate_utf8("&Functions"));
...@@ -150,11 +150,11 @@ EvQt::EvQt(void* ev_parent_ctx, char* eve_name, char* ala_name, char* blk_name, ...@@ -150,11 +150,11 @@ EvQt::EvQt(void* ev_parent_ctx, char* eve_name, char* ala_name, char* blk_name,
// View entry // View entry
QMenu* view = menu_bar->addMenu(translate_utf8("&View")); QMenu* view = menu_bar->addMenu(translate_utf8("&View"));
addMenuItem(object, view, "Zoom &In", SLOT(eve_activate_zoom_in()), addMenuItem(object, view, "Zoom &In", SLOT(eve_activate_zoom_in()),
"CTRL+I", "zoom-in"); "CTRL+I", "$pwr_exe/xtt_zoom_in.png");
addMenuItem(object, view, "Zoom &Out", SLOT(eve_activate_zoom_out()), addMenuItem(object, view, "Zoom &Out", SLOT(eve_activate_zoom_out()),
"CTRL+O", "zoom-out"); "CTRL+O", "$pwr_exe/xtt_zoom_out.png");
addMenuItem(object, view, "Zoom &Reset", SLOT(eve_activate_zoom_reset()), addMenuItem(object, view, "Zoom &Reset", SLOT(eve_activate_zoom_reset()),
"CTRL+B", "zoom-original"); "CTRL+B", "$pwr_exe/xtt_zoom_reset.png");
addCheckableMenuItem(object, view, "&Display hundredth", addCheckableMenuItem(object, view, "&Display hundredth",
SLOT(eve_activate_disp_hundredth(bool))); SLOT(eve_activate_disp_hundredth(bool)));
addCheckableMenuItem( addCheckableMenuItem(
...@@ -165,7 +165,7 @@ EvQt::EvQt(void* ev_parent_ctx, char* eve_name, char* ala_name, char* blk_name, ...@@ -165,7 +165,7 @@ EvQt::EvQt(void* ev_parent_ctx, char* eve_name, char* ala_name, char* blk_name,
// Help entry // Help entry
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem(object, help, "&Help", SLOT(eve_activate_help()), "CTRL+H", addMenuItem(object, help, "&Help", SLOT(eve_activate_help()), "CTRL+H",
"system-help"); "$pwr_exe/xtt_help.png");
addMenuItem( addMenuItem(
object, help, "Help Selected Event", SLOT(eve_activate_helpevent())); object, help, "Help Selected Event", SLOT(eve_activate_helpevent()));
...@@ -242,7 +242,7 @@ EvQt::EvQt(void* ev_parent_ctx, char* eve_name, char* ala_name, char* blk_name, ...@@ -242,7 +242,7 @@ EvQt::EvQt(void* ev_parent_ctx, char* eve_name, char* ala_name, char* blk_name,
addMenuItem(object, file, "&Print", SLOT(ala_activate_print()), "", addMenuItem(object, file, "&Print", SLOT(ala_activate_print()), "",
"document-print"); "document-print");
addMenuItem( addMenuItem(
object, file, "&Close", SLOT(ala_activate_exit()), "CTRL+W", "window-close"); object, file, "&Close", SLOT(ala_activate_exit()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Functions entry // Functions entry
QMenu* functions = menu_bar->addMenu(translate_utf8("&Functions")); QMenu* functions = menu_bar->addMenu(translate_utf8("&Functions"));
...@@ -282,11 +282,11 @@ EvQt::EvQt(void* ev_parent_ctx, char* eve_name, char* ala_name, char* blk_name, ...@@ -282,11 +282,11 @@ EvQt::EvQt(void* ev_parent_ctx, char* eve_name, char* ala_name, char* blk_name,
} }
addMenuItem(object, view, "Zoom &In", SLOT(ala_activate_zoom_in()), addMenuItem(object, view, "Zoom &In", SLOT(ala_activate_zoom_in()),
"CTRL+I", "zoom-in"); "CTRL+I", "$pwr_exe/xtt_zoom_in.png");
addMenuItem(object, view, "Zoom &Out", SLOT(ala_activate_zoom_out()), addMenuItem(object, view, "Zoom &Out", SLOT(ala_activate_zoom_out()),
"CTRL+O", "zoom-out"); "CTRL+O", "$pwr_exe/xtt_zoom_out.png");
addMenuItem(object, view, "Zoom &Reset", SLOT(ala_activate_zoom_reset()), addMenuItem(object, view, "Zoom &Reset", SLOT(ala_activate_zoom_reset()),
"CTRL+B", "zoom-original"); "CTRL+B", "$pwr_exe/xtt_zoom_reset.png");
addCheckableMenuItem(object, view, "&Display hundredth", addCheckableMenuItem(object, view, "&Display hundredth",
SLOT(ala_activate_disp_hundredth(bool))); SLOT(ala_activate_disp_hundredth(bool)));
addCheckableMenuItem( addCheckableMenuItem(
...@@ -297,7 +297,7 @@ EvQt::EvQt(void* ev_parent_ctx, char* eve_name, char* ala_name, char* blk_name, ...@@ -297,7 +297,7 @@ EvQt::EvQt(void* ev_parent_ctx, char* eve_name, char* ala_name, char* blk_name,
// Help entry // Help entry
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem(object, help, "&Help", SLOT(ala_activate_help()), "CTRL+H", addMenuItem(object, help, "&Help", SLOT(ala_activate_help()), "CTRL+H",
"system-help"); "$pwr_exe/xtt_help.png");
addMenuItem( addMenuItem(
object, help, "Help Selected Event", SLOT(ala_activate_helpevent())); object, help, "Help Selected Event", SLOT(ala_activate_helpevent()));
...@@ -379,7 +379,7 @@ EvQt::EvQt(void* ev_parent_ctx, char* eve_name, char* ala_name, char* blk_name, ...@@ -379,7 +379,7 @@ EvQt::EvQt(void* ev_parent_ctx, char* eve_name, char* ala_name, char* blk_name,
addMenuItem(object, file, "&Print", SLOT(blk_activate_print()), "", addMenuItem(object, file, "&Print", SLOT(blk_activate_print()), "",
"document-print"); "document-print");
addMenuItem( addMenuItem(
object, file, "&Close", SLOT(blk_activate_exit()), "CTRL+W", "window-close"); object, file, "&Close", SLOT(blk_activate_exit()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Functions entry // Functions entry
QMenu* functions = menu_bar->addMenu(translate_utf8("&Functions")); QMenu* functions = menu_bar->addMenu(translate_utf8("&Functions"));
...@@ -393,16 +393,16 @@ EvQt::EvQt(void* ev_parent_ctx, char* eve_name, char* ala_name, char* blk_name, ...@@ -393,16 +393,16 @@ EvQt::EvQt(void* ev_parent_ctx, char* eve_name, char* ala_name, char* blk_name,
// View entry // View entry
QMenu* view = menu_bar->addMenu(translate_utf8("&View")); QMenu* view = menu_bar->addMenu(translate_utf8("&View"));
addMenuItem(object, view, "Zoom &In", SLOT(blk_activate_zoom_in()), addMenuItem(object, view, "Zoom &In", SLOT(blk_activate_zoom_in()),
"CTRL+I", "zoom-in"); "CTRL+I", "$pwr_exe/xtt_zoom_in.png");
addMenuItem(object, view, "Zoom &Out", SLOT(blk_activate_zoom_out()), addMenuItem(object, view, "Zoom &Out", SLOT(blk_activate_zoom_out()),
"CTRL+O", "zoom-out"); "CTRL+O", "$pwr_exe/xtt_zoom_out.png");
addMenuItem(object, view, "Zoom &Reset", SLOT(blk_activate_zoom_reset()), addMenuItem(object, view, "Zoom &Reset", SLOT(blk_activate_zoom_reset()),
"CTRL+B", "zoom-original"); "CTRL+B", "$pwr_exe/xtt_zoom_reset.png");
// Help entry // Help entry
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem(object, help, "&Help", SLOT(blk_activate_help()), "CTRL+H", addMenuItem(object, help, "&Help", SLOT(blk_activate_help()), "CTRL+H",
"system-help"); "$pwr_exe/xtt_help.png");
// Create blk evlist // Create blk evlist
blk = new EvListQt(this, ev_eType_BlockList, blk_size, eventname_seg, blk = new EvListQt(this, ev_eType_BlockList, blk_size, eventname_seg,
......
...@@ -100,9 +100,9 @@ EvAlaQt::EvAlaQt(void* ev_parent_ctx, char* ala_name, pwr_tObjid ev_user, ...@@ -100,9 +100,9 @@ EvAlaQt::EvAlaQt(void* ev_parent_ctx, char* ala_name, pwr_tObjid ev_user,
// File entry // File entry
QMenu* file = menu_bar->addMenu(translate_utf8("&File")); QMenu* file = menu_bar->addMenu(translate_utf8("&File"));
addMenuItem(toplevel, file, "&Print", SLOT(ala_activate_print()), "", addMenuItem(toplevel, file, "&Print", SLOT(ala_activate_print()), "",
"document-print"); "$pwr_exe/wb_print.png");
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Functions entry // Functions entry
QMenu* functions = menu_bar->addMenu(translate_utf8("&Functions")); QMenu* functions = menu_bar->addMenu(translate_utf8("&Functions"));
...@@ -142,11 +142,11 @@ EvAlaQt::EvAlaQt(void* ev_parent_ctx, char* ala_name, pwr_tObjid ev_user, ...@@ -142,11 +142,11 @@ EvAlaQt::EvAlaQt(void* ev_parent_ctx, char* ala_name, pwr_tObjid ev_user,
} }
addMenuItem(toplevel, view, "Zoom &In", SLOT(ala_activate_zoom_in()), addMenuItem(toplevel, view, "Zoom &In", SLOT(ala_activate_zoom_in()),
"CTRL+I", "zoom-in"); "CTRL+I", "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view, "Zoom &Out", SLOT(ala_activate_zoom_out()), addMenuItem(toplevel, view, "Zoom &Out", SLOT(ala_activate_zoom_out()),
"CTRL+O", "zoom-out"); "CTRL+O", "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(ala_activate_zoom_reset()), addMenuItem(toplevel, view, "Zoom &Reset", SLOT(ala_activate_zoom_reset()),
"CTRL+B", "zoom-original"); "CTRL+B", "$pwr_exe/xtt_zoom_reset.png");
addCheckableMenuItem(toplevel, view, "&Display hundredth", addCheckableMenuItem(toplevel, view, "&Display hundredth",
SLOT(ala_activate_disp_hundredth(bool))); SLOT(ala_activate_disp_hundredth(bool)));
addCheckableMenuItem( addCheckableMenuItem(
...@@ -157,7 +157,7 @@ EvAlaQt::EvAlaQt(void* ev_parent_ctx, char* ala_name, pwr_tObjid ev_user, ...@@ -157,7 +157,7 @@ EvAlaQt::EvAlaQt(void* ev_parent_ctx, char* ala_name, pwr_tObjid ev_user,
// Help entry // Help entry
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem(toplevel, help, "&Help", SLOT(ala_activate_help()), "CTRL+H", addMenuItem(toplevel, help, "&Help", SLOT(ala_activate_help()), "CTRL+H",
"system-help"); "$pwr_exe/xtt_help.png");
addMenuItem( addMenuItem(
toplevel, help, "Help Selected Event", SLOT(ala_activate_helpevent())); toplevel, help, "Help Selected Event", SLOT(ala_activate_helpevent()));
......
...@@ -99,9 +99,9 @@ EvEveQt::EvEveQt(void* ev_parent_ctx, char* eve_name, pwr_tObjid ev_user, ...@@ -99,9 +99,9 @@ EvEveQt::EvEveQt(void* ev_parent_ctx, char* eve_name, pwr_tObjid ev_user,
// File entry // File entry
QMenu* file = menu_bar->addMenu(translate_utf8("&File")); QMenu* file = menu_bar->addMenu(translate_utf8("&File"));
addMenuItem(toplevel, file, "&Print", SLOT(eve_activate_print()), "", addMenuItem(toplevel, file, "&Print", SLOT(eve_activate_print()), "",
"document-print"); "$pwr_exe/wb_print.png");
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Functions entry // Functions entry
QMenu* functions = menu_bar->addMenu(translate_utf8("&Functions")); QMenu* functions = menu_bar->addMenu(translate_utf8("&Functions"));
...@@ -133,11 +133,11 @@ EvEveQt::EvEveQt(void* ev_parent_ctx, char* eve_name, pwr_tObjid ev_user, ...@@ -133,11 +133,11 @@ EvEveQt::EvEveQt(void* ev_parent_ctx, char* eve_name, pwr_tObjid ev_user,
} }
addMenuItem(toplevel, view, "Zoom &In", SLOT(eve_activate_zoom_in()), addMenuItem(toplevel, view, "Zoom &In", SLOT(eve_activate_zoom_in()),
"CTRL+I", "zoom-in"); "CTRL+I", "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view, "Zoom &Out", SLOT(eve_activate_zoom_out()), addMenuItem(toplevel, view, "Zoom &Out", SLOT(eve_activate_zoom_out()),
"CTRL+O", "zoom-out"); "CTRL+O", "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(eve_activate_zoom_reset()), addMenuItem(toplevel, view, "Zoom &Reset", SLOT(eve_activate_zoom_reset()),
"CTRL+B", "zoom-original"); "CTRL+B", "$pwr_exe/xtt_zoom_reset.png");
addCheckableMenuItem(toplevel, view, "&Display hundredth", addCheckableMenuItem(toplevel, view, "&Display hundredth",
SLOT(eve_activate_disp_hundredth(bool))); SLOT(eve_activate_disp_hundredth(bool)));
addCheckableMenuItem( addCheckableMenuItem(
...@@ -148,7 +148,7 @@ EvEveQt::EvEveQt(void* ev_parent_ctx, char* eve_name, pwr_tObjid ev_user, ...@@ -148,7 +148,7 @@ EvEveQt::EvEveQt(void* ev_parent_ctx, char* eve_name, pwr_tObjid ev_user,
// Help entry // Help entry
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem(toplevel, help, "&Help", SLOT(eve_activate_help()), "CTRL+H", addMenuItem(toplevel, help, "&Help", SLOT(eve_activate_help()), "CTRL+H",
"system-help"); "$pwr_exe/xtt_help.png");
addMenuItem( addMenuItem(
toplevel, help, "Help Selected Event", SLOT(eve_activate_helpevent())); toplevel, help, "Help Selected Event", SLOT(eve_activate_helpevent()));
......
...@@ -310,21 +310,21 @@ XttGeQt::XttGeQt(void* xg_parent_ctx, const char* xg_name, ...@@ -310,21 +310,21 @@ XttGeQt::XttGeQt(void* xg_parent_ctx, const char* xg_name,
// File Entry // File Entry
QMenu* file = menu_bar->addMenu(translate_utf8("&File")); QMenu* file = menu_bar->addMenu(translate_utf8("&File"));
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// View menu // View menu
QMenu* view = menu_bar->addMenu(translate_utf8("&View")); QMenu* view = menu_bar->addMenu(translate_utf8("&View"));
addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I", addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I",
"zoom-in"); "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()),
"CTRL+O", "zoom-out"); "CTRL+O", "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "", addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), "",
"zoom-original"); "$pwr_exe/xtt_zoom_reset.png");
// Menu Help // Menu Help
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem(toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", addMenuItem(toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H",
"system-help"); "$pwr_exe/xtt_help.png");
graph_form->setMenuBar(menu_bar); graph_form->setMenuBar(menu_bar);
} }
......
...@@ -87,13 +87,13 @@ HistQt::HistQt(void* hist_parent_ctx, char* hist_name, pwr_tAttrRef* arp, ...@@ -87,13 +87,13 @@ HistQt::HistQt(void* hist_parent_ctx, char* hist_name, pwr_tAttrRef* arp,
// File entry // File entry
QMenu* file = menu_bar->addMenu(translate_utf8("&File")); QMenu* file = menu_bar->addMenu(translate_utf8("&File"));
addMenuItem( addMenuItem(
toplevel, file, "&Print", SLOT(activate_print()), "", "document-print"); toplevel, file, "&Print", SLOT(activate_print()), "", "$pwr_exe/wb_print.png");
addMenuItem( addMenuItem(
toplevel, file, "&Export", SLOT(activate_export())); toplevel, file, "&Export", SLOT(activate_export()));
addMenuItem( addMenuItem(
toplevel, file, "&Analyse", SLOT(activate_analyse())); toplevel, file, "&Analyse", SLOT(activate_analyse()));
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Functions entry // Functions entry
QMenu* functions = menu_bar->addMenu(translate_utf8("&Functions")); QMenu* functions = menu_bar->addMenu(translate_utf8("&Functions"));
...@@ -107,11 +107,11 @@ HistQt::HistQt(void* hist_parent_ctx, char* hist_name, pwr_tAttrRef* arp, ...@@ -107,11 +107,11 @@ HistQt::HistQt(void* hist_parent_ctx, char* hist_name, pwr_tAttrRef* arp,
// View entry // View entry
QMenu* view = menu_bar->addMenu(translate_utf8("&View")); QMenu* view = menu_bar->addMenu(translate_utf8("&View"));
addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I", addMenuItem(toplevel, view, "Zoom &In", SLOT(activate_zoom_in()), "CTRL+I",
"zoom-in"); "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O", addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoom_out()), "CTRL+O",
"zoom-out"); "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()), addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoom_reset()),
"CTRL+B", "zoom-original"); "CTRL+B", "$pwr_exe/xtt_zoom_reset.png");
addCheckableMenuItem(toplevel, view, "Hide &Search Dialog", addCheckableMenuItem(toplevel, view, "Hide &Search Dialog",
SLOT(activate_hide_search(bool)), "CTRL+E"); SLOT(activate_hide_search(bool)), "CTRL+E");
addCheckableMenuItem(toplevel, view, "&Display hundredth", addCheckableMenuItem(toplevel, view, "&Display hundredth",
...@@ -124,7 +124,7 @@ HistQt::HistQt(void* hist_parent_ctx, char* hist_name, pwr_tAttrRef* arp, ...@@ -124,7 +124,7 @@ HistQt::HistQt(void* hist_parent_ctx, char* hist_name, pwr_tAttrRef* arp,
// Help entry // Help entry
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem(toplevel, help, "&Help", SLOT(activate_help()), addMenuItem(toplevel, help, "&Help", SLOT(activate_help()),
"CTRL+H", "system-help"); "CTRL+H", "$pwr_exe/xtt_help.png");
addMenuItem(toplevel, help, "Help Selected Event", SLOT(activate_helpevent())); addMenuItem(toplevel, help, "Help Selected Event", SLOT(activate_helpevent()));
// Search dialog // Search dialog
......
...@@ -314,7 +314,7 @@ OpQt::OpQt(void* op_parent_ctx, char* opplace, pwr_tStatus* status) ...@@ -314,7 +314,7 @@ OpQt::OpQt(void* op_parent_ctx, char* opplace, pwr_tStatus* status)
// End Help submenu // End Help submenu
functions_close = addMenuItem( functions_close = addMenuItem(
toplevel, functions, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, functions, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Toolbar // Toolbar
tools = new QToolBar(); tools = new QToolBar();
......
...@@ -300,7 +300,7 @@ RtTraceQt::RtTraceQt(void* tr_parent_ctx, pwr_tObjid tr_objid, ...@@ -300,7 +300,7 @@ RtTraceQt::RtTraceQt(void* tr_parent_ctx, pwr_tObjid tr_objid,
addMenuItem(toplevel, file, "&Restore Trace", SLOT(activate_restoretrace())); addMenuItem(toplevel, file, "&Restore Trace", SLOT(activate_restoretrace()));
addMenuItem(toplevel, file, "C&lear Trace", SLOT(activate_cleartrace())); addMenuItem(toplevel, file, "C&lear Trace", SLOT(activate_cleartrace()));
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Functions Entry // Functions Entry
QMenu* functions = menu_bar->addMenu(translate_utf8("&Functions")); QMenu* functions = menu_bar->addMenu(translate_utf8("&Functions"));
...@@ -320,11 +320,11 @@ RtTraceQt::RtTraceQt(void* tr_parent_ctx, pwr_tObjid tr_objid, ...@@ -320,11 +320,11 @@ RtTraceQt::RtTraceQt(void* tr_parent_ctx, pwr_tObjid tr_objid,
// View Entry // View Entry
QMenu* view = menu_bar->addMenu(translate_utf8("&View")); QMenu* view = menu_bar->addMenu(translate_utf8("&View"));
addMenuItem( addMenuItem(
toplevel, view, "Zoom &In", SLOT(activate_zoomin()), "CTRL+I", "zoom-in"); toplevel, view, "Zoom &In", SLOT(activate_zoomin()), "CTRL+I", "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoomout()), "CTRL+O", addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoomout()), "CTRL+O",
"zoom-out"); "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoomreset()), addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoomreset()),
"CTRL+B", "zoom-original"); "CTRL+B", "$pwr_exe/xtt_zoom_reset.png");
// Submenu ScanTime // Submenu ScanTime
QMenu* view_sc = view->addMenu(translate_utf8("&ScanTime")); QMenu* view_sc = view->addMenu(translate_utf8("&ScanTime"));
...@@ -359,7 +359,7 @@ RtTraceQt::RtTraceQt(void* tr_parent_ctx, pwr_tObjid tr_objid, ...@@ -359,7 +359,7 @@ RtTraceQt::RtTraceQt(void* tr_parent_ctx, pwr_tObjid tr_objid,
// Menu Help // Menu Help
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem(toplevel, help, "On &Trace", SLOT(activate_help()), "CTRL+H", addMenuItem(toplevel, help, "On &Trace", SLOT(activate_help()), "CTRL+H",
"system-help"); "$pwr_exe/xtt_help.png");
addMenuItem(toplevel, help, "On &PlcPgm", SLOT(activate_helpplc())); addMenuItem(toplevel, help, "On &PlcPgm", SLOT(activate_helpplc()));
addMenuItem(toplevel, help, "P&lcPgm Overview", SLOT(activate_helpplclist())); addMenuItem(toplevel, help, "P&lcPgm Overview", SLOT(activate_helpplclist()));
......
...@@ -374,7 +374,7 @@ XAttQt::XAttQt(void* xa_parent_ctx, pwr_sAttrRef* xa_objar, ...@@ -374,7 +374,7 @@ XAttQt::XAttQt(void* xa_parent_ctx, pwr_sAttrRef* xa_objar,
QMenu* file = menu_bar->addMenu(translate_utf8("&File")); QMenu* file = menu_bar->addMenu(translate_utf8("&File"));
addMenuItem(toplevel, file, "&Print", SLOT(activate_print())); addMenuItem(toplevel, file, "&Print", SLOT(activate_print()));
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Functions entry // Functions entry
QMenu* functions = menu_bar->addMenu(translate_utf8("&Functions")); QMenu* functions = menu_bar->addMenu(translate_utf8("&Functions"));
...@@ -394,7 +394,7 @@ XAttQt::XAttQt(void* xa_parent_ctx, pwr_sAttrRef* xa_objar, ...@@ -394,7 +394,7 @@ XAttQt::XAttQt(void* xa_parent_ctx, pwr_sAttrRef* xa_objar,
// Help entry // Help entry
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem( addMenuItem(
toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "system-help"); toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "$pwr_exe/xtt_help.png");
pane = new QSplitter(Qt::Vertical); pane = new QSplitter(Qt::Vertical);
......
...@@ -272,12 +272,12 @@ XAttOneQt::XAttOneQt(void* xa_parent_ctx, pwr_sAttrRef* xa_aref, char* xa_title, ...@@ -272,12 +272,12 @@ XAttOneQt::XAttOneQt(void* xa_parent_ctx, pwr_sAttrRef* xa_aref, char* xa_title,
// File entry // File entry
QMenu* file = menu_bar->addMenu(translate_utf8("&File")); QMenu* file = menu_bar->addMenu(translate_utf8("&File"));
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Help entry // Help entry
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem( addMenuItem(
toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "system-help"); toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "$pwr_exe/xtt_help.png");
// Prompt, label, input entry // Prompt, label, input entry
msg_label = new QLabel(""); msg_label = new QLabel("");
......
...@@ -450,7 +450,7 @@ XColWindQt::XColWindQt(void* xa_parent_ctx, pwr_sAttrRef* xa_objar_list, ...@@ -450,7 +450,7 @@ XColWindQt::XColWindQt(void* xa_parent_ctx, pwr_sAttrRef* xa_objar_list,
"document-save-as"); "document-save-as");
addMenuItem(toplevel, file, "&Print", SLOT(activate_print())); addMenuItem(toplevel, file, "&Print", SLOT(activate_print()));
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Edit entry // Edit entry
QMenu* edit = menu_bar->addMenu(translate_utf8("&Edit")); QMenu* edit = menu_bar->addMenu(translate_utf8("&Edit"));
...@@ -477,11 +477,11 @@ XColWindQt::XColWindQt(void* xa_parent_ctx, pwr_sAttrRef* xa_objar_list, ...@@ -477,11 +477,11 @@ XColWindQt::XColWindQt(void* xa_parent_ctx, pwr_sAttrRef* xa_objar_list,
// View Entry // View Entry
QMenu* view = menu_bar->addMenu(translate_utf8("&View")); QMenu* view = menu_bar->addMenu(translate_utf8("&View"));
addMenuItem( addMenuItem(
toplevel, view, "Zoom &In", SLOT(activate_zoomin()), "CTRL+I", "zoom-in"); toplevel, view, "Zoom &In", SLOT(activate_zoomin()), "CTRL+I", "$pwr_exe/xtt_zoom_in.png");
addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoomout()), "CTRL+O", addMenuItem(toplevel, view, "Zoom &Out", SLOT(activate_zoomout()), "CTRL+O",
"zoom-out"); "$pwr_exe/xtt_zoom_out.png");
addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoomreset()), addMenuItem(toplevel, view, "Zoom &Reset", SLOT(activate_zoomreset()),
"CTRL+B", "zoom-original"); "CTRL+B", "$pwr_exe/xtt_zoom_reset.png");
// Submenu ScanTime // Submenu ScanTime
QMenu* view_sc = view->addMenu(translate_utf8("&ScanTime")); QMenu* view_sc = view->addMenu(translate_utf8("&ScanTime"));
...@@ -507,7 +507,7 @@ XColWindQt::XColWindQt(void* xa_parent_ctx, pwr_sAttrRef* xa_objar_list, ...@@ -507,7 +507,7 @@ XColWindQt::XColWindQt(void* xa_parent_ctx, pwr_sAttrRef* xa_objar_list,
// Help entry // Help entry
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem( addMenuItem(
toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "system-help"); toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "$pwr_exe/xtt_help.png");
pane = new QSplitter(Qt::Vertical); pane = new QSplitter(Qt::Vertical);
memset(&ar, 0, sizeof(ar)); memset(&ar, 0, sizeof(ar));
......
...@@ -136,7 +136,7 @@ XCrrQt::XCrrQt(void* xa_parent_ctx, pwr_sAttrRef* xa_objar, ...@@ -136,7 +136,7 @@ XCrrQt::XCrrQt(void* xa_parent_ctx, pwr_sAttrRef* xa_objar,
QMenu* file = menu_bar->addMenu(translate_utf8("&File")); QMenu* file = menu_bar->addMenu(translate_utf8("&File"));
addMenuItem(toplevel, file, "&Print", SLOT(activate_print())); addMenuItem(toplevel, file, "&Print", SLOT(activate_print()));
addMenuItem( addMenuItem(
toplevel, file, "&Close", SLOT(close()), "CTRL+W", "window-close"); toplevel, file, "&Close", SLOT(close()), "CTRL+W", "$pwr_exe/xtt_close.png");
// Functions entry // Functions entry
QMenu* functions = menu_bar->addMenu(translate_utf8("&Functions")); QMenu* functions = menu_bar->addMenu(translate_utf8("&Functions"));
...@@ -146,7 +146,7 @@ XCrrQt::XCrrQt(void* xa_parent_ctx, pwr_sAttrRef* xa_objar, ...@@ -146,7 +146,7 @@ XCrrQt::XCrrQt(void* xa_parent_ctx, pwr_sAttrRef* xa_objar,
// Help entry // Help entry
QMenu* help = menu_bar->addMenu(translate_utf8("&Help")); QMenu* help = menu_bar->addMenu(translate_utf8("&Help"));
addMenuItem( addMenuItem(
toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "system-help"); toplevel, help, "&Help", SLOT(activate_help()), "CTRL+H", "$pwr_exe/xtt_help.png");
QVBoxLayout* vbox = new QVBoxLayout(); QVBoxLayout* vbox = new QVBoxLayout();
xcrrnav = new XAttNavQt(this, xattnav_eType_CrossRef, "Plant", &objar, xcrrnav = new XAttNavQt(this, xattnav_eType_CrossRef, "Plant", &objar,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment