client_gui.h

00001 /***************************************************************************
00002                           client_gui.h  -  description
00003                              -------------------
00004     begin                : Fri Feb 27 2004
00005     copyright            : (C) 2004 by Dynacube Team
00006     email                :
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef __CLIENT_GUI_H
00019 #define __CLIENT_GUI_H
00020 
00021   #define GUI_PID 1
00022   #define W_MINIMIZE  0x2
00023   #define W_MAXIMIZE  0x4
00024   #define W_DISABLED  0x8
00025   #define W_NORESIZE  0x10
00026 
00027   #define DISABLED  1
00028 
00029   #define NO_TYPE   0
00030   #define WIND_TYPE 1
00031   #define FRM_TYPE  2
00032   #define COMP_TYPE 3
00033 
00034 
00035  #define BUT_TYPE        1
00036  #define TEXT_TYPE       2
00037  #define TEXTAREA_TYPE   3
00038  #define LABEL_TYPE      4
00039  #define SCROLLBAR       5
00040  #define MENU_TYPE                       6
00041 
00042   #define CREATE  0x0
00043   #define ADD     0x1
00044   #define SHOW    0x2
00045   #define HIDE    0x3
00046   #define RESIZE  0x4
00047   #define ENABLE  0x5
00048   #define DISABLE 0x6
00049   #define DESTROY 0x7
00050   //Kernel & DD's
00051   #define ACTION  0x8
00052 
00053   //To send FINISHED message to the GUI Server after completing an event
00054   #define FINISHED 0x9
00055 
00056   //TEXT and TEXTAREA
00057   #define SET     0x10
00058   #define GET     0x11
00059   #define CUT     0x12
00060   #define COPY    0x13
00061   #define PASTE   0x14
00062 
00063 
00064  // SubType
00065   #define WINDOW      0x0
00066   #define BUTTON      0x1
00067   #define TEXT        0x2
00068   #define TEXTAREA    0x3
00069   #define LIST        0x4
00070   #define HSCROLLBAR  0x5
00071   #define VSCROLLBAR  0x6
00072   #define CHECKBOX    0x7
00073   #define RADIOBUTTON 0x8
00074   #define MENU        0x9
00075   #define TOOLBAR     0xA
00076   #define FRAME       0xB
00077   #define ICON        0xC
00078   #define LABEL       0xD
00079   #define FOLDERVIEW  0xE
00080   #define DIALOG      0xF
00081 
00082 
00083   #define WM_DESTROY  0x1
00084   #define WM_CLICKED  0x2
00085   #define WM_KEYPRESS 0x3
00086 
00087   #define FINISHED 0x9
00088   #define MAX_MSG_BUF 64
00089     typedef struct  {
00090         DW from_pid;
00091         DW type;
00092         DW sub_type;
00093         DD length;
00094         volatile DB msg_buf[MAX_MSG_BUF];
00095       }MSG;
00096 
00097    typedef struct
00098   {
00099     DD cntr_id;
00100     DW x, y;
00101     DW width, height;
00102     DD style;
00103     DW alias_id; //To send info to client
00104     char title[15];
00105   } CREATE_INFO;
00106 
00107   typedef struct
00108   {
00109     DD cntr_id;
00110     DW cnt_type;
00111     DW x, y;
00112     DW width, height;
00113     DD style;
00114     DW alias_id; //To send info to client
00115     char label[40];
00116   } COMP_CREATE_INFO;
00117 
00118   typedef struct
00119   {
00120     DW alias_id; //To send info to client
00121     DW x, y;
00122     DW width, height;
00123   } RESIZE_INFO;
00124 
00125 
00126   //Menu GUI
00127   #define MN_MAX_CHAR 10
00128   #define MN_MAX_ITEM 10
00129   #define MB_MAX_CHAR   10
00130   #define MB_MAX_MENU   6
00131 
00132 #endif

Generated on Thu Jul 27 23:52:25 2006 for Dynacube by  doxygen 1.4.7