|
From: Emilien K. <cur...@us...> - 2005-08-25 17:06:50
|
Update of /cvsroot/wxdevcenter/StdPlugin/include/wxDevCenter/StdPlugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3150/include/wxDevCenter/StdPlugin Modified Files: language.h BitmapProp.h Log Message: Read config and use it to propose many format for bitmap. Index: BitmapProp.h =================================================================== RCS file: /cvsroot/wxdevcenter/StdPlugin/include/wxDevCenter/StdPlugin/BitmapProp.h,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** BitmapProp.h 25 Aug 2005 14:18:28 -0000 1.4 --- BitmapProp.h 25 Aug 2005 17:06:39 -0000 1.5 *************** *** 20,28 **** struct SizeUnit { ! /** Nom de l'unité.*/ wxString name; /** Symbole.*/ wxString symbol; ! /** Coeficient de conversion depuis un twip (nombre de twip dans une unité).*/ double coef; --- 20,28 ---- struct SizeUnit { ! /** Nom de l'unité.*/ wxString name; /** Symbole.*/ wxString symbol; ! /** Coeficient de conversion depuis un twip (nombre de twip dans une unité).*/ double coef; *************** *** 117,121 **** ! /** Classe de boite de dialogue de configuration des propri�t�s d'une bitmap. * Utile pour modifier la taille d'une bitmap ou meme demander des dimensions de cration. */ --- 117,121 ---- ! /** Classe de boite de dialogue de configuration des propriétés d'une bitmap. * Utile pour modifier la taille d'une bitmap ou meme demander des dimensions de cration. */ *************** *** 131,145 **** /** Hauteur.*/ wxTextCtrl* m_pHeightTextCtrl; ! /** Unité.*/ wxChoice* m_pUnitChoice; ! /** Récapitulatif.*/ wxStaticText* m_pSizeTextCtrl; ! /** Résolution.*/ wxTextCtrl* m_pResTextCtrl; ! /** Unité.*/ wxChoice* m_pResUnitChoice; ! /** Flag de mise à jour.*/ bool m_bIsUpdatingCtrl; public: --- 131,148 ---- /** Hauteur.*/ wxTextCtrl* m_pHeightTextCtrl; ! /** Unité.*/ wxChoice* m_pUnitChoice; ! /** Récapitulatif.*/ wxStaticText* m_pSizeTextCtrl; ! /** Résolution.*/ wxTextCtrl* m_pResTextCtrl; ! /** Unité.*/ wxChoice* m_pResUnitChoice; ! /** Choix d'un format préprogrammé.*/ ! wxChoice* m_pFormatAuto; ! ! /** Flag de mise à jour.*/ bool m_bIsUpdatingCtrl; public: *************** *** 147,162 **** BitmapPropertiesDialog(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER, const wxString& name = wxT("BitmapPropertiesDialog")); ! /** Fixe les propriétés.*/ void SetProperties(const BitmapProperties& BmpProp){m_BmpProp = BmpProp;} ! /** Retourne les propriétés.*/ BitmapProperties GetProperties()const{return m_BmpProp;} ! /** Met à jour les controles.*/ void UpdateCtrl(bool bUpdateSize=true, bool bUpdateRes=true); protected: ! /** Mise à jour initiale.*/ void OnInitialUpdate(wxInitDialogEvent& event); ! /** Interception d'un changement d'unté d'affichage.*/ void OnChangeUnit(wxCommandEvent& event); --- 150,189 ---- BitmapPropertiesDialog(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER, const wxString& name = wxT("BitmapPropertiesDialog")); ! /** Destructor.*/ ! virtual ~BitmapPropertiesDialog(); ! ! /** Fixe les propriétés.*/ void SetProperties(const BitmapProperties& BmpProp){m_BmpProp = BmpProp;} ! /** Retourne les propriétés.*/ BitmapProperties GetProperties()const{return m_BmpProp;} ! /** Met à jour les controles.*/ void UpdateCtrl(bool bUpdateSize=true, bool bUpdateRes=true); + + /** Affiche la taille dans une certaine unitée. + * @param unit Unité.*/ + void ShowSize(const SizeUnit& unit); + /** Affiche la résolution en une certaine unité. + * @param unit Unité.*/ + void ShowRes(const SizeUnit& unit); + /** Affiche la taille dans une certaine unitée. + * @param unit Unité.*/ + void ShowSize(const wxString& unit); + /** Affiche la résolution en une certaine unité. + * @param unit Unité.*/ + void ShowRes(const wxString& unit); + + protected: ! /** Lit les formats préprogrammés et les insere dans le wxChoice.*/ ! void ReadAutoFormat(); ! ! /** Efface tous les formats.*/ ! void ClearFormat(); ! ! /** Mise à jour initiale.*/ void OnInitialUpdate(wxInitDialogEvent& event); ! /** Interception d'un changement d'unté d'affichage.*/ void OnChangeUnit(wxCommandEvent& event); *************** *** 164,170 **** void OnSizeChanged(wxCommandEvent& event); ! /** Interception d'un changement de résolution.*/ void OnResChanged(wxCommandEvent& event); /** Interception de la demande de format paysage.*/ void OnFormatLandscape(wxCommandEvent& event); --- 191,200 ---- void OnSizeChanged(wxCommandEvent& event); ! /** Interception d'un changement de résolution.*/ void OnResChanged(wxCommandEvent& event); + /** Interception de l'application d'un format.*/ + void OnAutoFormat(wxCommandEvent& event); + /** Interception de la demande de format paysage.*/ void OnFormatLandscape(wxCommandEvent& event); Index: language.h =================================================================== RCS file: /cvsroot/wxdevcenter/StdPlugin/include/wxDevCenter/StdPlugin/language.h,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** language.h 23 Aug 2005 15:44:32 -0000 1.16 --- language.h 25 Aug 2005 17:06:39 -0000 1.17 *************** *** 278,281 **** --- 278,283 ---- // Doc/Vue Bitmap + #define WXDC_BITMAP_CONFIG_ROOT wxT("StdPlugin.Bitmap") + #define WXDC_BITMAP_MENU_VIEW wxT("View") #define WXDC_BITMAP_MENU_VIEW_CENTER wxT("Center") |