]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiGraphics.h
Create new graphics from within LyX choosing a sample file to copy from.
[lyx.git] / src / frontends / qt4 / GuiGraphics.h
index 27e34ac916fa266414382179dc377b36e072f301..aeca7e9db5a498365456686544686d2d910fd857 100644 (file)
@@ -20,8 +20,6 @@
 
 #include "insets/InsetGraphicsParams.h"
 
-#include "support/docstring.h"
-
 #include <vector>
 
 class QString;
@@ -40,13 +38,19 @@ public:
 
 private Q_SLOTS:
        void change_adaptor();
-       void change_group(const QString &);
-       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_chooseSamplePB_clicked();
+       void on_okPB_clicked();
        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:
@@ -73,6 +77,8 @@ private:
        std::string readBoundingBox(std::string const & file);
        /// test if file exist
        bool isFileNameValid(std::string const & fname) const;
+       /// Check if file exists, if not, ask whether ok to continue
+       bool checkFileExists();
 
        /// Control the bb
        bool bbChanged;
@@ -80,6 +86,8 @@ private:
        std::vector<std::string> origin_ltx;
        ///
        InsetGraphicsParams params_;
+       /// the current graphics group
+       std::string current_group_;
 };
 
 } // namespace frontend