Removed more old files.
git-svn-id: file:///fltk/svn/fltk/trunk@40 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
c024a43be8
commit
386d9b4a36
123
fluid/class.C
123
fluid/class.C
@ -1,123 +0,0 @@
|
||||
// generated by Fast Light User Interface Designer (fluid) version 0.99
|
||||
|
||||
#include "class.H"
|
||||
|
||||
inline void essai::cb_button_i(Fl_Button*, void*) {
|
||||
printf("button\n");
|
||||
}
|
||||
void essai::cb_button(Fl_Button* o, void* v) {
|
||||
((essai*)(o->parent()->user_data()))->cb_button_i(o,v);
|
||||
}
|
||||
|
||||
inline void essai::cb_unnamed_i(Fl_Button*, void*) {
|
||||
printf("unnamed\n");
|
||||
}
|
||||
void essai::cb_unnamed(Fl_Button* o, void* v) {
|
||||
((essai*)(o->parent()->user_data()))->cb_unnamed_i(o,v);
|
||||
}
|
||||
|
||||
inline void essai::cb_src_i(Fl_Button*, void*) {
|
||||
(new essai)->win->show();
|
||||
}
|
||||
void essai::cb_src(Fl_Button* o, void* v) {
|
||||
((essai*)(o->parent()->user_data()))->cb_src_i(o,v);
|
||||
}
|
||||
|
||||
#include <FL/Fl_Bitmap.H>
|
||||
static char bits_ew_mask[] = {
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 24, 24, 28, 56, 254, 127, 255, 255, 255, 255, 254, 127, 28, 56, 24, 24, 0, 0, 0, 0, 0, 0, 0, 0
|
||||
};
|
||||
static Fl_Bitmap bitmap_ew_mask(bits_ew_mask, 16, 16);
|
||||
|
||||
inline void essai::cb_change_i(Fl_Menu_*, void*) {
|
||||
cbox->color(cbox->color()+1);
|
||||
cbox->redraw();
|
||||
}
|
||||
void essai::cb_change(Fl_Menu_* o, void* v) {
|
||||
((essai*)(o->parent()->user_data()))->cb_change_i(o,v);
|
||||
}
|
||||
|
||||
Fl_Menu_Item essai::menu_menu[] = {
|
||||
{"change color", 0, (Fl_Callback*)essai::cb_change, 0, 0, 0, 3, 14, 0},
|
||||
{"radio off", 0, 0, 0, 8, 0, 3, 14, 0},
|
||||
{"radio on", 0, 0, 0, 12, 0, 3, 14, 0},
|
||||
{"toggle off", 0, 0, 0, 2, 0, 3, 14, 0},
|
||||
{"toggle on", 0, 0, 0, 6, 0, 3, 14, 0},
|
||||
{"new item 5", 0, 0, 0, 0, 0, 3, 14, 0},
|
||||
{"new item 6", 0, 0, 0, 0, 0, 3, 14, 0},
|
||||
{"new item 7", 0, 0, 0, 0, 0, 3, 14, 0},
|
||||
{"new item 8", 0, 0, 0, 0, 0, 3, 14, 0},
|
||||
{"new item 9", 0, 0, 0, 0, 0, 3, 14, 0},
|
||||
{"new item 10", 0, 0, 0, 0, 0, 3, 14, 0},
|
||||
{"new item 11", 0, 0, 0, 0, 0, 3, 14, 0},
|
||||
{"new item 12", 0, 0, 0, 0, 0, 3, 14, 0},
|
||||
{"new item 13", 0, 0, 0, 0, 0, 3, 14, 0},
|
||||
{"new item 14", 0, 0, 0, 0, 0, 3, 14, 0},
|
||||
{"new item 15", 0, 0, 0, 0, 0, 3, 14, 0},
|
||||
{"new item 16", 0, 0, 0, 0, 0, 3, 14, 0},
|
||||
{"new item 17", 0, 0, 0, 0, 0, 3, 14, 0},
|
||||
{"new item 18", 0, 0, 0, 0, 0, 3, 14, 0},
|
||||
{"new item 19", 0, 0, 0, 0, 0, 3, 14, 0},
|
||||
{"new item 20", 0, 0, 0, 0, 0, 3, 14, 0},
|
||||
{"new item 21", 0, 0, 0, 0, 0, 3, 14, 0},
|
||||
{"new item 22", 0, 0, 0, 0, 0, 3, 14, 0},
|
||||
{"new item 23", 0, 0, 0, 0, 0, 3, 14, 0},
|
||||
{"new item 24", 0, 0, 0, 0, 0, 3, 14, 0},
|
||||
{0}
|
||||
};
|
||||
|
||||
inline void essai::cb_color_i(Fl_Button*, void*) {
|
||||
cbox->color(cbox->color()+1);
|
||||
cbox->redraw();
|
||||
}
|
||||
void essai::cb_color(Fl_Button* o, void* v) {
|
||||
((essai*)(o->parent()->user_data()))->cb_color_i(o,v);
|
||||
}
|
||||
|
||||
inline void essai::cb_delete_i(Fl_Button*, void*) {
|
||||
delete this;
|
||||
}
|
||||
void essai::cb_delete(Fl_Button* o, void* v) {
|
||||
((essai*)(o->parent()->user_data()))->cb_delete_i(o,v);
|
||||
}
|
||||
|
||||
essai::essai() {
|
||||
Fl_Window *w;
|
||||
{ Fl_Window* o = win = w = new Fl_Window(282, 193);
|
||||
o->user_data((void*)(this));
|
||||
{ Fl_Button* o = new Fl_Button(10, 10, 55, 35, "button");
|
||||
o->callback((Fl_Callback*)cb_button);
|
||||
}
|
||||
{ Fl_Button* o = new Fl_Button(10, 45, 145, 35, "unnamed");
|
||||
o->callback((Fl_Callback*)cb_unnamed);
|
||||
}
|
||||
{ Fl_Button* o = new Fl_Button(10, 80, 145, 35);
|
||||
bitmap_ew_mask.label(o);
|
||||
o->callback((Fl_Callback*)cb_src);
|
||||
}
|
||||
{ Fl_Menu_Button* o = new Fl_Menu_Button(10, 115, 145, 35, "menu");
|
||||
o->menu(menu_menu);
|
||||
}
|
||||
{ Fl_Button* o = new Fl_Button(70, 150, 85, 35, "color");
|
||||
o->callback((Fl_Callback*)cb_color);
|
||||
}
|
||||
new Fl_Button(200, 10, 55, 35, "boring");
|
||||
{ Fl_Box* o = cbox = new Fl_Box(165, 80, 55, 35, "color");
|
||||
o->box(FL_FLAT_BOX);
|
||||
}
|
||||
{ Fl_Button* o = new Fl_Button(200, 125, 55, 35, "delete this");
|
||||
o->callback((Fl_Callback*)cb_delete);
|
||||
}
|
||||
button_variable = new Fl_Button(100, 10, 55, 35, "button");
|
||||
w->end();
|
||||
}
|
||||
}
|
||||
|
||||
essai::~essai() {
|
||||
delete win;
|
||||
}
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
essai E; E.win->show();
|
||||
return Fl::run();
|
||||
}
|
@ -1,34 +0,0 @@
|
||||
// generated by Fast Light User Interface Designer (fluid) version 0.99
|
||||
|
||||
#include <FL/Fl.H>
|
||||
#include <FL/Fl_Box.H>
|
||||
#include <FL/Fl_Button.H>
|
||||
#include <FL/Fl_Menu_Button.H>
|
||||
#include <FL/Fl_Window.H>
|
||||
#include <stdio.h>
|
||||
|
||||
class essai {
|
||||
public:
|
||||
essai();
|
||||
Fl_Window *win;
|
||||
private:
|
||||
inline void cb_button_i(Fl_Button*, void*);
|
||||
static void cb_button(Fl_Button*, void*);
|
||||
inline void cb_unnamed_i(Fl_Button*, void*);
|
||||
static void cb_unnamed(Fl_Button*, void*);
|
||||
inline void cb_src_i(Fl_Button*, void*);
|
||||
static void cb_src(Fl_Button*, void*);
|
||||
static Fl_Menu_Item menu_menu[];
|
||||
inline void cb_change_i(Fl_Menu_*, void*);
|
||||
static void cb_change(Fl_Menu_*, void*);
|
||||
inline void cb_color_i(Fl_Button*, void*);
|
||||
static void cb_color(Fl_Button*, void*);
|
||||
public:
|
||||
Fl_Box *cbox;
|
||||
private:
|
||||
inline void cb_delete_i(Fl_Button*, void*);
|
||||
static void cb_delete(Fl_Button*, void*);
|
||||
public:
|
||||
Fl_Button *button_variable;
|
||||
~essai();
|
||||
};
|
Loading…
Reference in New Issue
Block a user