// -*- C++ -*- /** * \file GuiCharacter.h * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * * \author Edwin Leuven * \author John Levon * * Full author contact details are available in file CREDITS. */ #ifndef GUICHARACTER_H #define GUICHARACTER_H #include "GuiDialogView.h" #include "ControlCharacter.h" #include "ui_CharacterUi.h" #include #include namespace lyx { namespace frontend { class GuiCharacter; class GuiCharacterDialog : public QDialog, public Ui::CharacterUi { Q_OBJECT public: GuiCharacterDialog(GuiCharacter * form); protected: void closeEvent(QCloseEvent * e); private: GuiCharacter * form_; protected Q_SLOTS: void change_adaptor(); }; class GuiCharacter : public GuiView { public: friend class GuiCharacterDialog; GuiCharacter(GuiDialog &); /// parent controller ControlCharacter & controller() { return static_cast(this->getController()); } /// parent controller ControlCharacter const & controller() const { return static_cast(this->getController()); } private: /// Apply changes virtual void apply(); /// update virtual void update_contents(); /// build the dialog virtual void build_dialog(); std::vector family; std::vector series; std::vector shape; std::vector size; std::vector bar; std::vector color; std::vector language; }; } // namespace frontend } // namespace lyx #endif // GUICHARACTER_H