TNewQueryDlg Class Reference

#include <TSessionDialogs.h>

Inheritance diagram for TNewQueryDlg:

TGTransientFrame TGTransientFrame TGMainFrame TGMainFrame TGMainFrame TGMainFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame TGCompositeFrame List of all members.

Public Member Functions

 TNewQueryDlg (TSessionViewer *gui, Int_t Width, Int_t Height, TQueryDescription *query=0, Bool_t editmode=kFALSE)
virtual ~TNewQueryDlg ()
void Build (TSessionViewer *gui)
void OnNewQueryMore ()
void OnBrowseChain ()
void OnBrowseSelector ()
void OnBrowseEventList ()
void OnBtnSaveClicked ()
void OnBtnCloseClicked ()
void OnBtnSubmitClicked ()
void OnElementSelected (TObject *obj)
void CloseWindow ()
void Popup ()
void SettingsChanged ()
void UpdateFields (TQueryDescription *desc)
virtual Bool_t ProcessMessage (Long_t msg, Long_t parm1, Long_t parm2)
 TNewQueryDlg (TSessionViewer *gui, Int_t Width, Int_t Height, TQueryDescription *query=0, Bool_t editmode=kFALSE)
virtual ~TNewQueryDlg ()
void Build (TSessionViewer *gui)
void OnNewQueryMore ()
void OnBrowseChain ()
void OnBrowseSelector ()
void OnBrowseEventList ()
void OnBtnSaveClicked ()
void OnBtnCloseClicked ()
void OnBtnSubmitClicked ()
void OnElementSelected (TObject *obj)
void CloseWindow ()
void Popup ()
void SettingsChanged ()
void UpdateFields (TQueryDescription *desc)
virtual Bool_t ProcessMessage (Long_t msg, Long_t parm1, Long_t parm2)

Private Attributes

Bool_t fEditMode
Bool_t fModified
TGCompositeFramefFrmNewQuery
TGCompositeFramefFrmMore
TGTextButtonfBtnMore
TGTextButtonfBtnClose
TGTextButtonfBtnSave
TGTextButtonfBtnSubmit
TGTextEntryfTxtQueryName
TGTextEntryfTxtChain
TGTextEntryfTxtSelector
TGTextEntryfTxtOptions
TGNumberEntryfNumEntries
TGNumberEntryfNumFirstEntry
TGTextEntryfTxtEventList
TSessionViewerfViewer
TQueryDescriptionfQuery
TObjectfChain
TGCompositeFramefFrmNewQuery
TGCompositeFramefFrmMore
TGTextButtonfBtnMore
TGTextButtonfBtnClose
TGTextButtonfBtnSave
TGTextButtonfBtnSubmit
TGTextEntryfTxtQueryName
TGTextEntryfTxtChain
TGTextEntryfTxtSelector
TGTextEntryfTxtOptions
TGNumberEntryfNumEntries
TGNumberEntryfNumFirstEntry
TGTextEntryfTxtEventList
TSessionViewerfViewer
TQueryDescriptionfQuery
TObjectfChain

Detailed Description

Definition at line 79 of file TSessionDialogs.h.


Constructor & Destructor Documentation

TNewQueryDlg::TNewQueryDlg ( TSessionViewer gui,
Int_t  Width,
Int_t  Height,
TQueryDescription query = 0,
Bool_t  editmode = kFALSE 
)

Definition at line 339 of file TSessionDialogs.cxx.

References Build(), TGCompositeFrame::ChangeOptions(), fBtnMore, fChain, TQueryDescription::fChain, TGObject::fClient, fEditMode, fFrmMore, fFrmNewQuery, fModified, TSessionDescription::fQueries, fQuery, TQueryDescription::fQueryName, fTxtQueryName, fViewer, TSessionViewer::GetActDesc(), TGClient::GetDefaultRoot(), TGObject::GetId(), TGFrame::GetOptions(), TGFrame::GetWidth(), gVirtualX, TGCompositeFrame::HideFrame(), kFALSE, kFixedSize, TList::Last(), TGCompositeFrame::Layout(), TGCompositeFrame::MapSubwindows(), TGFrame::Move(), TGFrame::Resize(), TGTextButton::SetText(), TGTextEntry::SetText(), TGMainFrame::SetWindowName(), TGMainFrame::SetWMSizeHints(), and UpdateFields().

TNewQueryDlg::~TNewQueryDlg (  )  [virtual]

Definition at line 384 of file TSessionDialogs.cxx.

References TGCompositeFrame::Cleanup(), and TObject::IsZombie().

TNewQueryDlg::TNewQueryDlg ( TSessionViewer gui,
Int_t  Width,
Int_t  Height,
TQueryDescription query = 0,
Bool_t  editmode = kFALSE 
)

virtual TNewQueryDlg::~TNewQueryDlg (  )  [virtual]


Member Function Documentation

void TNewQueryDlg::Build ( TSessionViewer gui  ) 

Definition at line 393 of file TSessionDialogs.cxx.

References TGCompositeFrame::AddFrame(), TGNumberEntry::Associate(), TGWidget::Associate(), TQObject::Connect(), fBtnClose, fBtnMore, fBtnSave, fBtnSubmit, fEditMode, fFrmMore, fFrmNewQuery, fNumEntries, fNumFirstEntry, fTxtChain, fTxtEventList, fTxtOptions, fTxtQueryName, fTxtSelector, fViewer, kButtonDisabled, kDeepCleanup, kFALSE, kHorizontalFrame, kLHintsCenterY, kLHintsExpandX, kLHintsExpandY, kLHintsLeft, TGNumberFormat::kNEAAnyNumber, TGNumberFormat::kNEANonNegative, TGNumberFormat::kNELNoLimits, TGNumberFormat::kNESInteger, TGCompositeFrame::SetCleanup(), TGTextEntry::SetEnabled(), TGNumberEntry::SetIntNumber(), TGCompositeFrame::SetLayoutManager(), TGFrame::SetMinWidth(), TGButton::SetState(), TGTextEntry::SetText(), TGTextEntry::SetToolTipText(), and TGCompositeFrame::TGCompositeFrame().

Referenced by TNewQueryDlg().

void TNewQueryDlg::OnNewQueryMore (  ) 

Definition at line 547 of file TSessionDialogs.cxx.

References fBtnMore, fFrmMore, fFrmNewQuery, TGCompositeFrame::HideFrame(), TGCompositeFrame::IsVisible(), TGTextButton::SetText(), and TGCompositeFrame::ShowFrame().

void TNewQueryDlg::OnBrowseChain (  ) 

Definition at line 562 of file TSessionDialogs.cxx.

References TQObject::Connect(), TGObject::fClient, and TGClient::GetRoot().

void TNewQueryDlg::OnBrowseSelector (  ) 

Definition at line 586 of file TSessionDialogs.cxx.

References TGObject::fClient, TGFileInfo::fFilename, TGFileInfo::fFileTypes, fi, fTxtSelector, TGClient::GetRoot(), gFileTypes, gSystem, kFDOpen, TGTextEntry::SetText(), and TSystem::UnixPathName().

void TNewQueryDlg::OnBrowseEventList (  ) 

Definition at line 598 of file TSessionDialogs.cxx.

void TNewQueryDlg::OnBtnSaveClicked (  ) 

Definition at line 605 of file TSessionDialogs.cxx.

References TList::Add(), TGListTree::AddItem(), TString::Append(), xmlio::Class, TGListTree::ClearHighlighted(), fChain, TQueryDescription::fChain, TGObject::fClient, fEditMode, TQueryDescription::fFirstEntry, TGListTree::FindChildByData(), TList::FindObject(), fModified, TQueryDescription::fNbFiles, TQueryDescription::fNoEntries, fNumEntries, fNumFirstEntry, TQueryDescription::fOptions, TString::Form(), Form(), TSessionDescription::fQueries, fQuery, TQueryDescription::fQueryName, TQueryDescription::fResult, TQueryDescription::fSelectorString, TQueryDescription::fStatus, TQueryDescription::fTDSetString, fTxtOptions, fTxtQueryName, fTxtSelector, fViewer, TSessionViewer::GetActDesc(), TGNumberEntry::GetIntNumber(), TObject::GetName(), TSessionViewer::GetQueryConPict(), TGListTree::GetSelected(), TSessionViewer::GetSessionHierarchy(), TSessionViewer::GetSessionItem(), TGTextEntry::GetText(), TGListTree::HighlightItem(), i, j, kFALSE, TQueryDescription::kSessionQueryCreated, name, TGClient::NeedRedraw(), TSessionViewer::OnListTreeClicked(), TGListTree::OpenItem(), TString::Remove(), TGListTree::RenameItem(), TGTextEntry::SelectAll(), TGTextEntry::SetFocus(), TGListTree::SetSelected(), TGTextEntry::SetText(), TGListTreeItem::SetUserData(), and TSessionViewer::WriteConfiguration().

Referenced by OnBtnCloseClicked(), and OnBtnSubmitClicked().

void TNewQueryDlg::OnBtnCloseClicked (  ) 

Definition at line 707 of file TSessionDialogs.cxx.

References TGFrame::DeleteWindow(), TGObject::fClient, fModified, TGClient::GetRoot(), kMBCancel, kMBNo, kMBYes, OnBtnSaveClicked(), and result().

void TNewQueryDlg::OnBtnSubmitClicked (  ) 

Definition at line 698 of file TSessionDialogs.cxx.

References fViewer, TSessionViewer::GetQueryFrame(), OnBtnSaveClicked(), and TSessionQueryFrame::OnBtnSubmit().

void TNewQueryDlg::OnElementSelected ( TObject obj  ) 

Definition at line 572 of file TSessionDialogs.cxx.

References xmlio::Class, fChain, fTxtChain, and TGTextEntry::SetText().

void TNewQueryDlg::CloseWindow (  )  [virtual]

Reimplemented from TGMainFrame.

Definition at line 539 of file TSessionDialogs.cxx.

References TGFrame::DeleteWindow().

void TNewQueryDlg::Popup (  ) 

Definition at line 726 of file TSessionDialogs.cxx.

References fTxtQueryName, TGFrame::MapWindow(), and TGTextEntry::SetFocus().

Referenced by TSessionViewer::EditQuery(), TSessionFrame::OnBtnNewQueryClicked(), and TSessionViewer::ProcessMessage().

void TNewQueryDlg::SettingsChanged (  ) 

Definition at line 735 of file TSessionDialogs.cxx.

References TString::Data(), fBtnSave, fBtnSubmit, TQueryDescription::fChain, fChain, fEditMode, TQueryDescription::fFirstEntry, fModified, TQueryDescription::fNoEntries, fNumEntries, fNumFirstEntry, TQueryDescription::fOptions, fQuery, TQueryDescription::fQueryName, TQueryDescription::fSelectorString, fTxtChain, fTxtOptions, fTxtQueryName, fTxtSelector, TGNumberEntry::GetIntNumber(), TGTextEntry::GetText(), kButtonDisabled, kButtonUp, kFALSE, kTRUE, and TGButton::SetState().

void TNewQueryDlg::UpdateFields ( TQueryDescription desc  ) 

Definition at line 771 of file TSessionDialogs.cxx.

References TQueryDescription::fChain, TQueryDescription::fEventList, TQueryDescription::fFirstEntry, TQueryDescription::fNoEntries, fNumEntries, fNumFirstEntry, TQueryDescription::fOptions, fQuery, TQueryDescription::fQueryName, TQueryDescription::fSelectorString, TQueryDescription::fTDSetString, fTxtChain, fTxtEventList, fTxtOptions, fTxtQueryName, fTxtSelector, TGNumberEntry::SetIntNumber(), and TGTextEntry::SetText().

Referenced by TNewQueryDlg().

Bool_t TNewQueryDlg::ProcessMessage ( Long_t  msg,
Long_t  parm1,
Long_t  parm2 
) [virtual]

Reimplemented from TGCompositeFrame.

Definition at line 787 of file TSessionDialogs.cxx.

References fTxtChain, fTxtEventList, fTxtOptions, fTxtQueryName, fTxtSelector, GET_MSG(), GET_SUBMSG(), kC_TEXTENTRY, kTE_ENTER, kTE_TAB, kTRUE, TGTextEntry::SelectAll(), and TGTextEntry::SetFocus().

void TNewQueryDlg::Build ( TSessionViewer gui  ) 

void TNewQueryDlg::OnNewQueryMore (  ) 

void TNewQueryDlg::OnBrowseChain (  ) 

void TNewQueryDlg::OnBrowseSelector (  ) 

void TNewQueryDlg::OnBrowseEventList (  ) 

void TNewQueryDlg::OnBtnSaveClicked (  ) 

void TNewQueryDlg::OnBtnCloseClicked (  ) 

void TNewQueryDlg::OnBtnSubmitClicked (  ) 

void TNewQueryDlg::OnElementSelected ( TObject obj  ) 

void TNewQueryDlg::CloseWindow (  )  [virtual]

Reimplemented from TGMainFrame.

void TNewQueryDlg::Popup (  ) 

void TNewQueryDlg::SettingsChanged (  ) 

void TNewQueryDlg::UpdateFields ( TQueryDescription desc  ) 

virtual Bool_t TNewQueryDlg::ProcessMessage ( Long_t  msg,
Long_t  parm1,
Long_t  parm2 
) [virtual]

Reimplemented from TGCompositeFrame.


Member Data Documentation

Bool_t TNewQueryDlg::fEditMode [private]

Definition at line 82 of file TSessionDialogs.h.

Referenced by Build(), OnBtnSaveClicked(), SettingsChanged(), and TNewQueryDlg().

Bool_t TNewQueryDlg::fModified [private]

Definition at line 83 of file TSessionDialogs.h.

Referenced by OnBtnCloseClicked(), OnBtnSaveClicked(), SettingsChanged(), and TNewQueryDlg().

TGCompositeFrame* TNewQueryDlg::fFrmNewQuery [private]

Definition at line 84 of file TSessionDialogs.h.

Referenced by Build(), OnNewQueryMore(), and TNewQueryDlg().

TGCompositeFrame* TNewQueryDlg::fFrmMore [private]

Definition at line 85 of file TSessionDialogs.h.

Referenced by Build(), OnNewQueryMore(), and TNewQueryDlg().

TGTextButton* TNewQueryDlg::fBtnMore [private]

Definition at line 86 of file TSessionDialogs.h.

Referenced by Build(), OnNewQueryMore(), and TNewQueryDlg().

TGTextButton* TNewQueryDlg::fBtnClose [private]

Definition at line 87 of file TSessionDialogs.h.

Referenced by Build().

TGTextButton* TNewQueryDlg::fBtnSave [private]

Definition at line 88 of file TSessionDialogs.h.

Referenced by Build(), and SettingsChanged().

TGTextButton* TNewQueryDlg::fBtnSubmit [private]

Definition at line 89 of file TSessionDialogs.h.

Referenced by Build(), and SettingsChanged().

TGTextEntry* TNewQueryDlg::fTxtQueryName [private]

Definition at line 91 of file TSessionDialogs.h.

Referenced by Build(), OnBtnSaveClicked(), Popup(), ProcessMessage(), SettingsChanged(), TNewQueryDlg(), and UpdateFields().

TGTextEntry* TNewQueryDlg::fTxtChain [private]

Definition at line 92 of file TSessionDialogs.h.

Referenced by Build(), OnElementSelected(), ProcessMessage(), SettingsChanged(), and UpdateFields().

TGTextEntry* TNewQueryDlg::fTxtSelector [private]

Definition at line 93 of file TSessionDialogs.h.

Referenced by Build(), OnBrowseSelector(), OnBtnSaveClicked(), ProcessMessage(), SettingsChanged(), and UpdateFields().

TGTextEntry* TNewQueryDlg::fTxtOptions [private]

Definition at line 94 of file TSessionDialogs.h.

Referenced by Build(), OnBtnSaveClicked(), ProcessMessage(), SettingsChanged(), and UpdateFields().

TGNumberEntry* TNewQueryDlg::fNumEntries [private]

Definition at line 95 of file TSessionDialogs.h.

Referenced by Build(), OnBtnSaveClicked(), SettingsChanged(), and UpdateFields().

TGNumberEntry* TNewQueryDlg::fNumFirstEntry [private]

Definition at line 96 of file TSessionDialogs.h.

Referenced by Build(), OnBtnSaveClicked(), SettingsChanged(), and UpdateFields().

TGTextEntry* TNewQueryDlg::fTxtEventList [private]

Definition at line 97 of file TSessionDialogs.h.

Referenced by Build(), ProcessMessage(), and UpdateFields().

TSessionViewer* TNewQueryDlg::fViewer [private]

Definition at line 98 of file TSessionDialogs.h.

Referenced by Build(), OnBtnSaveClicked(), OnBtnSubmitClicked(), and TNewQueryDlg().

TQueryDescription* TNewQueryDlg::fQuery [private]

Definition at line 99 of file TSessionDialogs.h.

Referenced by OnBtnSaveClicked(), SettingsChanged(), TNewQueryDlg(), and UpdateFields().

TObject* TNewQueryDlg::fChain [private]

Definition at line 100 of file TSessionDialogs.h.

Referenced by OnBtnSaveClicked(), OnElementSelected(), SettingsChanged(), and TNewQueryDlg().

TGCompositeFrame* TNewQueryDlg::fFrmNewQuery [private]

Definition at line 84 of file TSessionDialogs.h.

TGCompositeFrame* TNewQueryDlg::fFrmMore [private]

Definition at line 85 of file TSessionDialogs.h.

TGTextButton* TNewQueryDlg::fBtnMore [private]

Definition at line 86 of file TSessionDialogs.h.

TGTextButton* TNewQueryDlg::fBtnClose [private]

Definition at line 87 of file TSessionDialogs.h.

TGTextButton* TNewQueryDlg::fBtnSave [private]

Definition at line 88 of file TSessionDialogs.h.

TGTextButton* TNewQueryDlg::fBtnSubmit [private]

Definition at line 89 of file TSessionDialogs.h.

TGTextEntry* TNewQueryDlg::fTxtQueryName [private]

Definition at line 91 of file TSessionDialogs.h.

TGTextEntry* TNewQueryDlg::fTxtChain [private]

Definition at line 92 of file TSessionDialogs.h.

TGTextEntry* TNewQueryDlg::fTxtSelector [private]

Definition at line 93 of file TSessionDialogs.h.

TGTextEntry* TNewQueryDlg::fTxtOptions [private]

Definition at line 94 of file TSessionDialogs.h.

TGNumberEntry* TNewQueryDlg::fNumEntries [private]

Definition at line 95 of file TSessionDialogs.h.

TGNumberEntry* TNewQueryDlg::fNumFirstEntry [private]

Definition at line 96 of file TSessionDialogs.h.

TGTextEntry* TNewQueryDlg::fTxtEventList [private]

Definition at line 97 of file TSessionDialogs.h.

TSessionViewer* TNewQueryDlg::fViewer [private]

Definition at line 98 of file TSessionDialogs.h.

TQueryDescription* TNewQueryDlg::fQuery [private]

Definition at line 99 of file TSessionDialogs.h.

TObject* TNewQueryDlg::fChain [private]

Definition at line 100 of file TSessionDialogs.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:43:17 2011 for ROOT_528-00b_version by  doxygen 1.5.1