e4727142d4
goofed with the layout->resize conversion. Also check fix for mMaxSize being 0 so I set it to textsize()) contrast,inactive -> fl_contrast, fl_inactive, with defines for old names. fl_rect() and fl_rectf() with color args. fl_height, etc. with font,size args. Send FL_RELEASE and FL_DRAG events to the pushed() widget by default. Fix file chooser so it doesn't automatically change dirs if the only matching name is a dir. Updated Fl_Browser_ and Fl_Scrollbar for better mouse wheel support. Moved DLL definitions to new Fl_Export.H. Restore callback functionality in file chooser. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1550 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
84 lines
2.4 KiB
C++
84 lines
2.4 KiB
C++
// generated by Fast Light User Interface Designer (fluid) version 1.0100
|
|
|
|
#ifndef Fl_FileChooser_H
|
|
#define Fl_FileChooser_H
|
|
#include <FL/Fl.H>
|
|
#include <FL/Fl_Window.H>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <FL/Fl_FileBrowser.H>
|
|
#include <FL/Fl_Button.H>
|
|
#include <FL/Fl_Return_Button.H>
|
|
#include <FL/fl_ask.H>
|
|
#include <FL/Fl_Input.H>
|
|
#include <FL/Fl_Choice.H>
|
|
|
|
class Fl_FileChooser {
|
|
public:
|
|
enum { SINGLE, MULTI, CREATE };
|
|
Fl_FileChooser(const char *d, const char *p, int t, const char *title);
|
|
private:
|
|
Fl_Window *window;
|
|
inline void cb_window_i(Fl_Window*, void*);
|
|
static void cb_window(Fl_Window*, void*);
|
|
Fl_FileBrowser *fileList;
|
|
inline void cb_fileList_i(Fl_FileBrowser*, void*);
|
|
static void cb_fileList(Fl_FileBrowser*, void*);
|
|
inline void cb_Cancel_i(Fl_Button*, void*);
|
|
static void cb_Cancel(Fl_Button*, void*);
|
|
Fl_Return_Button *okButton;
|
|
inline void cb_okButton_i(Fl_Return_Button*, void*);
|
|
static void cb_okButton(Fl_Return_Button*, void*);
|
|
Fl_Input *fileName;
|
|
inline void cb_fileName_i(Fl_Input*, void*);
|
|
static void cb_fileName(Fl_Input*, void*);
|
|
Fl_Button *upButton;
|
|
inline void cb_upButton_i(Fl_Button*, void*);
|
|
static void cb_upButton(Fl_Button*, void*);
|
|
Fl_Button *newButton;
|
|
inline void cb_newButton_i(Fl_Button*, void*);
|
|
static void cb_newButton(Fl_Button*, void*);
|
|
Fl_Choice *dirMenu;
|
|
inline void cb_dirMenu_i(Fl_Choice*, void*);
|
|
static void cb_dirMenu(Fl_Choice*, void*);
|
|
inline void cb_allfiles_i(Fl_Button*, void*);
|
|
static void cb_allfiles(Fl_Button*, void*);
|
|
void (*callback_)(Fl_FileChooser*, void *);
|
|
void *data_;
|
|
char directory_[1024];
|
|
int type_;
|
|
void fileListCB();
|
|
void fileNameCB();
|
|
void newdir();
|
|
void up();
|
|
public:
|
|
void callback(void (*cb)(Fl_FileChooser *, void *), void *d);
|
|
void color(Fl_Color c);
|
|
Fl_Color color();
|
|
int count();
|
|
void directory(const char *d);
|
|
char * directory();
|
|
void filter(const char *p);
|
|
const char * filter();
|
|
void hide();
|
|
void iconsize(uchar s);
|
|
uchar iconsize();
|
|
void label(const char *l);
|
|
const char * label();
|
|
void rescan();
|
|
void show();
|
|
void textcolor(Fl_Color c);
|
|
Fl_Color textcolor();
|
|
void textfont(uchar f);
|
|
uchar textfont();
|
|
void textsize(uchar s);
|
|
uchar textsize();
|
|
void type(int t);
|
|
int type();
|
|
const char *value(int f = 1);
|
|
void value(const char *filename);
|
|
int visible();
|
|
};
|
|
#endif
|