#include <TGRootIDE.h>
Inheritance diagram for TGDocument:
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) |
TGTextEdit * | GetTextEdit () const |
TGTab * | GetTab () const |
TGTabElement * | GetTabEl () const |
void | DataChanged () |
void | DataDropped (char *fname) |
Protected Attributes | |
Int_t | fTabId |
Bool_t | fModified |
TGTextEdit * | fEditor |
TGTab * | fTab |
TGTabElement * | fTabEl |
TObjArray * | fDocList |
Definition at line 54 of file TGRootIDE.h.
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.
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] |
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] |
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] |
TGTabElement* TGDocument::GetTabEl | ( | ) | const [inline] |
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().
Int_t TGDocument::fTabId [protected] |
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] |