|
fltk 1.3.0rc3
About: FLTK (Fast Light Tool Kit) is a cross-platform C++ GUI toolkit for UNIX/Linux (X11), Microsoft Windows, and MacOS X. Release candidate.
SfR Fresh Dox: fltk-1.3.0rc3-source.tar.gz ("inofficial" and yet experimental doxygen-generated source code documentation) ![]() |
00001 // 00002 // "$Id: about_panel.cxx 8144 2010-12-30 16:17:49Z AlbrechtS $" 00003 // 00004 // About dialog for the Fast Light Tool Kit (FLTK). 00005 // 00006 // Copyright 1998-2010 by Bill Spitzak and others. 00007 // 00008 // This library is free software; you can redistribute it and/or 00009 // modify it under the terms of the GNU Library General Public 00010 // License as published by the Free Software Foundation; either 00011 // version 2 of the License, or (at your option) any later version. 00012 // 00013 // This library is distributed in the hope that it will be useful, 00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 // Library General Public License for more details. 00017 // 00018 // You should have received a copy of the GNU Library General Public 00019 // License along with this library; if not, write to the Free Software 00020 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00021 // USA. 00022 // 00023 // Please report all bugs and problems on the following page: 00024 // 00025 // http://www.fltk.org/str.php 00026 // 00027 00028 // generated by Fast Light User Interface Designer (fluid) version 1.0300 00029 00030 #include "about_panel.h" 00031 void show_help(const char *name); 00032 00033 Fl_Double_Window *about_panel=(Fl_Double_Window *)0; 00034 00035 #include <FL/Fl_Pixmap.H> 00036 static const char *idata_fluid[] = { 00037 "96 96 32 1", 00038 " \tc None", 00039 ".\tc #000100", 00040 "+\tc #031F3F", 00041 "@\tc #00366C", 00042 "#\tc #2E302D", 00043 "$\tc #0058AC", 00044 "%\tc #0060BF", 00045 "&\tc #4E504D", 00046 "*\tc #14659F", 00047 "=\tc #006DDC", 00048 "-\tc #2C7087", 00049 ";\tc #0080FF", 00050 ">\tc #407B74", 00051 ",\tc #0F85F9", 00052 "\'\tc #268CCD", 00053 ")\tc #7C7E7B", 00054 "!\tc #2D92EC", 00055 "~\tc #4498A9", 00056 "{\tc #2F94FE", 00057 "]\tc #5BA18C", 00058 "^\tc #6BA674", 00059 "/\tc #7DAD62", 00060 "(\tc #93BD53", 00061 "_\tc #A4A6A2", 00062 ":\tc #6CB6FF", 00063 "<\tc #ABCC3F", 00064 "[\tc #C4DA2A", 00065 "}\tc #CACCC9", 00066 "|\tc #DCE913", 00067 "1\tc #BBDEFF", 00068 "2\tc #FDFE00", 00069 "3\tc #FDFFFC", 00070 " \ 00071 ", 00072 " \ 00073 ", 00074 " \ 00075 ", 00076 " ........... \ 00077 ", 00078 " ...................... \ 00079 ", 00080 " ........................ \ 00081 ", 00082 " ........#&#&#&#&##...... \ 00083 ", 00084 " ....)__}33333333333}_... \ 00085 ", 00086 " ...&33333333333333333... \ 00087 ", 00088 " ...#33311133333333333... \ 00089 ", 00090 " ...&33!,{,;:333333333... \ 00091 ", 00092 " ...&3:,{{{{,13333333}... \ 00093 ", 00094 " ...&3!{{!{{,13333333}... \ 00095 ", 00096 " ...&3:!{{!{;13333333}... \ 00097 ", 00098 " ...&3{{{{{{;133333333... \ 00099 ", 00100 " ...&31,{{{;,33333333}... \ 00101 ", 00102 " ...&331{{{:133333333}... \ 00103 ", 00104 " ...&3333333333333333_... \ 00105 ", 00106 " ...&3333333333333333}... \ 00107 ", 00108 " ...&3333333333333333_... \ 00109 ", 00110 " ...&3333333333333333}... \ 00111 ", 00112 " ...&3333333333333333_... \ 00113 ", 00114 " ...&3333333333333333}... \ 00115 ", 00116 " ...&3333333333333333_... \ 00117 ", 00118 " ...&3333333331!,,;:3}... \ 00119 ", 00120 " ...&333333333{{{{{;:_... \ 00121 ", 00122 " ...&333333331,{!{!{{}... \ 00123 ", 00124 " ...&333333331{{{{{{,_... \ 00125 ", 00126 " ...)333333331{{!{{{{_... \ 00127 ", 00128 " ...)333333333{{{!{;:_... \ 00129 ", 00130 " ...)3333333331{;;;:3_... \ 00131 ", 00132 " ...)3333333333331333_... \ 00133 ", 00134 " ...)3333333333333333_... \ 00135 ", 00136 " ...)3333333333333333_... \ 00137 ", 00138 " ..._3333333333333333_... \ 00139 ", 00140 " ..._3333333333333333_... \ 00141 ", 00142 " ..._3333333333333333_... \ 00143 ", 00144 " ..._3333333333333333}.... \ 00145 ", 00146 " ...._33333333333333333#... \ 00147 ", 00148 " ....&333333333333333333_.... \ 00149 ", 00150 " ....&33333333333333333333).... \ 00151 ", 00152 " ....333333333333333333333}&.... \ 00153 ", 00154 " ...._33333333333333333333333.... \ 00155 ", 00156 " ....&333333333331:11333333333_.... \ 00157 ", 00158 " ....#33333333333:,,,;:333333333&.... \ 00159 ", 00160 " ....}3333333333:,!{{{;1333333333&.... \ 00161 ", 00162 " ....}33333333333{{{!{{,!3333333333.... \ 00163 ", 00164 " ....)333333333333{{{{!{{{3333333333_.... \ 00165 ", 00166 " ....#3333333333333!{{{{{,:33333333333&.... \ 00167 ", 00168 " ...._33333333333331{{!{,;1333333333333#.... \ 00169 ", 00170 " ...._333333333333333:;,;,13333333333333_.... \ 00171 ", 00172 " ...._333333333333333333113333333333333333_.... \ 00173 ", 00174 " ....&33333333333333333333333333331::1333333&.... \ 00175 ", 00176 " ...._333333333333333333333333333{,{{;{133333#... \ 00177 ", 00178 " ...._3333333333333333333333333331,{!{{,:33333}.... \ 00179 ", 00180 " ....&3333333333133333333333333333:{{{{{{:333333).... \ 00181 ", 00182 " ...#333333331{,,;:333333333333333:{!{!{{:3333333&.... \ 00183 ", 00184 " ....}33333333,{{{{;:333333333333331,{!{{;:33333333#... \ 00185 ", 00186 " ...._333333331,!{!{{,333333333333333{,{{;{1333333333.... \ 00187 ", 00188 " ....&3333333331{{{{{{{3333333333333333::::33333333333)....\ 00189 ", 00190 " ....+!:::::::::{{{{!{{;::::::::::::::::::::::::::!:::::+...\ 00191 . ", 00192 " ...+=;;;;;;;;;;;;{{{{;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;=...\ 00193 . ", 00194 " ....%;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;%..\ 00195 .. ", 00196 " ....@;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;$.\ 00197 ... ", 00198 " ...+%;;;;;;!!!;;;;;,;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;!=;;;+\ 00199 .... ", 00200 " ....%;;;;;!([<|^~]^([%;;;;;;;;;;;;;;;;;,(<\'=;;;;;;;!^/<[|\'=;\ 00201 ;=+... ", 00202 " ....$;;;;;\'|2>]22<|22[%=;;;;;;;;;;;;;;;;^22[%=;;;;;;!][22|%=;;\ 00203 ;$.... ", 00204 " ....@;;;;;;[2[%^2|*[22(%=;;;;;;;;;;;;;;;,/22|$=;;;;;;;;<22<%=;;;\ 00205 ;$.... ", 00206 " ....+=;;;;;~22^$%]~$|22>%=;;;;;;;;;;;;;;;;\'||^%=;;;;;;;,[22^$=;;\ 00207 ;;;+.... ", 00208 " ....%;;;;;,[22-%===\'22|*==;;;;;;;;;;;;;;;;;;=%=;;;;;;;;\'22|*%=;\ 00209 ;;;;=+... ", 00210 " ....$;;;;;;!22|$%;,;^22<$=;;;;;;;;;;;;;;;;;;===;;;;;;;;;^22|$==;;;\ 00211 ;;;%.... ", 00212 " ....@;;;;;\'](22[^]=;;<22^$==!~]/~=;!]]~;;;;{\'~]==;;;;~<<]<22($=;;\ 00213 ;;;;;;@.... ", 00214 " ....@;;;;;;]<|22|[<%;!|22-%\'[2222*=;/22(%;~|222(=;;;!<2|^[222>$=;;;\ 00215 ;;;;;;+.... ", 00216 " ....=;;;;;;;,[22>$===~22|$==,[22[%=;[22]%=,!|22]%=;![2|*%]22|*==;;;;\ 00217 ;;;;;%+... ", 00218 " ....@;;;;;;;;!|22*$=;;/22($=;,[22/$=\'222*%=;!|22-%;;<22>%=]22[$%;;;;\ 00219 ;;;;;;;=.... ", 00220 " ....@;;;;;;;;;~22[*==;;[22>%=;\'22|-%,^22[$=;,~22[$%;]22<$%=(22/$=;;;;\ 00221 ;;;;;;;;@.... ", 00222 " ....+;;;;;;;;;;^22<$=;;!222*$=;]22[$==[22/$=;;(22/$=![22]$=;|22-%=;;;;;\ 00223 ;;;;;;;;+... ", 00224 " ....;;;;;;;;;;;<22^%=;;]22[$=;;(22/$=~222-%=;;[22>%=]22|$%;~22|$==;;;;;\ 00225 ;;;;;;;;;.... ", 00226 " ....%;;;;;;;;;;;|22-%=;;(22/$=;{|22-%=<22|$%;;\'22|*%;<22<$==(22<$=;=;;;\ 00227 ;;;;;;;;;;$.... ", 00228 " ....+;;;;;;;;;;;!222$==;,|22>%=;~22|$=]|22($=;;]22[$%,|22^%=!|22^$=;;;;;;\ 00229 ;;;;;;;;;;@.... ", 00230 " ....+=;;;;;;;;;;;~22[$%;;\'22|*-/;]22($*[<22^$^=;(22/$(-222>$=(222->~;;;;;\ 00231 ;;;;;;;;;;;=+.... ", 00232 " ...+;;;;;;;;;;;;;(22/$=;;]22|*<\'=(22/*[~[22>(]=;|22>//=|22/$^(|2|-[%=;;;;\ 00233 ;;;;;;;;;;;;=.... ", 00234 " ....$;;;;;;;;;;;;;<22>%=;;]222|>==(222|^=|22|<%=;|222<%=(222|<-222|-==;;;;;\ 00235 ;;;;;;;;;;;;$.... ", 00236 " ....@;;;;;;;;;;;;;!|2|$=;;;\'[2[>%=;\'|2[]%=/2|/$==;^2|(*%=!(2|($%<2[-%=;;;;\ 00237 ;;;;;;;;;;;;;;;@.... ", 00238 "....@;;;;;;;;;;;;;;\'22($%;;;;=%%==;;;=%%%==;=%%==;;;=%===;;==%%====%%=,;;;;;\ 00239 ;;;;;;;;;;;;;;;+... ", 00240 "...+=;;;;;;;;;;!\'=,]22-%=;;;;;;==;=;;;===;=;;===;;;;;===;;;;=;=,;;,=;=;;;;;;\ 00241 ;;;;;;;;;;;;;;;=....", 00242 "...+;;;;;;;;;;;[2^=<2<$==;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\ 00243 ;;;;;;;;;;;;;;;+...", 00244 "...+;;;;;;;;;;;22(\'2|*%=;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\ 00245 ;;;;;;;;;;;;;;;;+...", 00246 "...+;;;;;;;;;;;^|<[[-%=;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\ 00247 ;;;;;;;;;;;;;;;+...", 00248 "...+;;;;;;;;;;;;*~*%===;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\ 00249 ;;;;;;;;;;;;;;;@...", 00250 "...+;;;;;;;;;;;;;====;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\ 00251 ;;;;;;;;;;;;;;;+...", 00252 "....$=;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\ 00253 ;;;;;;;;;;;;;=$....", 00254 " .....+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\ 00255 +++++++++++++..... ", 00256 " ............................................................................\ 00257 ................. ", 00258 " ...........................................................................\ 00259 ................. ", 00260 " ........................................................................\ 00261 .............. " 00262 }; 00263 static Fl_Pixmap image_fluid(idata_fluid); 00264 00265 static void cb_View(Fl_Button*, void*) { 00266 show_help("license.html"); 00267 } 00268 00269 static void cb_Close(Fl_Return_Button* o, void*) { 00270 ((Fl_Window*)(o->parent()))->hide(); 00271 } 00272 00273 Fl_Double_Window* make_about_panel() { 00274 { about_panel = new Fl_Double_Window(345, 180, "About FLUID"); 00275 about_panel->color(FL_LIGHT1); 00276 about_panel->selection_color(FL_DARK1); 00277 about_panel->hotspot(about_panel); 00278 { Fl_Box* o = new Fl_Box(10, 10, 115, 120); 00279 o->image(image_fluid); 00280 } // Fl_Box* o 00281 { Fl_Box* o = new Fl_Box(135, 10, 200, 70, "FLTK User\nInterface Designer\nVersion 1.3.0"); 00282 o->color((Fl_Color)12); 00283 o->selection_color(FL_DARK1); 00284 o->labelfont(1); 00285 o->labelsize(18); 00286 o->align(Fl_Align(FL_ALIGN_TOP_LEFT|FL_ALIGN_INSIDE)); 00287 } // Fl_Box* o 00288 { Fl_Box* o = new Fl_Box(135, 90, 200, 45, "Copyright 1998-2010 by\nBill Spitzak and others"); 00289 o->align(Fl_Align(132|FL_ALIGN_INSIDE)); 00290 } // Fl_Box* o 00291 { Fl_Button* o = new Fl_Button(115, 145, 123, 25, "View License..."); 00292 o->labelcolor(FL_DARK_BLUE); 00293 o->callback((Fl_Callback*)cb_View); 00294 } // Fl_Button* o 00295 { Fl_Return_Button* o = new Fl_Return_Button(250, 145, 83, 25, "Close"); 00296 o->callback((Fl_Callback*)cb_Close); 00297 } // Fl_Return_Button* o 00298 about_panel->set_non_modal(); 00299 about_panel->end(); 00300 } // Fl_Double_Window* about_panel 00301 return about_panel; 00302 } 00303 00304 // 00305 // End of "$Id: about_panel.cxx 8144 2010-12-30 16:17:49Z AlbrechtS $". 00306 //