X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiCharacter.h;h=599807f0ae8a6b1a386a09593256e3cb453a88dc;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=81b06ab9ab5dff255ede326aa48701abbdbca9c6;hpb=6f3cdf8da80a6b3889f2a3b8b53f44590152d600;p=lyx.git diff --git a/src/frontends/qt4/GuiCharacter.h b/src/frontends/qt4/GuiCharacter.h index 81b06ab9ab..599807f0ae 100644 --- a/src/frontends/qt4/GuiCharacter.h +++ b/src/frontends/qt4/GuiCharacter.h @@ -16,16 +16,15 @@ #include "GuiDialog.h" #include "ui_CharacterUi.h" -#include "frontend_helpers.h" // for LanguagePair #include "Font.h" -#include +#include +#ifdef IGNORE +#undef IGNORE +#endif namespace lyx { - -class Color_color; - namespace frontend { enum FontState { @@ -38,86 +37,60 @@ enum FontState { /// NOUN_TOGGLE, /// + STRIKEOUT_TOGGLE, + /// + UULINE_TOGGLE, + /// + UWAVE_TOGGLE, + /// INHERIT }; -typedef std::pair FamilyPair; -typedef std::pair SeriesPair; -typedef std::pair ShapePair; -typedef std::pair SizePair; -typedef std::pair BarPair; -typedef std::pair ColorPair; +typedef std::pair FamilyPair; +typedef std::pair FamilyPair; +typedef std::pair SeriesPair; +typedef std::pair ShapePair; +typedef std::pair SizePair; +typedef std::pair BarPair; +typedef std::pair ColorPair; +typedef std::pair LanguagePair; 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 + /// \name Dialog inherited methods + //@{ void applyView(); - /// update void updateContents(); - - std::vector family; - std::vector series; - std::vector shape; - std::vector size; - std::vector bar; - std::vector color; - std::vector language; - - /// bool initialiseParams(std::string const & data); - /// void clearParams() {} - /// void dispatchParams(); - /// bool isBufferDependent() const { return true; } - /// - kb_action getLfun() const { return LFUN_FONT_FREE_UPDATE; } + FuncCode getLfun() const { return LFUN_TEXTSTYLE_UPDATE; } + void saveSession() const; + void restoreSession(); + //@} /// - void setFamily(Font::FONT_FAMILY); - /// - void setSeries(Font::FONT_SERIES); - /// - void setShape(Font::FONT_SHAPE); - /// - void setSize(Font::FONT_SIZE); - /// - void setBar(FontState); - /// - void setColor(Color_color); - /// - void setLanguage(std::string const &); - /// - void setToggleAll(bool); + void paramsToDialog(Font const & font); + + QList family; + QList series; + QList shape; + QList size; + QList bar; + QList color; + QList language; /// - Font::FONT_FAMILY getFamily() const; - /// - Font::FONT_SERIES getSeries() const; - /// - Font::FONT_SHAPE getShape() const; - /// - Font::FONT_SIZE getSize() const; - /// - FontState getBar() const; - /// - Color_color getColor() const; - /// - std::string getLanguage() const; - /// - bool getToggleAll() const; -private: /// Font font_; ///