]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/QIndex.h
Some Qt graphics dialog improvements. Yet more work needed :/
[lyx.git] / src / frontends / qt2 / QIndex.h
index f0f71d2871b2207e3889dcd833fb840c0cebccdf..ecd3885e99898257d4b1c9536d66be8381c6e515 100644 (file)
 #define QINDEX_H
 
 #include "Qt2Base.h"
-#include "ControlIndex.h"
-#include "LString.h"
-#include "boost/utility.hpp"
 
-class Dialogs;
-class LyXView;
+class ControlIndex;
 class QIndexDialog;
 
-class QIndex :
-       public Qt2CB<ControlIndex, Qt2DB<QIndexDialog> > {
 
+class QIndex :
+       public Qt2CB<ControlIndex, Qt2DB<QIndexDialog> >
+{
        friend class QIndexDialog;
-public: 
-       QIndex(ControlIndex &);
-       ~QIndex();
-private: 
+
+public:
+       QIndex();
+
+protected:
+       virtual bool isValid();
+
+private:
        /// Apply changes
        virtual void apply();
        /// update
-       virtual void update();
+       virtual void update_contents();
        /// build the dialog
-       virtual void build();
-
-       /// create an Index inset
-       void createIndex(string const &);
-       /// edit an Index  inset
-       void showIndex(InsetCommand * const);
-       /// is the inset we are reading from a readonly buffer ?
-       bool readonly;
+       virtual void build_dialog();
 };
 
 #endif // QINDEX_H