2006-03-05 17:24:44 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
2007-08-31 05:53:55 +00:00
|
|
|
* \file GuiBox.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.
|
|
|
|
*
|
2008-11-14 15:58:50 +00:00
|
|
|
* \author Jürgen Spitzmüller
|
2007-10-06 10:23:51 +00:00
|
|
|
* \author Martin Vermeer (with useful hints from Angus Leeming)
|
2006-03-05 17:24:44 +00:00
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
#ifndef GUIBOX_H
|
|
|
|
#define GUIBOX_H
|
2006-03-05 17:24:44 +00:00
|
|
|
|
2010-02-15 23:17:45 +00:00
|
|
|
#include "InsetParamsWidget.h"
|
2007-08-11 15:48:15 +00:00
|
|
|
#include "ui_BoxUi.h"
|
2007-04-24 10:56:22 +00:00
|
|
|
|
2007-10-06 10:23:51 +00:00
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
namespace lyx {
|
|
|
|
namespace frontend {
|
|
|
|
|
2010-02-15 23:17:45 +00:00
|
|
|
class GuiBox : public InsetParamsWidget, public Ui::BoxUi
|
2007-09-05 20:33:29 +00:00
|
|
|
{
|
2007-04-24 10:56:22 +00:00
|
|
|
Q_OBJECT
|
2007-09-05 20:33:29 +00:00
|
|
|
|
2007-04-24 10:56:22 +00:00
|
|
|
public:
|
2010-02-15 23:17:45 +00:00
|
|
|
GuiBox(QWidget * parent = 0);
|
2007-04-24 10:56:22 +00:00
|
|
|
|
2007-09-05 20:33:29 +00:00
|
|
|
private Q_SLOTS:
|
2010-06-26 07:57:54 +00:00
|
|
|
void on_innerBoxCO_activated(int);
|
2010-02-07 20:28:41 +00:00
|
|
|
void on_typeCO_activated(int);
|
|
|
|
void initDialog();
|
2013-03-22 00:33:58 +00:00
|
|
|
void on_widthCB_stateChanged(int state);
|
2010-02-07 20:28:41 +00:00
|
|
|
void on_heightCB_stateChanged(int state);
|
|
|
|
void on_pagebreakCB_stateChanged();
|
2007-09-05 20:33:29 +00:00
|
|
|
|
|
|
|
private:
|
2010-02-15 23:17:45 +00:00
|
|
|
/// \name DialogView inherited methods
|
2010-02-07 20:28:41 +00:00
|
|
|
//@{
|
2010-02-18 07:56:38 +00:00
|
|
|
InsetCode insetCode() const { return BOX_CODE; }
|
|
|
|
FuncCode creationCode() const { return LFUN_BOX_INSERT; }
|
2010-02-07 20:28:41 +00:00
|
|
|
void paramsToDialog(Inset const *);
|
|
|
|
docstring dialogToParams() const;
|
|
|
|
//@}
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
/// add and remove special lengths
|
|
|
|
void setSpecial(bool ibox);
|
|
|
|
/// only show valid inner box items
|
2010-06-25 17:39:53 +00:00
|
|
|
void setInnerType(bool frameless, QString const & type);
|
2007-09-05 20:33:29 +00:00
|
|
|
|
2008-03-08 13:02:52 +00:00
|
|
|
QStringList ids_;
|
2006-03-05 17:24:44 +00:00
|
|
|
///
|
2008-03-08 13:02:52 +00:00
|
|
|
QStringList gui_names_;
|
2006-03-05 17:24:44 +00:00
|
|
|
///
|
2008-03-08 13:02:52 +00:00
|
|
|
QStringList ids_spec_;
|
2006-03-05 17:24:44 +00:00
|
|
|
///
|
2008-03-08 13:02:52 +00:00
|
|
|
QStringList gui_names_spec_;
|
2006-03-05 17:24:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
2007-08-31 22:16:11 +00:00
|
|
|
#endif // GUIBOX_H
|