mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Amend efc0877f
This commit is contained in:
parent
4b63a9715d
commit
14b0da28c2
@ -36,7 +36,7 @@ public:
|
|||||||
void removeFromSequence();
|
void removeFromSequence();
|
||||||
protected Q_SLOTS:
|
protected Q_SLOTS:
|
||||||
bool event(QEvent* e);
|
bool event(QEvent* e);
|
||||||
void keyPressEvent(QKeyEvent * e);
|
void keyPressEvent(QKeyEvent * e) override;
|
||||||
private:
|
private:
|
||||||
void appendToSequence(QKeyEvent * e);
|
void appendToSequence(QKeyEvent * e);
|
||||||
KeySequence keysequence_;
|
KeySequence keysequence_;
|
||||||
|
@ -44,9 +44,9 @@ protected:
|
|||||||
bool needBufferOpen() const override { return isBufferDependent(); }
|
bool needBufferOpen() const override { return isBufferDependent(); }
|
||||||
//@}
|
//@}
|
||||||
/// Any dialog that overrides this method should make sure to call it.
|
/// Any dialog that overrides this method should make sure to call it.
|
||||||
void closeEvent(QCloseEvent * ev);
|
void closeEvent(QCloseEvent * ev) override;
|
||||||
/// Any dialog that overrides this method should make sure to call it.
|
/// Any dialog that overrides this method should make sure to call it.
|
||||||
void hideEvent(QHideEvent * ev);
|
void hideEvent(QHideEvent * ev) override;
|
||||||
|
|
||||||
protected Q_SLOTS:
|
protected Q_SLOTS:
|
||||||
void onBufferViewChanged() override {};
|
void onBufferViewChanged() override {};
|
||||||
|
@ -48,7 +48,7 @@ public:
|
|||||||
/// We don't want to restore geometry session for dock widgets.
|
/// We don't want to restore geometry session for dock widgets.
|
||||||
void restoreSession() override {}
|
void restoreSession() override {}
|
||||||
|
|
||||||
void keyPressEvent(QKeyEvent * ev);
|
void keyPressEvent(QKeyEvent * ev) override;
|
||||||
|
|
||||||
/// Dialog inherited methods
|
/// Dialog inherited methods
|
||||||
//@{
|
//@{
|
||||||
|
@ -97,7 +97,7 @@ private Q_SLOTS:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void resizeEvent(QResizeEvent *e);
|
virtual void resizeEvent(QResizeEvent *e);
|
||||||
virtual void keyPressEvent(QKeyEvent *e);
|
virtual void keyPressEvent(QKeyEvent *e) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void updateMargins();
|
void updateMargins();
|
||||||
|
@ -87,9 +87,9 @@ private:
|
|||||||
//@}
|
//@}
|
||||||
|
|
||||||
///
|
///
|
||||||
void showEvent(QShowEvent * e);
|
void showEvent(QShowEvent * e) override;
|
||||||
///
|
///
|
||||||
void closeEvent(QCloseEvent * e);
|
void closeEvent(QCloseEvent * e) override;
|
||||||
/// prepares a call to GuiCitation::searchKeys when we
|
/// prepares a call to GuiCitation::searchKeys when we
|
||||||
/// are ready to search the BibTeX entries
|
/// are ready to search the BibTeX entries
|
||||||
void findText(QString const & text, bool reset = false);
|
void findText(QString const & text, bool reset = false);
|
||||||
|
@ -40,7 +40,7 @@ protected:
|
|||||||
///
|
///
|
||||||
virtual bool event(QEvent * e);
|
virtual bool event(QEvent * e);
|
||||||
///
|
///
|
||||||
virtual void keyPressEvent(QKeyEvent * e);
|
virtual void keyPressEvent(QKeyEvent * e) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace frontend
|
} // namespace frontend
|
||||||
|
@ -32,7 +32,7 @@ public:
|
|||||||
GuiCompare(GuiView & lv);
|
GuiCompare(GuiView & lv);
|
||||||
~GuiCompare();
|
~GuiCompare();
|
||||||
|
|
||||||
void closeEvent(QCloseEvent *);
|
void closeEvent(QCloseEvent *) override;
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
///
|
///
|
||||||
|
@ -62,7 +62,7 @@ public Q_SLOTS:
|
|||||||
// A collectiong slot for QDialogButtonBox
|
// A collectiong slot for QDialogButtonBox
|
||||||
void slotButtonBox(QAbstractButton *);
|
void slotButtonBox(QAbstractButton *);
|
||||||
///
|
///
|
||||||
void closeEvent(QCloseEvent * e);
|
void closeEvent(QCloseEvent * e) override;
|
||||||
|
|
||||||
protected Q_SLOTS:
|
protected Q_SLOTS:
|
||||||
void onBufferViewChanged() override {}
|
void onBufferViewChanged() override {}
|
||||||
|
@ -364,7 +364,7 @@ Q_SIGNALS:
|
|||||||
void changed();
|
void changed();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void closeEvent(QCloseEvent *);
|
void closeEvent(QCloseEvent *) override;
|
||||||
void on_preambleTE_textChanged() { changed(); }
|
void on_preambleTE_textChanged() { changed(); }
|
||||||
|
|
||||||
typedef std::map<BufferId, std::pair<int,int> > Coords;
|
typedef std::map<BufferId, std::pair<int,int> > Coords;
|
||||||
|
@ -38,7 +38,7 @@ public Q_SLOTS:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
///
|
///
|
||||||
void showEvent(QShowEvent *);
|
void showEvent(QShowEvent *) override;
|
||||||
///
|
///
|
||||||
void paramsToDialog();
|
void paramsToDialog();
|
||||||
///
|
///
|
||||||
|
@ -77,8 +77,8 @@ private:
|
|||||||
bool eol_last_;
|
bool eol_last_;
|
||||||
|
|
||||||
void levelChanged();
|
void levelChanged();
|
||||||
void showEvent(QShowEvent*);
|
void showEvent(QShowEvent*) override;
|
||||||
void hideEvent(QHideEvent*);
|
void hideEvent(QHideEvent*) override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ private:
|
|||||||
///
|
///
|
||||||
void gotoBookmark();
|
void gotoBookmark();
|
||||||
///
|
///
|
||||||
void closeEvent(QCloseEvent * e);
|
void closeEvent(QCloseEvent * e) override;
|
||||||
///
|
///
|
||||||
bool isValid() override;
|
bool isValid() override;
|
||||||
/// apply changes
|
/// apply changes
|
||||||
|
@ -33,7 +33,7 @@ private Q_SLOTS:
|
|||||||
void replaceallClicked();
|
void replaceallClicked();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void showEvent(QShowEvent * e);
|
void showEvent(QShowEvent * e) override;
|
||||||
///
|
///
|
||||||
bool initialiseParams(std::string const &) override { return true; }
|
bool initialiseParams(std::string const &) override { return true; }
|
||||||
void clearParams() override {}
|
void clearParams() override {}
|
||||||
|
@ -39,7 +39,7 @@ public:
|
|||||||
void updateView() override;
|
void updateView() override;
|
||||||
void enableView(bool enable) override;
|
void enableView(bool enable) override;
|
||||||
bool wantInitialFocus() const override { return false; }
|
bool wantInitialFocus() const override { return false; }
|
||||||
void closeEvent(QCloseEvent * event);
|
void closeEvent(QCloseEvent * event) override;
|
||||||
bool isClosing() const override { return is_closing_; }
|
bool isClosing() const override { return is_closing_; }
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -176,7 +176,7 @@ private:
|
|||||||
///
|
///
|
||||||
void fill();
|
void fill();
|
||||||
///
|
///
|
||||||
void showEvent(QShowEvent *);
|
void showEvent(QShowEvent *) override;
|
||||||
|
|
||||||
///
|
///
|
||||||
QList<Action *> actions_;
|
QList<Action *> actions_;
|
||||||
|
@ -286,9 +286,9 @@ private:
|
|||||||
///
|
///
|
||||||
void dropEvent(QDropEvent * ev);
|
void dropEvent(QDropEvent * ev);
|
||||||
/// make sure we quit cleanly
|
/// make sure we quit cleanly
|
||||||
void closeEvent(QCloseEvent * e);
|
void closeEvent(QCloseEvent * e) override;
|
||||||
///
|
///
|
||||||
void showEvent(QShowEvent *);
|
void showEvent(QShowEvent *) override;
|
||||||
|
|
||||||
/// in order to catch Tab key press.
|
/// in order to catch Tab key press.
|
||||||
bool event(QEvent * e);
|
bool event(QEvent * e);
|
||||||
|
@ -145,7 +145,7 @@ private:
|
|||||||
void wheelEvent(QWheelEvent * ev);
|
void wheelEvent(QWheelEvent * ev);
|
||||||
/// key press event. It also knows how to handle ShortcutOverride events to
|
/// key press event. It also knows how to handle ShortcutOverride events to
|
||||||
/// avoid code duplication.
|
/// avoid code duplication.
|
||||||
void keyPressEvent(QKeyEvent * ev);
|
void keyPressEvent(QKeyEvent * ev) override;
|
||||||
/// IM events
|
/// IM events
|
||||||
void inputMethodEvent(QInputMethodEvent * ev);
|
void inputMethodEvent(QInputMethodEvent * ev);
|
||||||
/// IM query
|
/// IM query
|
||||||
@ -195,9 +195,9 @@ public:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
///
|
///
|
||||||
void closeEvent(QCloseEvent * ev);
|
void closeEvent(QCloseEvent * ev) override;
|
||||||
///
|
///
|
||||||
void hideEvent(QHideEvent *ev);
|
void hideEvent(QHideEvent *ev) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/// Embedded Buffer.
|
/// Embedded Buffer.
|
||||||
|
@ -53,8 +53,8 @@ Q_SIGNALS:
|
|||||||
void visible(bool);
|
void visible(bool);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void showEvent(QShowEvent * event);
|
void showEvent(QShowEvent * event) override;
|
||||||
void hideEvent(QHideEvent * event);
|
void hideEvent(QHideEvent * event) override;
|
||||||
void paintEvent(QPaintEvent * event);
|
void paintEvent(QPaintEvent * event);
|
||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
|
@ -66,7 +66,7 @@ public Q_SLOTS:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
/// widget hidden
|
/// widget hidden
|
||||||
void hideEvent(QHideEvent * event);
|
void hideEvent(QHideEvent * event) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
///
|
///
|
||||||
|
@ -1032,9 +1032,9 @@ public:
|
|||||||
// this should return true if we have a "normal" cell, otherwise false.
|
// this should return true if we have a "normal" cell, otherwise false.
|
||||||
// "normal" means without width set!
|
// "normal" means without width set!
|
||||||
/// should all paragraphs be output with "Standard" layout?
|
/// should all paragraphs be output with "Standard" layout?
|
||||||
virtual bool allowParagraphCustomization(idx_type cell = 0) const;
|
virtual bool allowParagraphCustomization(idx_type cell = 0) const override;
|
||||||
///
|
///
|
||||||
virtual bool forcePlainLayout(idx_type cell = 0) const;
|
virtual bool forcePlainLayout(idx_type cell = 0) const override;
|
||||||
///
|
///
|
||||||
void addPreview(DocIterator const & inset_pos,
|
void addPreview(DocIterator const & inset_pos,
|
||||||
graphics::PreviewLoader &) const override;
|
graphics::PreviewLoader &) const override;
|
||||||
|
@ -39,7 +39,7 @@ public:
|
|||||||
///
|
///
|
||||||
void htmlize(HtmlStream &) const override;
|
void htmlize(HtmlStream &) const override;
|
||||||
///
|
///
|
||||||
void infoize2(odocstream & os) const;
|
void infoize2(odocstream & os) const override;
|
||||||
///
|
///
|
||||||
static bool isBigInsetDelim(docstring const &);
|
static bool isBigInsetDelim(docstring const &);
|
||||||
///
|
///
|
||||||
|
@ -22,7 +22,7 @@ public:
|
|||||||
///
|
///
|
||||||
explicit InsetMathCancelto(Buffer * buf);
|
explicit InsetMathCancelto(Buffer * buf);
|
||||||
///
|
///
|
||||||
bool idxUpDown(Cursor & cur, bool up) const;
|
bool idxUpDown(Cursor & cur, bool up) const override;
|
||||||
///
|
///
|
||||||
void metrics(MetricsInfo & mi, Dimension & dim) const override;
|
void metrics(MetricsInfo & mi, Dimension & dim) const override;
|
||||||
///
|
///
|
||||||
|
@ -28,7 +28,7 @@ public:
|
|||||||
///
|
///
|
||||||
mode_type currentMode() const override;
|
mode_type currentMode() const override;
|
||||||
///
|
///
|
||||||
void draw(PainterInfo &, int x, int y) const;
|
void draw(PainterInfo &, int x, int y) const override;
|
||||||
///
|
///
|
||||||
void write(WriteStream & os) const override;
|
void write(WriteStream & os) const override;
|
||||||
///
|
///
|
||||||
|
@ -43,7 +43,7 @@ public:
|
|||||||
///
|
///
|
||||||
void metrics(MetricsInfo & mi, Dimension & dim) const override;
|
void metrics(MetricsInfo & mi, Dimension & dim) const override;
|
||||||
///
|
///
|
||||||
void draw(PainterInfo &, int x, int y) const;
|
void draw(PainterInfo &, int x, int y) const override;
|
||||||
|
|
||||||
///
|
///
|
||||||
void validate(LaTeXFeatures & features) const override;
|
void validate(LaTeXFeatures & features) const override;
|
||||||
|
@ -41,7 +41,7 @@ public:
|
|||||||
///
|
///
|
||||||
void metrics(MetricsInfo & mi, Dimension & dim) const override;
|
void metrics(MetricsInfo & mi, Dimension & dim) const override;
|
||||||
///
|
///
|
||||||
void draw(PainterInfo &, int x, int y) const;
|
void draw(PainterInfo &, int x, int y) const override;
|
||||||
|
|
||||||
///
|
///
|
||||||
void normalize(NormalStream &) const override;
|
void normalize(NormalStream &) const override;
|
||||||
|
@ -44,7 +44,7 @@ public:
|
|||||||
///
|
///
|
||||||
void htmlize(HtmlStream &) const override { }
|
void htmlize(HtmlStream &) const override { }
|
||||||
///
|
///
|
||||||
void infoize2(odocstream & os) const;
|
void infoize2(odocstream & os) const override;
|
||||||
///
|
///
|
||||||
InsetCode lyxCode() const override { return MATH_KERN_CODE; }
|
InsetCode lyxCode() const override { return MATH_KERN_CODE; }
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ public:
|
|||||||
///
|
///
|
||||||
void metrics(MetricsInfo & mi, Dimension & dim) const override;
|
void metrics(MetricsInfo & mi, Dimension & dim) const override;
|
||||||
///
|
///
|
||||||
void draw(PainterInfo &, int x, int y) const;
|
void draw(PainterInfo &, int x, int y) const override;
|
||||||
///
|
///
|
||||||
void normalize(NormalStream &) const override;
|
void normalize(NormalStream &) const override;
|
||||||
///
|
///
|
||||||
|
@ -28,7 +28,7 @@ public:
|
|||||||
///
|
///
|
||||||
void metrics(MetricsInfo & mi, Dimension & dim) const override;
|
void metrics(MetricsInfo & mi, Dimension & dim) const override;
|
||||||
///
|
///
|
||||||
void draw(PainterInfo &, int x, int y) const;
|
void draw(PainterInfo &, int x, int y) const override;
|
||||||
///
|
///
|
||||||
docstring str() const { return str_; }
|
docstring str() const { return str_; }
|
||||||
///
|
///
|
||||||
|
@ -28,7 +28,7 @@ public:
|
|||||||
///
|
///
|
||||||
void draw(PainterInfo & pi, int x, int y) const override;
|
void draw(PainterInfo & pi, int x, int y) const override;
|
||||||
///
|
///
|
||||||
bool idxUpDown(Cursor & cur, bool up) const;
|
bool idxUpDown(Cursor & cur, bool up) const override;
|
||||||
///
|
///
|
||||||
bool idxFirst(Cursor &) const override;
|
bool idxFirst(Cursor &) const override;
|
||||||
///
|
///
|
||||||
|
@ -25,11 +25,11 @@ public:
|
|||||||
///
|
///
|
||||||
explicit InsetMathRoot(Buffer * buf);
|
explicit InsetMathRoot(Buffer * buf);
|
||||||
///
|
///
|
||||||
bool idxUpDown(Cursor & cur, bool up) const;
|
bool idxUpDown(Cursor & cur, bool up) const override;
|
||||||
///
|
///
|
||||||
bool idxForward(Cursor & cur) const;
|
bool idxForward(Cursor & cur) const;
|
||||||
///
|
///
|
||||||
bool idxBackward(Cursor & cur) const;
|
bool idxBackward(Cursor & cur) const override;
|
||||||
///
|
///
|
||||||
bool idxFirst(Cursor &) const override;
|
bool idxFirst(Cursor &) const override;
|
||||||
///
|
///
|
||||||
|
@ -50,7 +50,7 @@ public:
|
|||||||
/// move cursor up or down
|
/// move cursor up or down
|
||||||
bool idxUpDown(Cursor & cur, bool up) const override;
|
bool idxUpDown(Cursor & cur, bool up) const override;
|
||||||
/// The index of the cell entered while moving backward
|
/// The index of the cell entered while moving backward
|
||||||
size_type lastIdx() const { return 0; }
|
size_type lastIdx() const override { return 0; }
|
||||||
|
|
||||||
/// write LaTeX and Lyx code
|
/// write LaTeX and Lyx code
|
||||||
void write(WriteStream & os) const override;
|
void write(WriteStream & os) const override;
|
||||||
|
@ -31,7 +31,7 @@ public:
|
|||||||
///
|
///
|
||||||
void metrics(MetricsInfo & mi, Dimension & dim) const override;
|
void metrics(MetricsInfo & mi, Dimension & dim) const override;
|
||||||
///
|
///
|
||||||
void draw(PainterInfo &, int x, int y) const;
|
void draw(PainterInfo &, int x, int y) const override;
|
||||||
|
|
||||||
///
|
///
|
||||||
void write(WriteStream & os) const override;
|
void write(WriteStream & os) const override;
|
||||||
|
@ -25,7 +25,7 @@ public:
|
|||||||
///
|
///
|
||||||
explicit InsetMathSqrt(Buffer * buf);
|
explicit InsetMathSqrt(Buffer * buf);
|
||||||
///
|
///
|
||||||
void draw(PainterInfo &, int x, int y) const;
|
void draw(PainterInfo &, int x, int y) const override;
|
||||||
///
|
///
|
||||||
void metrics(MetricsInfo & mi, Dimension & dim) const override;
|
void metrics(MetricsInfo & mi, Dimension & dim) const override;
|
||||||
///
|
///
|
||||||
|
@ -22,7 +22,7 @@ public:
|
|||||||
///
|
///
|
||||||
InsetMathStackrel(Buffer * buf, bool sub);
|
InsetMathStackrel(Buffer * buf, bool sub);
|
||||||
///
|
///
|
||||||
bool idxUpDown(Cursor &, bool up) const;
|
bool idxUpDown(Cursor &, bool up) const override;
|
||||||
///
|
///
|
||||||
bool idxFirst(Cursor &) const override;
|
bool idxFirst(Cursor &) const override;
|
||||||
///
|
///
|
||||||
|
@ -31,7 +31,7 @@ public:
|
|||||||
///
|
///
|
||||||
void metrics(MetricsInfo & mi, Dimension & dim) const override;
|
void metrics(MetricsInfo & mi, Dimension & dim) const override;
|
||||||
///
|
///
|
||||||
void draw(PainterInfo &, int x, int y) const;
|
void draw(PainterInfo &, int x, int y) const override;
|
||||||
///
|
///
|
||||||
int kerning(BufferView const *) const override { return kerning_; }
|
int kerning(BufferView const *) const override { return kerning_; }
|
||||||
|
|
||||||
@ -74,7 +74,7 @@ public:
|
|||||||
///
|
///
|
||||||
void write(WriteStream & os) const override;
|
void write(WriteStream & os) const override;
|
||||||
///
|
///
|
||||||
void infoize2(odocstream & os) const;
|
void infoize2(odocstream & os) const override;
|
||||||
///
|
///
|
||||||
InsetCode lyxCode() const override { return MATH_SYMBOL_CODE; }
|
InsetCode lyxCode() const override { return MATH_SYMBOL_CODE; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user