#include "qt_helpers.h" // for LanguagePair
#include "Font.h"
-#include <vector>
-
namespace lyx {
-
namespace frontend {
enum FontState {
INHERIT
};
+typedef std::pair<QString, FontFamily> FamilyPair;
typedef std::pair<QString, FontFamily> FamilyPair;
typedef std::pair<QString, FontSeries> SeriesPair;
typedef std::pair<QString, FontShape> ShapePair;
typedef std::pair<QString, FontSize> SizePair;
-typedef std::pair<QString, FontState> BarPair;
-typedef std::pair<QString, ColorCode> ColorPair;
+typedef std::pair<QString, FontState> BarPair;
+typedef std::pair<QString, ColorCode> ColorPair;
class GuiCharacter : public GuiDialog, public Ui::CharacterUi
{
/// update
void updateContents();
- 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;
+ QList<FamilyPair> family;
+ QList<SeriesPair> series;
+ QList<ShapePair> shape;
+ QList<SizePair> size;
+ QList<BarPair> bar;
+ QList<ColorPair> color;
+ QList<LanguagePair> language;
///
bool initialiseParams(std::string const & data);
///
bool isBufferDependent() const { return true; }
///
- kb_action getLfun() const { return LFUN_FONT_FREE_UPDATE; }
+ FuncCode getLfun() const { return LFUN_FONT_FREE_UPDATE; }
///
void setFamily(FontFamily);
///
void setColor(ColorCode);
///
- void setLanguage(std::string const &);
+ void setLanguage(QString const &);
///
FontFamily getFamily() const;
///
ColorCode getColor() const;
///
- std::string getLanguage() const;
+ QString getLanguage() const;
private:
///