|
From: Emilien K. <cur...@us...> - 2005-08-25 14:18:37
|
Update of /cvsroot/wxdevcenter/StdPlugin/include/wxDevCenter/StdPlugin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23685/include/wxDevCenter/StdPlugin Modified Files: BitmapProp.h Log Message: Add Portrait/Landscape format for bitmap properties. Index: BitmapProp.h =================================================================== RCS file: /cvsroot/wxdevcenter/StdPlugin/include/wxDevCenter/StdPlugin/BitmapProp.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** BitmapProp.h 25 Aug 2005 09:17:43 -0000 1.3 --- BitmapProp.h 25 Aug 2005 14:18:28 -0000 1.4 *************** *** 3,7 **** * @author Cursor * ! * @brief D�claration des classes des propri�t�s des bitmaps. */ --- 3,7 ---- * @author Cursor * ! * @brief Déclaration des classes des propri�t�s des bitmaps. */ *************** *** 103,106 **** --- 103,116 ---- * @param unit Unité de la résolution.*/ void SetRes(double dRes, const SizeUnit& unit); + + /** Fixe l'image en mode paysage.*/ + void SetLandscape(); + /** Fixe l'image en mode portrait.*/ + void SetPortrait(); + + /** Teste si l'image est en mode paysage.*/ + bool IsLandscape()const{return m_Size.x>=m_Size.y;} + /** Teste si l'image est en mode portrait.*/ + bool IsPortrait()const{return m_Size.x<m_Size.y;} }; *************** *** 155,159 **** /** Interception d'un changement de résolution.*/ ! void OnResChanged(wxCommandEvent& event); }; --- 165,174 ---- /** Interception d'un changement de résolution.*/ ! void OnResChanged(wxCommandEvent& event); ! ! /** Interception de la demande de format paysage.*/ ! void OnFormatLandscape(wxCommandEvent& event); ! /** Interception de la demande de format portrait.*/ ! void OnFormatPortrait(wxCommandEvent& event); }; |