]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/FormTabularCreate.h
Fix for qt2 citation dialog crash when selecting first key
[lyx.git] / src / frontends / qt2 / FormTabularCreate.h
1 // -*- C++ -*-
2 /* FormTabularCreate.h
3  * (C) 2000 LyX Team
4  * John Levon, moz@compsoc.man.ac.uk
5  */
6
7 /***************************************************************************
8  *                                                                         *
9  *   This program is free software; you can redistribute it and/or modify  *
10  *   it under the terms of the GNU General Public License as published by  *
11  *   the Free Software Foundation; either version 2 of the License, or     *
12  *   (at your option) any later version.                                   *
13  *                                                                         *
14  ***************************************************************************/
15
16 #ifndef FORMTABULARCREATE_H
17 #define FORMTABULARCREATE_H
18
19 #include "DialogBase.h"
20 #include "LString.h"
21 #include "boost/utility.hpp"
22
23 class Dialogs;
24 class LyXView; 
25 class TabularCreateDlgImpl;
26
27 class FormTabularCreate : public DialogBase {
28 public: 
29         /**@name Constructors and Destructors */
30         //@{
31         ///
32         FormTabularCreate(LyXView *, Dialogs *);
33         /// 
34         ~FormTabularCreate();
35         //@}
36
37         /// create the table 
38         void apply(int rows, int cols);
39         /// close the connections
40         void close();
41  
42 private:
43         /// Create the dialog if necessary, update it and display it.
44         void show();
45         /// Hide the dialog.
46         void hide();
47  
48         /// Real GUI implementation.
49         TabularCreateDlgImpl * dialog_;
50
51         /// the LyXView we belong to
52         LyXView * lv_;
53  
54         /** Which Dialogs do we belong to?
55             Used so we can get at the signals we have to connect to.
56         */
57         Dialogs * d_;
58         
59         /// Hide connection.
60         SigC::Connection h_;
61 };
62
63 #endif