TGDocument Class Reference

#include <TGRootIDE.h>

Inheritance diagram for TGDocument:

TNamed TObject TObject List of all members.

Public Member Functions

 TGDocument (const char *fname="", const char *title="", Int_t tabid=0, TGTab *tab=0, TGTabElement *tabel=0, TGTextEdit *edit=0, TObjArray *doclist=0)
virtual ~TGDocument ()
Bool_t Open (const char *filename)
Bool_t Close ()
Bool_t Save (const char *filename="")
Int_t GetTabId () const
Bool_t IsModified () const
void SetTabId (Int_t id)
void Modified (Bool_t mod=kTRUE)
TGTextEditGetTextEdit () const
TGTabGetTab () const
TGTabElementGetTabEl () const
void DataChanged ()
void DataDropped (char *fname)

Protected Attributes

Int_t fTabId
Bool_t fModified
TGTextEditfEditor
TGTabfTab
TGTabElementfTabEl
TObjArrayfDocList

Detailed Description

Definition at line 54 of file TGRootIDE.h.


Constructor & Destructor Documentation

TGDocument::TGDocument ( const char *  fname = "",
const char *  title = "",
Int_t  tabid = 0,
TGTab tab = 0,
TGTabElement tabel = 0,
TGTextEdit edit = 0,
TObjArray doclist = 0 
)

virtual TGDocument::~TGDocument (  )  [inline, virtual]

Definition at line 68 of file TGRootIDE.h.


Member Function Documentation

Bool_t TGDocument::Open ( const char *  filename  ) 

Definition at line 375 of file TGRootIDE.cxx.

References TGTab::AddTab(), TGWidget::Associate(), TSystem::BaseName(), TGText::ColCount(), TQObject::Connect(), ed_filetypes, fEditor, TGFileInfo::fFileTypes, fi, fModified, Form(), fTab, fTabEl, gClient, TGFrame::GetBlackPixel(), TGClient::GetColorByName(), TGTab::GetCurrent(), TGWindow::GetMainFrame(), TGTab::GetNumberOfTabs(), TGClient::GetRoot(), TGTab::GetTabTab(), TGTextView::GetText(), gSystem, kFALSE, kLHintsExpandX, kLHintsExpandY, kMBIconExclamation, kMBOk, kTRUE, TGTextView::Layout(), TGCompositeFrame::Layout(), TGTextView::LoadFile(), TGCompositeFrame::MapSubwindows(), TGFrame::MapWindow(), TGText::RowCount(), TGCompositeFrame::SetLayoutManager(), TNamed::SetName(), TGTextView::SetSelectBack(), TGTextView::SetSelectFore(), TGTab::SetTab(), TGTabElement::SetText(), TNamed::SetTitle(), and TGTabElement::ShowClose().

Bool_t TGDocument::Close (  ) 

Definition at line 317 of file TGRootIDE.cxx.

References TGTextEdit::Clear(), TString::Data(), fDocList, fEditor, fModified, Form(), fTab, fTabEl, gClient, TGTab::GetCurrent(), TGWindow::GetMainFrame(), TNamed::GetName(), TGTab::GetNumberOfTabs(), TGClient::GetRoot(), kMBCancel, kMBIconExclamation, kMBNo, kMBYes, kTRUE, TGCompositeFrame::Layout(), TGCompositeFrame::MapSubwindows(), TObjArray::Remove(), TGTab::RemoveTab(), Save(), and TGTabElement::SetText().

Referenced by TGRootIDE::CloseTab(), and TGRootIDE::ProcessMessage().

Bool_t TGDocument::Save ( const char *  filename = ""  ) 

Definition at line 459 of file TGRootIDE.cxx.

References TSystem::BaseName(), fEditor, fModified, Form(), fTab, fTabEl, gClient, TNamed::GetName(), TGClient::GetRoot(), gSystem, kFALSE, TString::kLeading, kMBIconExclamation, kMBOk, kTRUE, TGFrame::Layout(), TGTextEdit::SaveFile(), TGTabElement::SetText(), and sname.

Referenced by Close(), TGRootIDE::IsSaved(), TGRootIDE::SaveFile(), and TGRootIDE::SaveFileAs().

Int_t TGDocument::GetTabId (  )  const [inline]

Definition at line 73 of file TGRootIDE.h.

References fTabId.

Bool_t TGDocument::IsModified (  )  const [inline]

Definition at line 74 of file TGRootIDE.h.

References fModified.

Referenced by TGRootIDE::IsSaved().

void TGDocument::SetTabId ( Int_t  id  )  [inline]

Definition at line 75 of file TGRootIDE.h.

References fTabId.

void TGDocument::Modified ( Bool_t  mod = kTRUE  )  [inline]

Definition at line 76 of file TGRootIDE.h.

References fModified.

TGTextEdit* TGDocument::GetTextEdit (  )  const [inline]

Definition at line 77 of file TGRootIDE.h.

References fEditor.

Referenced by TGRootIDE::DoTab(), and TGRootIDE::LoadFile().

TGTab* TGDocument::GetTab (  )  const [inline]

Definition at line 78 of file TGRootIDE.h.

References fTab.

TGTabElement* TGDocument::GetTabEl (  )  const [inline]

Definition at line 79 of file TGRootIDE.h.

References fTabEl.

Referenced by TGRootIDE::DoTab().

void TGDocument::DataChanged (  ) 

Definition at line 501 of file TGRootIDE.cxx.

References fEditor, fModified, Form(), fTab, fTabEl, TGTextEdit::GetHistory(), TGTabElement::GetString(), hist, kFALSE, TString::kLeading, kTRUE, TGCompositeFrame::Layout(), TGTabElement::SetText(), and sname.

void TGDocument::DataDropped ( char *  fname  ) 

Definition at line 482 of file TGRootIDE.cxx.

References TSystem::BaseName(), fModified, Form(), fTab, fTabEl, TNamed::GetName(), TGTabElement::GetString(), gSystem, kTRUE, TGCompositeFrame::Layout(), TGFrame::Layout(), TGCompositeFrame::MapSubwindows(), TNamed::SetName(), TGTabElement::SetText(), and TNamed::SetTitle().


Member Data Documentation

Int_t TGDocument::fTabId [protected]

Definition at line 57 of file TGRootIDE.h.

Referenced by GetTabId(), and SetTabId().

Bool_t TGDocument::fModified [protected]

Definition at line 58 of file TGRootIDE.h.

Referenced by Close(), DataChanged(), DataDropped(), IsModified(), Modified(), Open(), and Save().

TGTextEdit* TGDocument::fEditor [protected]

Definition at line 59 of file TGRootIDE.h.

Referenced by Close(), DataChanged(), GetTextEdit(), Open(), and Save().

TGTab* TGDocument::fTab [protected]

Definition at line 60 of file TGRootIDE.h.

Referenced by Close(), DataChanged(), DataDropped(), GetTab(), Open(), and Save().

TGTabElement* TGDocument::fTabEl [protected]

Definition at line 61 of file TGRootIDE.h.

Referenced by Close(), DataChanged(), DataDropped(), GetTabEl(), Open(), and Save().

TObjArray* TGDocument::fDocList [protected]

Definition at line 62 of file TGRootIDE.h.

Referenced by Close().


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