]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiCharacter.h
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[lyx.git] / src / frontends / qt4 / GuiCharacter.h
index b2035cba519fbe077047e304abf8891df02e5557..432478b51173a1d2818d756042dc695f9a10018f 100644 (file)
 #include "qt_helpers.h" // for LanguagePair
 #include "Font.h"
 
-#include <vector>
-
 
 namespace lyx {
-
 namespace frontend {
 
 enum FontState {
@@ -39,37 +36,37 @@ 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
 {
        Q_OBJECT
 
 public:
-       GuiCharacter(LyXView & lv);
+       GuiCharacter(GuiView & lv);
 
 protected Q_SLOTS:
        void change_adaptor();
 
 private:
-       void closeEvent(QCloseEvent * e);
        /// Apply changes
        void applyView();
        /// 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);
@@ -80,7 +77,7 @@ private:
        ///
        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);
@@ -95,7 +92,7 @@ private:
        ///
        void setColor(ColorCode);
        ///
-       void setLanguage(std::string const &);
+       void setLanguage(QString const &);
 
        ///
        FontFamily getFamily() const;
@@ -110,7 +107,7 @@ private:
        ///
        ColorCode getColor() const;
        ///
-       std::string getLanguage() const;
+       QString getLanguage() const;
 
 private:
        ///