#include "Midad/GuiMainWindow.h"#include "Midad/GuiControl.h"#include <iostream>#include <string>#include "TROOT.h"#include "TApplication.h"#include <sigc++/signal.h>#include <sigc++/bind.h>Go to the source code of this file.
Functions | |
| void | handler (string what) |
| int | main (int argc, char *argv[]) |
|
|
Definition at line 12 of file test-GuiControl.cxx. 00013 {
00014 cout << what << endl;
00015 }
|
|
||||||||||||
|
Definition at line 17 of file test-GuiControl.cxx. References GuiCompositeFrameBase::Add(), handler(), and GuiMainWindow::ShowAll(). 00018 {
00019 using SigC::slot;
00020 using SigC::bind;
00021 TApplication theApp("App", &argc, argv);
00022
00023 GuiMainWindow mw(100,100);
00024
00025 GuiControl gc(mw);
00026 mw.Add(gc);
00027
00028 gc.GetPrev().clicked.connect(bind(slot(handler),"Previous"));
00029 gc.GetRun().clicked.connect(bind(slot(handler),"Run"));
00030 gc.GetNext().clicked.connect(bind(slot(handler),"Next"));
00031
00032 mw.ShowAll();
00033
00034 theApp.Run();
00035 return 0;
00036 } // end of main()
|
1.3.9.1