#include "FileMenu.h"
Definition at line 19 of file FileMenu.h.
evdb::FileMenu::FileMenu |
( |
TGMenuBar * |
menubar, |
|
|
TGMainFrame * |
mf |
|
) |
| |
Definition at line 35 of file FileMenu.cxx.
References fFileMenu, fLayout, evdb::kM_FILE_OPEN, evdb::kM_FILE_PRINT, evdb::kM_FILE_QUIT, evdb::kM_FILE_SAVE, and evdb::kM_FILE_SAVEAS.
38 fFileMenu =
new TGPopupMenu(gClient->GetRoot());
39 fLayout =
new TGLayoutHints(kLHintsTop | kLHintsLeft, 0, 4, 0, 0);
51 "evdb::FileMenu",
this,
"HandleFileMenu(int)");
54 menubar->AddPopup(
"&File",
fFileMenu,fLayout);
evdb::FileMenu::~FileMenu |
( |
| ) |
|
|
virtual |
int evdb::FileMenu::Close |
( |
| ) |
|
|
private |
void evdb::FileMenu::HandleFileMenu |
( |
int |
menu | ) |
|
Definition at line 67 of file FileMenu.cxx.
References evdb::kM_FILE_OPEN, evdb::kM_FILE_PRINT, evdb::kM_FILE_QUIT, evdb::kM_FILE_SAVE, evdb::kM_FILE_SAVEAS, NoImpl(), Open(), Print(), Quit(), Save(), and SaveAs().
75 default: this->
NoImpl(
"??");
break;
int evdb::FileMenu::NoImpl |
( |
const char * |
m | ) |
|
|
private |
int evdb::FileMenu::Open |
( |
| ) |
|
|
private |
Definition at line 81 of file FileMenu.cxx.
References dir, and evdb::TopWindow().
Referenced by HandleFileMenu().
83 static TString
dir(
"");
85 const char* filetypes[] = {
"ROOT files",
"*.root",
90 finfo.fFileTypes = filetypes;
91 finfo.fIniDir = StrDup(
dir.Data());
const TGWindow * TopWindow()
int evdb::FileMenu::Print |
( |
| ) |
|
|
private |
int evdb::FileMenu::Quit |
( |
| ) |
|
|
private |
int evdb::FileMenu::Save |
( |
| ) |
|
|
private |
int evdb::FileMenu::SaveAs |
( |
| ) |
|
|
private |
TGPopupMenu* evdb::FileMenu::fFileMenu |
|
private |
TGLayoutHints* evdb::FileMenu::fLayout |
|
private |
TGMainFrame* evdb::FileMenu::fMainFrame |
|
private |
The documentation for this class was generated from the following files: