~ubuntu-branches/ubuntu/intrepid/gmsh/intrepid

« back to all changes in this revision

Viewing changes to Fltk/GUI.h

  • Committer: Bazaar Package Importer
  • Author(s): Andrea Veri
  • Date: 2007-07-14 23:29:56 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070714232956-ikw2f28278kxkquw
Tags: 2.0.8-1ubuntu1
* Merge from debian unstable, remaining changes:
  debian/rules:
    - added dh_desktop for registering gmsh.desktop file.
  debian/gmsh.install:
    - Installing both gmsh.desktop and respective icon.
  debian/menu:
    - added gmsh icon path
  debian/control:
    - Modify Maintainer value to match Debian-Maintainer-Field Spec.

* removing 02_gcc4.3-FTBFS.dpatch previously added in ubuntu, it has been reported 
  and fixed upstream with the new usptream release (2.0.8).
  Check debian bug #417211 for confirmation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
extern Context_Item menu_solver[]; 
96
96
extern Context_Item menu_post[]; 
97
97
 
98
 
// Forward Declarations
99
 
 
100
 
class GMSH_Plugin;
101
 
 
102
98
// A generalized dialogbox for plugins
103
99
 
104
100
#define MAX_PLUGIN_OPTIONS 50
105
101
 
 
102
class GMSH_Plugin;
 
103
 
106
104
struct PluginDialogBox
107
105
{
108
 
  int current_view_index;
109
 
  Fl_Window *main_window;
110
 
  Fl_Return_Button *run_button;
 
106
  Fl_Group *group;
111
107
  Fl_Value_Input *value[MAX_PLUGIN_OPTIONS];
112
108
  Fl_Input *input[MAX_PLUGIN_OPTIONS];
113
109
};
130
126
  int MH, fontsize;
131
127
  Fl_Scroll *m_scroll;
132
128
 
133
 
  // Bitmaps
134
 
  Fl_Bitmap  *abort_bmp, *start_bmp, *stop_bmp, *rewind_bmp, *rotate_bmp, *ortho_bmp;
135
 
  void add_post_plugins(Popup_Button *button , int iView);
136
129
  void add_multiline_in_browser(Fl_Browser *o, char* prefix, char *str);
137
130
 
138
131
public:
151
144
  std::vector<Popup_Button*>    m_popup_butt;
152
145
  std::vector<Popup_Button*>    m_popup2_butt;
153
146
  std::vector<char*>            m_pop_label;
154
 
  std::vector<std::pair<int, GMSH_Plugin*>*> m_pop_plugin;
155
147
 
156
148
  // graphic window
157
149
  Fl_Window        *g_window;
158
150
  Opengl_Window    *g_opengl_window;
159
 
  Fl_Button        *g_status_butt[10];
 
151
  Fl_Button        *g_status_butt[12];
160
152
  Fl_Box           *g_status_label[2];
161
153
 
162
154
  // Option window
219
211
  Fl_Return_Button *view_ok;
220
212
  Fl_Menu_Button   *view_menu_butt[2];
221
213
 
 
214
  // Plugin window
 
215
  Fl_Window        *plugin_window;
 
216
  Fl_Hold_Browser  *plugin_browser;
 
217
  Fl_Multi_Browser *plugin_view_browser;
 
218
  Fl_Return_Button *plugin_run;
 
219
 
222
220
  // statistics window
223
221
  Fl_Window        *stat_window;
224
222
  Fl_Output        *stat_value[50];
282
280
  void create_mesh_options_window();
283
281
  void create_solver_options_window();
284
282
  void create_post_options_window();
285
 
  PluginDialogBox *create_plugin_window(GMSH_Plugin *p);
286
283
  void create_view_options_window(int numview);
 
284
  void create_plugin_dialog_box(GMSH_Plugin *p, int x, int y, int width, int height);
 
285
  void create_plugin_window(int numview);
287
286
  void create_visibility_window(bool redraw_only=false);
288
287
  void create_clip_window();
289
288
  void create_manip_window();
319
318
  int  arrow_shortcuts();
320
319
  void reset_visibility();
321
320
  void reset_option_browser();
 
321
  void reset_plugin_view_browser();
322
322
  void reset_clip_browser();
323
323
  void update_manip_window(int force=0);
324
324
  void reset_external_view_list();
332
332
int GetFontEnum(int index);
333
333
char *GetFontName(int index);
334
334
int GetFontAlign(char *alignstr);
 
335
int GetFontSize();
335
336
 
336
337
#endif
337
338