]> git.lyx.org Git - lyx.git/blob - src/frontends/kde/FormTabularCreate.C
implement getLabelList
[lyx.git] / src / frontends / kde / FormTabularCreate.C
1 /**
2  * \file FormTabularCreate.C
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author John Levon
7  */
8
9 #include <config.h>
10
11 #include "gettext.h"
12 #include "support/lstrings.h"
13  
14 #include "FormTabularCreate.h"
15 #include "ControlTabularCreate.h" 
16 #include "tabcreatedlg.h"
17  
18 FormTabularCreate::FormTabularCreate(ControlTabularCreate & c)
19         : KFormBase<ControlTabularCreate, TabularCreateDialog>(c)
20 {
21 }
22
23
24 void FormTabularCreate::build()
25 {
26         dialog_.reset(new TabularCreateDialog(this, 0, _("LyX: Insert Table")));
27
28         bc().setOK(dialog_->button_ok);
29         bc().setCancel(dialog_->button_cancel);
30 }
31
32
33 void FormTabularCreate::apply()
34 {
35         // FIXME: angus, what's with this ? Why should the dialogs know about
36         // how LFUN represents the row, column ... this should be params(uint, uint) 
37         controller().params() = tostr(dialog_->spin_rows->value()) + " " + tostr(dialog_->spin_cols->value());
38 }