Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

vdktypes.h

00001 /* 00002 * =========================== 00003 * VDK Visual Development Kit 00004 * Version 0.4 00005 * October 1998 00006 * =========================== 00007 * 00008 * Copyright (C) 1998, Mario Motta 00009 * Developed by Mario Motta <mmotta@guest.net> 00010 * 00011 * This library is free software; you can redistribute it and/or 00012 * modify it under the terms of the GNU Library General Public 00013 * License as published by the Free Software Foundation; either 00014 * version 2 of the License, or (at your option) any later version. 00015 * 00016 * This library is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00019 * Library General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU Library General Public 00022 * License along with this library; if not, write to the Free Software 00023 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00024 * 02111-130 00025 */ 00026 00027 00028 #ifndef VDKTYPES_H 00029 #define VDKTYPES_H 00030 #include <gdk/gdkcursor.h> 00031 #include <gdk/gdkevents.h> 00032 #include <gtk/gtkenums.h> 00033 00034 #ifdef NULL 00035 #undef NULL 00036 #define NULL 0x0000 00037 #endif 00038 00039 enum VDKCursorType 00040 { 00041 curDefault = -1, 00042 curLeftPtr = GDK_LEFT_PTR, 00043 curWatch = GDK_WATCH, 00044 curCrossHair = GDK_CROSSHAIR, 00045 curHandPtr = GDK_HAND2, 00046 curPencil = GDK_PENCIL 00047 }; 00048 00049 enum VDKSignal 00050 { 00051 no_signal = -1, 00052 clicked_signal, 00053 pressed_signal, 00054 released_signal, 00055 enter_signal, 00056 leave_signal, 00057 activate_signal, 00058 select_row_signal, 00059 unselect_row_signal, 00060 click_column_signal, 00061 changed_signal, 00062 focus_out_signal, 00063 focus_in_signal, 00064 timer_tick_signal, 00065 realize_signal, 00066 switch_page_signal, 00067 toggled_signal, 00068 event_browser_signal, 00069 value_changed_signal, 00070 child_attached_signal, 00071 child_detached_signal, 00072 selection_changed_signal, // used in VDKCombo 00073 text_changed_signal, // used in VDKtext 00074 select_node_signal, 00075 unselect_node_signal, 00076 databox_zoomed_signal, // used in VDKDataBox 00077 databox_marked_signal, 00078 databox_selection_started_signal, 00079 databox_selection_changed_signal, 00080 databox_selection_stopped_signal, 00081 databox_selection_canceled_signal, 00082 #if HAVE_GNOME 00083 // gnome widget signals 00084 date_changed_signal = 1024, // VDKGnomeDateEdit 00085 time_changed_signal, 00086 #endif 00087 row_activated_signal = 1512, 00088 user_signal = 4096 00089 }; 00090 00091 enum VDKEvent 00092 { 00093 no_event = GDK_NOTHING, 00094 delete_event = GDK_DELETE, 00095 destroy_event = GDK_DESTROY, 00096 expose_event = GDK_EXPOSE, 00097 motion_notify_event = GDK_MOTION_NOTIFY, 00098 button_press_event = GDK_BUTTON_PRESS, 00099 double_click_event = GDK_2BUTTON_PRESS, 00100 triple_click_event = GDK_3BUTTON_PRESS, 00101 button_release_event = GDK_BUTTON_RELEASE, 00102 key_press_event = GDK_KEY_PRESS, 00103 key_release_event = GDK_KEY_RELEASE, 00104 enter_notify_event = GDK_ENTER_NOTIFY, 00105 leave_notify_event = GDK_LEAVE_NOTIFY, 00106 focus_change_event = GDK_FOCUS_CHANGE, 00107 configure_event = GDK_CONFIGURE, 00108 map_event = GDK_MAP, 00109 unmap_event = GDK_UNMAP, 00110 property_notify_event = GDK_PROPERTY_NOTIFY, 00111 selection_clear_event = GDK_SELECTION_CLEAR, 00112 selection_request_event = GDK_SELECTION_REQUEST, 00113 selection_notify_event = GDK_SELECTION_NOTIFY, 00114 proximity_in_event = GDK_PROXIMITY_IN, 00115 proximity_ou_event = GDK_PROXIMITY_OUT, 00116 client_event = GDK_CLIENT_EVENT, 00117 visibility_notify_event = GDK_VISIBILITY_NOTIFY, 00118 no_expose_event = GDK_NO_EXPOSE, 00119 drag_start_event = GDK_DRAG_ENTER, 00120 drag_stop_event = GDK_DRAG_LEAVE, 00121 dragging_event = GDK_DRAG_MOTION 00122 }; 00123 00124 enum { v_box, h_box, table_box }; 00125 enum { l_justify, c_justify, r_justify , pos_justify = 100}; 00126 enum { h_separator, v_separator }; 00127 enum { shadow_none, shadow_in, shadow_out, 00128 shadow_etched_in, shadow_etched_out }; 00129 enum { Class_level = 8192, Parent_level }; 00130 00131 enum VDKUpdateType 00132 { 00133 update_continuos = GTK_UPDATE_CONTINUOUS, 00134 update_discontinuos = GTK_UPDATE_DISCONTINUOUS, 00135 update_delayed = GTK_UPDATE_DELAYED 00136 }; 00137 00138 /* custom button toggled or not */ 00139 #define VDK_CBUTTON_UNTOGGLED 0x0010 00140 #define VDK_CBUTTON_TOGGLED 0x0020 00141 #define VDK_CBUTTON_TOGGLEMASK 0x00F0 00142 /* custom button type */ 00143 #define VDK_CBUTTON_NORMAL 0x0000 00144 #define VDK_CBUTTON_COMBO 0x0004 00145 #define VDK_CBUTTON_TYPEMASK 0x000F 00146 /* MessageBox icon types */ 00147 #ifndef VDK_ICONSTOP 00148 #define VDK_ICONSTOP 0x0010 00149 #define VDK_ICONWARNING VDK_ICONSTOP 00150 #define VDK_ICONQUESTION 0x0020 00151 #define VDK_ICONINFORMATION 0x0040 00152 #define VDK_ICONERROR 0x0080 00153 #define VDK_ICONMASK 0x00F0 00154 #endif 00155 /* MessageBox type */ 00156 #define VDK_OK 0x0000 00157 #define VDK_YESNO 0x0004 00158 #define VDK_OKCANCEL 0x0008 00159 #define VDK_TYPEMASK 0x000F 00160 /* MessageBox answers */ 00161 #define VDK_IDYES 0x0001 00162 #define VDK_IDNO 0x0002 00163 #define VDK_IDOK 0x0003 00164 #define VDK_IDCANCEL 0x0004 /* (not yet implemented) */ 00165 00166 /* some useful colors */ 00167 #define clWhite VDKRgb(255,255,255) 00168 #define clBlack VDKRgb(0,0,0) 00169 #define clYellow VDKRgb(255,255,0) 00170 #define clRed VDKRgb(255,0,0) 00171 #define clGreen VDKRgb(0,255,0) 00172 #define clBlue VDKRgb(0,0,255) 00173 #define clNavyBlue VDKRgb(0,0,130) 00174 #define clMaroon VDKRgb(146,89,28) 00175 #define clSiena VDKRgb(178,32,32) 00176 #define clIvory VDKRgb(255,255,223) 00177 #define clAirBlue VDKRgb(89,186,231) 00178 #define clLightBlue clAirBlue 00179 #define clDodgerBlue VDKRgb(101,191,212) 00180 00181 /* some useful fonts */ 00182 #define fnFixed14 "fixed Medium 14" 00183 #define fnCourier12 "courier Medium 12" 00184 #define fnCourier14 "courier Medium 12" 00185 #define fnFixed12 "fixed Medium 12" 00186 #define fnLucida12 "lucida Medium 12" 00187 #define fnLucidaBold12 "lucida Bold 12" 00188 #define fnTimesBold12 "times Bold 12" 00189 #define fnTimesBold14 "times Bold 14" 00190 #define fnTimes24 "times Medium 24" 00191 #define fnTimesBold24 "times Bold 24" 00192 00193 #endif 00194 00195 00196 00197 00198

Generated on Tue Aug 17 12:39:51 2004 for vdk 2.4.0 by doxygen 1.3.7