lyx_mirror/src/frontends/qt4/QBox.h
Lars Gullik Bjønnes 12e5a52b92 Added initial qt4 work by Abdelrazak Younes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13294 a592a061-630c-0410-9148-cb99ea01b6c8
2006-03-05 17:24:44 +00:00

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