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)
82 const Profile& aSelectedProfile);
94 void initializeTextEditor(QTextEdit *aTextEdit,
95 QLayout *aLayOutForMenu,
96 QLayout* aWidgetForActionsUpper,
97 QLayout* aWidgetForActionsLower) ;
99 virtual void closeEvent(QCloseEvent *e);
102 void setupFileActions();
103 void setupEditActions();
104 void setupTextActions();
105 bool load(
const QString &f);
107 void setCurrentFileName(
const QString &fileName);
115 void filePrintPreview();
119 void textUnderline();
121 void textFamily(
const QString &f);
122 void textSize(
const QString &p);
123 void textStyle(
int styleIndex);
125 void textAlign(QAction *a);
127 void currentCharFormatChanged(
const QTextCharFormat &format);
128 void cursorPositionChanged();
130 void clipboardDataChanged();
131 void printPreview(QPrinter *);
134 void mergeFormatOnWordOrSelection(
const QTextCharFormat &format);
135 void fontChanged(
const QFont &f);
136 void colorChanged(
const QColor &c);
137 void alignmentChanged(Qt::Alignment a);
139 void addAction(QAction* aAction) ;
140 void addAction(QWidget* aAction,
bool aLower=
true) ;
142 QMenuBar* menuBar() {
return iDialogMenuBar ; } ;
148 *actionTextUnderline,
QAction * actionUndo
Definition: textedit.h:146
QMenuBar * iDialogMenuBar
Definition: textedit.h:169
QComboBox * comboStyle
Definition: textedit.h:161
QString fileName
Definition: textedit.h:166
Pure-virtual interface class for controller. This is spammed across parties needing access to applica...
Definition: mcontroller.h:39
QFontComboBox * comboFont
Definition: textedit.h:162
QLayout * iWidgetForActionsUpper
Definition: textedit.h:167
QComboBox * comboSize
Definition: textedit.h:163
QToolBar * tb
Definition: textedit.h:165
Carrier-class for user-profile data.
Definition: profile.h:36
base-class for content-posting dialogs of classified ads
Definition: dialogbase.h:31
QLayout * iWidgetForActionsLower
Definition: textedit.h:168
text editor class.
Definition: textedit.h:70