Editor Class Reference

#include <editor.h>

List of all members.

Signals

void contentModified (bool modified)
 signal status of editor content modification

Public Member Functions

 Editor (QWidget *parent=0)
 ~Editor ()
bool contentIsModified ()
void setContentModified (bool modified)

Public Attributes

bool enableHighlightLines
 enable highlighting current line
QColor hiLineColor
 highlighting color for current line
int printArea
 print area indicator postion for declarations and instructions

Protected Member Functions

bool event (QEvent *event)

Private Slots

void cursorPositionChangedOperations ()

Private Member Functions

void paintEvent (QPaintEvent *event)

Private Attributes

int prefWidth
 preferred width of line numbers column


Constructor & Destructor Documentation

Editor::Editor ( QWidget *  parent = 0  ) 

creating function

Editor::~Editor (  ) 

destructor


Member Function Documentation

bool Editor::contentIsModified (  ) 

get modified status of document

void Editor::contentModified ( bool  modified  )  [signal]

signal status of editor content modification

void Editor::cursorPositionChangedOperations (  )  [private, slot]

cursor position changed handling to update the viewport and line numbers column

bool Editor::event ( QEvent *  event  )  [protected]

line numbers block paint event

void Editor::paintEvent ( QPaintEvent *  event  )  [private]

painter event

void Editor::setContentModified ( bool  modified  ) 

set modification satus of document


Member Data Documentation

enable highlighting current line

highlighting color for current line

int Editor::prefWidth [private]

preferred width of line numbers column

print area indicator postion for declarations and instructions


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

Generated on Sun Jul 26 16:22:07 2009 for PLCEdit by  doxygen 1.5.9