NEURON
secbrows.h
Go to the documentation of this file.
1 #ifndef secbrowser_h
2 #define secbrowser_h
3 
4 #include <InterViews/monoglyph.h>
5 #include "ocbrowsr.h"
6 
7 class TelltaleState;
8 struct Object;
9 class SectionBrowserImpl;
10 class MechSelector;
11 class OcList;
12 class PPBImpl;
13 class HocCommand;
14 struct Section;
15 
16 extern void section_menu(double, int, MechSelector* = NULL);
17 
18 class MechVarType: public MonoGlyph {
19  public:
21  virtual ~MechVarType();
24  bool state_select();
25 
26  private:
27  bool select(int);
28 
29  private:
31 };
32 
33 class MechSelector: public MonoGlyph {
34  public:
36  virtual ~MechSelector();
37 
38  bool is_selected(int type);
39  int begin();
40  bool done();
41  int next();
42 
43  private:
45  int iterator_;
46 };
47 
48 class OcSectionBrowser: public OcBrowser {
49  public:
51  virtual ~OcSectionBrowser();
52  virtual void accept();
53  virtual void select_section(Section*);
54  virtual void set_select_action(const char*, Object*);
55  virtual void set_accept_action(const char*, Object*);
56  virtual void select(GlyphIndex);
57 
58  private:
60  int scnt_;
67 };
68 class SectionBrowser: public OcBrowser {
69  public:
72  virtual ~SectionBrowser();
73  static void make_section_browser();
74  void accept();
75 
76  virtual void select(GlyphIndex);
77 
78  private:
79  SectionBrowserImpl* sbi_;
80 };
81 
83  public:
87  void accept();
88 
89  virtual void select(GlyphIndex);
90  virtual void add_pp(Object*);
91  virtual void remove_pp();
92  virtual void append_pp(Object*);
93 
94  private:
95  PPBImpl* ppbi_;
96 };
97 
98 #endif
#define TelltaleState
Definition: _defines.h:296
#define MonoGlyph
Definition: _defines.h:181
#define GlyphIndex
Definition: _defines.h:23
short type
Definition: cabvars.h:9
int iterator_
Definition: secbrows.h:45
bool is_selected(int type)
virtual ~MechSelector()
TelltaleState ** tts_
Definition: secbrows.h:44
bool parameter_select()
bool state_select()
virtual ~MechVarType()
bool select(int)
bool assigned_select()
TelltaleState * tts_[3]
Definition: secbrows.h:30
Definition: oclist.h:12
virtual void set_select_action(const char *, Object *)
virtual void select(GlyphIndex)
virtual void set_accept_action(const char *, Object *)
virtual void select_section(Section *)
Section ** psec_
Definition: secbrows.h:59
virtual ~OcSectionBrowser()
HocCommand * accept_
Definition: secbrows.h:62
Object * accept_pycallback_
Definition: secbrows.h:66
Object * select_pycallback_
Definition: secbrows.h:64
HocCommand * select_
Definition: secbrows.h:61
virtual void accept()
bool select_is_pycallback_
Definition: secbrows.h:63
OcSectionBrowser(Object *)
bool accept_is_pycallback_
Definition: secbrows.h:65
virtual ~PointProcessBrowser()
virtual void add_pp(Object *)
PPBImpl * ppbi_
Definition: secbrows.h:95
PointProcessBrowser(OcList *)
virtual void append_pp(Object *)
virtual void select(GlyphIndex)
static void make_point_process_browser(OcList *)
virtual void remove_pp()
static void make_section_browser()
virtual void select(GlyphIndex)
SectionBrowser(Object *)
virtual ~SectionBrowser()
SectionBrowserImpl * sbi_
Definition: secbrows.h:79
void section_menu(double, int, MechSelector *=NULL)
#define NULL
Definition: sptree.h:16
Definition: hocdec.h:227