|
From: Emilien K. <cur...@us...> - 2005-02-16 15:10:11
|
Update of /cvsroot/wxdevcenter/StdPlugin/include/wxDevCenter/StdPlugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15794/include/wxDevCenter/StdPlugin Modified Files: SimpleTextDocView.h language.h Log Message: Déplacement de la configuration de base des vues de texte dans des fichiers de configs. Création d'une nouvelle boite de dialogue de modif des styles de texte. Index: SimpleTextDocView.h =================================================================== RCS file: /cvsroot/wxdevcenter/StdPlugin/include/wxDevCenter/StdPlugin/SimpleTextDocView.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** SimpleTextDocView.h 14 Feb 2005 15:26:36 -0000 1.5 --- SimpleTextDocView.h 16 Feb 2005 15:10:01 -0000 1.6 *************** *** 110,165 **** ! ! /** Choix des préférences utilisateur. ! * Définition de la boite de dialogue des préférences utilisateurs. ! */ ! class SimpleTextViewPrefDialog : public wxDialog { protected: /** Déclaration de la table d'interception des évènements.*/ DECLARE_EVENT_TABLE() - /** Interception du bouton "Réinit".*/ - void OnReinitButton(wxCommandEvent &event); - /** Notebook.*/ - wxNotebook *m_pNotebook; ! /** Page "langage" des préférences utilisateur. ! * Un langage par page. ! */ ! class SimpleTextViewLangagePage : public wxWindow ! { ! friend class SimpleTextViewPrefDialog; ! protected: ! /** Déclaration de la table d'interception des évènements.*/ ! DECLARE_EVENT_TABLE() ! /** Identifiant du langage propre à la page.*/ ! int m_iLangID; ! /** Numéro du style sélectionné.*/ ! int m_iActiveStyle; ! /** Interception de l'évènement de redimensionement.*/ ! void OnSize(wxSizeEvent &event); ! /** Interception de l'évènement de changement de style actif.*/ ! void OnChangeActiveStyle(wxCommandEvent &event); ! /** CheckBox de style.*/ ! wxCheckBox *m_pCheckBold, ! *m_pCheckItalic, ! *m_pCheckUnderline; ! /** Boutons de style de texte.*/ ! wxButton *m_pButtonFore, ! *m_pButtonBack; ! /** Zone de style.*/ ! wxButton *m_pButtonStyle; ! /** Rafraichie la zone d'affichage depuis les préférences utilisateur.*/ ! void UpdatePanel(); ! /** Intercepte les messages de clic sur les controles de style.*/ ! void OnControlClic(wxCommandEvent &event); ! public: ! SimpleTextViewLangagePage(wxWindow *pParent, wxWindowID id, int iLangID); ! }; ! public: ! SimpleTextViewPrefDialog(); ! }; --- 110,160 ---- ! class SimpleTextPrefDialog : public wxDialog { protected: /** Déclaration de la table d'interception des évènements.*/ DECLARE_EVENT_TABLE() ! /** Choix du langage.*/ ! wxChoice* m_pLanguage; ! ! /** Choix du style.*/ ! wxChoice* m_pStyle; ! wxButton* m_pForeground; ! wxButton* m_pBackground; ! wxSpinCtrl* m_pFontSize; ! wxCheckBox* m_pCheckBold, ! * m_pCheckItalic, ! * m_pCheckUnderline; ! wxButton* m_pTest; ! ! /** Choix des mots-clefs.*/ ! wxChoice* m_pKeywords; ! wxTextCtrl* m_pKeys; ! ! /** Boutons.*/ ! wxButton* m_pOK, ! * m_pCancel, ! * m_pRevert; + void FillLanguage(); + void UpdateLangageDependancies(); + void UpdateStyleDependancies(); + void UpdateKeywordDependancies(); + + void OnChangeLanguage(wxCommandEvent& event); + void OnChangeStyle(wxCommandEvent& event); + void OnChangeKeyword(wxCommandEvent& event); + void OnStyleCtrlEvent(wxCommandEvent& event); + + LanguageProperty::LangagePropertyStyle* GetCurrentStyle(); + LanguageProperty* GetCurrentLanguage(); + LanguageProperty::KeywordProperty* GetCurrentKeyword(); + + void OnRevert(wxCommandEvent& event); + public: + SimpleTextPrefDialog(); + }; Index: language.h =================================================================== RCS file: /cvsroot/wxdevcenter/StdPlugin/include/wxDevCenter/StdPlugin/language.h,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** language.h 14 Feb 2005 15:26:36 -0000 1.11 --- language.h 16 Feb 2005 15:10:02 -0000 1.12 *************** *** 135,138 **** --- 135,139 ---- #define WXDC_SIMPLETEXT_FORE "Foreground" #define WXDC_SIMPLETEXT_BACK "Background" + #define WXDC_SIMPLETEXT_SIZE "Font Size" #define WXDC_SIMPLETEXT_LANG "Language : " |