-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #12 starting to learn FLTK with new test.fld UI
- Loading branch information
Chris Stuart
committed
Aug 24, 2016
1 parent
f987f1d
commit 866caa4
Showing
9 changed files
with
131 additions
and
21,954 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Viewer settings | ||
runfile quadtest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// generated by Fast Light User Interface Designer (fluid) version 1.0303 | ||
|
||
#include "test.h" | ||
void userAction(Fl_Widget* target); | ||
void userAction(selection sel, Ca_Canvas* sender); | ||
void reduce_all(); | ||
|
||
Fl_Double_Window* UserInterface::make_window() { | ||
{ main_window = new Fl_Double_Window(900, 510, "Tritium Diffusion Software - v0.1 - Chris Stuart"); | ||
main_window->user_data((void*)(this)); | ||
{ grp_run_file = new Fl_Group(25, 102, 366, 326); | ||
grp_run_file->box(FL_THIN_UP_BOX); | ||
{ txdsp_run_file_name = new Fl_Text_Display(30, 126, 351, 45, "Current run file:"); | ||
txdsp_run_file_name->box(FL_THIN_UP_FRAME); | ||
txdsp_run_file_name->align(Fl_Align(FL_ALIGN_CENTER)); | ||
} // Fl_Text_Display* txdsp_run_file_name | ||
grp_run_file->end(); | ||
} // Fl_Group* grp_run_file | ||
main_window->size_range(900, 510, 900, 510); | ||
main_window->end(); | ||
} // Fl_Double_Window* main_window | ||
return main_window; | ||
} | ||
|
||
void UserInterface::show() { | ||
make_window(); | ||
//ChnButton[0]=Chn0; | ||
main_window->show(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# data file for the Fltk User Interface Designer (fluid) | ||
version 1.0303 | ||
header_name {.h} | ||
code_name {.cxx} | ||
decl {\#include <FL/Fl_File_Chooser.H>} {public local | ||
} | ||
|
||
decl {\#include <FL/Fl_Pixmap.H>} {public local | ||
} | ||
|
||
decl {\#include <FL/Fl_Bitmap.H>} {public local | ||
} | ||
|
||
decl {\#include <FL/Fl_GIF_Image.H>} {public local | ||
} | ||
|
||
decl {\#include "Cartesian.h"} {public local | ||
} | ||
|
||
decl {void userAction(Fl_Widget* target);} {public local | ||
} | ||
|
||
decl {void userAction(selection sel, Ca_Canvas* sender);} {public local | ||
} | ||
|
||
decl {void reduce_all();} {public local | ||
} | ||
|
||
class UserInterface {open | ||
} { | ||
Function {make_window()} {open | ||
} { | ||
Fl_Window main_window { | ||
label {Tritium Diffusion Software - v0.1 - Chris Stuart} open | ||
xywh {1018 385 900 510} type Double size_range {900 510 900 510} visible | ||
} { | ||
Fl_Group grp_run_file {open | ||
xywh {25 102 366 326} box THIN_UP_BOX | ||
} { | ||
Fl_Text_Display txdsp_run_file_name { | ||
label {Current run file:} selected | ||
xywh {30 126 351 45} align 0 | ||
} | ||
} | ||
} | ||
} | ||
Function {show()} {open | ||
} { | ||
code {make_window(); | ||
//ChnButton[0]=Chn0; | ||
main_window->show();} {} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// generated by Fast Light User Interface Designer (fluid) version 1.0303 | ||
|
||
#ifndef test_h | ||
#define test_h | ||
#include <FL/Fl.H> | ||
#include <FL/Fl_File_Chooser.H> | ||
#include <FL/Fl_Pixmap.H> | ||
#include <FL/Fl_Bitmap.H> | ||
#include <FL/Fl_GIF_Image.H> | ||
#include "Cartesian.h" | ||
extern void userAction(Fl_Widget* target); | ||
extern void userAction(selection sel, Ca_Canvas* sender); | ||
extern void reduce_all(); | ||
#include <FL/Fl_Double_Window.H> | ||
#include <FL/Fl_Group.H> | ||
#include <FL/Fl_Text_Display.H> | ||
|
||
class UserInterface { | ||
public: | ||
Fl_Double_Window* make_window(); | ||
Fl_Double_Window *main_window; | ||
Fl_Group *grp_run_file; | ||
Fl_Text_Display *txdsp_run_file_name; | ||
void show(); | ||
}; | ||
#endif |