]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/FloatPlacement.h
Improve wording (#10670)
[lyx.git] / src / frontends / qt4 / FloatPlacement.h
index dca71b9dbabb8449cbf3e9b48bb3d37ffb18dde6..c5f8dd7ef1a508f2f5618baa0607634e400bd73b 100644 (file)
@@ -33,10 +33,12 @@ public:
 
        /// \name DialogView inherited methods
        //@{
-       InsetCode insetCode() { return FLOAT_CODE; }
-       FuncCode creationCode() { return LFUN_FLOAT_INSERT; }
+       InsetCode insetCode() const { return FLOAT_CODE; }
+       FuncCode creationCode() const { return LFUN_FLOAT_INSERT; }
+       QString dialogTitle() const { return qt_("Float Settings"); }
        void paramsToDialog(Inset const *);
        docstring dialogToParams() const;
+       bool checkWidgets(bool readonly) const;
        //@}
        ///
        void useWide();
@@ -53,15 +55,23 @@ private Q_SLOTS:
 
 private:
        ///
-       void checkAllowed();
+       void checkAllowed() const;
        ///
        std::string const get(bool & wide, bool & sideways) const;
        ///
        void initFloatTypeCO(FloatList const & floats);
+       ///
+       bool possiblePlacement(char const & p) const;
 
        /// one of figure or table?
        bool standardfloat_;
        ///
+       std::string allowed_placement_;
+       ///
+       bool allows_wide_;
+       ///
+       bool allows_sideways_;
+       ///
        FloatList const * float_list_;
 };