Commit f1eb9c48 authored by Daniel Teske's avatar Daniel Teske Committed by David Schulz
Browse files

TextEditorActionHandler: Simplify code



Change-Id: I44f1859b6d91e20a2a15146c6587e4a51c70aa90
Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 3e62b80b
...@@ -43,6 +43,7 @@ QT_FORWARD_DECLARE_CLASS(QAction) ...@@ -43,6 +43,7 @@ QT_FORWARD_DECLARE_CLASS(QAction)
namespace Core { namespace Core {
class ICore; class ICore;
class IEditor; class IEditor;
class ActionContainer;
} }
namespace TextEditor { namespace TextEditor {
...@@ -79,9 +80,14 @@ public slots: ...@@ -79,9 +80,14 @@ public slots:
protected: protected:
const QPointer<BaseTextEditorWidget> &currentEditor() const; const QPointer<BaseTextEditorWidget> &currentEditor() const;
QAction *registerNewAction(const Core::Id &id, bool scriptable = false, const QString &title = QString());
QAction *registerNewAction(const Core::Id &id, QObject *receiver, const char *slot, bool scriptable = false, QAction *registerAction(const Core::Id &id,
const QString &title = QString()); const char *slot,
bool scriptable = false,
const QString &title = QString(),
const QKeySequence &keySequence = QKeySequence(),
const char *menueGroup = 0,
Core::ActionContainer *container = 0);
enum UpdateMode { ReadOnlyMode, WriteMode }; enum UpdateMode { ReadOnlyMode, WriteMode };
UpdateMode updateMode() const; UpdateMode updateMode() const;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment