|
Krita Source Code Documentation
|
#include <SvgTextEditor.h>
Inheritance diagram for SvgTextEditor:Classes | |
| class | Private |
Signals | |
| void | textEditorClosed () |
| void | textUpdated (KoSvgTextShape *shape, const QString &svg, const QString &defs) |
Public Member Functions | |
| void | setInitialShape (KoSvgTextShape *shape) |
| SvgTextEditor (QWidget *parent=0, Qt::WindowFlags f=Qt::WindowFlags()) | |
| ~SvgTextEditor () | |
Public Member Functions inherited from KXmlGuiWindow | |
| void | applyMainWindowSettings (const KConfigGroup &config) override |
| void | createGUI (const QString &xmlfile=QString()) |
| void | createStandardStatusBarAction () |
| void | finalizeGUI (bool force) |
| void | finalizeGUI (KisKXMLGUIClient *client) override |
| virtual KisKXMLGUIFactory * | guiFactory () |
| bool | isHelpMenuEnabled () const |
| bool | isStandardToolBarMenuEnabled () const |
| KXmlGuiWindow (QWidget *parent=0, Qt::WindowFlags f=Qt::WindowFlags()) | |
| void | setHelpMenuEnabled (bool showHelpMenu=true) |
| void | setStandardToolBarMenuEnabled (bool enable) |
| void | setupGUI (const QSize &defaultSize, StandardWindowOptions options=Default, const QString &xmlfile=QString()) |
| void | setupGUI (StandardWindowOptions options=Default, const QString &xmlfile=QString()) |
| void | setupToolbarMenuActions () |
| QAction * | toolBarMenuAction () |
| ~KXmlGuiWindow () override | |
| Destructor. | |
Public Member Functions inherited from KisKMainWindow | |
| KConfigGroup | autoSaveConfigGroup () const |
| QString | autoSaveGroup () const |
| bool | autoSaveSettings () const |
| QString | dbusName () const |
| bool | hasMenuBar () |
| KisKMainWindow (QWidget *parent=0, Qt::WindowFlags f=Qt::WindowFlags()) | |
| void | resetAutoSaveSettings () |
| bool | restore (int number, bool show=true) |
| void | saveMainWindowSettings (KConfigGroup &config) |
| void | setAutoSaveSettings (const KConfigGroup &group, bool saveWindowSize=true) |
| void | setAutoSaveSettings (const QString &groupName=QLatin1String("MainWindow"), bool saveWindowSize=true) |
| KisToolBar * | toolBar (const QString &name=QString()) |
| QList< KisToolBar * > | toolBars () const |
| ~KisKMainWindow () override | |
| Destructor. | |
Public Member Functions inherited from KisKXMLGUIBuilder | |
| KisKXMLGUIClient * | builderClient () const |
| virtual QStringList | containerTags () const |
| virtual QWidget * | createContainer (QWidget *parent, int index, const QDomElement &element, QAction *&containerAction) |
| virtual QAction * | createCustomElement (QWidget *parent, int index, const QDomElement &element) |
| virtual QStringList | customTags () const |
| KisKXMLGUIBuilder (QWidget *widget) | |
| virtual void | removeContainer (QWidget *container, QWidget *parent, QDomElement &element, QAction *containerAction) |
| virtual void | removeCustomElement (QWidget *parent, QAction *action) |
| void | setBuilderClient (KisKXMLGUIClient *client) |
| QWidget * | widget () |
| virtual | ~KisKXMLGUIBuilder () |
Public Member Functions inherited from KisKXMLGUIClient | |
| QAction * | action (const char *name) const |
| virtual QAction * | action (const QDomElement &element) const |
| virtual KisKActionCollection * | actionCollection () const |
| void | addStateActionDisabled (const QString &state, const QString &action) |
| void | addStateActionEnabled (const QString &state, const QString &action) |
| void | beginXMLPlug (QWidget *) |
| QList< KisKXMLGUIClient * > | childClients () |
| KisKXMLGUIBuilder * | clientBuilder () const |
| virtual QString | componentName () const |
| virtual QDomDocument | domDocument () const |
| void | endXMLPlug () |
| KisKXMLGUIFactory * | factory () const |
| StateChange | getActionsToChangeForState (const QString &state) |
| void | insertChildClient (KisKXMLGUIClient *child) |
| KisKXMLGUIClient () | |
| KisKXMLGUIClient (KisKXMLGUIClient *parent) | |
| virtual QString | localXMLFile () const |
| KisKXMLGUIClient * | parentClient () const |
| void | plugActionList (const QString &name, const QList< QAction * > &actionList) |
| void | prepareXMLUnplug (QWidget *) |
| void | reloadXML () |
| void | removeChildClient (KisKXMLGUIClient *child) |
| void | replaceXMLFile (const QString &xmlfile, const QString &localxmlfile, bool merge=false) |
| void | setClientBuilder (KisKXMLGUIBuilder *builder) |
| void | setFactory (KisKXMLGUIFactory *factory) |
| void | setXMLGUIBuildDocument (const QDomDocument &doc) |
| void | unplugActionList (const QString &name) |
| virtual QString | xmlFile () const |
| QDomDocument | xmlguiBuildDocument () const |
| virtual | ~KisKXMLGUIClient () |
Protected Member Functions | |
| bool | eventFilter (QObject *watched, QEvent *event) override |
| void | wheelEvent (QWheelEvent *event) override |
Protected Member Functions inherited from KXmlGuiWindow | |
| bool | event (QEvent *event) override |
Protected Member Functions inherited from KisKMainWindow | |
| void | closeEvent (QCloseEvent *) override |
| bool | event (QEvent *event) override |
| KisKMainWindow (KisKMainWindowPrivate &dd, QWidget *parent, Qt::WindowFlags f) | |
| virtual bool | queryClose () |
| virtual void | readGlobalProperties (KConfig *sessionConfig) |
| virtual void | readProperties (const KConfigGroup &) |
| bool | readPropertiesInternal (KConfig *, int) |
| virtual void | saveGlobalProperties (KConfig *sessionConfig) |
| virtual void | saveProperties (KConfigGroup &) |
| void | savePropertiesInternal (KConfig *, int) |
| bool | settingsDirty () const |
| virtual bool | windowsLayoutSavingAllowed () const |
Protected Member Functions inherited from KisKXMLGUIBuilder | |
| virtual void | virtual_hook (int id, void *data) |
Protected Member Functions inherited from KisKXMLGUIClient | |
| void | loadStandardsXmlFile () |
| virtual void | setComponentName (const QString &componentName, const QString &componentDisplayName) |
| void | setDOMDocument (const QDomDocument &document, bool merge=false) |
| void | setLocalXMLFile (const QString &file) |
| void | setXML (const QString &document, bool merge=false) |
| void | setXMLFile (const QString &file, bool merge=false, bool setXMLDoc=true) |
| virtual void | stateChanged (const QString &newstate, ReverseStateChange reverse=StateNoReverse) |
| virtual void | virtual_hook (int id, void *data) |
Private Slots | |
| void | copy () |
| void | cut () |
| void | deselect () |
| void | dialogButtonClicked (QAbstractButton *button) |
| void | find () |
| void | findNext () |
| void | findPrev () |
| void | paste () |
| void | redo () |
| void | replace () |
| void | save () |
| void | selectAll () |
| void | setModified (bool modified) |
| void | setSettings () |
| void | slotCloseEditor () |
| void | undo () |
| void | zoomIn () |
| void | zoomOut () |
Private Member Functions | |
| void | applySettings () |
| QAction * | createAction (const QString &name, const char *member) |
| void | createActions () |
Private Attributes | |
| QScopedPointer< Private > | d |
| QTextEdit * | m_currentEditor {0} |
| QWidget * | m_page {0} |
| QString | m_searchKey |
| KoSvgTextShape * | m_shape {0} |
| QList< QAction * > | m_svgTextActions |
| BasicXMLSyntaxHighlighter * | m_syntaxHighlighter |
| Ui_WdgSvgTextEditor | m_textEditorWidget |
Additional Inherited Members | |
Public Types inherited from KXmlGuiWindow | |
| enum | StandardWindowOption { ToolBar = 1 , Keys = 2 , StatusBar = 4 , Save = 8 , Create = 16 , Default = ToolBar | Keys | StatusBar | Save | Create } |
Public Types inherited from KisKXMLGUIClient | |
| enum | ReverseStateChange { StateNoReverse , StateReverse } |
Public Slots inherited from KXmlGuiWindow | |
| virtual void | configureToolbars () |
| virtual void | slotStateChanged (const QString &newstate) |
| void | slotStateChanged (const QString &newstate, bool reverse) |
Public Slots inherited from KisKMainWindow | |
| void | appHelpActivated (void) |
| void | setSettingsDirty () |
Static Public Member Functions inherited from KisKMainWindow | |
| static bool | canBeRestored (int number) |
| static const QString | classNameOfToplevel (int number) |
| static QList< KisKMainWindow * > | memberList () |
Static Public Member Functions inherited from KisKXMLGUIClient | |
| static QString | findMostRecentXMLFile (const QStringList &files, QString &doc) |
Protected Slots inherited from KXmlGuiWindow | |
| virtual void | saveNewToolbarConfig () |
Protected Slots inherited from KisKMainWindow | |
| void | saveAutoSaveSettings () |
Static Protected Member Functions inherited from KisKXMLGUIClient | |
| static QString | standardsXmlFileLocation () |
Protected Attributes inherited from KisKMainWindow | |
| KisKMainWindowPrivate *const | k_ptr |
Properties inherited from KXmlGuiWindow | |
| QString | autoSaveGroup |
| bool | autoSaveSettings |
| bool | hasMenuBar |
| bool | standardToolBarMenuEnabled |
Properties inherited from KisKMainWindow | |
| QString | autoSaveGroup |
| bool | autoSaveSettings |
| bool | hasMenuBar |
Definition at line 26 of file SvgTextEditor.h.
| SvgTextEditor::SvgTextEditor | ( | QWidget * | parent = 0, |
| Qt::WindowFlags | f = Qt::WindowFlags() ) |
Definition at line 77 of file SvgTextEditor.cpp.
References KisKXMLGUIClient::actionCollection(), KisKXMLGUIFactory::addClient(), applySettings(), connect(), createActions(), dialogButtonClicked(), KisPortingUtils::getScreenNumberForWidget(), KXmlGuiWindow::guiFactory(), KoResourcePaths::locateLocal(), m_page, m_syntaxHighlighter, m_textEditorWidget, save(), KisKActionCollection::setComponentDisplayName(), KisKActionCollection::setComponentName(), KisKActionCollection::setConfigGroup(), KisKXMLGUIClient::setLocalXMLFile(), KisKXMLGUIClient::setXMLFile(), and slotCloseEditor().
| SvgTextEditor::~SvgTextEditor | ( | ) |
Definition at line 145 of file SvgTextEditor.cpp.
|
private |
Definition at line 404 of file SvgTextEditor.cpp.
References m_page, m_syntaxHighlighter, m_textEditorWidget, palette, and BasicXMLSyntaxHighlighter::setFormats().
|
privateslot |
Definition at line 198 of file SvgTextEditor.cpp.
References m_currentEditor.
|
private |
Definition at line 425 of file SvgTextEditor.cpp.
References KisKXMLGUIClient::action(), KisKXMLGUIClient::actionCollection(), KisKActionCollection::addAction(), KisActionRegistry::instance(), and KisActionRegistry::propertizeAction().
|
private |
Definition at line 437 of file SvgTextEditor.cpp.
References KisKXMLGUIClient::action(), KisKXMLGUIClient::actionCollection(), KStandardAction::close(), copy(), KStandardAction::copy(), createAction(), cut(), KStandardAction::cut(), deselect(), KStandardAction::deselect(), find(), KStandardAction::find(), findNext(), KStandardAction::findNext(), findPrev(), KStandardAction::findPrev(), m_svgTextActions, paste(), KStandardAction::paste(), redo(), KStandardAction::redo(), replace(), KStandardAction::replace(), save(), KStandardAction::save(), selectAll(), KStandardAction::selectAll(), setSettings(), slotCloseEditor(), undo(), KStandardAction::undo(), zoomIn(), KStandardAction::zoomIn(), zoomOut(), and KStandardAction::zoomOut().
|
privateslot |
Definition at line 193 of file SvgTextEditor.cpp.
References m_currentEditor.
|
privateslot |
Definition at line 213 of file SvgTextEditor.cpp.
References m_currentEditor.
|
privateslot |
Definition at line 385 of file SvgTextEditor.cpp.
References button(), and m_textEditorWidget.
|
overrideprotected |
Definition at line 478 of file SvgTextEditor.cpp.
References KXmlGuiWindow::event().
|
privateslot |
Definition at line 220 of file SvgTextEditor.cpp.
References buttons(), connect(), m_currentEditor, and m_searchKey.
|
privateslot |
Definition at line 242 of file SvgTextEditor.cpp.
References m_currentEditor, and m_searchKey.
|
privateslot |
Definition at line 252 of file SvgTextEditor.cpp.
References m_currentEditor, and m_searchKey.
|
privateslot |
Definition at line 203 of file SvgTextEditor.cpp.
References m_currentEditor.
|
privateslot |
Definition at line 188 of file SvgTextEditor.cpp.
References m_currentEditor.
|
privateslot |
Definition at line 262 of file SvgTextEditor.cpp.
References buttons(), connect(), m_currentEditor, and replace().
|
privateslot |
Definition at line 175 of file SvgTextEditor.cpp.
References m_shape, m_textEditorWidget, and textUpdated().
|
privateslot |
Definition at line 208 of file SvgTextEditor.cpp.
References m_currentEditor.
| void SvgTextEditor::setInitialShape | ( | KoSvgTextShape * | shape | ) |
Definition at line 155 of file SvgTextEditor.cpp.
References KoSvgTextShapeMarkupConverter::convertToSvg(), KoSvgTextShapeMarkupConverter::errors(), m_shape, m_textEditorWidget, and KoSvgTextShapeMarkupConverter::warnings().
|
privateslot |
Definition at line 371 of file SvgTextEditor.cpp.
References m_textEditorWidget.
|
privateslot |
Definition at line 305 of file SvgTextEditor.cpp.
References applySettings(), KoDialog::Cancel, KoDialog::Ok, KoDialog::setButtons(), and KoDialog::setMainWidget().
|
privateslot |
Definition at line 472 of file SvgTextEditor.cpp.
References textEditorClosed().
|
signal |
|
signal |
|
privateslot |
Definition at line 183 of file SvgTextEditor.cpp.
References m_currentEditor.
|
overrideprotected |
Definition at line 394 of file SvgTextEditor.cpp.
References KXmlGuiWindow::event(), and m_textEditorWidget.
|
privateslot |
Definition at line 300 of file SvgTextEditor.cpp.
References m_currentEditor.
|
privateslot |
Definition at line 295 of file SvgTextEditor.cpp.
References m_currentEditor.
|
private |
Definition at line 90 of file SvgTextEditor.h.
|
private |
Definition at line 80 of file SvgTextEditor.h.
|
private |
Definition at line 81 of file SvgTextEditor.h.
|
private |
Definition at line 87 of file SvgTextEditor.h.
|
private |
Definition at line 84 of file SvgTextEditor.h.
|
private |
Definition at line 82 of file SvgTextEditor.h.
|
private |
Definition at line 85 of file SvgTextEditor.h.
|
private |
Definition at line 79 of file SvgTextEditor.h.