Editor Class Reference

#include <guitest.h>

Inheritance diagram for Editor:

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

Public Member Functions

 Editor (const TGWindow *main, UInt_t w, UInt_t h)
virtual ~Editor ()
void LoadBuffer (const char *buffer)
void LoadFile (const char *file)
TGTextEdit * GetEditor () const
void SetTitle ()
void Popup ()
void CloseWindow ()
Bool_t ProcessMessage (Long_t msg, Long_t parm1, Long_t parm2)
 Editor (const TGWindow *main, UInt_t w, UInt_t h)
virtual ~Editor ()
void LoadBuffer (const char *buffer)
void LoadFile (const char *file)
TGTextEdit * GetEditor () const
void SetTitle ()
void Popup ()
void CloseWindow ()
Bool_t ProcessMessage (Long_t msg, Long_t parm1, Long_t parm2)
 Editor (const TGWindow *main, UInt_t w, UInt_t h)
virtual ~Editor ()
void LoadFile (const char *file)
void LoadBuffer (const char *buffer)
void AddBuffer (const char *buffer)
TGTextEdit * GetEditor () const
void SetTitle ()
void Popup ()
void CloseWindow ()
void DoOK ()
void DoOpen ()
void DoSave ()
void DoClose ()

Private Attributes

TGTextEdit * fEdit
TGTextButton * fOK
TGLayoutHints * fL1
TGLayoutHints * fL2
TGTextEdit * fEdit
TGTextButton * fOK
TGLayoutHints * fL1
TGLayoutHints * fL2
TGTransientFrame * fMain
TGTextEdit * fEdit
TGTextButton * fOK
TGLayoutHints * fL1
TGLayoutHints * fL2

Detailed Description

Definition at line 236 of file guitest.h.


Constructor & Destructor Documentation

Editor::Editor ( const TGWindow *  main,
UInt_t  w,
UInt_t  h 
)

Definition at line 1420 of file guitest.cpp.

References TGCompositeFrame::AddFrame(), fEdit, TGFrame::fHeight, fL1, fL2, fOK, TGFrame::fWidth, TGCompositeFrame::GetDefaultSize(), TGFrame::GetHeight(), TGObject::GetId(), TGWindow::GetParent(), gVirtualX, kDoubleBorder, kLHintsBottom, kLHintsCenterX, kLHintsExpandX, kLHintsExpandY, kSunkenFrame, main(), TGCompositeFrame::MapSubwindows(), TGFrame::Move(), TGFrame::Resize(), SetTitle(), and TGMainFrame::SetWMPosition().

Editor::~Editor (  )  [virtual]

Definition at line 1450 of file guitest.cpp.

References fEdit, fL1, fL2, and fOK.

Editor::Editor ( const TGWindow *  main,
UInt_t  w,
UInt_t  h 
)

virtual Editor::~Editor (  )  [virtual]

Editor::Editor ( const TGWindow *  main,
UInt_t  w,
UInt_t  h 
)

virtual Editor::~Editor (  )  [virtual]


Member Function Documentation

void Editor::LoadBuffer ( const char *  buffer  ) 

Definition at line 1484 of file guitest.cpp.

References fEdit, and TGTextView::LoadBuffer().

Referenced by TestMainFrame::DoButton(), and TestMainFrame::ProcessMessage().

void Editor::LoadFile ( const char *  file  ) 

Definition at line 1491 of file guitest.cpp.

References fEdit, and TGTextView::LoadFile().

TGTextEdit* Editor::GetEditor (  )  const [inline]

Definition at line 251 of file guitest.h.

References fEdit.

Referenced by SetTitle().

void Editor::SetTitle (  ) 

Definition at line 1460 of file guitest.cpp.

References GetEditor(), TGText::GetFileName(), TGTextView::GetText(), kFALSE, kTRUE, TGMainFrame::SetIconName(), TGMainFrame::SetWindowName(), sprintf(), and title.

Referenced by DoOpen(), DoSave(), Editor(), and ProcessMessage().

void Editor::Popup (  ) 

Definition at line 1477 of file guitest.cpp.

References TGFrame::MapWindow().

Referenced by TestMainFrame::DoButton(), and TestMainFrame::ProcessMessage().

void Editor::CloseWindow (  )  [virtual]

Reimplemented from TGMainFrame.

Definition at line 1498 of file guitest.cpp.

Referenced by DoClose(), and DoOK().

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

Reimplemented from TGCompositeFrame.

Definition at line 1505 of file guitest.cpp.

References GET_MSG(), GET_SUBMSG(), kC_COMMAND, kC_TEXTVIEW, kCM_BUTTON, kTRUE, kTXT_CLOSE, kTXT_OPEN, kTXT_SAVE, and SetTitle().

void Editor::LoadBuffer ( const char *  buffer  ) 

void Editor::LoadFile ( const char *  file  ) 

TGTextEdit* Editor::GetEditor (  )  const [inline]

Definition at line 447 of file guitest.cxx.

References fEdit.

void Editor::SetTitle (  ) 

void Editor::Popup (  ) 

void Editor::CloseWindow (  )  [virtual]

Reimplemented from TGMainFrame.

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

Reimplemented from TGCompositeFrame.

void Editor::LoadFile ( const char *  file  ) 

void Editor::LoadBuffer ( const char *  buffer  ) 

void Editor::AddBuffer ( const char *  buffer  ) 

Definition at line 2522 of file guitest.C.

References TGTextView::AddText(), fEdit, and TGText::LoadBuffer().

Referenced by TestMainFrame::DoButton().

TGTextEdit* Editor::GetEditor (  )  const [inline]

Definition at line 505 of file guitest.C.

void Editor::SetTitle (  ) 

void Editor::Popup (  ) 

void Editor::CloseWindow (  )  [virtual]

Reimplemented from TGMainFrame.

void Editor::DoOK (  ) 

Definition at line 2538 of file guitest.C.

References CloseWindow().

void Editor::DoOpen (  ) 

Definition at line 2545 of file guitest.C.

References SetTitle().

void Editor::DoSave (  ) 

Definition at line 2550 of file guitest.C.

References SetTitle().

void Editor::DoClose (  ) 

Definition at line 2555 of file guitest.C.

References CloseWindow().


Member Data Documentation

TGTextEdit* Editor::fEdit [private]

Definition at line 239 of file guitest.h.

Referenced by AddBuffer(), Editor(), GetEditor(), LoadBuffer(), LoadFile(), and ~Editor().

TGTextButton* Editor::fOK [private]

Definition at line 240 of file guitest.h.

Referenced by Editor(), and ~Editor().

TGLayoutHints* Editor::fL1 [private]

Definition at line 241 of file guitest.h.

Referenced by Editor(), and ~Editor().

TGLayoutHints* Editor::fL2 [private]

Definition at line 242 of file guitest.h.

Referenced by Editor(), and ~Editor().

TGTextEdit* Editor::fEdit [private]

Definition at line 435 of file guitest.cxx.

TGTextButton* Editor::fOK [private]

Definition at line 436 of file guitest.cxx.

TGLayoutHints* Editor::fL1 [private]

Definition at line 437 of file guitest.cxx.

TGLayoutHints* Editor::fL2 [private]

Definition at line 438 of file guitest.cxx.

TGTransientFrame* Editor::fMain [private]

Reimplemented from TGTransientFrame.

Definition at line 491 of file guitest.C.

TGTextEdit* Editor::fEdit [private]

Definition at line 492 of file guitest.C.

TGTextButton* Editor::fOK [private]

Definition at line 493 of file guitest.C.

TGLayoutHints* Editor::fL1 [private]

Definition at line 494 of file guitest.C.

TGLayoutHints* Editor::fL2 [private]

Definition at line 495 of file guitest.C.


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