49 #include "../ui/dialogbase.h" 51 QT_FORWARD_DECLARE_CLASS(QAction)
52 QT_FORWARD_DECLARE_CLASS(QComboBox)
53 QT_FORWARD_DECLARE_CLASS(QFontComboBox)
54 QT_FORWARD_DECLARE_CLASS(QTextEdit)
55 QT_FORWARD_DECLARE_CLASS(QTextCharFormat)
56 QT_FORWARD_DECLARE_CLASS(QMenu)
93 void initializeTextEditor(QTextEdit *aTextEdit,
94 QLayout *aLayOutForMenu,
95 QLayout* aWidgetForActionsUpper,
96 QLayout* aWidgetForActionsLower) ;
102 virtual void linkReady(
const QString& aLinkAddress,
103 const QString& aLinkLabel) ;
105 virtual void closeEvent(QCloseEvent *e);
107 void setupFileActions();
108 void setupEditActions();
109 void setupTextActions();
110 bool load(
const QString &f);
112 void setCurrentFileName(
const QString &fileName);
119 void filePrintPreview();
123 void textUnderline();
125 void textFamily(
const QString &f);
126 void textSize(
const QString &p);
127 void textStyle(
int styleIndex);
129 void textAlign(QAction *a);
131 void currentCharFormatChanged(
const QTextCharFormat &format);
132 void cursorPositionChanged();
134 void clipboardDataChanged();
135 void printPreview(QPrinter *);
136 void insertLinkSelected() ;
137 void insertImageSelected() ;
139 void mergeFormatOnWordOrSelection(
const QTextCharFormat &format);
140 void fontChanged(
const QFont &f);
141 void colorChanged(
const QColor &c);
142 void alignmentChanged(Qt::Alignment a);
144 void addAction(QAction* aAction) ;
145 void addAction(QWidget* aAction,
bool aLower=
true) ;
148 return iDialogMenuBar ;
155 *actionTextUnderline,
QAction * actionUndo
Definition: textedit.h:153
QMenuBar * iDialogMenuBar
Definition: textedit.h:178
QComboBox * comboStyle
Definition: textedit.h:170
QString fileName
Definition: textedit.h:175
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:43
QMenuBar * menuBar()
Definition: textedit.h:147
QFontComboBox * comboFont
Definition: textedit.h:171
QTextEdit * textEdit
Definition: textedit.h:149
QLayout * iWidgetForActionsUpper
Definition: textedit.h:176
QComboBox * comboSize
Definition: textedit.h:172
QToolBar * tb
Definition: textedit.h:174
Carrier-class for user-profile data.
Definition: profile.h:37
base-class for content-posting dialogs of classified ads
Definition: dialogbase.h:32
QLayout * iWidgetForActionsLower
Definition: textedit.h:177
text editor class.
Definition: textedit.h:70