#include <TGTextEditor.h>
Inheritance diagram for TGTextEditor:
Definition at line 43 of file TGTextEditor.h.
TGTextEditor::TGTextEditor | ( | const char * | filename = 0 , |
|
const TGWindow * | p = 0 , |
|||
UInt_t | w = 900 , |
|||
UInt_t | h = 600 | |||
) |
Referenced by ProcessMessage().
Definition at line 260 of file TGTextEditor.cxx.
References TGTextView::AddLine(), Build(), TString::Data(), fComboCmd, fFilename, fLabel, fMacro, TString::Form(), fStatusBar, fTextEdit, fToolBar, gClient, TGToolBar::GetButton(), TGClient::GetDefaultRoot(), TMacro::GetListOfLines(), TNamed::GetName(), kButtonDisabled, kM_FILE_EXIT, TGCompositeFrame::Layout(), TGFrame::MapWindow(), p, TGTextView::ReturnLineCount(), TGButton::SetState(), TGStatusBar::SetText(), TGMainFrame::SetWindowName(), and TGFrame::UnmapWindow().
TGTextEditor::~TGTextEditor | ( | ) | [virtual] |
Definition at line 294 of file TGTextEditor.cxx.
References fMenuEdit, fMenuFile, fMenuHelp, fMenuSearch, fMenuTools, and fTimer.
TGTextEditor::TGTextEditor | ( | const char * | filename = 0 , |
|
const TGWindow * | p = 0 , |
|||
UInt_t | w = 900 , |
|||
UInt_t | h = 600 | |||
) |
virtual TGTextEditor::~TGTextEditor | ( | ) | [virtual] |
void TGTextEditor::Build | ( | ) | [protected, virtual] |
Definition at line 322 of file TGTextEditor.cxx.
References TGToolBar::AddButton(), TGPopupMenu::AddEntry(), TGCompositeFrame::AddFrame(), TGFrame::AddInput(), TGMenuBar::AddPopup(), TGPopupMenu::AddSeparator(), TGPopupMenu::Associate(), TGWidget::Associate(), TQObject::Connect(), TString::Data(), TGPopupMenu::DisableEntry(), TGObject::fClient, fComboCmd, fCommand, fCommandBuf, fExiting, fFilename, TGObject::fId, fLabel, fMacro, fMenuBar, fMenuBarItemLayout, fMenuBarLayout, fMenuEdit, fMenuFile, fMenuHelp, fMenuSearch, fMenuTools, ToolBarData_t::fPixmap, fStatusBar, fTbData, fTextChanged, fTextEdit, fTimer, fToolBar, gClient, TGFrame::GetBlackPixel(), TGTextEntry::GetBuffer(), TGClient::GetColorByName(), TGCompositeFrame::GetDefaultHeight(), TGFrame::GetDefaultHeight(), TGClient::GetDefaultRoot(), TGCompositeFrame::GetDefaultWidth(), TGComboBox::GetTextEntry(), gVirtualX, i, kButtonDisabled, kDeepCleanup, kEnterWindowMask, kFALSE, kFocusChangeMask, kHorizontalFrame, kKey_F3, kKeyPressMask, kLeaveWindowMask, kLHintsBottom, kLHintsCenterY, kLHintsExpandX, kLHintsExpandY, kLHintsLeft, kLHintsRight, kLHintsTop, kM_EDIT_COPY, kM_EDIT_CUT, kM_EDIT_DELETE, kM_EDIT_PASTE, kM_EDIT_SELECTALL, kM_EDIT_SELFONT, kM_FILE_EXIT, kM_FILE_NEW, kM_FILE_OPEN, kM_FILE_PRINT, kM_FILE_SAVE, kM_FILE_SAVEAS, kM_HELP_ABOUT, kM_HELP_CONTENTS, kM_SEARCH_FIND, kM_SEARCH_FINDNEXT, kM_SEARCH_GOTO, kM_TOOLS_COMPILE, kM_TOOLS_EXECUTE, kM_TOOLS_INTERRUPT, kStructureNotifyMask, kTRUE, TGCompositeFrame::Layout(), TGCompositeFrame::MapSubwindows(), TGFrame::MapWindow(), TTimer::Reset(), TGFrame::Resize(), TGMainFrame::SetClassHints(), TGCompositeFrame::SetCleanup(), TGTextEdit::SetFocus(), TGStatusBar::SetParts(), TGTextView::SetSelectBack(), TGTextView::SetSelectFore(), TGStatusBar::SetText(), TGMainFrame::SetWindowName(), and TTimer::TurnOn().
Referenced by TGTextEditor().
void TGTextEditor::ClearText | ( | ) |
Definition at line 686 of file TGTextEditor.cxx.
References TGTextEdit::Clear(), fFilename, fMacro, fStatusBar, fTextChanged, fTextEdit, kFALSE, TGStatusBar::SetText(), and TGMainFrame::SetWindowName().
Bool_t TGTextEditor::LoadBuffer | ( | const char * | buf | ) | [inline] |
void TGTextEditor::LoadFile | ( | char * | fname = 0 |
) |
Definition at line 481 of file TGTextEditor.cxx.
References TString::Data(), ed_filetypes, TGObject::fClient, TGFileInfo::fFilename, fFilename, TGFileInfo::fFileTypes, fi, TString::Form(), fStatusBar, fTextChanged, fTextEdit, TGClient::GetDefaultRoot(), TGClient::GetRoot(), kFALSE, kFDOpen, kMBIconExclamation, kMBOk, TGTextView::Layout(), TGTextView::LoadFile(), TGTextView::ReturnLineCount(), TGStatusBar::SetText(), and TGMainFrame::SetWindowName().
Referenced by ProcessMessage().
void TGTextEditor::SaveFile | ( | const char * | fname | ) |
Definition at line 512 of file TGTextEditor.cxx.
References TString::Data(), TGObject::fClient, TString::Form(), fStatusBar, fTextChanged, fTextEdit, TGClient::GetRoot(), kFALSE, kMBIconExclamation, kMBOk, p, TGTextView::ReturnLineCount(), TGTextEdit::SaveFile(), TGStatusBar::SetText(), and TGMainFrame::SetWindowName().
Referenced by CloseWindow(), ExecuteMacro(), ProcessMessage(), and SaveFileAs().
Bool_t TGTextEditor::SaveFileAs | ( | ) |
Definition at line 539 of file TGTextEditor.cxx.
References dir(), ed_filetypes, TGObject::fClient, TGFileInfo::fFilename, fFilename, TGFileInfo::fFileTypes, fi, TGFileInfo::fIniDir, TGFileInfo::fOverwrite, TGClient::GetDefaultRoot(), kFALSE, kFDSave, kTRUE, SaveFile(), and StrDup().
Referenced by CloseWindow(), CompileMacro(), ExecuteMacro(), and ProcessMessage().
void TGTextEditor::PrintText | ( | ) |
Definition at line 583 of file TGTextEditor.cxx.
References TString::Data(), TGObject::fClient, fFilename, TString::Form(), fStatusBar, fTextEdit, gEPrintCommand, gEPrinter, TGClient::GetDefaultRoot(), TGTextEdit::Print(), TGStatusBar::SetText(), and StrDup().
Referenced by ProcessMessage().
void TGTextEditor::Search | ( | Bool_t | ret | ) |
Definition at line 699 of file TGTextEditor.cxx.
References fTextEdit, kC_COMMAND, kCM_MENU, kFALSE, TGTextEdit::kM_SEARCH_FINDAGAIN, MK_MSG(), TGTextEdit::Search(), and TGFrame::SendMessage().
Referenced by HandleKey(), and ProcessMessage().
void TGTextEditor::Goto | ( | ) |
Definition at line 713 of file TGTextEditor.cxx.
References TGObject::fClient, fTextEdit, TGClient::GetDefaultRoot(), and TGTextEdit::Goto().
Referenced by ProcessMessage().
void TGTextEditor::About | ( | ) |
Definition at line 801 of file TGTextEditor.cxx.
References TSystem::Exec(), TSystem::Getenv(), TROOT::GetVersion(), gHelpAbout, gROOT, gSystem, TString::IsNull(), kTRUE, sprintf(), and str.
Referenced by ProcessMessage().
void TGTextEditor::DataChanged | ( | ) | [inline] |
void TGTextEditor::DataDropped | ( | char * | fname | ) |
Definition at line 467 of file TGTextEditor.cxx.
References TString::Data(), fFilename, TString::Form(), fStatusBar, fTextEdit, TGTextView::ReturnLineCount(), TGStatusBar::SetText(), and TGMainFrame::SetWindowName().
Int_t TGTextEditor::IsSaved | ( | ) |
Definition at line 561 of file TGTextEditor.cxx.
References TString::Data(), TGObject::fClient, TString::Form(), TGWindow::fParent, fTextChanged, gClient, TGClient::GetDefaultRoot(), TGClient::GetRoot(), kMBCancel, kMBIconExclamation, kMBNo, and kMBYes.
Referenced by CloseWindow(), and ProcessMessage().
void TGTextEditor::CompileMacro | ( | ) |
Definition at line 726 of file TGTextEditor.cxx.
References TSystem::BaseName(), TString::CompareTo(), TSystem::CompileMacro(), TSystem::ConcatFileName(), TString::Data(), fFilename, fMacro, fTextEdit, gSystem, kFALSE, TGTextView::ReturnLineCount(), TGTextEdit::SaveFile(), SaveFileAs(), TSystem::TempDirectory(), and TSystem::Unlink().
Referenced by HandleKey(), and ProcessMessage().
void TGTextEditor::ExecuteMacro | ( | ) |
Definition at line 745 of file TGTextEditor.cxx.
References TSystem::BaseName(), TSystem::ChangeDirectory(), TString::CompareTo(), TString::Data(), TSystem::DirName(), TGObject::fClient, fFilename, fMacro, fTextChanged, fTextEdit, TGClient::GetRoot(), gInterpreter, gROOT, gSystem, kFALSE, kMBCancel, kMBIconExclamation, kMBNo, kMBYes, kTRUE, TROOT::Macro(), TGTextView::ReturnLineCount(), TGTextEdit::SaveFile(), SaveFile(), SaveFileAs(), TROOT::SetExecutingMacro(), TSystem::Unlink(), and TSystem::WorkingDirectory().
Referenced by HandleKey(), and ProcessMessage().
void TGTextEditor::InterruptMacro | ( | ) |
Definition at line 793 of file TGTextEditor.cxx.
References gROOT, kTRUE, and TROOT::SetInterrupt().
Referenced by HandleKey(), and ProcessMessage().
void TGTextEditor::SetText | ( | TGText * | text | ) | [inline] |
Definition at line 91 of file TGTextEditor.h.
References fTextEdit, TGTextView::SetText(), and text().
void TGTextEditor::AddText | ( | TGText * | text | ) | [inline] |
Definition at line 92 of file TGTextEditor.h.
References TGTextView::AddText(), fTextEdit, and text().
void TGTextEditor::AddLine | ( | const char * | string | ) | [inline] |
void TGTextEditor::AddLineFast | ( | const char * | string | ) | [inline] |
TGText* TGTextEditor::GetText | ( | ) | const [inline] |
Reimplemented from TGCompositeFrame.
Definition at line 876 of file TGTextEditor.cxx.
References About(), CloseWindow(), TString::CompareTo(), CompileMacro(), TGTextEdit::Copy(), TGTextEdit::Cut(), TString::Data(), TGTextEdit::Delete(), TGPopupMenu::EnableEntry(), ExecuteMacro(), TGFontDialog::FontProp_t::fBold, TGObject::fClient, fComboCmd, fCommandBuf, fFilename, TGFontDialog::FontProp_t::fItalic, fMenuEdit, TGFontDialog::FontProp_t::fName, TString::Form(), TGFontDialog::FontProp_t::fSize, fTextChanged, fTextEdit, fToolBar, GET_MSG(), GET_SUBMSG(), TGToolBar::GetButton(), TGClient::GetFont(), TGFont::GetFontStruct(), TGClient::GetRoot(), TGButton::GetState(), TGTextBuffer::GetString(), gHelpTextEditor, Goto(), gROOT, gVirtualX, InterruptMacro(), TGTextView::IsMarked(), IsSaved(), kButtonDisabled, kButtonUp, kC_COMMAND, kC_TEXTENTRY, kCM_BUTTON, kCM_MENU, kFALSE, kM_EDIT_COPY, kM_EDIT_CUT, kM_EDIT_DELETE, kM_EDIT_PASTE, kM_EDIT_SELECTALL, kM_EDIT_SELFONT, kM_FILE_EXIT, kM_FILE_NEW, kM_FILE_OPEN, kM_FILE_PRINT, kM_FILE_SAVE, kM_FILE_SAVEAS, kM_HELP_ABOUT, kM_HELP_CONTENTS, kM_SEARCH_FIND, kM_SEARCH_FINDNEXT, kM_SEARCH_GOTO, kM_TOOLS_COMPILE, kM_TOOLS_EXECUTE, kM_TOOLS_INTERRUPT, kMBCancel, kMBNo, kMBYes, kTE_ENTER, kTRUE, LoadFile(), TGTextEdit::Paste(), TRootHelpDialog::Popup(), PrintText(), TROOT::ProcessLine(), TGComboBox::ReturnPressed(), SaveFile(), SaveFileAs(), Search(), TGTextView::SelectAll(), TGTextView::SetFont(), TGButton::SetState(), TRootHelpDialog::SetText(), TGTextEditor(), and TGTextView::Update().
Reimplemented from TGMainFrame.
Definition at line 629 of file TGTextEditor.cxx.
References CompileMacro(), ExecuteMacro(), Event_t::fType, gVirtualX, TGMainFrame::HandleKey(), InterruptMacro(), kC_COMMAND, kCM_MENU, kGKeyPress, kKey_Alt, kKey_CapsLock, kKey_Control, kKey_F1, kKey_F3, kKey_F5, kKey_F7, kKey_Meta, kKey_NumLock, kKey_ScrollLock, kKey_Shift, kKeyControlMask, kKeyShiftMask, kM_HELP_CONTENTS, kTRUE, MK_MSG(), n, Search(), and TGFrame::SendMessage().
Reimplemented from TGWindow.
Definition at line 829 of file TGTextEditor.cxx.
References TString::Data(), TGPopupMenu::DisableEntry(), TGPopupMenu::EnableEntry(), fMenuEdit, TString::Form(), fStatusBar, fTextEdit, fTimer, fToolBar, TGLongPosition::fX, TGLongPosition::fY, TGToolBar::GetButton(), TGTextEdit::GetCurrentPos(), TGButton::GetState(), gVirtualX, TGTextView::IsMarked(), kButtonDisabled, kButtonUp, kM_EDIT_COPY, kM_EDIT_CUT, kM_EDIT_DELETE, kM_EDIT_PASTE, kNone, kTRUE, TTimer::Reset(), TGButton::SetState(), TGStatusBar::SetText(), and t.
void TGTextEditor::CloseWindow | ( | ) | [virtual] |
Reimplemented from TGMainFrame.
Definition at line 603 of file TGTextEditor.cxx.
References TGMainFrame::CloseWindow(), TString::CompareTo(), TString::Data(), fExiting, fFilename, TGWindow::fParent, fTextChanged, gClient, TGClient::GetDefaultRoot(), IsSaved(), kFALSE, kMBCancel, kMBNo, kMBYes, kTRUE, SaveFile(), and SaveFileAs().
Referenced by ProcessMessage().
void TGTextEditor::DeleteWindow | ( | ) | [virtual] |
Reimplemented from TGFrame.
Definition at line 307 of file TGTextEditor.cxx.
References TGCompositeFrame::Cleanup(), TGFrame::DeleteWindow(), fMenuEdit, fMenuFile, fMenuHelp, fMenuSearch, fMenuTools, and fTimer.
virtual void TGTextEditor::Build | ( | ) | [protected, virtual] |
void TGTextEditor::ClearText | ( | ) |
Bool_t TGTextEditor::LoadBuffer | ( | const char * | buf | ) | [inline] |
void TGTextEditor::LoadFile | ( | char * | fname = 0 |
) |
void TGTextEditor::SaveFile | ( | const char * | fname | ) |
Bool_t TGTextEditor::SaveFileAs | ( | ) |
void TGTextEditor::PrintText | ( | ) |
void TGTextEditor::Search | ( | Bool_t | ret | ) |
void TGTextEditor::Goto | ( | ) |
void TGTextEditor::About | ( | ) |
void TGTextEditor::DataChanged | ( | ) | [inline] |
void TGTextEditor::DataDropped | ( | char * | fname | ) |
Int_t TGTextEditor::IsSaved | ( | ) |
void TGTextEditor::CompileMacro | ( | ) |
void TGTextEditor::ExecuteMacro | ( | ) |
void TGTextEditor::InterruptMacro | ( | ) |
void TGTextEditor::SetText | ( | TGText * | text | ) | [inline] |
Definition at line 91 of file TGTextEditor.h.
References fTextEdit, TGTextView::SetText(), and text().
void TGTextEditor::AddText | ( | TGText * | text | ) | [inline] |
Definition at line 92 of file TGTextEditor.h.
References TGTextView::AddText(), fTextEdit, and text().
void TGTextEditor::AddLine | ( | const char * | string | ) | [inline] |
void TGTextEditor::AddLineFast | ( | const char * | string | ) | [inline] |
TGText* TGTextEditor::GetText | ( | ) | const [inline] |
Reimplemented from TGCompositeFrame.
Reimplemented from TGMainFrame.
virtual void TGTextEditor::CloseWindow | ( | ) | [virtual] |
Reimplemented from TGMainFrame.
virtual void TGTextEditor::DeleteWindow | ( | ) | [virtual] |
Reimplemented from TGFrame.
TTimer* TGTextEditor::fTimer [protected] |
Definition at line 47 of file TGTextEditor.h.
Referenced by Build(), DeleteWindow(), HandleTimer(), and ~TGTextEditor().
TGStatusBar* TGTextEditor::fStatusBar [protected] |
Definition at line 48 of file TGTextEditor.h.
Referenced by Build(), ClearText(), DataDropped(), HandleTimer(), LoadFile(), PrintText(), SaveFile(), and TGTextEditor().
TGToolBar* TGTextEditor::fToolBar [protected] |
Definition at line 49 of file TGTextEditor.h.
Referenced by Build(), HandleTimer(), ProcessMessage(), and TGTextEditor().
TGTextEdit* TGTextEditor::fTextEdit [protected] |
Definition at line 50 of file TGTextEditor.h.
Referenced by AddLine(), AddLineFast(), AddText(), Build(), ClearText(), CompileMacro(), DataDropped(), ExecuteMacro(), GetText(), Goto(), HandleTimer(), LoadBuffer(), LoadFile(), PrintText(), ProcessMessage(), SaveFile(), Search(), SetText(), and TGTextEditor().
TGLabel* TGTextEditor::fLabel [protected] |
TGComboBox* TGTextEditor::fComboCmd [protected] |
Definition at line 52 of file TGTextEditor.h.
Referenced by Build(), ProcessMessage(), and TGTextEditor().
TGTextEntry* TGTextEditor::fCommand [protected] |
TGTextBuffer* TGTextEditor::fCommandBuf [protected] |
TGLayoutHints* TGTextEditor::fMenuBarLayout [protected] |
TGLayoutHints* TGTextEditor::fMenuBarItemLayout [protected] |
TGMenuBar* TGTextEditor::fMenuBar [protected] |
TGPopupMenu* TGTextEditor::fMenuFile [protected] |
Definition at line 58 of file TGTextEditor.h.
Referenced by Build(), DeleteWindow(), and ~TGTextEditor().
TGPopupMenu* TGTextEditor::fMenuEdit [protected] |
Definition at line 59 of file TGTextEditor.h.
Referenced by Build(), DeleteWindow(), HandleTimer(), ProcessMessage(), and ~TGTextEditor().
TGPopupMenu* TGTextEditor::fMenuSearch [protected] |
Definition at line 60 of file TGTextEditor.h.
Referenced by Build(), DeleteWindow(), and ~TGTextEditor().
TGPopupMenu* TGTextEditor::fMenuTools [protected] |
Definition at line 61 of file TGTextEditor.h.
Referenced by Build(), DeleteWindow(), and ~TGTextEditor().
TGPopupMenu* TGTextEditor::fMenuHelp [protected] |
Definition at line 62 of file TGTextEditor.h.
Referenced by Build(), DeleteWindow(), and ~TGTextEditor().
Bool_t TGTextEditor::fExiting [protected] |
Bool_t TGTextEditor::fTextChanged [protected] |
Definition at line 64 of file TGTextEditor.h.
Referenced by Build(), ClearText(), CloseWindow(), DataChanged(), ExecuteMacro(), IsSaved(), LoadFile(), ProcessMessage(), and SaveFile().
TString TGTextEditor::fFilename [protected] |
Definition at line 65 of file TGTextEditor.h.
Referenced by Build(), ClearText(), CloseWindow(), CompileMacro(), DataDropped(), ExecuteMacro(), LoadFile(), PrintText(), ProcessMessage(), SaveFileAs(), and TGTextEditor().
TMacro* TGTextEditor::fMacro [protected] |
Definition at line 66 of file TGTextEditor.h.
Referenced by Build(), ClearText(), CompileMacro(), ExecuteMacro(), and TGTextEditor().
TTimer* TGTextEditor::fTimer [protected] |
Definition at line 47 of file TGTextEditor.h.
TGStatusBar* TGTextEditor::fStatusBar [protected] |
Definition at line 48 of file TGTextEditor.h.
TGToolBar* TGTextEditor::fToolBar [protected] |
Definition at line 49 of file TGTextEditor.h.
TGTextEdit* TGTextEditor::fTextEdit [protected] |
Definition at line 50 of file TGTextEditor.h.
TGLabel* TGTextEditor::fLabel [protected] |
Definition at line 51 of file TGTextEditor.h.
TGComboBox* TGTextEditor::fComboCmd [protected] |
Definition at line 52 of file TGTextEditor.h.
TGTextEntry* TGTextEditor::fCommand [protected] |
Definition at line 53 of file TGTextEditor.h.
TGTextBuffer* TGTextEditor::fCommandBuf [protected] |
Definition at line 54 of file TGTextEditor.h.
TGLayoutHints* TGTextEditor::fMenuBarLayout [protected] |
Definition at line 55 of file TGTextEditor.h.
TGLayoutHints* TGTextEditor::fMenuBarItemLayout [protected] |
Definition at line 56 of file TGTextEditor.h.
TGMenuBar* TGTextEditor::fMenuBar [protected] |
Definition at line 57 of file TGTextEditor.h.
TGPopupMenu* TGTextEditor::fMenuFile [protected] |
Definition at line 58 of file TGTextEditor.h.
TGPopupMenu* TGTextEditor::fMenuEdit [protected] |
Definition at line 59 of file TGTextEditor.h.
TGPopupMenu* TGTextEditor::fMenuSearch [protected] |
Definition at line 60 of file TGTextEditor.h.
TGPopupMenu* TGTextEditor::fMenuTools [protected] |
Definition at line 61 of file TGTextEditor.h.
TGPopupMenu* TGTextEditor::fMenuHelp [protected] |
Definition at line 62 of file TGTextEditor.h.
TMacro* TGTextEditor::fMacro [protected] |
Definition at line 66 of file TGTextEditor.h.