X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiGraphics.h;h=67a4cbeac299d05cf32cbf354e92b2e1085b91ae;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=6879b28889982abf1b7da4d2c7804061e6d15c29;hpb=d307a338dab7815fb675024ffdde39d84f862ced;p=lyx.git diff --git a/src/frontends/qt4/GuiGraphics.h b/src/frontends/qt4/GuiGraphics.h index 6879b28889..67a4cbeac2 100644 --- a/src/frontends/qt4/GuiGraphics.h +++ b/src/frontends/qt4/GuiGraphics.h @@ -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,9 @@ #include "GuiDialog.h" #include "ui_GraphicsUi.h" +#include "insets/InsetGraphicsParams.h" + #include "support/docstring.h" -#include "insets/InsetGraphics.h" #include @@ -27,9 +28,6 @@ class QString; namespace lyx { -class InsetGraphics; -class InsetGraphicsParams; - namespace frontend { class GuiGraphics : public GuiDialog, public Ui::GraphicsUi @@ -42,10 +40,11 @@ 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_filename_textChanged(const QString &); void on_scaleCB_toggled(bool); void on_WidthCB_toggled(bool); void on_HeightCB_toggled(bool); @@ -54,36 +53,36 @@ private Q_SLOTS: private: /// 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 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 QString browse(QString const &) const; /// Read the Bounding Box from a eps or ps-file std::string readBoundingBox(std::string const & file); - /// Control the bb - bool bbChanged; /// test if file exist bool isFileNameValid(std::string const & fname) const; -private: + /// Control the bb + bool bbChanged; + /// Store the LaTeX names for the rotation origins. + std::vector origin_ltx; /// InsetGraphicsParams params_; + /// the current graphics group + std::string current_group_; }; } // namespace frontend