]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiDocument.h
QDialogButtonBox for the remaining dialogs.
[lyx.git] / src / frontends / qt4 / GuiDocument.h
index 5efde8eee3e289b37cec36f8ef031aa20be151c9..8812ff91c4e440a2fa536dc7749144b5b0943e39 100644 (file)
@@ -44,6 +44,10 @@ class LayoutModuleList;
 class LyXModule;
 class TextClass;
 
+namespace support {
+       class TempFile;
+}
+
 namespace frontend {
 
 class FloatPlacement;
@@ -55,7 +59,7 @@ class LocalLayout;
 class FontModule;
 
 ///
-typedef void const * BufferId;
+typedef Buffer const * BufferId;
 
 template<class UI>
 class UiWidget : public QWidget, public UI
@@ -86,6 +90,11 @@ public:
 
 public Q_SLOTS:
        void onBufferViewChanged();//override
+       // OK button clicked
+       void slotOK();
+       // Apply button clicked
+       void slotApply();
+       void slotButtonBox(QAbstractButton *);
 
 private Q_SLOTS:
        void updateNumbering();
@@ -292,6 +301,8 @@ private:
        ///
        bool isBiblatex() const;
        ///
+       void checkPossibleCiteEngines();
+       ///
        BufferParams bp_;
        /// List of names of available modules
        std::list<modInfoStruct> moduleNames_;
@@ -303,6 +314,10 @@ private:
        bool biblioChanged_;
        /// Track if a non-module document param changed
        bool nonModuleChanged_;
+       /// Track if used modules changed
+       bool modulesChanged_;
+       /// Track if the shellescape param changed
+       bool shellescapeChanged_;
 };
 
 
@@ -313,6 +328,7 @@ public:
        PreambleModule(QWidget * parent);
        void update(BufferParams const & params, BufferId id);
        void apply(BufferParams & params);
+       bool editing() const { return (bool)tempfile_; }
 
 Q_SIGNALS:
        /// signal that something's changed in the Widget.
@@ -322,10 +338,16 @@ private:
        void closeEvent(QCloseEvent *);
        void on_preambleTE_textChanged() { changed(); }
 
-private:
        typedef std::map<BufferId, std::pair<int,int> > Coords;
        Coords preamble_coords_;
        BufferId current_id_;
+       unique_ptr<support::TempFile> tempfile_;
+
+private Q_SLOTS:
+       ///
+       void checkFindButton();
+       void findText();
+       void editExternal();
 };
 
 
@@ -337,6 +359,7 @@ public:
        void update(BufferParams const & params, BufferId id);
        void apply(BufferParams & params);
        bool isValid() const { return validated_; }
+       bool editing() const { return (bool)tempfile_; }
 
 Q_SIGNALS:
        /// signal that something's changed in the Widget.
@@ -350,10 +373,12 @@ private Q_SLOTS:
        void textChanged();
        void validatePressed();
        void convertPressed();
+       void editExternal();
 
 private:
        BufferId current_id_;
        bool validated_;
+       unique_ptr<support::TempFile> tempfile_;
 };