"Fossies" - the Fresh Open Source Software Archive

Member "g3data-1.5.4/g3data/vardefs.h" (8 Jan 2011, 3160 Bytes) of package /linux/privat/old/g3data-1.5.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "vardefs.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2 
    3 g3data : A program for grabbing data from scanned graphs
    4 Copyright (C) 2000 Jonas Frantz
    5 
    6     This file is part of g3data.
    7 
    8     g3data is free software; you can redistribute it and/or modify
    9     it under the terms of the GNU General Public License as published by
   10     the Free Software Foundation; either version 2 of the License, or
   11     (at your option) any later version.
   12 
   13     g3data is distributed in the hope that it will be useful,
   14     but WITHOUT ANY WARRANTY; without even the implied warranty of
   15     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   16     GNU General Public License for more details.
   17 
   18     You should have received a copy of the GNU General Public License
   19     along with this program; if not, write to the Free Software
   20     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
   21 
   22 
   23 Authors email : jonas.frantz@welho.com
   24 
   25 */
   26 
   27 /* Actions definitions */
   28   GtkActionEntry entries[] = {
   29         { "FileMenu", NULL, "_File", NULL, NULL, NULL },
   30         { "ViewMenu", NULL, "_View", NULL, NULL, NULL },
   31         { "HelpMenu", NULL, "_Help", NULL, NULL, NULL },
   32         { "Open", GTK_STOCK_OPEN, "_Open", "<control>O", "Open an image in a new tab", G_CALLBACK( menu_file_open ) },
   33         { "Quit", GTK_STOCK_QUIT, "_Quit", "<control>Q", "Quit program", G_CALLBACK( close_application ) },
   34         { "About", GTK_STOCK_HELP, "_About", "", "About g3data", G_CALLBACK( menu_help_about ) }
   35   };
   36 
   37   GtkActionEntry closeaction[] = {
   38         { "Close", GTK_STOCK_CLOSE, "_Close", "<control>C", "Close current tab", G_CALLBACK( menu_tab_close ) }
   39   };
   40 
   41   GtkToggleActionEntry toggle_entries[] = {
   42     { "Zoom area", NULL, "Zoom area", "F5", "Zoom area", G_CALLBACK( hide_zoom_area_callback ), TRUE },
   43     { "Axis settings", NULL, "Axis settings", "F6", "Axis settings", G_CALLBACK( hide_axis_settings_callback ), TRUE },
   44     { "Output properties", NULL, "Output properties", "F7", "Output properties", G_CALLBACK( hide_output_prop_callback ), TRUE }
   45   };
   46 
   47   GtkToggleActionEntry full_screen[] = {
   48     { "FullScreen", NULL, "_Full Screen", "F11", "Switch between full screen and windowed mode", G_CALLBACK( full_screen_action_callback ), FALSE }
   49   };
   50 /* Menu definitions */
   51 const gchar *ui_description =
   52         "<ui>"
   53         "  <menubar name='MainMenu'>"
   54         "    <menu action='FileMenu'>"
   55         "      <menuitem action='Open'/>"
   56         "      <menuitem action='Close'/>"
   57     "      <separator />"
   58         "      <menuitem action='Quit'/>"
   59         "    </menu>"
   60         "    <menu action='ViewMenu'>"
   61         "      <menuitem action='Zoom area'/>"
   62         "      <menuitem action='Axis settings'/>"
   63         "      <menuitem action='Output properties'/>"
   64     "      <separator />"
   65         "      <menuitem action='FullScreen'/>"
   66         "    </menu>"
   67         "    <menu action='HelpMenu'>"
   68         "      <menuitem action='About'/>"
   69         "    </menu>"
   70         "  </menubar>"
   71         "</ui>";
   72 
   73 
   74 /* Drag and drop definitions */
   75 
   76 const GtkTargetEntry ui_drop_target_entries[] = {
   77   {"text/uri-list", 0, URI_LIST},
   78   {"image/png",     0, PNG_DATA},
   79   {"image/jpeg",    0, JPEG_DATA},
   80   {"application/x-color",    0, APP_X_COLOR}
   81 };