]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiGraphics.h
Set a maximum value to zoom level
[lyx.git] / src / frontends / qt4 / GuiGraphics.h
index a80074e70b465abee079bcb3b2817476059cb41a..6446949daf39d54ab08f8ee7f57ddc67e55c43c5 100644 (file)
@@ -5,7 +5,7 @@
  * Licence details can be found in the file COPYING.
  *
  * \author John Levon
- * \author Herbert Voß
+ * \author Herbert Voß
  * \author Baruch Even
  * \author Angus Leeming
  *
@@ -18,8 +18,7 @@
 #include "GuiDialog.h"
 #include "ui_GraphicsUi.h"
 
-#include "support/docstring.h"
-#include "insets/InsetGraphics.h"
+#include "insets/InsetGraphicsParams.h"
 
 #include <vector>
 
@@ -27,9 +26,6 @@ class QString;
 
 namespace lyx {
 
-class InsetGraphics;
-class InsetGraphicsParams;
-
 namespace frontend {
 
 class GuiGraphics : public GuiDialog, public Ui::GraphicsUi
@@ -42,57 +38,53 @@ public:
 
 private Q_SLOTS:
        void change_adaptor();
-       void change_bb();
+       void changeGroup(int);
+       void changeBB();
+       void on_newGroupPB_clicked();
        void on_browsePB_clicked();
        void on_getPB_clicked();
-       void on_editPB_clicked();
-       void on_filename_textChanged(const QString &);
        void on_scaleCB_toggled(bool);
        void on_WidthCB_toggled(bool);
        void on_HeightCB_toggled(bool);
+       void updateAspectRatioStatus();
+       void on_aspectratio_toggled(bool);
        void on_angle_textChanged(const QString &);
 
 private:
-       void closeEvent(QCloseEvent * e);
+       ///
        bool isValid();
-       /// Apply changes
+       /// Dialog inherited methods
+       //@{
        void applyView();
-       /// update
-       void updateContents();
-       /// get bounding box from file
-       void getBB();
-
-       /// Store the LaTeX names for the rotation origins.
-       std::vector<std::string> origin_ltx;
-       ///
+       void updateContents() {}
        bool initialiseParams(std::string const & data);
-       /// clean-up on hide.
        void clearParams();
-       /// clean-up on hide.
        void dispatchParams();
-       ///
        bool isBufferDependent() const { return true; }
+       //@}
+
+       ///
+       void paramsToDialog(InsetGraphicsParams const & params);
 
+       /// get bounding box from file
+       void getBB();
        /// Browse for a file
-       docstring const browse(docstring const &) const;
+       QString browse(QString const &) const;
        /// Read the Bounding Box from a eps or ps-file
-       std::string const readBB(std::string const & file);
-       /// Control the bb
-       bool bbChanged;
+       std::string readBoundingBox(std::string const & file);
        /// test if file exist
-       bool isFilenameValid(std::string const & fname) const;
-       /// edit file
-       void editGraphics();
+       bool isFileNameValid(std::string const & fname) const;
 
-private:
+       /// Control the bb
+       bool bbChanged;
+       /// Store the LaTeX names for the rotation origins.
+       std::vector<std::string> origin_ltx;
        ///
        InsetGraphicsParams params_;
+       /// the current graphics group
+       std::string current_group_;
 };
 
-
-/// get the units for the bounding box
-std::vector<std::string> const getBBUnits();
-
 } // namespace frontend
 } // namespace lyx