Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

test-GuiControl.cxx File Reference

#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[])


Function Documentation

void handler string  what  ) 
 

Definition at line 12 of file test-GuiControl.cxx.

00013 {
00014     cout << what << endl;
00015 }

int main int  argc,
char *  argv[]
 

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()


Generated on Mon Feb 15 11:08:13 2010 for loon by  doxygen 1.3.9.1