]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/FormCommand.h
allow derived classes to manipulate signal connections
[lyx.git] / src / frontends / xforms / FormCommand.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ====================================================== 
4  *
5  *           LyX, The Document Processor
6  *
7  *           Copyright 2000 The LyX Team.
8  *
9  * ======================================================
10  */
11
12 #ifndef FORMCOMMAND_H
13 #define FORMCOMMAND_H
14
15 #include "FormBase.h"
16 #include "insets/insetcommand.h"
17
18 #ifdef __GNUG__
19 #pragma interface
20 #endif
21
22 /** This class is an XForms GUI base class to insets derived from
23     InsetCommand
24  */
25 class FormCommand : public FormBase {
26 public:
27         /// Constructor
28         FormCommand( LyXView *, Dialogs *, string const & );
29
30 protected:
31         /// Slot launching dialog to (possibly) create a new inset
32         void createInset( string const & );
33         /// Slot launching dialog to an existing inset
34         void showInset( InsetCommand * const );
35
36         /// pointer to the inset passed through showInset (if any)
37         InsetCommand * inset_;
38         /// the nitty-griity. What is modified and passed back
39         InsetCommandParams params;
40         /// inset::hide connection.
41         Connection ih_;
42 };
43
44 #endif