X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiListings.h;h=b9717d35e7b8a671f301bf32e317bedb33b9716c;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=4d6b1d5b7563ce448bfb37f284a159e27ea5b5ba;hpb=470aba2a0e552f27d55992372c09f15af9725fa8;p=lyx.git diff --git a/src/frontends/qt4/GuiListings.h b/src/frontends/qt4/GuiListings.h index 4d6b1d5b75..b9717d35e7 100644 --- a/src/frontends/qt4/GuiListings.h +++ b/src/frontends/qt4/GuiListings.h @@ -13,17 +13,17 @@ #define GUILISTINGS_H #include "GuiDialog.h" -#include "ControlListings.h" #include "ui_ListingsUi.h" +#include "insets/InsetListingsParams.h" namespace lyx { namespace frontend { -class GuiListingsDialog : public GuiDialog, public Ui::ListingsUi +class GuiListings : public GuiDialog, public Ui::ListingsUi { Q_OBJECT public: - GuiListingsDialog(LyXView & lv); + GuiListings(GuiView & lv); /// get values from all the widgets and form a string std::string construct_params(); /// validate listings parameters and return an error message, if any @@ -34,7 +34,7 @@ private Q_SLOTS: /// I have to validate listingsED (QTextEdit) manually. /// This function displays a hint or error message returned by /// validate_listings_params - void set_listings_msg(); + void setListingsMsg(); /// turn off inline when float is clicked void on_floatCB_stateChanged(int state); /// turn off float when inline is clicked @@ -44,15 +44,25 @@ private Q_SLOTS: /// show dialect when language is chosen void on_languageCO_currentIndexChanged(int); private: - void closeEvent(QCloseEvent * e); - /// parent controller - ControlListings & controller(); /// return false if validate_listings_params returns error bool isValid(); /// Apply changes void applyView(); /// update 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 setParams(InsetListingsParams const &); + + /// + InsetListingsParams params_; }; } // namespace frontend