From 9922616d2c3550459c2e043d79b9228fa99560d3 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 15 Oct 1998 14:46:44 +0000 Subject: [PATCH] Removed mystery source files penne.C and penne.H... git-svn-id: file:///fltk/svn/fltk/trunk@15 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/penne.C | 85 --------------------------------------------------- fluid/penne.H | 32 ------------------- 2 files changed, 117 deletions(-) delete mode 100644 fluid/penne.C delete mode 100644 fluid/penne.H diff --git a/fluid/penne.C b/fluid/penne.C deleted file mode 100644 index cc1db0937..000000000 --- a/fluid/penne.C +++ /dev/null @@ -1,85 +0,0 @@ -// generated by Fast Light User Interface Designer (fluid) version 0.99 - -#include "penne.H" - -inline void UserInterface::cb_New_i(Fl_Button*, void*) { - new UserInterface; -} -void UserInterface::cb_New(Fl_Button* o, void* v) { - ((UserInterface*)(o->parent()->user_data()))->cb_New_i(o,v); -} - -inline void UserInterface::cb_Delete_i(Fl_Button*, void*) { - delete this; -} -void UserInterface::cb_Delete(Fl_Button* o, void* v) { - ((UserInterface*)(o->parent()->user_data()))->cb_Delete_i(o,v); -} - -inline void UserInterface::cb_button1_i(Fl_Light_Button* o, void*) { - Button->value(o->value()); -} -void UserInterface::cb_button1(Fl_Light_Button* o, void* v) { - ((UserInterface*)(o->parent()->user_data()))->cb_button1_i(o,v); -} - -inline void UserInterface::cb_When_i(Fl_Menu_* o, void*) { - Button->value(o->value()); -} -void UserInterface::cb_When(Fl_Menu_* o, void* v) { - ((UserInterface*)(o->parent()->user_data()))->cb_When_i(o,v); -} - -Fl_Menu_Item UserInterface::menu_[] = { - {"coucou", 0, 0, 0, 64, 0, 3, 14, 0}, - {"When you press this, it should crash !", 0, (Fl_Callback*)UserInterface::cb_When, 0, 2, 0, 3, 14, 0}, - {0}, - {0} -}; - -UserInterface::UserInterface() { - Fl_Window *w; - { Fl_Window* o = new Fl_Window(375, 199); - w = Win = o; - o->user_data((void*)(this)); - { Fl_Button* o = new Fl_Button(35, 145, 120, 35, "New window"); - o->callback((Fl_Callback*)cb_New); - } - { Fl_Button* o = new Fl_Button(215, 145, 120, 35, "Delete window"); - o->callback((Fl_Callback*)cb_Delete); - } - { Fl_Light_Button* o = new Fl_Light_Button(45, 25, 95, 25, "button1"); - o->callback((Fl_Callback*)cb_button1); - } - { Fl_Check_Button* o = new Fl_Check_Button(220, 25, 95, 25, "button2"); - Button = o; - o->down_box(FL_DIAMOND_DOWN_BOX); - } - { Fl_Tile* o = new Fl_Tile(110, 55, 165, 80); - { Fl_Box* o = new Fl_Box(110, 55, 165, 50, "label"); - o->box(FL_DOWN_BOX); - } - { Fl_Box* o = new Fl_Box(110, 105, 80, 30, "label"); - o->box(FL_DOWN_BOX); - } - { Fl_Box* o = new Fl_Box(190, 105, 85, 30, "label"); - o->box(FL_DOWN_BOX); - } - o->end(); - } - { Fl_Menu_Bar* o = new Fl_Menu_Bar(0, 0, 375, 25); - o->menu(menu_); - } - w->end(); - } - Win->show(); -} - -UserInterface::~UserInterface() { - delete Win; -} - -int main() { - new UserInterface; -return Fl::run(); -} diff --git a/fluid/penne.H b/fluid/penne.H deleted file mode 100644 index ebabab473..000000000 --- a/fluid/penne.H +++ /dev/null @@ -1,32 +0,0 @@ -// generated by Fast Light User Interface Designer (fluid) version 0.99 - -#include -#include -#include -#include -#include -#include -#include -#include - -class UserInterface { -public: - UserInterface(); - Fl_Window *Win; -private: - inline void cb_New_i(Fl_Button*, void*); - static void cb_New(Fl_Button*, void*); - inline void cb_Delete_i(Fl_Button*, void*); - static void cb_Delete(Fl_Button*, void*); - inline void cb_button1_i(Fl_Light_Button*, void*); - static void cb_button1(Fl_Light_Button*, void*); -public: - Fl_Check_Button *Button; - static Fl_Menu_Item menu_[]; -private: - inline void cb_When_i(Fl_Menu_*, void*); - static void cb_When(Fl_Menu_*, void*); -public: - ~UserInterface(); -}; -int main();