2003-12-05 16:22:36 +00:00
|
|
|
|
// -*- C++ -*-
|
|
|
|
|
/**
|
|
|
|
|
* \file QBox.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
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef QBOX_H
|
|
|
|
|
#define QBOX_H
|
|
|
|
|
|
|
|
|
|
#include "QDialogView.h"
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
|
namespace lyx {
|
|
|
|
|
namespace frontend {
|
2003-12-05 16:22:36 +00:00
|
|
|
|
|
|
|
|
|
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_;
|
|
|
|
|
};
|
|
|
|
|
|
2004-05-19 15:11:37 +00:00
|
|
|
|
} // namespace frontend
|
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
2003-12-05 16:22:36 +00:00
|
|
|
|
#endif // QBOX_H
|