104 if (sstruct && sstruct->
fBuffer)
212 Emit(
"TextEntered(const char *)",
text);
315 char **printProg,
Int_t *ret_code,
361 if ((printProg) && (*printProg))
371 if ((printerName) && (*printerName))
382 if (!printerPicture) {
383 Error(
"TGPrintDialog",
"printer_s.xpm not found");
443 Int_t idx = 1, dflt =1;
448 if (lpstat == 0)
return;
453 while((obj = iter())) {
459 if (defaultprinter.
Contains(pname)) {
470 defaultprinter.
Remove(0, defaultprinter.
First(
'\n'));
475 while((obj = iter())) {
478 if (defaultprinter.
Contains(pname)) {
494 const char *string, *txt;
506 const size_t prSize = strlen(
string) + 1;
513 const size_t cmdSize = strlen(
string) + 1;
519 txt =
"Please provide print command or use \"Cancel\"";
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
static TString gLastSearchString
char * StrDup(const char *str)
Duplicate the string str.
R__EXTERN TSystem * gSystem
const TGWindow * GetRoot() const
Returns current root (i.e.
void WaitFor(TGWindow *w)
Wait for window to be destroyed.
const TGPicture * GetPicture(const char *name)
Get picture from the picture pool.
virtual TGTextEntry * GetTextEntry() const
virtual void AddEntry(TGString *s, Int_t id)
virtual void Select(Int_t id, Bool_t emit=kTRUE)
Make the selected item visible in the combo box window and emit signals according to the second param...
virtual void ReturnPressed()
Add new entry to combo box when return key pressed inside text entry ReturnPressed signal is emitted.
virtual void Layout()
layout combobox
virtual void AddFrame(TGFrame *f, TGLayoutHints *l=0)
Add frame to the composite frame using the specified layout hints.
virtual void ChangeOptions(UInt_t options)
Change composite frame options. Options is an OR of the EFrameTypes.
virtual TGDimension GetDefaultSize() const
std::cout << fWidth << "x" << fHeight << std::endl;
virtual void MapSubwindows()
Map all sub windows that are part of the composite frame.
virtual UInt_t GetDefaultHeight() const
virtual void SetEditDisabled(UInt_t on=1)
Set edit disable flag for this frame and subframes.
virtual UInt_t GetDefaultWidth() const
virtual UInt_t GetDefaultHeight() const
virtual void DeleteWindow()
Delete window.
virtual UInt_t GetOptions() const
virtual void Resize(UInt_t w=0, UInt_t h=0)
Resize the frame.
virtual void MapWindow()
map window
virtual void UnmapWindow()
unmap window
virtual void CloseWindow()
Close the dialog.
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Process goto dialog widget messages.
TGGotoDialog(const TGWindow *p=nullptr, const TGWindow *main=nullptr, UInt_t w=1, UInt_t h=1, Long_t *ret_code=nullptr, UInt_t options=kVerticalFrame)
Create a dialog to GoTo a specific line number.
virtual ~TGGotoDialog()
Clean up goto dialog.
void SetIconName(const char *name)
Set window icon name. This is typically done via the window manager.
void SetMWMHints(UInt_t value, UInt_t funcs, UInt_t input)
Set decoration style for MWM-compatible wm (mwm, ncdwm, fvwm?).
void SetWindowName(const char *name=0)
Set window name. This is typically done via the window manager.
TGPrintDialog(const TGWindow *p=nullptr, const TGWindow *main=nullptr, UInt_t w=1, UInt_t h=1, char **printerName=nullptr, char **printProg=nullptr, Int_t *ret_code=nullptr, UInt_t options=kVerticalFrame)
Create the printer dialog box.
TGTextEntry * fPrintCommandEntry
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Process print dialog widget messages.
TGTextBuffer * fBPrintCommand
virtual ~TGPrintDialog()
Clean up print dialog.
virtual void GetPrinters()
Ask the system fo the list of available printers and populate the combo box.
virtual void CloseWindow()
Close the dialog.
TGComboBox * fPrinterEntry
static TGSearchDialog *& SearchDialog()
Return global search dialog.
TGRadioButton * fDirectionRadio[2]
TGCheckButton * fCaseCheck
virtual Bool_t ProcessMessage(Long_t msg, Long_t parm1, Long_t parm2)
Process search dialog widget messages.
static TGSearchDialog * fgSearchDialog
virtual void TextEntered(const char *text)
emit signal when search text entered
TGSearchDialog(const TGWindow *p=nullptr, const TGWindow *main=nullptr, UInt_t w=1, UInt_t h=1, TGSearchType *sstruct=0, Int_t *ret_code=0, UInt_t options=kVerticalFrame)
Create a search dialog box.
virtual ~TGSearchDialog()
Clean up search dialog.
virtual void CloseWindow()
Close the dialog.
void AddText(Int_t pos, const char *text)
const char * GetString() const
UInt_t GetTextLength() const
TGTextBuffer * GetBuffer() const
virtual void SelectAll()
Selects all text (i.e.
virtual void SetText(const char *text, Bool_t emit=kTRUE)
Sets text entry to text, clears the selection and moves the cursor to the end of the line.
virtual void CenterOnParent(Bool_t croot=kTRUE, EPlacement pos=kCenter)
Position transient frame centered relative to the parent frame.
virtual const TGWindow * GetMainFrame() const
Returns top level main frame.
virtual const char * GetName() const
Return unique name, used in SavePrimitive methods.
virtual void RequestFocus()
request focus
TObject * At(Int_t idx) const
Mother of all ROOT objects.
virtual const char * GetName() const
Returns name of object.
R__ALWAYS_INLINE Bool_t IsZombie() const
void Emit(const char *signal, const T &arg)
Activate signal with single parameter.
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
Ssiz_t First(char c) const
Find first occurrence of a character c.
const char * Data() const
TString & ReplaceAll(const TString &s1, const TString &s2)
Ssiz_t Last(char c) const
Find last occurrence of a character c.
TObjArray * Tokenize(const TString &delim) const
This function is used to isolate sequential tokens in a TString.
TString & Remove(Ssiz_t pos)
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
virtual const char * Getenv(const char *env)
Get environment variable.
virtual TString GetFromPipe(const char *command)
Execute command and return output in TString.
virtual char * Which(const char *search, const char *file, EAccessMode mode=kFileExists)
Find location of file in a search path.