Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

GUITrans.hh

Go to the documentation of this file.
00001 /*
00002 
00003     GUI for transient analysis
00004     Copyright (C) 2001 Jussi Laako
00005 
00006     This program is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this program; if not, write to the Free Software
00018     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019 
00020 */
00021 
00022 
00023 #include <gtk/gtk.h>
00024 
00025 #include "Config.h"
00026 #include "CfgFile.hh"
00027 #include "GtkUtils.hh"
00028 
00029 
00030 #ifndef GUITRANS_HH
00031     #define GUITRANS_HH
00032 
00033     #define GUITRANS_VER_MAJ        GLOBAL_VERSMAJ
00034     #define GUITRANS_VER_MIN        GLOBAL_VERSMIN
00035     #define GUITRANS_VER_PL         GLOBAL_VERSPL
00036     #define GUITRANS_WSPACING       8
00037     #define GUITRANS_ENTRY_WIDTH    80
00038     #define GUITRANS_SERVER_MAXLEN  256
00039     #define GUITRANS_LOCATE_BG      0x00000000
00040     #define GUITRANS_LOCATE_FG      0x00ffffff
00041 
00042     #define GUITRANS_PALETTE_ITEMS    9
00043 
00044 
00048     enum
00049     {
00050         GUITRANS_PAL_BW = 0,
00051         GUITRANS_PAL_HSV = 1,
00052         GUITRANS_PAL_LIGHT = 2,
00053         GUITRANS_PAL_TEMP = 3,
00054         GUITRANS_PAL_DIR = 4,
00055         GUITRANS_PAL_GREEN = 5,
00056         GUITRANS_PAL_GREEN2 = 6,
00057         GUITRANS_PAL_PUREGREEN = 7,
00058         GUITRANS_PAL_WB = 8
00059     };
00060 
00061 
00062     class clGUITransient
00063     {
00064             bool bRun;
00065             bool bConnected;
00066             /* glib types */
00067             gint iGdkInputTag;
00068             GList *glServer;
00069             /* --- === --- */
00070             /* Gdk types */
00071             /* --- === --- */
00072             /* Gtk+ widgets */
00073             // Top level
00074             GtkWidget *gwWindow;
00075             GtkWidget *gwVBox;
00076             // Table 1
00077             GtkWidget *gwTable1;
00078             GtkWidget *gwLServer;
00079             GtkWidget *gwCServer;
00080             GtkWidget *gwBConnect;
00081             /* --- === --- */
00082             clCfgFile Cfg;
00083             clGtkUtils GtkUtils;
00084             bool GetCfg ();
00085             bool Build ();
00086             bool BuildTable1 ();
00087             bool BuildDrawingPrims ();
00088             bool ConnectSignals ();
00089         public:
00090             clGUITransient ();
00091             ~clGUITransient ();
00092             int Main (int *, char ***);
00093             gboolean OnDelete (GtkWidget *, GdkEvent *, gpointer);
00094             void OnConnectClick (GtkButton *, gpointer);
00095     };
00096 
00097 
00098 #endif

Generated on Sun Oct 26 19:11:21 2003 for HASAS by doxygen 1.3.3