gtkutil::SourceView Class Reference

#include <SourceView.h>

Inheritance diagram for gtkutil::SourceView:
Inheritance graph
[legend]
Collaboration diagram for gtkutil::SourceView:
Collaboration graph
[legend]

Public Member Functions

 SourceView (const std::string &language, bool readOnly)
virtual ~SourceView ()
void setContents (const std::string &newContents)
std::string getContents ()
void goToLine (int lineNumber)
void clear ()

Protected Member Functions

GtkWidget_getWidget () const
 Construct and/or return the GtkWidget.

Private Attributes

GtkWidget_widget
GtkSourceView_view
GtkSourceBuffer_buffer
GtkSourceLanguageManager_langManager

Detailed Description

Definition at line 16 of file SourceView.h.


Constructor & Destructor Documentation

gtkutil::SourceView::SourceView ( const std::string language,
bool  readOnly 
)

Constructs a new sourceview with the given language ID as specified in the .lang files (e.g. "python").

Parameters:
language the language definition to create a source view for.
[in] readOnly,: Set this to TRUE to disallow editing of the text buffer.
Exceptions:
runtime_error if the given language file wasn't found in the sourceviewer/ subdirectory
virtual gtkutil::SourceView::~SourceView (  )  [virtual]

Member Function Documentation

GtkWidget* gtkutil::SourceView::_getWidget (  )  const [inline, protected, virtual]

Construct and/or return the GtkWidget.

Implements gtkutil::Widget.

Definition at line 53 of file SourceView.h.

References _widget.

void gtkutil::SourceView::clear (  ) 
std::string gtkutil::SourceView::getContents (  ) 
void gtkutil::SourceView::goToLine ( int  lineNumber  ) 
void gtkutil::SourceView::setContents ( const std::string newContents  ) 

Field Documentation

Definition at line 22 of file SourceView.h.

Definition at line 24 of file SourceView.h.

Definition at line 21 of file SourceView.h.

Definition at line 19 of file SourceView.h.

Referenced by _getWidget().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2