]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QTabularCreate.h
some more random changes, added Timeout (make clean if LyX crashes !!)
[lyx.git] / src / frontends / qt2 / QTabularCreate.h
1 // -*- C++ -*-
2 /**
3  * \file QTabularCreate.h
4  * Copyright 2001 the LyX Team
5  * Read the file COPYING
6  *
7  * \author John Levon <moz@compsoc.man.ac.uk>
8  */
9
10 #ifndef QTABULARCREATE_H
11 #define QTABULARCREATE_H
12
13 #include "DialogBase.h"
14 #include "LString.h"
15 #include "boost/utility.hpp"
16
17 class Dialogs;
18 class LyXView; 
19 class QTabularCreateDialog;
20
21 class QTabularCreate : public DialogBase {
22 public: 
23         QTabularCreate(LyXView *, Dialogs *);
24         ~QTabularCreate();
25
26         /// create the table 
27         void apply(int rows, int cols);
28         /// close the connections
29         void close();
30  
31 private:
32         /// Create the dialog if necessary, update it and display it.
33         void show();
34         /// Hide the dialog.
35         void hide();
36  
37         /// Real GUI implementation.
38         QTabularCreateDialog * dialog_;
39
40         /// the LyXView we belong to
41         LyXView * lv_;
42  
43         /** Which Dialogs do we belong to?
44             Used so we can get at the signals we have to connect to.
45         */
46         Dialogs * d_;
47         
48         /// Hide connection.
49         SigC::Connection h_;
50 };
51
52 #endif // QTABULARCREATE_H