Browse Source

Get rid of CR's in some files...

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1887 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
pull/168/head
Michael R Sweet 24 years ago
parent
commit
707972408b
  1. 6
      src/Fl_Gl_Window.cxx
  2. 8
      test/CubeView.cxx
  3. 38
      test/browser.cxx
  4. 14
      test/demo.cxx
  5. 10
      test/forms.cxx
  6. 52
      test/keyboard.cxx
  7. 1404
      test/keyboard_ui.fl
  8. 378
      test/valuators.fl

6
src/Fl_Gl_Window.cxx

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
//
// "$Id: Fl_Gl_Window.cxx,v 1.12.2.22.2.6 2001/12/19 09:10:00 matthiaswm Exp $"
// "$Id: Fl_Gl_Window.cxx,v 1.12.2.22.2.7 2001/12/21 14:35:33 easysw Exp $"
//
// OpenGL window code for the Fast Light Tool Kit (FLTK).
//
@ -151,7 +151,7 @@ void Fl_Gl_Window::swap_buffers() { @@ -151,7 +151,7 @@ void Fl_Gl_Window::swap_buffers() {
#ifdef WIN32
# if HAVE_GL_OVERLAY
// Do not swap the overlay, to match GLX:
BOOL ret = wglSwapLayerBuffers(Fl_X::i(this)->private_dc, WGL_SWAP_MAIN_PLANE);
BOOL ret = wglSwapLayerBuffers(Fl_X::i(this)->private_dc, WGL_SWAP_MAIN_PLANE);
DWORD err = GetLastError();;
# else
SwapBuffers(Fl_X::i(this)->private_dc);
@ -368,5 +368,5 @@ void Fl_Gl_Window::draw_overlay() {} @@ -368,5 +368,5 @@ void Fl_Gl_Window::draw_overlay() {}
#endif
//
// End of "$Id: Fl_Gl_Window.cxx,v 1.12.2.22.2.6 2001/12/19 09:10:00 matthiaswm Exp $".
// End of "$Id: Fl_Gl_Window.cxx,v 1.12.2.22.2.7 2001/12/21 14:35:33 easysw Exp $".
//

8
test/CubeView.cxx

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
//
// "$Id: CubeView.cxx,v 1.4.2.4.2.1 2001/12/01 01:54:30 matthiaswm Exp $"
// "$Id: CubeView.cxx,v 1.4.2.4.2.2 2001/12/21 14:35:33 easysw Exp $"
//
// CubeView class implementation for the Fast Light Tool Kit (FLTK).
//
@ -37,8 +37,8 @@ CubeView::CubeView(int x,int y,int w,int h,const char *l) @@ -37,8 +37,8 @@ CubeView::CubeView(int x,int y,int w,int h,const char *l)
{
vAng = 0.0;
hAng=0.0;
size=10.0;
xshift=0.0;
size=10.0;
xshift=0.0;
yshift=0.0;
/* The cube definition. These are the vertices of a unit cube
@ -167,5 +167,5 @@ void CubeView::draw() { @@ -167,5 +167,5 @@ void CubeView::draw() {
#endif /* HAVE_GL */
//
// End of "$Id: CubeView.cxx,v 1.4.2.4.2.1 2001/12/01 01:54:30 matthiaswm Exp $".
// End of "$Id: CubeView.cxx,v 1.4.2.4.2.2 2001/12/21 14:35:33 easysw Exp $".
//

38
test/browser.cxx

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
//
// "$Id: browser.cxx,v 1.5.2.6.2.2 2001/12/01 01:54:30 matthiaswm Exp $"
// "$Id: browser.cxx,v 1.5.2.6.2.3 2001/12/21 14:35:33 easysw Exp $"
//
// Browser test program for the Fast Light Tool Kit (FLTK).
//
@ -113,25 +113,25 @@ int main(int argc, char **argv) { @@ -113,25 +113,25 @@ int main(int argc, char **argv) {
browser->callback(b_cb);
// browser->scrollbar_right();
//browser->has_scrollbar(Fl_Browser::BOTH_ALWAYS);
if (!browser->load(fname)) {
#ifdef _MSC_VER
// if 'browser' was started from the VisualC environment in Win32,
// the current directory is set to the environment itself,
// so we need to correct the browser file path
int done = 1;
if ( i == argc )
{
fname = "../test/browser.cxx";
done = browser->load(fname);
}
if ( !done )
{
printf("Can't load %s, %s\n", fname, strerror(errno));
exit(1);
}
if (!browser->load(fname)) {
#ifdef _MSC_VER
// if 'browser' was started from the VisualC environment in Win32,
// the current directory is set to the environment itself,
// so we need to correct the browser file path
int done = 1;
if ( i == argc )
{
fname = "../test/browser.cxx";
done = browser->load(fname);
}
if ( !done )
{
printf("Can't load %s, %s\n", fname, strerror(errno));
exit(1);
}
#else
printf("Can't load %s, %s\n", fname, strerror(errno));
exit(1);
exit(1);
#endif
}
browser->position(0);
@ -157,6 +157,6 @@ int main(int argc, char **argv) { @@ -157,6 +157,6 @@ int main(int argc, char **argv) {
}
//
// End of "$Id: browser.cxx,v 1.5.2.6.2.2 2001/12/01 01:54:30 matthiaswm Exp $".
// End of "$Id: browser.cxx,v 1.5.2.6.2.3 2001/12/21 14:35:33 easysw Exp $".
//

14
test/demo.cxx

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
//
// "$Id: demo.cxx,v 1.8.2.5.2.3 2001/12/01 01:54:30 matthiaswm Exp $"
// "$Id: demo.cxx,v 1.8.2.5.2.4 2001/12/21 14:35:33 easysw Exp $"
//
// Main demo program for the Fast Light Tool Kit (FLTK).
//
@ -316,11 +316,11 @@ int main(int argc, char **argv) { @@ -316,11 +316,11 @@ int main(int argc, char **argv) {
putenv("FLTK_DOCDIR=../documentation");
create_the_forms();
char buf[256];
strcpy(buf, argv[0]);
#if defined _MSC_VER && defined _DEBUG
// MS_VisualC appends a 'd' to debugging executables. remove it.
filename_setext( buf, "" );
buf[ strlen(buf)-1 ] = 0;
strcpy(buf, argv[0]);
#if defined _MSC_VER && defined _DEBUG
// MS_VisualC appends a 'd' to debugging executables. remove it.
filename_setext( buf, "" );
buf[ strlen(buf)-1 ] = 0;
#endif
filename_setext(buf,".menu");
const char *fname = buf;
@ -340,6 +340,6 @@ int main(int argc, char **argv) { @@ -340,6 +340,6 @@ int main(int argc, char **argv) {
}
//
// End of "$Id: demo.cxx,v 1.8.2.5.2.3 2001/12/01 01:54:30 matthiaswm Exp $".
// End of "$Id: demo.cxx,v 1.8.2.5.2.4 2001/12/21 14:35:33 easysw Exp $".
//

10
test/forms.cxx

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
//
// "$Id: forms.cxx,v 1.4.2.4.2.1 2001/12/01 01:54:30 matthiaswm Exp $"
// "$Id: forms.cxx,v 1.4.2.4.2.2 2001/12/21 14:35:34 easysw Exp $"
//
// Another forms demo for the Fast Light Tool Kit (FLTK).
//
@ -60,9 +60,9 @@ static VN_struct btypes[]= @@ -60,9 +60,9 @@ static VN_struct btypes[]=
{FL_ROUNDED3D_UPBOX,"rounded3d upbox"},
{FL_ROUNDED3D_DOWNBOX,"rounded3d downbox"},
{FL_OVAL3D_UPBOX,"oval3d upbox"},
{FL_OVAL3D_DOWNBOX,"oval3d downbox"},
{FL_PLASTIC_UP_BOX,"plastic upbox"},
{FL_PLASTIC_DOWN_BOX,"plastic downbox"},
{FL_OVAL3D_DOWNBOX,"oval3d downbox"},
{FL_PLASTIC_UP_BOX,"plastic upbox"},
{FL_PLASTIC_DOWN_BOX,"plastic downbox"},
/* sentinel */
{-1}
};
@ -231,5 +231,5 @@ main (int argc, char *argv[]) @@ -231,5 +231,5 @@ main (int argc, char *argv[])
}
//
// End of "$Id: forms.cxx,v 1.4.2.4.2.1 2001/12/01 01:54:30 matthiaswm Exp $".
// End of "$Id: forms.cxx,v 1.4.2.4.2.2 2001/12/21 14:35:34 easysw Exp $".
//

52
test/keyboard.cxx

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
//
// "$Id: keyboard.cxx,v 1.5.2.3.2.1 2001/12/01 01:54:30 matthiaswm Exp $"
// "$Id: keyboard.cxx,v 1.5.2.3.2.2 2001/12/21 14:35:34 easysw Exp $"
//
// Keyboard/event test program for the Fast Light Tool Kit (FLTK).
//
@ -36,39 +36,39 @@ @@ -36,39 +36,39 @@
//
// Please report all bugs and problems to "fltk-bugs@fltk.org".
//
#include <stdio.h>
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
class MyWindow : public Fl_Window {
int handle(int);
public:
MyWindow(int w, int h, const char *t=0L)
: Fl_Window( w, h, t ) { }
};
#include <stdio.h>
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
class MyWindow : public Fl_Window {
int handle(int);
public:
MyWindow(int w, int h, const char *t=0L)
: Fl_Window( w, h, t ) { }
};
#include "keyboard_ui.cxx"
// these are used to identify which buttons are which:
void key_cb(Fl_Button*, void*) {}
void shift_cb(Fl_Button*, void*) {}
void wheel_cb(Fl_Button*, void*) {}
void shift_cb(Fl_Button*, void*) {}
void wheel_cb(Fl_Button*, void*) {}
// this is used to stop Esc from exiting the program:
int handle(int e) {
return (e == FL_SHORTCUT); // eat all keystrokes
}
int MyWindow::handle(int msg) {
if (msg==FL_MOUSEWHEEL)
{
roller->value( roller->value() + Fl::e_dy * roller->step() );
return 1;
}
return 0;
}
int MyWindow::handle(int msg) {
if (msg==FL_MOUSEWHEEL)
{
roller->value( roller->value() + Fl::e_dy * roller->step() );
return 1;
}
return 0;
}
struct {int n; const char* text;} table[] = {
{FL_Escape, "FL_Escape"},
@ -142,11 +142,11 @@ int main(int argc, char** argv) { @@ -142,11 +142,11 @@ int main(int argc, char** argv) {
}
key_output->value(keyname);
text_output->value(Fl::event_text());
text_output->value(Fl::event_text());
}
return 0;
}
//
// End of "$Id: keyboard.cxx,v 1.5.2.3.2.1 2001/12/01 01:54:30 matthiaswm Exp $".
// End of "$Id: keyboard.cxx,v 1.5.2.3.2.2 2001/12/21 14:35:34 easysw Exp $".
//

1404
test/keyboard_ui.fl

File diff suppressed because it is too large Load Diff

378
test/valuators.fl

@ -1,189 +1,189 @@ @@ -1,189 +1,189 @@
# data file for the Fltk User Interface Designer (fluid)
version 1.0100
header_name {.h}
code_name {.cxx}
gridx 5
gridy 5
snap 3
Function {callback(Fl_Widget* o, void*)} {open private return_type void
} {
code {printf("%g \\r", ((Fl_Valuator*)o)->value());
fflush(stdout);} {}
}
Function {} {open
} {
Fl_Window {} {
label {Valuator classes, showing values for type()} open
xywh {382 441 567 506} color 43 selection_color 43
code0 {\#include <stdio.h>} visible
} {
Fl_Box {} {
label Fl_Slider
xywh {10 10 280 210} box ENGRAVED_BOX labelfont 1 align 17
}
Fl_Slider {} {
label 0
callback callback
xywh {30 45 20 145} selection_color 1 labelsize 8 align 1
}
Fl_Slider {} {
label FL_VERT_FILL_SLIDER
callback callback
xywh {70 55 20 145} type {Vert Fill} selection_color 1 labelsize 8
}
Fl_Slider {} {
label FL_VERT_NICE_SLIDER
callback callback
xywh {105 45 20 145} type {Vert Knob} box FLAT_BOX color 10 selection_color 1 labelsize 8 align 1
}
Fl_Box {} {
label Fl_Value_Slider
xywh {10 230 280 205} box ENGRAVED_BOX labelfont 1 align 17
}
Fl_Value_Slider {} {
label 0
callback callback
xywh {30 260 30 145} selection_color 1 labelsize 8 align 1
}
Fl_Value_Slider {} {
label FL_VERT_FILL_SLIDER
callback callback
xywh {70 275 30 140} type {Vert Fill} selection_color 1 labelsize 8
}
Fl_Value_Slider {} {
label FL_VERT_NICE_SLIDER
callback callback
xywh {110 260 20 145} type {Vert Knob} box FLAT_BOX color 10 selection_color 1 labelsize 8 align 1
}
Fl_Slider {} {
label FL_HORIZONTAL
callback callback
xywh {140 80 130 20} type Horizontal selection_color 1 labelsize 8
}
Fl_Slider {} {
label FL_HOR_FILL_SLIDER
callback callback
xywh {140 120 130 20} type {Horz Fill} selection_color 1 labelsize 8
}
Fl_Slider {} {
label FL_HOR_NICE_SLIDER
callback callback
xywh {140 160 130 20} type {Horz Knob} box FLAT_BOX color 10 selection_color 1 labelsize 8
}
Fl_Value_Slider {} {
label FL_HOR_SLIDER
callback callback
xywh {140 290 130 20} type Horizontal selection_color 1 labelsize 8
}
Fl_Value_Slider {} {
label FL_HOR_FILL_SLIDER
callback callback
xywh {140 330 130 20} type {Horz Fill} selection_color 1 labelsize 8
}
Fl_Box {} {
label Fl_Adjuster
xywh {430 10 125 120} box ENGRAVED_BOX labelfont 1 align 17
}
Fl_Value_Slider {} {
label FL_HOR_NICE_SLIDER
callback callback selected
xywh {140 370 130 20} type {Horz Knob} box FLAT_BOX color 10 selection_color 1 labelsize 8
}
Fl_Adjuster {} {
label {w()>h()}
callback callback
xywh {440 60 75 25} labelsize 8
}
Fl_Adjuster {} {
label {w()<h()}
callback callback
xywh {520 35 25 75} labelsize 8
}
Fl_Box {} {
label Fl_Counter
xywh {345 135 210 115} box ENGRAVED_BOX labelfont 1 align 17
}
Fl_Counter {} {
label 0
callback callback
xywh {360 160 180 30} labelsize 8
}
Fl_Counter {} {
label FL_SIMPLE_COUNTER
callback callback
xywh {360 205 180 30} type Simple labelsize 8
}
Fl_Box {} {
label Fl_Dial
xywh {300 260 255 105} box ENGRAVED_BOX labelfont 1 align 17
}
Fl_Dial {} {
label 0
callback callback
xywh {315 280 65 65} color 10 selection_color 1 labelsize 8 value 0.5
code0 {o->angles(0,315);}
}
Fl_Dial {} {
label FL_LINE_DIAL
callback callback
xywh {395 280 65 65} type Line color 10 selection_color 1 labelsize 8 value 0.5
}
Fl_Dial {} {
label FL_FILL_DIAL
callback callback
xywh {475 280 65 65} type Fill color 10 selection_color 1 labelsize 8 value 1
code0 {o->angles(0,360);}
}
Fl_Box {} {
label Fl_Roller
xywh {300 375 145 120} box ENGRAVED_BOX labelfont 1 align 17
}
Fl_Roller {} {
label 0
callback callback
xywh {315 390 20 95} labelsize 8
}
Fl_Roller {} {
label FL_HORIZONTAL
callback callback
xywh {340 430 90 20} type Horizontal labelsize 8
}
Fl_Box {} {
label Fl_Value_Input
xywh {10 445 140 50} box ENGRAVED_BOX labelfont 1 align 17
}
Fl_Box {} {
label {Some widgets have color(FL_GREEN) and color2(FL_RED) to show the areas these effect.}
xywh {455 375 100 120} box BORDER_FRAME color 0 selection_color 0 labelsize 10 align 128
}
Fl_Box {} {
label Fl_Value_Output
xywh {155 445 135 50} box ENGRAVED_BOX labelfont 1 align 17
}
Fl_Value_Input {} {
label 0
callback callback
xywh {30 460 110 30} labelsize 8 maximum 100 step 0.1
}
Fl_Value_Output {} {
label 0
callback callback
xywh {170 460 110 30} labelsize 8 maximum 100 step 0.1
}
Fl_Box {} {
label { Fl_Scrollbar}
xywh {295 10 130 120} box ENGRAVED_BOX labelfont 1 align 21
}
Fl_Scrollbar {} {
label 0
callback callback
xywh {395 20 20 105} labelsize 8 align 1 maximum 100 slider_size 0.3
}
Fl_Scrollbar {} {
label FL_HORIZONTAL
callback callback
xywh {300 65 95 20} type Horizontal labelsize 8 maximum 100 slider_size 0.3
}
}
}
# data file for the Fltk User Interface Designer (fluid)
version 1.0100
header_name {.h}
code_name {.cxx}
gridx 5
gridy 5
snap 3
Function {callback(Fl_Widget* o, void*)} {open private return_type void
} {
code {printf("%g \\r", ((Fl_Valuator*)o)->value());
fflush(stdout);} {}
}
Function {} {open
} {
Fl_Window {} {
label {Valuator classes, showing values for type()} open
xywh {382 441 567 506} color 43 selection_color 43
code0 {\#include <stdio.h>} visible
} {
Fl_Box {} {
label Fl_Slider
xywh {10 10 280 210} box ENGRAVED_BOX labelfont 1 align 17
}
Fl_Slider {} {
label 0
callback callback
xywh {30 45 20 145} selection_color 1 labelsize 8 align 1
}
Fl_Slider {} {
label FL_VERT_FILL_SLIDER
callback callback
xywh {70 55 20 145} type {Vert Fill} selection_color 1 labelsize 8
}
Fl_Slider {} {
label FL_VERT_NICE_SLIDER
callback callback
xywh {105 45 20 145} type {Vert Knob} box FLAT_BOX color 10 selection_color 1 labelsize 8 align 1
}
Fl_Box {} {
label Fl_Value_Slider
xywh {10 230 280 205} box ENGRAVED_BOX labelfont 1 align 17
}
Fl_Value_Slider {} {
label 0
callback callback
xywh {30 260 30 145} selection_color 1 labelsize 8 align 1
}
Fl_Value_Slider {} {
label FL_VERT_FILL_SLIDER
callback callback
xywh {70 275 30 140} type {Vert Fill} selection_color 1 labelsize 8
}
Fl_Value_Slider {} {
label FL_VERT_NICE_SLIDER
callback callback
xywh {110 260 20 145} type {Vert Knob} box FLAT_BOX color 10 selection_color 1 labelsize 8 align 1
}
Fl_Slider {} {
label FL_HORIZONTAL
callback callback
xywh {140 80 130 20} type Horizontal selection_color 1 labelsize 8
}
Fl_Slider {} {
label FL_HOR_FILL_SLIDER
callback callback
xywh {140 120 130 20} type {Horz Fill} selection_color 1 labelsize 8
}
Fl_Slider {} {
label FL_HOR_NICE_SLIDER
callback callback
xywh {140 160 130 20} type {Horz Knob} box FLAT_BOX color 10 selection_color 1 labelsize 8
}
Fl_Value_Slider {} {
label FL_HOR_SLIDER
callback callback
xywh {140 290 130 20} type Horizontal selection_color 1 labelsize 8
}
Fl_Value_Slider {} {
label FL_HOR_FILL_SLIDER
callback callback
xywh {140 330 130 20} type {Horz Fill} selection_color 1 labelsize 8
}
Fl_Box {} {
label Fl_Adjuster
xywh {430 10 125 120} box ENGRAVED_BOX labelfont 1 align 17
}
Fl_Value_Slider {} {
label FL_HOR_NICE_SLIDER
callback callback selected
xywh {140 370 130 20} type {Horz Knob} box FLAT_BOX color 10 selection_color 1 labelsize 8
}
Fl_Adjuster {} {
label {w()>h()}
callback callback
xywh {440 60 75 25} labelsize 8
}
Fl_Adjuster {} {
label {w()<h()}
callback callback
xywh {520 35 25 75} labelsize 8
}
Fl_Box {} {
label Fl_Counter
xywh {345 135 210 115} box ENGRAVED_BOX labelfont 1 align 17
}
Fl_Counter {} {
label 0
callback callback
xywh {360 160 180 30} labelsize 8
}
Fl_Counter {} {
label FL_SIMPLE_COUNTER
callback callback
xywh {360 205 180 30} type Simple labelsize 8
}
Fl_Box {} {
label Fl_Dial
xywh {300 260 255 105} box ENGRAVED_BOX labelfont 1 align 17
}
Fl_Dial {} {
label 0
callback callback
xywh {315 280 65 65} color 10 selection_color 1 labelsize 8 value 0.5
code0 {o->angles(0,315);}
}
Fl_Dial {} {
label FL_LINE_DIAL
callback callback
xywh {395 280 65 65} type Line color 10 selection_color 1 labelsize 8 value 0.5
}
Fl_Dial {} {
label FL_FILL_DIAL
callback callback
xywh {475 280 65 65} type Fill color 10 selection_color 1 labelsize 8 value 1
code0 {o->angles(0,360);}
}
Fl_Box {} {
label Fl_Roller
xywh {300 375 145 120} box ENGRAVED_BOX labelfont 1 align 17
}
Fl_Roller {} {
label 0
callback callback
xywh {315 390 20 95} labelsize 8
}
Fl_Roller {} {
label FL_HORIZONTAL
callback callback
xywh {340 430 90 20} type Horizontal labelsize 8
}
Fl_Box {} {
label Fl_Value_Input
xywh {10 445 140 50} box ENGRAVED_BOX labelfont 1 align 17
}
Fl_Box {} {
label {Some widgets have color(FL_GREEN) and color2(FL_RED) to show the areas these effect.}
xywh {455 375 100 120} box BORDER_FRAME color 0 selection_color 0 labelsize 10 align 128
}
Fl_Box {} {
label Fl_Value_Output
xywh {155 445 135 50} box ENGRAVED_BOX labelfont 1 align 17
}
Fl_Value_Input {} {
label 0
callback callback
xywh {30 460 110 30} labelsize 8 maximum 100 step 0.1
}
Fl_Value_Output {} {
label 0
callback callback
xywh {170 460 110 30} labelsize 8 maximum 100 step 0.1
}
Fl_Box {} {
label { Fl_Scrollbar}
xywh {295 10 130 120} box ENGRAVED_BOX labelfont 1 align 21
}
Fl_Scrollbar {} {
label 0
callback callback
xywh {395 20 20 105} labelsize 8 align 1 maximum 100 slider_size 0.3
}
Fl_Scrollbar {} {
label FL_HORIZONTAL
callback callback
xywh {300 65 95 20} type Horizontal labelsize 8 maximum 100 slider_size 0.3
}
}
}

Loading…
Cancel
Save