source: NonGTP/glut/FLTK/include/fltk/FileChooser.h @ 814

Revision 814, 2.1 KB checked in by gumbau, 18 years ago (diff)

Glut initial import used by Geometry modules

Line 
1// generated by Fast Light User Interface Designer (fluid) version 2.0000
2
3#ifndef fltk_FileChooser_h
4#define fltk_FileChooser_h
5
6#include <fltk/Window.h>
7#include <stdio.h>
8#include <stdlib.h>
9#include <string.h>
10#include <fltk/Choice.h>
11#include <fltk/Button.h>
12#include "filename.h"
13#include <fltk/FileBrowser.h>
14#include <fltk/FileInput.h>
15#include <fltk/ReturnButton.h>
16
17namespace fltk {
18
19class FL_API FileChooser {
20public:
21  enum { SINGLE, MULTI, CREATE };
22  FileChooser(const char *d, const char *p, int t, const char *title);
23  Window *window;
24private:
25  inline void cb_window_i(Window*, void*);
26  static void cb_window(Window*, void*);
27  Choice *dirMenu;
28  inline void cb_dirMenu_i(Choice*, void*);
29  static void cb_dirMenu(Choice*, void*);
30  Button *upButton;
31  inline void cb_upButton_i(Button*, void*);
32  static void cb_upButton(Button*, void*);
33  Button *newButton;
34  inline void cb_newButton_i(Button*, void*);
35  static void cb_newButton(Button*, void*);
36  inline void cb__i(Button*, void*);
37  static void cb_(Button*, void*);
38  FileBrowser *fileList;
39  inline void cb_fileList_i(FileBrowser*, void*);
40  static void cb_fileList(FileBrowser*, void*);
41  FileInput *fileName;
42  inline void cb_fileName_i(FileInput*, void*);
43  static void cb_fileName(FileInput*, void*);
44  ReturnButton *okButton;
45  inline void cb_okButton_i(ReturnButton*, void*);
46  static void cb_okButton(ReturnButton*, void*);
47  inline void cb_Cancel_i(Button*, void*);
48  static void cb_Cancel(Button*, void*);
49  char directory_[1024];
50  int type_;
51  void fileListCB();
52  void fileNameCB();
53  void newdir();
54  void up();
55public:
56  void color(Color c);
57  Color color();
58  int count();
59  void directory(const char *d);
60  char * directory();
61  void exec();
62  void filter(const char *p);
63  const char * filter();
64  void hide();
65  void icon_size(uchar s);
66  uchar icon_size();
67  void label(const char *l);
68  const char * label();
69  void rescan();
70  void textcolor(Color c);
71  Color textcolor();
72  void textfont(Font* f);
73  Font* textfont();
74  void textsize(uchar s);
75  uchar textsize();
76  void type(int t);
77  int type();
78  const char *value(int f = 1);
79  void value(const char *filename);
80  int visible();
81};
82
83}
84#endif
Note: See TracBrowser for help on using the repository browser.