1 /* 2 * This file is part of wxSmithContribItems plugin for Code::Blocks Studio 3 * Copyright (C) 2010 Ron Collins 4 * 5 * wxSmith is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * wxSmith is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with wxSmith. If not, see <http://www.gnu.org/licenses/>. 17 * 18 */ 19 20 #ifndef WXSIMAGEBUTTON_H 21 #define WXSIMAGEBUTTON_H 22 23 #include <wxwidgets/wxswidget.h> 24 #include <properties/wxsenumproperty.h> 25 #include <wxwidgets/defitems/wxsimagelist.h> 26 #include <wxwidgets/properties/wxsimagelisteditordlg.h> 27 28 29 /** \brief Class for wxImageButton widget */ 30 class wxsImageButton: public wxsWidget 31 { 32 public: 33 34 wxsImageButton(wxsItemResData* Data); 35 36 private: 37 38 virtual void OnBuildCreatingCode(); 39 virtual wxObject *OnBuildPreview(wxWindow* Parent,long Flags); 40 virtual void OnEnumWidgetProperties(long Flags); 41 virtual void OnBuildDeclarationsCode(); 42 43 bool mIsDefault; 44 wxString mImageList; // list to use to select images 45 wxString mLabelIndex; // main image index 46 wxString mDisabledIndex; // disabled image 47 wxString mSelectedIndex; // selected image 48 wxString mFocusIndex; // focused image 49 50 int mCount; 51 }; 52 53 #endif 54