]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/QTabularDialog.C
implement a little bit of tabular dialog
[lyx.git] / src / frontends / qt2 / QTabularDialog.C
1 /**
2  * \file QTabularDialog.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author John Levon
7  *
8  * Full author contact details are available in file CREDITS
9  */
10
11 #include <config.h>
12
13 #ifdef __GNUG__
14 #pragma implementation
15 #endif
16
17 #include "ControlTabular.h"
18  
19 #include "QTabular.h"
20 #include "QTabularDialog.h"
21 #include "tabular.h"
22
23 #include <qpushbutton.h>
24
25
26 QTabularDialog::QTabularDialog(QTabular * form)
27         : QTabularDialogBase(0, 0, false, 0),
28         form_(form)
29 {
30         connect(closePB, SIGNAL(clicked()),
31                 form, SLOT(slotClose()));
32 }
33
34
35 void QTabularDialog::change_adaptor()
36 {
37         form_->changed();
38 }
39
40
41 void QTabularDialog::closeEvent(QCloseEvent * e)
42 {
43         form_->slotWMHide();
44         e->accept();
45 }
46  
47
48 void QTabularDialog::columnAppend_clicked()
49 {
50         form_->controller().set(LyXTabular::APPEND_COLUMN);
51 }
52
53  
54 void QTabularDialog::rowAppend_clicked()
55 {
56         form_->controller().set(LyXTabular::APPEND_ROW);
57 }
58
59  
60 void QTabularDialog::columnDelete_clicked()
61 {
62         form_->controller().set(LyXTabular::DELETE_COLUMN);
63 }
64
65  
66 void QTabularDialog::rowDelete_clicked()
67 {
68         form_->controller().set(LyXTabular::DELETE_COLUMN);
69 }