2006-03-05 17:24:44 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/**
|
|
|
|
* \file QCharacter.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Edwin Leuven
|
|
|
|
* \author John Levon
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef QCHARACTER_H_CONTROLLER
|
|
|
|
#define QCHARACTER_H_CONTROLLER
|
|
|
|
|
|
|
|
#include "QDialogView.h"
|
2007-04-25 10:57:54 +00:00
|
|
|
#include "ui/CharacterUi.h"
|
|
|
|
#include <QDialog>
|
2007-02-13 18:27:46 +00:00
|
|
|
|
2007-04-25 17:53:54 +00:00
|
|
|
#include "controllers/frontend_helpers.h"
|
2006-03-05 17:24:44 +00:00
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace lyx {
|
2007-04-25 10:57:54 +00:00
|
|
|
|
2007-04-29 18:17:15 +00:00
|
|
|
class Font;
|
2007-04-25 10:57:54 +00:00
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
namespace frontend {
|
|
|
|
|
2007-04-25 10:57:54 +00:00
|
|
|
class QCharacter;
|
|
|
|
|
|
|
|
class QCharacterDialog : public QDialog, public Ui::QCharacterUi {
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
QCharacterDialog(QCharacter * form);
|
|
|
|
protected:
|
|
|
|
void closeEvent(QCloseEvent * e);
|
|
|
|
private:
|
|
|
|
QCharacter * form_;
|
|
|
|
protected Q_SLOTS:
|
|
|
|
void change_adaptor();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2006-03-05 17:24:44 +00:00
|
|
|
class ControlCharacter;
|
|
|
|
|
|
|
|
class QCharacter
|
|
|
|
: public QController<ControlCharacter, QView<QCharacterDialog> >
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
friend class QCharacterDialog;
|
|
|
|
|
|
|
|
QCharacter(Dialog &);
|
|
|
|
private:
|
|
|
|
/// Apply changes
|
|
|
|
virtual void apply();
|
|
|
|
/// update
|
|
|
|
virtual void update_contents();
|
|
|
|
/// build the dialog
|
|
|
|
virtual void build_dialog();
|
|
|
|
|
|
|
|
std::vector<FamilyPair> family;
|
|
|
|
std::vector<SeriesPair> series;
|
|
|
|
std::vector<ShapePair> shape;
|
|
|
|
std::vector<SizePair> size;
|
|
|
|
std::vector<BarPair> bar;
|
|
|
|
std::vector<ColorPair> color;
|
|
|
|
std::vector<LanguagePair> language;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace frontend
|
|
|
|
} // namespace lyx
|
|
|
|
|
|
|
|
#endif // QCHARACTER_H
|