2001-03-05 12:04:43 +00:00
|
|
|
// -*- C++ -*-
|
2001-03-16 17:20:06 +00:00
|
|
|
/**
|
2001-08-19 13:25:15 +00:00
|
|
|
* \file QCharacter.h
|
2001-08-26 17:49:42 +00:00
|
|
|
* Copyright 2001 the LyX Team
|
|
|
|
* Read the file COPYING
|
2001-03-16 17:20:06 +00:00
|
|
|
*
|
2001-08-26 17:49:42 +00:00
|
|
|
* \author Edwin Leuven, leuven@fee.uva.nl
|
|
|
|
* \author John Levon <moz@compsoc.man.ac.uk>
|
2001-03-05 12:04:43 +00:00
|
|
|
*/
|
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
#ifndef QCHARACTER_H
|
|
|
|
#define QCHARACTER_H
|
2001-03-05 12:04:43 +00:00
|
|
|
|
2001-08-26 17:49:42 +00:00
|
|
|
#include <config.h>
|
|
|
|
#include <vector>
|
2002-03-21 21:21:28 +00:00
|
|
|
|
|
|
|
#include "LString.h"
|
2001-08-26 17:49:42 +00:00
|
|
|
#include "Qt2Base.h"
|
2002-03-21 21:21:28 +00:00
|
|
|
#include "controllers/character.h"
|
2002-04-30 00:26:16 +00:00
|
|
|
#include "controllers/frnt_lang.h"
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2001-03-05 12:04:43 +00:00
|
|
|
|
2001-08-26 17:49:42 +00:00
|
|
|
class ControlCharacter;
|
2001-08-19 13:25:15 +00:00
|
|
|
class QCharacterDialog;
|
2002-07-11 01:01:38 +00:00
|
|
|
class Dialogs;
|
2001-03-05 12:04:43 +00:00
|
|
|
|
2001-08-26 17:49:42 +00:00
|
|
|
class QCharacter :
|
2002-03-21 21:21:28 +00:00
|
|
|
public Qt2CB<ControlCharacter, Qt2DB<QCharacterDialog> >
|
2001-08-26 17:49:42 +00:00
|
|
|
{
|
|
|
|
friend class QCharacterDialog;
|
2002-03-21 21:21:28 +00:00
|
|
|
|
|
|
|
public:
|
2002-07-11 01:01:38 +00:00
|
|
|
QCharacter(ControlCharacter &, Dialogs &);
|
2001-08-26 17:49:42 +00:00
|
|
|
|
2002-03-21 21:21:28 +00:00
|
|
|
private:
|
2001-08-26 17:49:42 +00:00
|
|
|
/// Apply changes
|
|
|
|
virtual void apply();
|
|
|
|
/// update
|
|
|
|
virtual void update_contents();
|
|
|
|
/// build the dialog
|
|
|
|
virtual void build_dialog();
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2002-04-30 00:26:16 +00:00
|
|
|
std::vector<frnt::FamilyPair> family;
|
|
|
|
std::vector<frnt::SeriesPair> series;
|
|
|
|
std::vector<frnt::ShapePair> shape;
|
|
|
|
std::vector<frnt::SizePair> size;
|
|
|
|
std::vector<frnt::BarPair> bar;
|
|
|
|
std::vector<frnt::ColorPair> color;
|
|
|
|
std::vector<frnt::LanguagePair> language;
|
2001-03-05 12:04:43 +00:00
|
|
|
};
|
|
|
|
|
2001-08-19 13:25:15 +00:00
|
|
|
#endif // QCHARACTER_H
|