|
From: Emilien K. <cur...@us...> - 2005-02-23 09:16:55
|
Update of /cvsroot/wxdevcenter/StdPlugin/include/wxDevCenter/StdPlugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22986/include/wxDevCenter/StdPlugin Modified Files: BitmapDocView.h Controls.h Log Message: Fix du bug d'acces au SliderCtrl de taille de trait. Ajout de la prise en compte des modifs des couleurs via sliders au niveau des crayons et pinceaux. Index: BitmapDocView.h =================================================================== RCS file: /cvsroot/wxdevcenter/StdPlugin/include/wxDevCenter/StdPlugin/BitmapDocView.h,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** BitmapDocView.h 11 Feb 2005 20:22:40 -0000 1.12 --- BitmapDocView.h 23 Feb 2005 09:16:46 -0000 1.13 *************** *** 127,131 **** virtual bool OnCreate(); void OnInitialUpdate(); - void OnSize(wxSizeEvent& event); BitmapCtrl *m_pBitmapCtrl; wxPanel *m_pControlPanel; --- 127,130 ---- *************** *** 184,187 **** --- 183,190 ---- /** Intercepte le changement de couleur des wxSliderSpinCtrl.*/ void OnSliderSpinTextChanged(wxCommandEvent& event); + /** Intercepte le changement de couleur de la sélection gauche.*/ + void OnSelLeftColourChanged(wxCommandEvent& event); + /** Intercepte le changement de couleur de la sélection droite.*/ + void OnSelRightColourChanged(wxCommandEvent& event); /** @}*/ *************** *** 254,261 **** void OnLeftDragEnd(wxExtendedMouseEvent& event); - /** Intercepte la peinture du fond pour empecher le flicking.*/ - void OnEraseBackground(wxEraseEvent& event); - - /** @name Fonctions interne de manipulation du buffer. * @{ */ --- 257,260 ---- Index: Controls.h =================================================================== RCS file: /cvsroot/wxdevcenter/StdPlugin/include/wxDevCenter/StdPlugin/Controls.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Controls.h 13 Jan 2005 14:33:19 -0000 1.6 --- Controls.h 23 Feb 2005 09:16:46 -0000 1.7 *************** *** 51,58 **** --- 51,61 ---- * Contrôle de bouton de couleur. * Génère des évènements wxEVT_COMMAND_LEFT_CLICK et wxEVT_COMMAND_LEFT_DCLICK. + * Génère un évènement de type wxEVT_COMMAND_TEXT_UPDATED pour le changement de couleur qui peut être intercepté par EVT_COLOUR(...) */ #define wxCOL_PICK_ON_DBLCLIC 0x00001000 + #define EVT_COLOUR(id, func) EVT_TEXT(id, func) + class wxColourCtrl : public wxControl { *************** *** 66,69 **** --- 69,75 ---- wxColour PickColour(); + wxString GetLabel(bool bUseName=false)const; + void SetLabel(wxString str); + protected: void OnMouseLeftClick(wxMouseEvent& event); |