2022-03-07 16:22:04 -05:00
|
|
|
#include <TQObject.h>
|
|
|
|
#include <RQ_OBJECT.h>
|
|
|
|
|
2022-03-15 19:59:36 -04:00
|
|
|
#include <TROOT.h>
|
|
|
|
#include <TClass.h>
|
|
|
|
#include <TGClient.h>
|
|
|
|
#include <TGMenu.h>
|
|
|
|
|
2022-03-15 15:55:31 -04:00
|
|
|
#include "Pixie16Class.h"
|
|
|
|
#include "mainSettings.h"
|
|
|
|
|
2022-03-07 16:22:04 -05:00
|
|
|
class TGWindow;
|
|
|
|
class TGMainFrame;
|
|
|
|
class TRootEmbeddedCanvas;
|
2022-03-15 19:59:36 -04:00
|
|
|
class TGNumberEntry;
|
2022-03-07 16:22:04 -05:00
|
|
|
|
|
|
|
class MainWindow {
|
|
|
|
RQ_OBJECT("MainWindow")
|
|
|
|
private:
|
|
|
|
TGMainFrame *fMain;
|
|
|
|
TRootEmbeddedCanvas *fEcanvas;
|
2022-03-15 19:59:36 -04:00
|
|
|
|
|
|
|
TGMenuBar *fMenuBar;
|
|
|
|
TGPopupMenu *fMenuFile, *fMenuSettings;
|
|
|
|
|
|
|
|
TGNumberEntry * modIDEntry, *chEntry;
|
|
|
|
|
2022-03-15 15:55:31 -04:00
|
|
|
Pixie16 * pixie;
|
|
|
|
|
|
|
|
MainSettings * mainSettings;
|
2022-03-15 14:38:58 -04:00
|
|
|
|
2022-03-15 19:59:36 -04:00
|
|
|
|
2022-03-07 16:22:04 -05:00
|
|
|
public:
|
|
|
|
MainWindow(const TGWindow *p, UInt_t w, UInt_t h);
|
|
|
|
virtual ~MainWindow();
|
|
|
|
|
2022-03-15 19:59:36 -04:00
|
|
|
|
|
|
|
void HandleMenu(Int_t id);
|
|
|
|
|
|
|
|
|
2022-03-15 14:38:58 -04:00
|
|
|
void openPixie();
|
|
|
|
|
|
|
|
void getADCTrace();
|
|
|
|
|
2022-03-15 15:55:31 -04:00
|
|
|
void openMainSettings();
|
2022-03-15 19:59:36 -04:00
|
|
|
|
|
|
|
|
2022-03-15 15:55:31 -04:00
|
|
|
|
2022-03-15 14:38:58 -04:00
|
|
|
void GoodBye();
|
|
|
|
|
2022-03-07 16:22:04 -05:00
|
|
|
};
|