LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
evdb::MenuBar Class Reference

The pull down menu bar. More...

#include "MenuBar.h"

Public Member Functions

 MenuBar (TGMainFrame *frame)
 
virtual ~MenuBar ()
 

Public Attributes

TGMenuBar * fMenuBar
 Menu bar across top of application. More...
 
TGLayoutHints * fLayout
 Layout of menu bar. More...
 
FileMenufFileMenu
 File menu. More...
 
EditMenufEditMenu
 Edit menu. More...
 
WindowMenufWindowMenu
 Window menu. More...
 
HelpMenufHelpMenu
 Help menu. More...
 

Detailed Description

The pull down menu bar.

Definition at line 25 of file MenuBar.h.

Constructor & Destructor Documentation

evdb::MenuBar::MenuBar ( TGMainFrame *  frame)

Definition at line 22 of file MenuBar.cxx.

References fEditMenu, fFileMenu, fHelpMenu, fLayout, fMenuBar, and fWindowMenu.

23  {
24  int padleft = 0;
25  int padright = 0;
26  int padtop = 1;
27  int padbottom = 1;
28 
29  // Create the menu bar
30  fMenuBar = new TGMenuBar(frame, 1, 1, kHorizontalFrame);
31  fLayout = new TGLayoutHints(kLHintsTop | kLHintsLeft | kLHintsExpandX,
32  padleft, padright, padtop, padbottom);
33 
34  // Add the menus to it
35  fFileMenu = new FileMenu (fMenuBar, frame);
36  fEditMenu = new EditMenu (fMenuBar, frame);
37  fWindowMenu = new WindowMenu(fMenuBar, frame);
38  fHelpMenu = new HelpMenu (fMenuBar, frame);
39 
40  // Add the menu bar to the main window frame
41  frame->AddFrame(fMenuBar,fLayout);
42  }
FileMenu * fFileMenu
File menu.
Definition: MenuBar.h:35
TGLayoutHints * fLayout
Layout of menu bar.
Definition: MenuBar.h:34
TGMenuBar * fMenuBar
Menu bar across top of application.
Definition: MenuBar.h:33
WindowMenu * fWindowMenu
Window menu.
Definition: MenuBar.h:37
HelpMenu * fHelpMenu
Help menu.
Definition: MenuBar.h:38
EditMenu * fEditMenu
Edit menu.
Definition: MenuBar.h:36
evdb::MenuBar::~MenuBar ( )
virtual

Definition at line 46 of file MenuBar.cxx.

References fEditMenu, fFileMenu, fHelpMenu, and fWindowMenu.

46  {
47  if (fHelpMenu) { delete fHelpMenu; fHelpMenu = 0; }
48  if (fWindowMenu) { delete fWindowMenu; fWindowMenu = 0; }
49  if (fEditMenu) { delete fEditMenu; fEditMenu = 0; }
50  if (fFileMenu) { delete fFileMenu; fFileMenu = 0; }
51  }
FileMenu * fFileMenu
File menu.
Definition: MenuBar.h:35
WindowMenu * fWindowMenu
Window menu.
Definition: MenuBar.h:37
HelpMenu * fHelpMenu
Help menu.
Definition: MenuBar.h:38
EditMenu * fEditMenu
Edit menu.
Definition: MenuBar.h:36

Member Data Documentation

EditMenu* evdb::MenuBar::fEditMenu

Edit menu.

Definition at line 36 of file MenuBar.h.

Referenced by MenuBar(), evdb::DisplayWindow::SetServices(), and ~MenuBar().

FileMenu* evdb::MenuBar::fFileMenu

File menu.

Definition at line 35 of file MenuBar.h.

Referenced by MenuBar(), and ~MenuBar().

HelpMenu* evdb::MenuBar::fHelpMenu

Help menu.

Definition at line 38 of file MenuBar.h.

Referenced by MenuBar(), and ~MenuBar().

TGLayoutHints* evdb::MenuBar::fLayout

Layout of menu bar.

Definition at line 34 of file MenuBar.h.

Referenced by MenuBar().

TGMenuBar* evdb::MenuBar::fMenuBar

Menu bar across top of application.

Definition at line 33 of file MenuBar.h.

Referenced by MenuBar().

WindowMenu* evdb::MenuBar::fWindowMenu

Window menu.

Definition at line 37 of file MenuBar.h.

Referenced by MenuBar(), and ~MenuBar().


The documentation for this class was generated from the following files: