~efargaspro/+junk/codeblocks-16.01-release

1 by damienlmoore at gmail
Code::Blocks 16.01
1
/*
2
* This file is part of wxSmith plugin for Code::Blocks Studio
3
* Copyright (C) 2006-2007  Bartlomiej Swiecki
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
* $Revision: 7835 $
19
* $Id: wxsbitmapcombobox.h 7835 2012-02-22 14:40:26Z mortenmacfly $
20
* $HeadURL: http://svn.code.sf.net/p/codeblocks/code/branches/release-16.xx/src/plugins/contrib/wxSmith/wxwidgets/defitems/wxsbitmapcombobox.h $
21
*/
22
23
#ifndef WXSBITMAPCOMBOBOX_H
24
#define WXSBITMAPCOMBOBOX_H
25
26
#include <wx/bmpcbox.h>
27
28
#include "../wxswidget.h"
29
#include "wxsimagelist.h"
30
#include "../properties/wxsimagelisteditordlg.h"
31
32
33
/** \brief Class for wxsBitmapComboBox widget */
34
class wxsBitmapComboBox: public wxsWidget
35
{
36
    public:
37
38
        wxsBitmapComboBox(wxsItemResData* Data);
39
40
    private:
41
42
        virtual void        OnBuildCreatingCode();
43
        virtual wxObject   *OnBuildPreview(wxWindow* Parent,long Flags);
44
        virtual void        OnEnumWidgetProperties(long Flags);
45
46
                void        FindAllImageLists(wxArrayString &aNames);
47
                void        UpdateComboItemList(void);
48
                void        ParseComboItem(wxString inSource, wxString &outItem, int &outIndex);
49
50
51
52
        wxString        mImageList;                 // list to use to select images
53
        wxArrayString   mItems;                     // text of drop-down items
54
};
55
56
#endif