00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 static GnomeUIInfo profile_print_menu[] = {
00031 GNOMEUIINFO_ITEM_STOCK(N_("User command 1"), N_("Set in Prefs"),
00032 (gpointer) ProfileControl::file_print1_callback, GNOME_STOCK_MENU_PRINT),
00033 GNOMEUIINFO_ITEM_STOCK(N_("User command 2"), N_("Set in Prefs"),
00034 (gpointer) ProfileControl::file_print2_callback, GNOME_STOCK_MENU_PRINT),
00035 GNOMEUIINFO_ITEM_STOCK(N_("User command 3"), N_("Set in Prefs"),
00036 (gpointer) ProfileControl::file_print3_callback, GNOME_STOCK_MENU_PRINT),
00037 GNOMEUIINFO_ITEM_STOCK(N_("User command 4"), N_("Set in Prefs"),
00038 (gpointer) ProfileControl::file_print4_callback, GNOME_STOCK_MENU_PRINT),
00039 GNOMEUIINFO_ITEM_STOCK(N_("User command 5 (xmgrace)"), N_("View via xmgrace"),
00040 (gpointer) ProfileControl::file_print5_callback, GNOME_STOCK_MENU_PRINT),
00041 GNOMEUIINFO_ITEM_STOCK(N_("User command 6 (matplot)"), N_("View via matplotlib"),
00042 (gpointer) ProfileControl::file_print6_callback, GNOME_STOCK_MENU_PRINT),
00043 GNOMEUIINFO_END
00044 };
00045
00046 static GnomeUIInfo profile_file_menu[] = {
00047 GNOMEUIINFO_ITEM_STOCK(N_("_Open"), N_("load profile"),
00048 (gpointer) ProfileControl::file_open_callback, GNOME_STOCK_MENU_OPEN),
00049 GNOMEUIINFO_ITEM_STOCK(N_("_Save"), N_("Save profile with automatically generated name"),
00050 (gpointer) ProfileControl::file_save_callback, GNOME_STOCK_MENU_SAVE),
00051 GNOMEUIINFO_ITEM_STOCK(N_("Save _as..."), N_("Save profile with a new name"),
00052 (gpointer) ProfileControl::file_save_as_callback, GNOME_STOCK_MENU_SAVE_AS),
00053 GNOMEUIINFO_SUBTREE (N_("_Print"), profile_print_menu),
00054 GNOMEUIINFO_ITEM_STOCK(N_("Activate"), N_("Activate profile channel"),
00055 (gpointer) ProfileControl::file_activate_callback, GNOME_STOCK_MENU_PRINT),
00056 GNOMEUIINFO_ITEM_STOCK(N_("Close"), N_("Close this profile"),
00057 (gpointer) ProfileControl::file_close_callback, GNOME_STOCK_MENU_CLOSE),
00058
00059 GNOMEUIINFO_END
00060 };
00061
00062 static GnomeUIInfo profile_options_menu[] = {
00063 GNOMEUIINFO_TOGGLEITEM(N_("Y linregression"), N_("do lineregression on Y data"),
00064 (gpointer) ProfileControl::linreg_callback, NULL),
00065 GNOMEUIINFO_TOGGLEITEM(N_("Y PSD"), N_("show PSD of Y data"),
00066 (gpointer) ProfileControl::psd_callback, NULL),
00067 GNOMEUIINFO_SEPARATOR,
00068 GNOMEUIINFO_TOGGLEITEM(N_("Symbols"), N_("show Symbols"),
00069 (gpointer) ProfileControl::symbols_callback, NULL),
00070 GNOMEUIINFO_TOGGLEITEM(N_("Legend"), N_("show Legend"),
00071 (gpointer) ProfileControl::legend_callback, NULL),
00072 GNOMEUIINFO_TOGGLEITEM(N_("Ticmarks"), N_("show Ticmarks -- slower"),
00073 (gpointer) ProfileControl::tics_callback, NULL),
00074 GNOMEUIINFO_TOGGLEITEM(N_("no Gridlines"), N_("no Gridlines"),
00075 (gpointer) ProfileControl::nogrid_callback, NULL),
00076 GNOMEUIINFO_END
00077 };
00078
00079 static GnomeUIInfo profile_Yscaling_menu[] = {
00080 GNOMEUIINFO_TOGGLEITEM(N_("Y logarithmic"), N_("use logarithmic y scale"),
00081 (gpointer) ProfileControl::logy_callback, NULL),
00082 GNOMEUIINFO_SEPARATOR,
00083
00084 GNOMEUIINFO_TOGGLEITEM(N_("Y hold"), N_("fix y range"),
00085 (gpointer)ProfileControl::yhold_callback, NULL),
00086 GNOMEUIINFO_TOGGLEITEM(N_("Y expand only"), N_("do only expansion on y range, hold old maximal range"),
00087 (gpointer)ProfileControl::yexpand_callback, NULL),
00088 GNOMEUIINFO_SEPARATOR,
00089
00090 GNOMEUIINFO_ITEM_STOCK(N_("Y auto"), N_("Y autoscale "),
00091 (gpointer)ProfileControl::skl_Yauto_callback, GNOME_STOCK_MENU_BLANK),
00092 GNOMEUIINFO_ITEM_STOCK(N_("Y upper up"), N_("Y upper up "),
00093 (gpointer)ProfileControl::skl_Yupperup_callback, GNOME_STOCK_MENU_BLANK),
00094 GNOMEUIINFO_ITEM_STOCK(N_("Y upper down"), N_("Y upper down "),
00095 (gpointer)ProfileControl::skl_Yupperdn_callback, GNOME_STOCK_MENU_BLANK),
00096 GNOMEUIINFO_ITEM_STOCK(N_("Y lower up"), N_("Y lower up "),
00097 (gpointer)ProfileControl::skl_Ylowerup_callback, GNOME_STOCK_MENU_BLANK),
00098 GNOMEUIINFO_ITEM_STOCK(N_("Y lower down"), N_("Y lower down "),
00099 (gpointer)ProfileControl::skl_Ylowerdn_callback, GNOME_STOCK_MENU_BLANK),
00100 GNOMEUIINFO_ITEM_STOCK(N_("Y zoom in"), N_("Y zoom in "),
00101 (gpointer)ProfileControl::skl_Yzoomin_callback, GNOME_STOCK_MENU_BLANK),
00102 GNOMEUIINFO_ITEM_STOCK(N_("Y zoom out"), N_("Y zoom out "),
00103 (gpointer)ProfileControl::skl_Yzoomout_callback, GNOME_STOCK_MENU_BLANK),
00104 GNOMEUIINFO_ITEM_STOCK(N_("Y set bounds"), N_("manual Y set bound"),
00105 (gpointer)ProfileControl::skl_Yset_callback, GNOME_STOCK_MENU_BLANK),
00106 GNOMEUIINFO_END
00107 };
00108
00109 static GnomeUIInfo profile_Xscaling_menu[] = {
00110 GNOMEUIINFO_ITEM_STOCK(N_("X auto"), N_("X autoscale "),
00111 (gpointer)ProfileControl::skl_Xauto_callback, GNOME_STOCK_MENU_BLANK),
00112 GNOMEUIINFO_ITEM_STOCK(N_("X set bounds"), N_("manual X set bound"),
00113 (gpointer) ProfileControl::skl_Xset_callback, GNOME_STOCK_MENU_BLANK),
00114 GNOMEUIINFO_END
00115 };
00116
00117 static GnomeUIInfo profile_cursor_menu[] = {
00118 GNOMEUIINFO_TOGGLEITEM(N_("Cursor A"), N_("show cursor A"),
00119 (gpointer) ProfileControl::cur_Ashow_callback, NULL),
00120 GNOMEUIINFO_TOGGLEITEM(N_("Cursor B"), N_("show cursor B"),
00121 (gpointer) ProfileControl::cur_Bshow_callback, NULL),
00122 GNOMEUIINFO_ITEM_STOCK(N_("move A left"), N_("move cursor A left"),
00123 (gpointer) ProfileControl::cur_Aleft_callback, GNOME_STOCK_MENU_BLANK),
00124 GNOMEUIINFO_ITEM_STOCK(N_("move A next Max"), N_("find next right Maximum"),
00125 (gpointer) ProfileControl::cur_Armax_callback, GNOME_STOCK_MENU_BLANK),
00126 GNOMEUIINFO_ITEM_STOCK(N_("move A next Min"), N_("find next right Minimum"),
00127 (gpointer) ProfileControl::cur_Armin_callback, GNOME_STOCK_MENU_BLANK),
00128 GNOMEUIINFO_ITEM_STOCK(N_("move A prev Max"), N_("find next left Maximum"),
00129 (gpointer) ProfileControl::cur_Almax_callback, GNOME_STOCK_MENU_BLANK),
00130 GNOMEUIINFO_ITEM_STOCK(N_("move A prev Min"), N_("find next left Minimum"),
00131 (gpointer) ProfileControl::cur_Almin_callback, GNOME_STOCK_MENU_BLANK),
00132 GNOMEUIINFO_ITEM_STOCK(N_("move A right"), N_("move cursor A right"),
00133 (gpointer) ProfileControl::cur_Aright_callback, GNOME_STOCK_MENU_BLANK),
00134 GNOMEUIINFO_ITEM_STOCK(N_("move B left"), N_("move cursor B left"),
00135 (gpointer) ProfileControl::cur_Bleft_callback, GNOME_STOCK_MENU_BLANK),
00136 GNOMEUIINFO_ITEM_STOCK(N_("move B next Max"), N_("find next right Maximum"),
00137 (gpointer) ProfileControl::cur_Brmax_callback, GNOME_STOCK_MENU_BLANK),
00138 GNOMEUIINFO_ITEM_STOCK(N_("move B next Min"), N_("find next right Minimum"),
00139 (gpointer) ProfileControl::cur_Brmin_callback, GNOME_STOCK_MENU_BLANK),
00140 GNOMEUIINFO_ITEM_STOCK(N_("move B prev Max"), N_("find next left Maximum"),
00141 (gpointer) ProfileControl::cur_Blmax_callback, GNOME_STOCK_MENU_BLANK),
00142 GNOMEUIINFO_ITEM_STOCK(N_("move B prev Min"), N_("find next left Minimum"),
00143 (gpointer) ProfileControl::cur_Blmin_callback, GNOME_STOCK_MENU_BLANK),
00144 GNOMEUIINFO_ITEM_STOCK(N_("move B right"), N_("move cursor B right"),
00145 (gpointer) ProfileControl::cur_Bright_callback, GNOME_STOCK_MENU_BLANK),
00146 GNOMEUIINFO_END
00147 };
00148
00149 #define PRFC_DATASEL_ENTRY(L,T,CB) GNOMEUIINFO_ITEM_STOCK(N_(L), N_(T), CB, GNOME_STOCK_MENU_BLANK)
00150
00151 static GnomeUIInfo profile_dataselect_menu[] = {
00152 PRFC_DATASEL_ENTRY("all", "show all",
00153 (gpointer) ProfileControl::sel_all_callback),
00154 PRFC_DATASEL_ENTRY("first", "first line",
00155 (gpointer) ProfileControl::sel_first_callback),
00156 PRFC_DATASEL_ENTRY(" +1", "next line",
00157 (gpointer) ProfileControl::sel_next_p1_callback),
00158 PRFC_DATASEL_ENTRY(" +5", "+5 lines",
00159 (gpointer) ProfileControl::sel_next_p5_callback),
00160 PRFC_DATASEL_ENTRY(" +10", "+10 lines",
00161 (gpointer) ProfileControl::sel_next_p10_callback),
00162 PRFC_DATASEL_ENTRY(" +50", "+50 lines",
00163 (gpointer) ProfileControl::sel_next_p50_callback),
00164 PRFC_DATASEL_ENTRY("+100", "+100 lines",
00165 (gpointer) ProfileControl::sel_next_p100_callback),
00166 PRFC_DATASEL_ENTRY("+500", "+500 lines",
00167 (gpointer) ProfileControl::sel_next_p500_callback),
00168 PRFC_DATASEL_ENTRY("-500", "-500 lines",
00169 (gpointer) ProfileControl::sel_next_m500_callback),
00170 PRFC_DATASEL_ENTRY("-100", "-100 lines",
00171 (gpointer) ProfileControl::sel_next_m100_callback),
00172 PRFC_DATASEL_ENTRY(" -50", "-50 lines",
00173 (gpointer) ProfileControl::sel_next_m50_callback),
00174 PRFC_DATASEL_ENTRY(" -10", "-10 lines",
00175 (gpointer) ProfileControl::sel_next_m10_callback),
00176 PRFC_DATASEL_ENTRY(" -5", "-5 lines",
00177 (gpointer) ProfileControl::sel_next_m5_callback),
00178 PRFC_DATASEL_ENTRY(" -1", "prev. line",
00179 (gpointer) ProfileControl::sel_next_m1_callback),
00180 PRFC_DATASEL_ENTRY("last", "last line",
00181 (gpointer) ProfileControl::sel_last_callback),
00182 GNOMEUIINFO_END
00183 };
00184
00185 static GnomeUIInfo profile_popup_menu[] = {
00186 GNOMEUIINFO_SUBTREE (N_("File"), profile_file_menu),
00187 GNOMEUIINFO_SUBTREE (N_("Options"), profile_options_menu),
00188 GNOMEUIINFO_SUBTREE (N_("Y Scaling"), profile_Yscaling_menu),
00189 GNOMEUIINFO_SUBTREE (N_("X Scaling"), profile_Xscaling_menu),
00190 GNOMEUIINFO_SUBTREE (N_("Cursor"), profile_cursor_menu),
00191 GNOMEUIINFO_SUBTREE (N_("Data Select"), profile_dataselect_menu),
00192 GNOMEUIINFO_END
00193 };