lyx_mirror/src/frontends/qt4/GuiBox.h

79 lines
1.4 KiB
C
Raw Normal View History

// -*- C++ -*-
/**
* \file GuiBox.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author J<EFBFBD>rgen Spitzm<EFBFBD>ller
* \author Martin Vermeer (with useful hints from Angus Leeming)
*
* Full author contact details are available in file CREDITS.
*/
#ifndef GUIBOX_H
#define GUIBOX_H
#include "GuiDialog.h"
#include "ui_BoxUi.h"
#include "insets/InsetBox.h"
#include <vector>
namespace lyx {
namespace frontend {
class GuiBox : public GuiDialog, public Ui::BoxUi
{
Q_OBJECT
public:
GuiBox(LyXView & lv);
private Q_SLOTS:
void change_adaptor();
void innerBoxChanged(const QString &);
void typeChanged(int);
void restoreClicked();
private:
///
void closeEvent(QCloseEvent * e);
/// add and remove special lengths
void setSpecial(bool ibox);
/// only show valid inner box items
void setInnerType(bool frameless, int i);
/// Apply changes
void applyView();
/// update
void updateContents();
///
bool initialiseParams(std::string const & data);
///
void clearParams();
///
void dispatchParams();
///
bool isBufferDependent() const { return true; }
///
std::vector<std::string> ids_;
///
std::vector<docstring> gui_names_;
///
std::vector<std::string> ids_spec_;
///
std::vector<docstring> gui_names_spec_;
///
InsetBoxParams params_;
};
} // namespace frontend
} // namespace lyx
#endif // GUIBOX_H