Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

EditorHelper Class Reference

#include <editorhelper.h>

Collaboration diagram for EditorHelper:

Collaboration graph
[legend]
List of all members.

Public Slots

void setupToolBar ()
void setupEditorConnections ()

Public Member Functions

 EditorHelper (ReadWriteFormBase *parent, QTextEdit *editor)
 ~EditorHelper ()

Private Slots

void editUndo ()
void editRedo ()
void editCut ()
void editCopy ()
void editPaste ()
void textBold ()
void textUnderline ()
void textItalic ()
void textFamily (const QString &f)
void textSize (const QString &p)
void textStyle (int s)
void textColor ()
void textAlign (QAction *a)
void fontChanged (const QFont &f)
void colorChanged (const QColor &c)
void alignmentChanged (int a)

Private Member Functions

 EditorHelper (const EditorHelper &)
EditorHelperoperator= (const EditorHelper &)

Private Attributes

QAction * actionTextBold
QAction * actionTextUnderline
QAction * actionTextItalic
QAction * actionTextColor
QAction * actionAlignLeft
QAction * actionAlignCenter
QAction * actionAlignRight
QAction * actionAlignJustify
QComboBox * comboStyle
QComboBox * comboFont
QComboBox * comboSize
ReadWriteFormBaseparent
QTextEdit * e
QToolBar * toolbar

Constructor & Destructor Documentation

EditorHelper::EditorHelper const EditorHelper  )  [private]
 

EditorHelper::EditorHelper ReadWriteFormBase parent,
QTextEdit *  editor
 

Definition at line 32 of file editorhelper.cpp.

References setupEditorConnections(), and setupToolBar().

EditorHelper::~EditorHelper  ) 
 

Definition at line 38 of file editorhelper.cpp.


Member Function Documentation

void EditorHelper::alignmentChanged int  a  )  [private, slot]
 

Definition at line 279 of file editorhelper.cpp.

References actionAlignCenter, actionAlignJustify, actionAlignLeft, and actionAlignRight.

Referenced by setupEditorConnections().

void EditorHelper::colorChanged const QColor &  c  )  [private, slot]
 

Definition at line 272 of file editorhelper.cpp.

References actionTextColor.

Referenced by setupEditorConnections().

void EditorHelper::editCopy  )  [private, slot]
 

Definition at line 164 of file editorhelper.cpp.

References e.

void EditorHelper::editCut  )  [private, slot]
 

Definition at line 157 of file editorhelper.cpp.

References e.

void EditorHelper::editPaste  )  [private, slot]
 

Definition at line 171 of file editorhelper.cpp.

References e.

void EditorHelper::editRedo  )  [private, slot]
 

Definition at line 150 of file editorhelper.cpp.

References e.

Referenced by setupToolBar().

void EditorHelper::editUndo  )  [private, slot]
 

Definition at line 143 of file editorhelper.cpp.

References e.

Referenced by setupToolBar().

void EditorHelper::fontChanged const QFont &  f  )  [private, slot]
 

Definition at line 263 of file editorhelper.cpp.

References actionTextBold, actionTextItalic, actionTextUnderline, comboFont, and comboSize.

Referenced by setupEditorConnections().

EditorHelper& EditorHelper::operator= const EditorHelper  )  [private]
 

void EditorHelper::setupEditorConnections  )  [slot]
 

Definition at line 46 of file editorhelper.cpp.

References alignmentChanged(), colorChanged(), e, and fontChanged().

Referenced by EditorHelper().

void EditorHelper::setupToolBar  )  [slot]
 

Definition at line 59 of file editorhelper.cpp.

References actionAlignCenter, actionAlignJustify, actionAlignLeft, actionAlignRight, actionTextBold, actionTextColor, actionTextItalic, actionTextUnderline, comboFont, comboSize, comboStyle, editRedo(), editUndo(), loadPixmap(), ReadOnlyFormBase::mainWindow(), parent, textAlign(), textBold(), textColor(), textFamily(), textItalic(), textSize(), textStyle(), and textUnderline().

Referenced by EditorHelper().

void EditorHelper::textAlign QAction *  a  )  [private, slot]
 

Definition at line 249 of file editorhelper.cpp.

References actionAlignCenter, actionAlignJustify, actionAlignLeft, actionAlignRight, and e.

Referenced by setupToolBar().

void EditorHelper::textBold  )  [private, slot]
 

Definition at line 178 of file editorhelper.cpp.

References actionTextBold, and e.

Referenced by setupToolBar().

void EditorHelper::textColor  )  [private, slot]
 

Definition at line 236 of file editorhelper.cpp.

References actionTextColor, e, and parent.

Referenced by setupToolBar().

void EditorHelper::textFamily const QString &  f  )  [private, slot]
 

Definition at line 199 of file editorhelper.cpp.

References e.

Referenced by setupToolBar().

void EditorHelper::textItalic  )  [private, slot]
 

Definition at line 192 of file editorhelper.cpp.

References actionTextItalic, and e.

Referenced by setupToolBar().

void EditorHelper::textSize const QString &  p  )  [private, slot]
 

Definition at line 207 of file editorhelper.cpp.

References e.

Referenced by setupToolBar().

void EditorHelper::textStyle int  s  )  [private, slot]
 

Definition at line 215 of file editorhelper.cpp.

References e.

Referenced by setupToolBar().

void EditorHelper::textUnderline  )  [private, slot]
 

Definition at line 185 of file editorhelper.cpp.

References actionTextUnderline, and e.

Referenced by setupToolBar().


Member Data Documentation

QAction * EditorHelper::actionAlignCenter [private]
 

Definition at line 46 of file editorhelper.h.

Referenced by alignmentChanged(), setupToolBar(), and textAlign().

QAction * EditorHelper::actionAlignJustify [private]
 

Definition at line 46 of file editorhelper.h.

Referenced by alignmentChanged(), setupToolBar(), and textAlign().

QAction * EditorHelper::actionAlignLeft [private]
 

Definition at line 46 of file editorhelper.h.

Referenced by alignmentChanged(), setupToolBar(), and textAlign().

QAction * EditorHelper::actionAlignRight [private]
 

Definition at line 46 of file editorhelper.h.

Referenced by alignmentChanged(), setupToolBar(), and textAlign().

QAction* EditorHelper::actionTextBold [private]
 

Definition at line 46 of file editorhelper.h.

Referenced by fontChanged(), setupToolBar(), and textBold().

QAction * EditorHelper::actionTextColor [private]
 

Definition at line 46 of file editorhelper.h.

Referenced by colorChanged(), setupToolBar(), and textColor().

QAction * EditorHelper::actionTextItalic [private]
 

Definition at line 46 of file editorhelper.h.

Referenced by fontChanged(), setupToolBar(), and textItalic().

QAction * EditorHelper::actionTextUnderline [private]
 

Definition at line 46 of file editorhelper.h.

Referenced by fontChanged(), setupToolBar(), and textUnderline().

QComboBox * EditorHelper::comboFont [private]
 

Definition at line 54 of file editorhelper.h.

Referenced by fontChanged(), and setupToolBar().

QComboBox * EditorHelper::comboSize [private]
 

Definition at line 54 of file editorhelper.h.

Referenced by fontChanged(), and setupToolBar().

QComboBox* EditorHelper::comboStyle [private]
 

Definition at line 54 of file editorhelper.h.

Referenced by setupToolBar().

QTextEdit* EditorHelper::e [private]
 

Definition at line 59 of file editorhelper.h.

Referenced by editCopy(), editCut(), editPaste(), editRedo(), editUndo(), setupEditorConnections(), textAlign(), textBold(), textColor(), textFamily(), textItalic(), textSize(), textStyle(), and textUnderline().

ReadWriteFormBase* EditorHelper::parent [private]
 

Definition at line 58 of file editorhelper.h.

Referenced by setupToolBar(), and textColor().

QToolBar* EditorHelper::toolbar [private]
 

Definition at line 60 of file editorhelper.h.


The documentation for this class was generated from the following files:
Generated on Sat Mar 27 19:22:21 2004 for Literature by doxygen 1.3.6-20040222