- /// information about a toolbar, not all information can be
- /// saved/restored by all frontends, but this class provides
- /// a superset of things that can be managed by session.
- class ToolbarInfo
- {
- public:
- ///
- ToolbarInfo()
- : state(ON), location(NOTSET), posx(0), posy(0)
- {}
- ///
- //ToolbarInfo(int s, int loc, int x = 0, int y = 0)
- // : state(State(s)), location(Location(loc)), posx(x), posy(y)
- // {}
-
- public:
- enum State {
- ON,
- OFF,
- AUTO
- };
-
- /// on/off/auto
- State state;
-
- /// location: this can be intepreted differently.
- enum Location {
- TOP,
- BOTTOM,
- LEFT,
- RIGHT,
- NOTSET
- };
-
- Location location;
-
- /// x-position of the toolbar
- int posx;
-
- /// y-position of the toolbar
- int posy;
-
- /// potentially, icons
- };
-
- struct ToolbarItem {
- std::string key;
- ToolbarInfo info;
- };
-
- /// info for each toolbar
- typedef std::vector<ToolbarItem> ToolbarList;
-