#include "Midad/Gui/GuiButton.h"#include "Midad/Gui/GuiTable.h"#include "Midad/Gui/GuiMainWindow.h"#include "Midad/Gui/GuiMenu.h"#include "Midad/Gui/GuiBox.h"#include "Midad/Gui/GuiTab.h"#include "Midad/Gui/GuiFrame.h"#include "Midad/Gui/GuiCanvas.h"#include "Midad/Gui/GuiStatusBar.h"#include "Midad/Gui/GuiSlider.h"#include "Midad/Gui/GuiTextEntry.h"#include <iostream>#include <string>#include <strstream>#include "TROOT.h"#include "TApplication.h"#include "TGTableLayout.h"#include "TCanvas.h"#include <sigc++/signal.h>#include <sigc++/bind.h>#include <sigc++/object_slot.h>Go to the source code of this file.
Classes | |
| class | MyVBox |
Functions | |
| void | handler_menu (MyVBox *vbox) |
| void | fill_menu (GuiMenuBar *gmb, MyVBox *vbox) |
| int | main (int argc, char *argv[]) |
|
||||||||||||
|
Definition at line 41 of file test-BBox.cxx. References GuiMenu::Add(), handler_menu(), and GuiMenuBar::MakeAddMenu(). 00042 {
00043 using SigC::bind;
00044 using SigC::slot;
00045
00046 GuiMenu* menu = gmb->MakeAddMenu("Menu");
00047 menu->Add("Add Button",
00048 bind(slot(handler_menu),vbox));
00049 }
|
|
|
Definition at line 33 of file test-BBox.cxx. References GuiCompositeFrameBase::Add(), GuiBase::GetMainWindow(), and GuiMainWindow::ShowAll(). Referenced by fill_menu(), and fill_mydisplay_menu(). 00034 {
00035 GuiTextButton* b = new GuiTextButton(*vbox,"Click me");
00036 vbox->Add(*b);
00037 GuiMainWindow* mw = vbox->GetMainWindow();
00038 mw->ShowAll();
00039 }
|
|
||||||||||||
|
Definition at line 52 of file test-BBox.cxx. References GuiCompositeFrameBase::Add(), fill_menu(), GuiBase::GetLayoutHints(), and GuiBase::SetLayoutHints(). 00053 {
00054 TApplication theApp("App", &argc, argv);
00055
00056 GuiMainWindow* mw = manage(new GuiMainWindow(300,300));
00057
00058 MyVBox* vbox = manage(new MyVBox(*mw));
00059 vbox->SetLayoutHints(vbox->GetLayoutHints() | kLHintsExpandX);
00060 mw->Add(*vbox);
00061
00062 GuiHBox* hbox = manage(new GuiHBox(*vbox));
00063 vbox->Add(*hbox);
00064
00065 GuiMenuBar* gmb = manage(new GuiMenuBar(*hbox));
00066 hbox->Add(*gmb);
00067 fill_menu(gmb,vbox);
00068
00069 mw->ShowAll();
00070 mw->SetMinSize();
00071 mw->ConnectClose();
00072
00073 mw->close_window.connect(SigC::slot(*mw,&GuiMainWindow::KillMe));
00074
00075 theApp.Run();
00076 return 0;
00077 } // end of main()
|
1.3.9.1