30 #include <QCloseEvent>
32 #include <QFocusEvent>
38 #include <QMainWindow>
42 #include <QMouseEvent>
43 #include <QPaintEvent>
50 #include <QStringList>
52 #include <QToolButton>
54 #include <QWidgetAction>
61 #include "scribusapi.h"
62 #include "text/storytext.h"
79 class SCRIBUS_API
SEditor :
public QTextEdit
87 void setAlign(
int align);
88 void saveItemText(
PageItem *currItem);
89 void loadItemText(
PageItem *currItem);
90 void loadText(QString tx,
PageItem *currItem);
92 void updateFromChars(
int p);
96 void setEffects(
int effects);
97 void setColor(
bool marker);
99 void insertChars(
const QString& text);
100 void insertChars(
const QString& styledText,
const QString& editText);
103 QList<PageItem*> FrameItems;
105 bool unicodeTextEditMode;
108 int unicodeInputCount;
110 QString currentParaStyle;
113 double CurrTextFillSh;
114 double CurrTextStrokeSh;
115 double CurrTextScale;
116 double CurrTextScaleV;
118 double CurrTextShadowX;
119 double CurrTextShadowY;
120 double CurrTextOutline;
121 double CurrTextUnderPos;
122 double CurrTextUnderWidth;
123 double CurrTextStrikePos;
124 double CurrTextStrikeWidth;
126 QString CurrTextStroke;
127 QString CurrTextFill;
130 QString unicodeInputString;
136 int SuspendContentsChange;
140 void insertCharsInternal(
const QString& t);
141 void insertCharsInternal(
const QString& t,
int position);
143 void insertStyledText(
const StoryText& styledText);
144 void insertStyledText(
const StoryText& styledText,
int position);
146 void insertUpdate(
int position,
int len);
148 void setAlign(QTextCursor& tCursor,
int style);
149 void setEffects(QTextCursor& tCursor,
int effects);
151 int blockContentsChangeHook;
152 void keyPressEvent(QKeyEvent *k);
153 void inputMethodEvent(QInputMethodEvent *event);
154 void focusOutEvent(QFocusEvent *e);
155 void focusInEvent(QFocusEvent *e);
156 void scrollContentsBy(
int dx,
int dy);
157 virtual bool canInsertFromMimeData(
const QMimeData * source )
const;
158 virtual QMimeData * createMimeDataFromSelection ()
const;
159 virtual void insertFromMimeData (
const QMimeData * source );
163 void handleContentsChange(
int position,
int charsRemoved,
int charsAdded);
170 void SelClipChange();
173 void setProps(
int,
int);
174 void SideBarUp(
bool);
175 void SideBarUpdate();
177 void contentsMoving(
int,
int);
191 QWidgetAction* paraStyleAct;
196 void paintEvent(QPaintEvent *e);
197 void mouseReleaseEvent(QMouseEvent *m);
200 void ChangeStyle(
int,
const QString&);
205 void setPStyle(
const QString&);
206 void doMove(
int x,
int y);
208 void setRepaint(
bool r);
221 virtual void changeEvent(QEvent *e);
228 QAction* txFillAction;
229 QAction* fillIconAction;
232 void SetColor(
int c);
233 void SetShade(
double s);
234 void newShadeHandler();
235 void languageChange();
238 void NewColor(
int,
int);
249 virtual void changeEvent(QEvent *e);
255 QAction* strokeIconAction;
256 QAction* txStrokeAction;
261 void SetColor(
int c);
262 void SetShade(
double s);
263 void newShadeHandler();
264 void languageChange();
267 void NewColor(
int,
int);
278 virtual void changeEvent(QEvent *e);
281 QLabel* trackingLabel;
283 QAction* seStyleAction;
284 QAction* trackingLabelAction;
285 QAction* extraAction;
288 void newStrikeHandler();
289 void newUnderlineHandler();
290 void newOutlineHandler();
291 void newShadowHandler();
292 void newKernHandler();
293 void SetShadow(
double x,
double y);
294 void setStrike(
double p,
double w);
295 void setUnderline(
double p,
double w);
296 void setOutline(
double o);
297 void SetStyle(
int s);
298 void SetKern(
double k);
299 void languageChange();
302 void NewKern(
double);
303 void NewShadow(
double,
double);
304 void newOutline(
double);
305 void newStrike(
double,
double);
306 void newUnderline(
double,
double);
318 virtual void changeEvent(QEvent *e);
322 QAction* groupAlignAction;
323 QAction* paraStyleComboAction;
326 void SetAlign(
int s);
327 void SetParaStyle(QString s);
328 void languageChange();
332 void newParaStyle(
const QString&);
343 virtual void changeEvent(QEvent *e);
348 QAction* fontsAction;
349 QAction* chScaleAction;
350 QAction* chScaleVAction;
353 void SetFont(QString f);
354 void SetSize(
double s);
355 void SetScale(
double s);
356 void SetScaleV(
double s);
357 void newSizeHandler();
360 void NewFont(
const QString &);
361 void NewSize(
double);
362 void newScale(
double);
363 void newScaleV(
double);
370 QAction* scaleTxtAction;
371 QAction* scaleTxtVAction;
374 void languageChange();
387 virtual void changeEvent(QEvent *e);
390 void setSpellActive(
bool ssa);
397 QMap<QString, QPointer<ScrAction> > seActions;
400 void newStyle(
const QString&);
401 void newAlign(
int st);
402 void newTxFill(
int c,
int s);
403 void newTxStroke(
int c,
int s);
404 void newTxFont(
const QString &f);
405 void newTxSize(
double s);
406 void newTxStyle(
int s);
414 void changeAlign(
int align);
415 bool textDataChanged()
const;
418 bool m_smartSelection;
436 void newTxKern(
double s);
437 void newShadowOffs(
double x,
double y);
438 void newTxtOutline(
double o);
439 void newTxtUnderline(
double p,
double w);
440 void newTxtStrike(
double p,
double w);
442 void updateProps(QTextCursor &cur);
443 void updateProps(
int p,
int ch);
445 void changeStyleSB(
int pa,
const QString&);
451 void Do_saveDocument();
453 void slotFileRevert();
464 void insertSampleText();
466 void CopyAvail(
bool u);
468 void updateTextFrame();
475 void languageChange();
477 void specialActionKeyEvent(
int unicodevalue);
479 void slot_insertSpecialChar();
480 void slot_insertUserSpecialChar(QChar, QString);
482 void doubleClick(
int para,
int pos);
486 void updateUnicodeActions();
489 void connectSignals();
490 void disconnectSignals();
509 void showEvent(QShowEvent *);
510 void hideEvent(QHideEvent *);
512 void closeEvent(QCloseEvent *);
513 void keyPressEvent (QKeyEvent * e);
514 bool eventFilter( QObject* ob, QEvent* ev );
516 QHBoxLayout* StoryEd2Layout;
517 QGridLayout* ButtonGroup1Layout;
518 QGridLayout* ButtonGroup2Layout;
523 QStringList unicodeCharActionNames;
534 QFrame* ButtonGroup1;
535 QFrame* ButtonGroup2;
Definition: charstyle.h:47
Definition: storytext.h:71
Definition: charstyle.h:78
The ColorCombo widget is a combo box for displaying list of colors.
Definition: colorcombo.h:33
Definition: storyeditor.h:377
Definition: paragraphstyle.h:27
Definition: storyeditor.h:180
the Document Class
Definition: scribusdoc.h:90
Definition: alignselect.h:18
Definition: spalette.h:36
Character Palette for direct glyphs inserting. The "classical" one is opened as CharSelectEnhanced in...
Definition: charselect.h:33
ScrSpinBox is a Qt4 replacement for our old ScrSpinBox using Qt3.
Definition: scrspinbox.h:21
Definition: storyeditor.h:79
Definition: scraction.h:33
Definition: prefscontext.h:40
Definition: styleselect.h:103
Definition: pageitem.h:92
bool charSelectUsed
True when there were some glyphs inserted via charSelect.
Definition: storyeditor.h:507
Definition: fontcombo.h:43
Manage Scribus preferences here, and here alone Start to move the preferences out of scribus...
Definition: prefsmanager.h:43
CharSelect * charSelect
Special Characters dialog. It uses a little bit ugly method to operate with. It's a duplication of th...
Definition: storyeditor.h:505