~efargaspro/+junk/codeblocks-16.01-release

« back to all changes in this revision

Viewing changes to src/plugins/contrib/wxSmith/wxwidgets/defitems/wxstoolbaritem.h

  • Committer: damienlmoore at gmail
  • Date: 2016-02-02 02:43:22 UTC
  • Revision ID: damienlmoore@gmail.com-20160202024322-yql5qmtbwdyamdwd
Code::BlocksĀ 16.01

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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: 9274 $
 
19
* $Id: wxstoolbaritem.h 9274 2013-08-31 23:08:12Z jenslody $
 
20
* $HeadURL: http://svn.code.sf.net/p/codeblocks/code/branches/release-16.xx/src/plugins/contrib/wxSmith/wxwidgets/defitems/wxstoolbaritem.h $
 
21
*/
 
22
 
 
23
#ifndef WXSTOOLBARITEM_H
 
24
#define WXSTOOLBARITEM_H
 
25
 
 
26
#include "../wxstool.h"
 
27
 
 
28
/** \brief Items inside toolbar (f.ex button) which are not wxContainer) */
 
29
class wxsToolBarItem : public wxsTool
 
30
{
 
31
    public:
 
32
 
 
33
        wxsToolBarItem(wxsItemResData* Data,bool IsSeparator);
 
34
 
 
35
    private:
 
36
 
 
37
        virtual void OnBuildCreatingCode();
 
38
        virtual void OnEnumToolProperties(long Flags);
 
39
        virtual bool OnIsPointer() { return true; }
 
40
        virtual bool OnCanAddToResource(wxsItemResData* Data,bool ShowMessage) { return false; }
 
41
        virtual bool OnXmlWrite(TiXmlElement* Element,bool IsXRC,bool IsExtra);
 
42
        virtual bool OnXmlRead(TiXmlElement* Element,bool IsXRC,bool IsExtra);
 
43
        virtual bool OnCanAddToParent(wxsParent* Parent,bool ShowMessage);
 
44
        virtual void OnBuildDeclarationsCode();
 
45
        virtual wxString OnGetTreeLabel(int& Image);
 
46
 
 
47
        enum Type
 
48
        {
 
49
            Separator,
 
50
            Normal,
 
51
            Radio,
 
52
            Check
 
53
        };
 
54
 
 
55
        Type          m_Type;
 
56
        wxString      m_Variable;
 
57
        wxString      m_Label;
 
58
        wxsBitmapData m_Bitmap;
 
59
        wxsBitmapData m_Bitmap2;
 
60
        wxString      m_ToolTip;
 
61
        wxString      m_HelpText;
 
62
 
 
63
        friend class wxsToolBarEditor;
 
64
};
 
65
 
 
66
#endif