File: MainMenuBar.h

package info (click to toggle)
quickplot 0.8.6-1.1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,548 kB
  • ctags: 1,019
  • sloc: cpp: 10,052; sh: 7,597; makefile: 176
file content (59 lines) | stat: -rw-r--r-- 1,564 bytes parent folder | download | duplicates (4)
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
/* Copyright (c) 1998, 1999, 2003, 2004  Lance Arsenault, (GNU GPL (v2+))
 */

class MainWindow;

class MainMenuBar : public MenuBar
{
 public:
  
  MainMenuBar(MainWindow *mainWindow_in);
  ~MainMenuBar(void);


  // getFileMenu() is used by Source when a file is opened a Close
  // file menu item is added.
  inline Menu &getFileMenu(void) { return fileMenu; }


  // These slots do the show or hide of the corresponding widget.
  void on_showMenuBarItem(void); // slot
  void on_showButtonBarItem(void); // slot
  void on_showGraphTabsItem(void); // slot
  void on_showStatusBarItem(void); // slot
  void on_showGraphConfigItem(void); // slot
  void on_showPlotListerItem(void); // slot


  // These"check" slots just keep the check menu items state in sync
  // with the corresponding widget.
  void checkMenuBarState(void); // slot
  void checkButtonBarState(void); // slot
  void checkGraphTabsState(bool showing); // slot
  void checkStatusBarState(void); // slot
  void checkGraphConfigState(void); // slot
  void checkPlotListerState(void); // slot
  
private:

  void addAccelKey(Widget *widget, gint key);
  
  Menu fileMenu, /* editMenu, */ viewMenu, helpMenu;
  
  // File Menu
  Image openImage, newImage, newFrameImage, copyFrameImage,
    closeImage, quitImage, aboutImage, helpImage, saveImage;

  // View Menu
  Gtk::CheckMenuItem showMenuBarItem, showButtonBarItem,
    showGraphTabsItem, showStatusBarItem, showGraphConfigItem,
    showPlotListerItem;

public:
  
  ImageMenuItem deleteFrameMenuItem;
  
private:

  MainWindow *mainWindow;
};