mirror of
https://github.com/sesps/SPS_SABRE_EventBuilder.git
synced 2024-11-10 20:38:51 -05:00
103 lines
2.1 KiB
C
103 lines
2.1 KiB
C
|
#ifndef EVBMAINFRAME_H
|
||
|
#define EVBMAINFRAME_H
|
||
|
|
||
|
#include <TGClient.h>
|
||
|
#include <TGWindow.h>
|
||
|
#include <TGFrame.h>
|
||
|
#include <TGNumberEntry.h>
|
||
|
#include <TGTextEntry.h>
|
||
|
#include <TGButton.h>
|
||
|
#include <TGMenu.h>
|
||
|
#include <TGTextViewStream.h>
|
||
|
#include <TGProgressBar.h>
|
||
|
#include <TTimer.h>
|
||
|
#include <TGComboBox.h>
|
||
|
#include "GWMEventBuilder.h"
|
||
|
|
||
|
|
||
|
class EVBMainFrame : public TGMainFrame {
|
||
|
public:
|
||
|
EVBMainFrame(const TGWindow* p, UInt_t w, UInt_t h);
|
||
|
virtual ~EVBMainFrame();
|
||
|
void CloseWindow();
|
||
|
void HandleMenuSelection(int id);
|
||
|
void DoOpenWorkdir();
|
||
|
void DoOpenCMapfile();
|
||
|
void DoOpenSMapfile();
|
||
|
void DoOpenScalerfile();
|
||
|
void DoOpenCutfile();
|
||
|
void DoRun();
|
||
|
void HandleTypeSelection(int box, int entry);
|
||
|
bool SetParameters();
|
||
|
void DisplayWorkdir(const char* dir);
|
||
|
void DisplayCMap(const char* file);
|
||
|
void DisplaySMap(const char* file);
|
||
|
void DisplayScaler(const char* file);
|
||
|
void DisplayCut(const char* file);
|
||
|
void SaveConfig(const char* file);
|
||
|
void LoadConfig(const char* file);
|
||
|
void UpdateWorkdir();
|
||
|
void UpdateCMap();
|
||
|
void UpdateSMap();
|
||
|
void UpdateScaler();
|
||
|
void UpdateCut();
|
||
|
void RunPlot();
|
||
|
void RunMerge(const char* dir, const char* file);
|
||
|
void DisableAllInput();
|
||
|
void EnableAllInput();
|
||
|
|
||
|
|
||
|
enum WidgetId {
|
||
|
WORKDIR,
|
||
|
CMAP,
|
||
|
SMAP,
|
||
|
SCALER,
|
||
|
CUT,
|
||
|
PLOTF,
|
||
|
BFIELD,
|
||
|
BKE,
|
||
|
THETA,
|
||
|
ZT,
|
||
|
AT,
|
||
|
ZP,
|
||
|
AP,
|
||
|
ZE,
|
||
|
AE,
|
||
|
SLOWWIND,
|
||
|
FASTWIND_IC,
|
||
|
FASTWIND_SABRE,
|
||
|
TYPEBOX,
|
||
|
RMIN,
|
||
|
RMAX,
|
||
|
M_LOAD_CONFIG,
|
||
|
M_SAVE_CONFIG,
|
||
|
M_EXIT
|
||
|
};
|
||
|
|
||
|
ClassDef(EVBMainFrame, 0);
|
||
|
|
||
|
private:
|
||
|
TGTextButton *fRunButton, *fOpenWorkButton, *fOpenCMapButton, *fOpenSMapButton, *fOpenScalerButton, *fOpenCutButton;
|
||
|
TGTextEntry *fWorkField;
|
||
|
TGTextEntry *fCMapField, * fSMapField;
|
||
|
TGTextEntry *fScalerField, *fCutField;
|
||
|
TGComboBox *fTypeBox;
|
||
|
|
||
|
TGNumberEntryField *fZTField, *fATField, *fZPField, *fAPField, *fZEField, *fAEField;
|
||
|
TGNumberEntryField *fBField, *fBKEField, *fThetaField;
|
||
|
TGNumberEntryField *fSlowWindowField, *fFastICField, *fFastSABREField;
|
||
|
TGNumberEntryField *fRMinField, *fRMaxField;
|
||
|
|
||
|
TGHProgressBar* fProgressBar;
|
||
|
|
||
|
TGPopupMenu *fFileMenu;
|
||
|
|
||
|
GWMEventBuilder fBuilder;
|
||
|
|
||
|
int counter;
|
||
|
UInt_t MAIN_W, MAIN_H;
|
||
|
|
||
|
|
||
|
};
|
||
|
#endif
|