]> git.lyx.org Git - lyx.git/blob - src/frontends/kde/FormIndex.h
Applied John's FileDialog patch.
[lyx.git] / src / frontends / kde / FormIndex.h
1 /**
2  * \file FormIndex.h
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author John Levon
7  */
8  
9 #ifndef FORMINDEX_H
10 #define FORMINDEX_H
11
12 #include "DialogBase.h"
13 #include "LString.h"
14 #include "boost/utility.hpp"
15 #include "insets/insetindex.h"
16
17 class Dialogs;
18 class LyXView;
19 class IndexDialog;
20
21 class FormIndex : public DialogBase {
22 public: 
23         FormIndex(LyXView *, Dialogs *);
24
25         ~FormIndex();
26
27         /// Apply changes
28         void apply();
29         /// close the connections
30         void close();
31  
32 private: 
33         /// Create the dialog if necessary, update it and display it.
34         void show();
35         /// Hide the dialog.
36         void hide();
37         /// Update the dialog.
38         void update(bool = false);
39
40         /// create an Index inset
41         void createIndex(string const &);
42         /// edit an Index  inset
43         void showIndex(InsetCommand * const);
44  
45         /// Real GUI implementation.
46         IndexDialog * dialog_;
47
48         /// the LyXView we belong to
49         LyXView * lv_;
50  
51         /// the Dialogs object we belong to
52         Dialogs * d_;
53         /// pointer to the inset if any
54         InsetCommand * inset_;
55         /// insets params
56         InsetCommandParams params;
57         /// is the inset we are reading from a readonly buffer ?
58         bool readonly;
59         
60         /// Hide connection.
61         Connection h_;
62         /// Update connection.
63         Connection u_;
64         /// Inset hide connection.
65         Connection ih_;
66 };
67
68 #endif // FORMINDEX_H