1# data file for the Fltk User Interface Designer (fluid) 2version 1.0100 3header_name {.h} 4code_name {.cxx} 5gridx 5 6gridy 5 7snap 3 8decl {// Quat - A 3D fractal generation program 9// Copyright (C) 1997-2000 Dirk Meyer 10// (email: dirk.meyer@studserv.uni-stuttgart.de) 11// mail: Dirk Meyer 12// Marbacher Weg 29 13// D-71334 Waiblingen 14// Germany 15// 16// This program is free software; you can redistribute it and/or 17// modify it under the terms of the GNU General Public License 18// as published by the Free Software Foundation; either version 2 19// of the License, or (at your option) any later version. 20// 21// This program is distributed in the hope that it will be useful, 22// but WITHOUT ANY WARRANTY; without even the implied warranty of 23// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24// GNU General Public License for more details. 25// 26// You should have received a copy of the GNU General Public License 27// along with this program; if not, write to the Free Software 28// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.} {} 29 30declblock {\#ifdef HAVE_CONFIG_H} {after {\#endif} 31} { 32 decl {\#include <config.h>} {} 33} 34 35decl {bool WriteINI_state = false;} {} 36 37Function {WriteINI(int& mode)} {return_type bool 38} { 39 Fl_Window win { 40 label {Write Parameters to INI file} 41 xywh {367 321 210 187} 42 code0 {\#include "common.h" // PS_ -Defines} modal visible 43 } { 44 Fl_Check_Button OBJ { 45 label {Object Data} 46 xywh {55 40 95 25} down_box DOWN_BOX value 1 selection_color 2 labelsize 12 47 } 48 Fl_Check_Button VIEW { 49 label {View Data} 50 xywh {55 60 90 25} down_box DOWN_BOX value 1 selection_color 2 labelsize 12 51 } 52 Fl_Check_Button COL { 53 label {Color Data} 54 xywh {55 80 90 25} down_box DOWN_BOX value 1 selection_color 2 labelsize 12 55 } 56 Fl_Check_Button OTHER { 57 label {Other Data} selected 58 xywh {55 100 90 25} down_box DOWN_BOX value 1 selection_color 2 labelsize 12 59 } 60 Fl_Box {} { 61 label {Which data to write:} 62 xywh {30 15 140 15} labelsize 12 align 21 63 } 64 Fl_Return_Button ok_button { 65 label OK 66 callback {WriteINI_state = true; win->hide();} 67 xywh {15 150 80 25} shortcut 0xff0d labelsize 12 68 } 69 Fl_Button cancel_button { 70 label Cancel 71 callback {WriteINI_state = false; win->hide();} 72 xywh {115 150 80 25} shortcut 0xff1b 73 } 74 } 75 code {win->show(); 76while (win->shown()) 77{ 78 Fl::wait(); 79} 80mode = 0; 81if (OBJ->value()) mode |= PS_OBJ; 82if (VIEW->value()) mode |= PS_VIEW; 83if (COL->value()) mode |= PS_COL; 84if (OTHER->value()) mode |= PS_OTHER; 85 86delete win; 87 88return WriteINI_state;} {} 89} 90