mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-15 07:16:48 +00:00
2a31934f38
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8766 a592a061-630c-0410-9148-cb99ea01b6c8
59 lines
1.1 KiB
C++
59 lines
1.1 KiB
C++
// -*- C++ -*-
|
|
/**
|
|
* \file QBox.h
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Jürgen Spitzmüller
|
|
* \ author Martin Vermeer
|
|
*
|
|
* Full author contact details are available in file CREDITS.
|
|
*/
|
|
|
|
#ifndef QBOX_H
|
|
#define QBOX_H
|
|
|
|
#include "QDialogView.h"
|
|
#include <vector>
|
|
|
|
namespace lyx {
|
|
namespace frontend {
|
|
|
|
class ControlBox;
|
|
class QBoxDialog;
|
|
|
|
///
|
|
class QBox
|
|
: public QController<ControlBox, QView<QBoxDialog> >
|
|
{
|
|
public:
|
|
///
|
|
friend class QBoxDialog;
|
|
///
|
|
QBox(Dialog &);
|
|
/// add and remove special lengths
|
|
void setSpecial(bool ibox);
|
|
/// only show valid inner box items
|
|
void setInnerType(bool frameless, int i);
|
|
private:
|
|
/// Apply changes
|
|
virtual void apply();
|
|
/// update
|
|
virtual void update_contents();
|
|
/// build the dialog
|
|
virtual void build_dialog();
|
|
///
|
|
std::vector<std::string> ids_;
|
|
///
|
|
std::vector<std::string> gui_names_;
|
|
///
|
|
std::vector<std::string> ids_spec_;
|
|
///
|
|
std::vector<std::string> gui_names_spec_;
|
|
};
|
|
|
|
} // namespace frontend
|
|
} // namespace lyx
|
|
|
|
#endif // QBOX_H
|