2006-03-05 17:24:44 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2007-08-31 05:53:55 +00:00
|
|
|
* \file GuiTabularCreate.h
|
2006-03-05 17:24:44 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author John Levon
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
#ifndef GUITABULARCREATE_H
|
|
|
|
#define GUITABULARCREATE_H
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2007-09-05 20:33:29 +00:00
|
|
|
#include "GuiDialog.h"
|
2007-08-11 15:48:15 +00:00
|
|
|
#include "ui_TabularCreateUi.h"
|
2007-04-24 17:46:08 +00:00
|
|
|
|
2007-10-06 09:39:29 +00:00
|
|
|
#include <utility>
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2007-10-06 09:39:29 +00:00
|
|
|
|
2007-10-09 19:34:27 +00:00
|
|
|
class GuiTabularCreate : public GuiDialog, public Ui::TabularCreateUi
|
2007-08-31 22:16:11 +00:00
|
|
|
{
|
2007-04-24 17:46:08 +00:00
|
|
|
Q_OBJECT
|
2007-09-05 20:33:29 +00:00
|
|
|
|
2007-04-24 17:46:08 +00:00
|
|
|
public:
|
2007-11-23 09:44:02 +00:00
|
|
|
GuiTabularCreate(GuiView & lv);
|
2007-04-24 17:46:08 +00:00
|
|
|
|
2007-09-05 20:33:29 +00:00
|
|
|
private Q_SLOTS:
|
|
|
|
void columnsChanged(int);
|
|
|
|
void rowsChanged(int);
|
2007-04-24 17:46:08 +00:00
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
private:
|
|
|
|
/// Apply changes
|
2007-09-05 20:33:29 +00:00
|
|
|
void applyView();
|
2007-10-06 09:39:29 +00:00
|
|
|
///
|
|
|
|
bool initialiseParams(std::string const & data);
|
|
|
|
/// clean-up on hide.
|
|
|
|
void clearParams();
|
|
|
|
///
|
|
|
|
void dispatchParams();
|
|
|
|
///
|
|
|
|
bool isBufferDependent() const { return true; }
|
|
|
|
///
|
2008-03-15 01:20:36 +00:00
|
|
|
FuncCode getLfun() const { return LFUN_TABULAR_INSERT; }
|
2007-10-06 09:39:29 +00:00
|
|
|
|
|
|
|
///
|
|
|
|
typedef std::pair<size_t, size_t> rowsCols;
|
|
|
|
///
|
|
|
|
rowsCols & params() { return params_; }
|
|
|
|
|
|
|
|
private:
|
|
|
|
/// rows, cols params
|
|
|
|
rowsCols params_;
|
2006-03-05 17:24:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
#endif // GUITABULARCREATE_H
|