app_v3dpopupdef.h

Go to the documentation of this file.
00001 /* Gnome gxsm - Gnome X Scanning Microscopy
00002  * universal STM/AFM/SARLS/SPALEED/... controlling and
00003  * data analysis software
00004  * 
00005  * Copyright (C) 1999 The Free Software Foundation
00006  *
00007  * Authors: Percy Zahl <zahl@fkp.uni-hannover.de>
00008  * additional features: Andreas Klust <klust@fkp.uni-hannover.de>
00009  *
00010  * This program is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version.
00014  *
00015  * This program is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
00023  */
00024 
00025 /* The menu definitions: File/Exit and Help/About are mandatory */
00026 
00027 // need math prototypes...
00028 #include "xsmmath.h"
00029 #include "app_v3dcontrol.h"
00030 
00031 /* Definition of the Scan - Pop Up menu */
00032 
00033 static GnomeUIInfo scan_v3d_mode_menu[] = {
00034   GNOMEUIINFO_ITEM_NONE(N_("Off"),N_("kill channel"), (gpointer) V3dControl::SetOff_callback),
00035   GNOMEUIINFO_ITEM_NONE(N_("Active"),N_("activate this channel"), (gpointer) V3dControl::Activate_callback),
00036   GNOMEUIINFO_ITEM_NONE(N_("On"),N_("set channel mode to On"), (gpointer) V3dControl::SetOn_callback),
00037   GNOMEUIINFO_ITEM_NONE(N_("Math"),N_("set channel mode to Math"), (gpointer) V3dControl::SetMath_callback),
00038   GNOMEUIINFO_ITEM_NONE(N_("X"),N_("set channel mode to X"), (gpointer) V3dControl::SetX_callback),
00039   GNOMEUIINFO_END
00040 };
00041 
00042 static GnomeUIInfo scan_v3d_file_menu[] = {
00043   GNOMEUIINFO_ITEM_STOCK(N_("_Open here"), N_("load scan into this channel"), 
00044                          (gpointer) V3dControl::view_file_openhere_callback, GNOME_STOCK_MENU_OPEN),
00045   GNOMEUIINFO_ITEM_STOCK(N_("_Save"), N_("Save this scans with automatically generated name"), 
00046                          (gpointer) V3dControl::view_file_save_callback, GNOME_STOCK_MENU_SAVE),
00047   GNOMEUIINFO_ITEM_STOCK(N_("Save _as..."), N_("Save this scan with a new name"), 
00048                          (gpointer) V3dControl::view_file_save_as_callback, GNOME_STOCK_MENU_SAVE_AS),
00049   GNOMEUIINFO_ITEM_STOCK(N_("Save GL view as Image..."), N_("Save the current 3D view as image"), 
00050                          (gpointer) V3dControl::view_file_save_image_callback, GNOME_STOCK_MENU_SAVE_AS),
00051   GNOMEUIINFO_MENU_PRINT_ITEM( (gpointer) V3dControl::view_file_print_callback, NULL ),
00052   GNOMEUIINFO_ITEM_STOCK(N_("Close"), N_("kill this scan"), 
00053                          (gpointer) V3dControl::view_file_kill_callback, GNOME_STOCK_MENU_SAVE_AS),
00054   GNOMEUIINFO_END
00055 };
00056 
00057 static GnomeUIInfo scan_v3d_view_modes_radiolist[] = {
00058   GNOMEUIINFO_RADIOITEM(N_("Quick"), N_("quick view"), (gpointer) V3dControl::view_view_quick_callback, NULL),
00059   GNOMEUIINFO_RADIOITEM(N_("Direct"), N_("direct view"), (gpointer) V3dControl::view_view_direct_callback, NULL),
00060   GNOMEUIINFO_RADIOITEM(N_("Logarithmic"), N_("logarithmic view"), (gpointer) V3dControl::view_view_log_callback, NULL),
00061   GNOMEUIINFO_RADIOITEM(N_("Horizont"), N_("horizontal view - subtract mean/line"), (gpointer) V3dControl::view_view_horizont_callback, NULL),
00062   GNOMEUIINFO_RADIOITEM(N_("Periodic"), N_("periodic view of greys/colors"), (gpointer) V3dControl::view_view_periodic_callback, NULL),
00063   GNOMEUIINFO_RADIOITEM(N_("Differential"), N_("differential view of greys/colors"), (gpointer) V3dControl::view_view_differential_callback, NULL),
00064   GNOMEUIINFO_END
00065 };
00066 
00067 static GnomeUIInfo scan_v3d_view_menu[] = {
00068   GNOMEUIINFO_RADIOLIST(scan_v3d_view_modes_radiolist),
00069   GNOMEUIINFO_END
00070 };
00071 
00072 static GnomeUIInfo scan_v3d_gl_wheel_mode_radiolist[] = {
00073   GNOMEUIINFO_RADIOITEM(N_("Zoom"), N_("use mouse wheel for zoom"), (gpointer) V3dControl::view_GL_Wh_zoom_callback, NULL),
00074   GNOMEUIINFO_RADIOITEM(N_("H Scale"), N_("use mouse wheel for Height (Z) scale"), (gpointer) V3dControl::view_GL_Wh_Zskl_callback, NULL),
00075   GNOMEUIINFO_RADIOITEM(N_("Rotate X"), N_("use mouse wheel to rotate X"), (gpointer) V3dControl::view_GL_Wh_rotX_callback, NULL),
00076   GNOMEUIINFO_RADIOITEM(N_("Rotate Y"), N_("use mouse wheel to rotate Y"), (gpointer) V3dControl::view_GL_Wh_rotY_callback, NULL),
00077   GNOMEUIINFO_RADIOITEM(N_("Rotate Z"), N_("use mouse wheel to rotate Z"), (gpointer) V3dControl::view_GL_Wh_rotZ_callback, NULL),
00078   GNOMEUIINFO_END
00079 };
00080 static GnomeUIInfo scan_v3d_gl_wheel_mode_menu[] = {
00081         GNOMEUIINFO_ITEM_NONE(N_("Mouse Wheel for"),NULL, NULL),
00082         GNOMEUIINFO_RADIOLIST(scan_v3d_gl_wheel_mode_radiolist),
00083         GNOMEUIINFO_END
00084 };
00085 
00086 static GnomeUIInfo scan_v3d_glopt_menu[] = {
00087   GNOMEUIINFO_TOGGLEITEM(N_("Zero Plane/Box"), N_("show Z=Zero plane and box"), (gpointer) V3dControl::view_GL_nZP_callback, NULL),
00088   GNOMEUIINFO_TOGGLEITEM(N_("Mesh"), N_("toggle mesh/solid"), (gpointer) V3dControl::view_GL_Mesh_callback, NULL),
00089   GNOMEUIINFO_TOGGLEITEM(N_("Smooth"), N_("toggle Smooth Shading on/off"), (gpointer) V3dControl::view_GL_Smooth_callback, NULL),
00090   GNOMEUIINFO_TOGGLEITEM(N_("Tickmarks"), N_("toggle tickmarks on/off"), (gpointer) V3dControl::view_GL_Ticks_callback, NULL),
00091   GNOMEUIINFO_END
00092 };
00093 
00094 
00095 static GnomeUIInfo scan_v3d_popup_menu[] = {
00096   GNOMEUIINFO_ITEM_NONE(N_("Activate"),N_("activate this Channel"), (gpointer) V3dControl::Activate_callback),
00097   GNOMEUIINFO_ITEM_NONE(N_("AutoDisp"),N_("autoscale Area"), (gpointer) V3dControl::AutoDisp_callback),
00098   GNOMEUIINFO_ITEM_NONE(N_("Update All"),N_("force apply of all settings"), (gpointer) V3dControl::apply_all_callback),
00099   GNOMEUIINFO_SUBTREE (N_("Mode"), scan_v3d_mode_menu),
00100   GNOMEUIINFO_SUBTREE (N_("File"), scan_v3d_file_menu),
00101   GNOMEUIINFO_SUBTREE (N_("View"), scan_v3d_view_menu),
00102   GNOMEUIINFO_SUBTREE (N_("GL Options"), scan_v3d_glopt_menu),
00103   GNOMEUIINFO_SUBTREE (N_("3D Control"), scan_v3d_gl_wheel_mode_menu),
00104   GNOMEUIINFO_ITEM_NONE(N_("Scene Setup.."),N_("Open Scene MesaGL Preferences Dialog"), (gpointer) V3dControl::preferences_callback),
00105   GNOMEUIINFO_END
00106 };
00107 

Generated on Sat Apr 1 09:03:49 2006 for GXSM by  doxygen 1.4.6