// -*- C++ -*- /** * \file QCharacter.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 QCHARACTER_H_CONTROLLER #define QCHARACTER_H_CONTROLLER #include "QDialogView.h" #include "ui/CharacterUi.h" #include #include "controllers/frontend_helpers.h" #include namespace lyx { class Font; namespace frontend { class QCharacter; class QCharacterDialog : public QDialog, public Ui::QCharacterUi { Q_OBJECT public: QCharacterDialog(QCharacter * form); protected: void closeEvent(QCloseEvent * e); private: QCharacter * form_; protected Q_SLOTS: void change_adaptor(); }; class ControlCharacter; class QCharacter : public QController > { public: friend class QCharacterDialog; QCharacter(Dialog &); 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 // QCHARACTER_H