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
|
2002-09-24 13:57:09 +00:00
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
2001-03-16 17:20:06 +00:00
|
|
|
*
|
2002-09-24 13:57:09 +00:00
|
|
|
* \author Edwin Leuven
|
|
|
|
* \author John Levon
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS
|
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
|
|
|
|
2002-09-24 13:57:09 +00:00
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
2002-03-21 21:21:28 +00:00
|
|
|
|
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
|
|
|
|
2002-09-24 13:57:09 +00:00
|
|
|
#include "LString.h"
|
2002-10-20 01:48:28 +00:00
|
|
|
|
2002-09-24 13:57:09 +00:00
|
|
|
#include <vector>
|
|
|
|
|
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-08-12 14:28:43 +00:00
|
|
|
|
2001-03-05 12:04:43 +00:00
|
|
|
|
2002-10-20 01:48:28 +00:00
|
|
|
class QCharacter
|
|
|
|
: public Qt2CB<ControlCharacter, Qt2DB<QCharacterDialog> >
|
2001-08-26 17:49:42 +00:00
|
|
|
{
|
2002-10-20 01:48:28 +00:00
|
|
|
public:
|
2001-08-26 17:49:42 +00:00
|
|
|
friend class QCharacterDialog;
|
2002-03-21 21:21:28 +00:00
|
|
|
|
2002-08-12 14:28:43 +00:00
|
|
|
QCharacter();
|
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
|