]> git.lyx.org Git - features.git/blobdiff - src/frontends/kde/FormIndex.h
Update to MVC. Ref,Toc and citation don't work at all currently.
[features.git] / src / frontends / kde / FormIndex.h
index 65c15b966d46ab217e4412236b50126601e00d7d..b990935147a45f522f3d29531a6263777c6004a5 100644 (file)
@@ -9,60 +9,22 @@
 #ifndef FORMINDEX_H
 #define FORMINDEX_H
 
-#include "DialogBase.h"
-#include "LString.h"
-#include "boost/utility.hpp"
-#include "insets/insetindex.h"
+#include "KFormBase.h"
 
-class Dialogs;
-class LyXView;
+class ControlIndex;
 class IndexDialog;
 
-class FormIndex : public DialogBase {
+class FormIndex : public KFormBase<ControlIndex, IndexDialog> {
 public: 
-       FormIndex(LyXView *, Dialogs *);
+       FormIndex(ControlIndex & c);
 
-       ~FormIndex();
-
-       /// Apply changes
-       void apply();
-       /// close the connections
-       void close();
 private: 
-       /// Create the dialog if necessary, update it and display it.
-       void show();
-       /// Hide the dialog.
-       void hide();
-       /// Update the dialog.
-       void update(bool = false);
-
-       /// create an Index inset
-       void createIndex(string const &);
-       /// edit an Index  inset
-       void showIndex(InsetCommand * const);
-       /// Real GUI implementation.
-       IndexDialog * dialog_;
-
-       /// the LyXView we belong to
-       LyXView * lv_;
-       /// the Dialogs object we belong to
-       Dialogs * d_;
-       /// pointer to the inset if any
-       InsetCommand * inset_;
-       /// insets params
-       InsetCommandParams params;
-       /// is the inset we are reading from a readonly buffer ?
-       bool readonly;
-       
-       /// Hide connection.
-       Connection h_;
-       /// Update connection.
-       Connection u_;
-       /// Inset hide connection.
-       Connection ih_;
+       /// apply changes
+       virtual void apply();
+       /// build the dialog
+       virtual void build();
+       /// update the dialog
+       virtual void update();
 };
 
 #endif // FORMINDEX_H