pynoto / src / TextEditor / TextEditorImpl.h


#include "Include/ITextEditor.h"

namespace TextEditor {

class TextEditorWidget;
class TextEditorImpl: public Editors::ITextEditor
    TextEditorImpl(TextEditorWidget * widget, QWidget* parent, bool sample = false);
    virtual ~TextEditorImpl();

    virtual bool isModified();
    virtual void updateStatus();
    virtual QString fileName();
    virtual QString selectedText();
    virtual void saveState();
    virtual QAbstractTableModel* errorListModel();
    virtual void jumpToLine(int line);
    virtual void jumpToOffset(int offset);

    virtual void setThemeName(const QString& name);
    void focusInEvent(QFocusEvent *);
public slots:
    virtual bool save();
    virtual bool load();
    virtual bool reload();

    virtual void undo();
    virtual void redo();
    virtual void copy();
    virtual void cut();
    virtual void paste();
    virtual void del();

    virtual void selectAll();
    virtual void upperCase();
    virtual void lowerCase();
    virtual void capitalize();
    virtual void camelize();
    virtual void underlize();
    virtual void reset();

    virtual void find(const QString& text, bool forward);
    virtual void replace(const QString& text, const QString& repl, bool findNext, bool forward);
    virtual void replaceAll(const QString& text, const QString& repl);
    virtual void startIncrementalFind();
    virtual void checkIssues();

private slots:
    void onModificationChanged(bool modified);
    TextEditorWidget *_widget;


Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.