12 #ifndef ROOT_TGTextEditDialogs
13 #define ROOT_TGTextEditDialogs
33 Bool_t fCaseSensitive;
36 TGSearchType() { fDirection = kTRUE; fCaseSensitive = kFALSE; fBuffer = 0; fClose = kTRUE; }
37 ~TGSearchType() {
if (fBuffer)
delete [] fBuffer;}
49 class TGSearchDialog :
public TGTransientFrame {
52 TGCompositeFrame *fF1, *fF2, *fF3, *fF4;
53 TGLayoutHints *fL1, *fL2, *fL3, *fL4;
54 TGLayoutHints *fL5, *fL6, *fL21, *fL9;
56 TGButton *fSearchButton;
57 TGButton *fCancelButton;
58 TGRadioButton *fDirectionRadio[2];
59 TGCheckButton *fCaseCheck;
62 TGTextBuffer *fBSearch;
68 static TGSearchDialog *fgSearchDialog;
71 TGSearchDialog(
const TGWindow *p = 0,
const TGWindow *main = 0, UInt_t w = 1, UInt_t h = 1,
72 TGSearchType *sstruct = 0, Int_t *ret_code = 0,
73 UInt_t options = kVerticalFrame);
74 virtual ~TGSearchDialog();
76 virtual void CloseWindow();
77 virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
78 virtual void SetClose(Bool_t on) { fType->fClose = on; }
79 virtual Bool_t IsClose()
const {
return fType->fClose; }
80 virtual void TextEntered(
const char *text);
81 virtual TGSearchType *GetType()
const {
return fType; }
83 static TGSearchDialog *&SearchDialog();
85 ClassDef(TGSearchDialog,0)
89 class TGPrintDialog :
public TGTransientFrame {
94 TGCompositeFrame *fF1, *fF2, *fF3, *fF4, *fF5;
95 TGLayoutHints *fL1, *fL2, *fL3, *fL5, *fL6;
96 TGLayoutHints *fL7, *fL21;
98 TGButton *fPrintButton;
99 TGButton *fCancelButton;
100 TGComboBox *fPrinterEntry;
101 TGTextEntry *fPrintCommandEntry;
102 TGTextBuffer *fBPrinter, *fBPrintCommand;
103 TGLabel *fLPrinter, *fLPrintCommand;
107 TGPrintDialog(
const TGWindow *p = 0,
const TGWindow *main = 0, UInt_t w = 1, UInt_t h = 1,
108 char **printerName = 0,
char **printProg = 0, Int_t *ret_code = 0,
109 UInt_t options = kVerticalFrame);
110 virtual ~TGPrintDialog();
112 virtual void CloseWindow();
113 virtual void GetPrinters();
114 virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
116 ClassDef(TGPrintDialog,0)
120 class TGGotoDialog :
public TGTransientFrame {
123 TGCompositeFrame *fF1, *fF2;
124 TGButton *fGotoButton;
125 TGButton *fCancelButton;
126 TGLayoutHints *fL1, *fL5, *fL6, *fL21;
128 TGTextBuffer *fBGoTo;
133 TGGotoDialog(
const TGWindow *p = 0,
const TGWindow *main = 0, UInt_t w = 1, UInt_t h = 1,
134 Long_t *ret_code = 0, UInt_t options = kVerticalFrame);
135 virtual ~TGGotoDialog();
137 virtual void CloseWindow();
138 virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2);
140 ClassDef(TGGotoDialog,0)