File: TrackingVolumeViewerGUI.fl

package info (click to toggle)
igstk 4.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 38,980 kB
  • sloc: cpp: 86,267; xml: 96; makefile: 75; python: 38
file content (120 lines) | stat: -rw-r--r-- 4,204 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# data file for the Fltk User Interface Designer (fluid)
version 1.0106 
header_name {.h} 
code_name {.cxx}
decl {\#include <FL/fl_ask.H>} {} 

decl {\#include <FL/Fl_File_Chooser.H>} {} 

class TrackingVolumeViewerGUI {open : {public igstk::Object}
} {
  Function {TrackingVolumeViewerGUI()} {open
  } {
    Fl_Window mainWindow {
      label {IGSTK - Tracking Volume Viewer}
      callback {Quit();} open
      xywh {92 111 1280 800} type Double box PLASTIC_UP_BOX resizable
      code0 {\#include "igstkFLTKWidget.h"} visible
    } {
      Fl_Group m_ControlGroup {open
        xywh {3 5 145 793} box FLAT_BOX color 7 selection_color 7 labeltype ENGRAVED_LABEL labelcolor 4 align 0
      } {
        Fl_Box m_InstitutionBox {
          image {IGSTK.jpg} xywh {11 27 130 61} color 7 labelsize 23 labelcolor 15
        }
        Fl_Box {} {
          label {Tracker Configuration}
          xywh {10 108 130 37} labelsize 13
        }
        Fl_Button {} {
          label Load
          callback {RequestConfigureTracker();}
          tooltip {Start application} xywh {10 145 130 35} box PLASTIC_UP_BOX down_box PLASTIC_DOWN_BOX color 55 selection_color 134 labelsize 16
        }
        Fl_Box {} {
          label {Tracker Rep.}
          xywh {10 183 130 37} labelsize 13
        }
        Fl_Button m_LoadTrackerMeshButton {
          label Load
          callback {RequestLoadTrackerMesh();}
          tooltip {Load tracker mesh  (.msh)} xywh {10 220 130 35} box PLASTIC_UP_BOX down_box PLASTIC_DOWN_BOX color 55 selection_color 134 labelsize 16 deactivate
        }
        Fl_Box {} {
          label {Working Volume Rep.}
          xywh {10 260 130 37} labelsize 13
        }
        Fl_Button m_LoadWorkVolumeMeshButton {
          label Load
          callback {RequestLoadWorkingVolumeMesh();} selected
          tooltip {Load working volume mesh (.msh)} xywh {10 300 130 35} box PLASTIC_UP_BOX down_box PLASTIC_DOWN_BOX color 55 selection_color 134 labelsize 16 deactivate
        }
        Fl_Button {} {
          label Quit
          callback {Quit();}
          tooltip {Load segmentation (.msh)} xywh {10 745 130 35} box PLASTIC_UP_BOX down_box PLASTIC_DOWN_BOX color 55 selection_color 134 labelsize 16
        }
      }
      Fl_Group m_ViewerGroup {
        xywh {151 0 1127 797} box PLASTIC_DOWN_BOX resizable
        code0 {\#include "TrackingVolumeViewerQuadrantViews.h"}
        class {igstk::TrackingVolumeViewerQuadrantViews}
      } {}
    }
    code {mainWindow->show();
hasQuitted = false;
//mainWindow->fullscreen();
int x = m_ControlGroup->x();
int y = m_ControlGroup->y();
int height = m_ControlGroup->h();
m_ControlGroup->resize(x,y,150,height);} {}
    Fl_Window m_ConfirmToQuitWindow {
      label {Shut down system}
      xywh {409 361 422 150} type Double box PLASTIC_DOWN_BOX color 255 selection_color 55 align 16 modal noborder visible
    } {
      Fl_Box {} {
        label {Are you sure you want to quit?}
        xywh {40 24 335 51} labelsize 22
      }
      Fl_Button {} {
        label Yes
        callback {m_ConfirmToQuitWindow->hide();

this->RequestPrepareToQuit();

this->hasQuitted = true;}
        xywh {208 108 85 30} box PLASTIC_UP_BOX down_box PLASTIC_UP_BOX color 55 selection_color 95
      }
      Fl_Button {} {
        label Cancel
        callback {m_ConfirmToQuitWindow->hide();

this->hasQuitted = false;}
        xywh {313 108 85 30} box PLASTIC_UP_BOX down_box PLASTIC_UP_BOX color 55 selection_color 95
      }
    }
  }
  Function {~TrackingVolumeViewerGUI()} {open return_type virtual
  } {
    code {delete m_ViewerGroup;} {}
  }
  decl {bool hasQuitted;} {}
  Function {Quit()} {open return_type void
  } {
    code {m_ConfirmToQuitWindow->show();} {}
  }
  Function {HasQuitted()} {open return_type bool
  } {
    code {return this->hasQuitted;} {}
  }
  Function {RequestDisconnectTracker()} {return_type {virtual void}
  } {}
  Function {RequestConfigureTracker()} {return_type {virtual void}
  } {}
  Function {RequestPrepareToQuit()} {return_type {virtual void}
  } {}
  Function {RequestLoadTrackerMesh()} {return_type {virtual void}
  } {}
  Function {RequestLoadWorkingVolumeMesh()} {return_type {virtual void}
  } {}
}