options_dlg.hh
Go to the documentation of this file.
1 #ifndef _OPTIONS_DLG_H_
2 #define _OPTIONS_DLG_H_
3 
4 #include <FL/Fl_Window.H>
5 #include <FL/Fl_Scroll.H>
6 #include <FL/Fl_Check_Button.H>
7 #include <FL/Fl_Button.H>
8 
9 #include <string>
10 #include <vector>
11 #include <set>
12 
13 #include "stage.hh"
14 #include "option.hh"
15 
16 namespace Stg {
17 
18  //class Option;
19 
20  class OptionsDlg : public Fl_Window {
21  public:
23 
24  private:
25  std::vector<Option*> options;
29  Fl_Scroll* scroll;
30  Fl_Check_Button* showAllCheck;
31  void updateChecks();
32 
33  static void checkChanged( Fl_Widget* w, void* p );
34 
35  // constants
36  static const int vm = 4;
37  const int hm;
38  static const int boxH = 30;
39 
40  public:
41  OptionsDlg( int x, int y, int w, int h );
42  virtual ~OptionsDlg();
43 
44  void setOptions( const std::set<Option*>& opts );
45  void clearOptions() { options.clear(); }
46  void showAllOpt( Option* opt );
47  const event_t event() const { return status; }
48  Option* changed() { return changedItem; }
49  };
50 
51 }
52 
53 #endif
54 
void setOptions(const std::set< Option * > &opts)
Definition: options_dlg.cc:71
Option * changed()
Definition: options_dlg.hh:48
void updateChecks()
Definition: options_dlg.cc:56
The Stage library uses its own namespace.
Definition: canvas.hh:8
Option * showAll
Definition: options_dlg.hh:27
void showAllOpt(Option *opt)
Definition: options_dlg.cc:78
std::vector< Option * > options
Definition: options_dlg.hh:25
virtual ~OptionsDlg()
Definition: options_dlg.cc:27
static void checkChanged(Fl_Widget *w, void *p)
Definition: options_dlg.cc:33
const event_t event() const
Definition: options_dlg.hh:47
void clearOptions()
Definition: options_dlg.hh:45
Option * changedItem
Definition: options_dlg.hh:26
static const int boxH
Definition: options_dlg.hh:38
const int hm
Definition: options_dlg.hh:37
Fl_Scroll * scroll
Definition: options_dlg.hh:29
Fl_Check_Button * showAllCheck
Definition: options_dlg.hh:30
static const int vm
Definition: options_dlg.hh:36
OptionsDlg(int x, int y, int w, int h)
Definition: options_dlg.cc:6


stage
Author(s): Richard Vaughan , Brian Gerkey , Reed Hedges , Andrew Howard , Toby Collett , Pooya Karimian , Jeremy Asher , Alex Couture-Beil , Geoff Biggs , Rich Mattes , Abbas Sadat
autogenerated on Mon Jun 10 2019 15:06:09