~efargaspro/+junk/codeblocks-16.01-release

« back to all changes in this revision

Viewing changes to src/plugins/contrib/wxSmith/wxwidgets/wxsflags.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: 8251 $
 
19
* $Id: wxsflags.h 8251 2012-08-28 02:31:00Z ollydbg $
 
20
* $HeadURL: http://svn.code.sf.net/p/codeblocks/code/branches/release-16.xx/src/plugins/contrib/wxSmith/wxwidgets/wxsflags.h $
 
21
*/
 
22
 
 
23
#ifndef WXSFLAGS_H
 
24
#define WXSFLAGS_H
 
25
 
 
26
/** \brief Flags used for property filtering, while generating code and while generating preview */
 
27
namespace wxsFlags
 
28
{
 
29
    // Property filtering flags
 
30
    const long flVariable  = 0x0000001;  ///< \brief Item is using variable
 
31
    const long flId        = 0x0000002;  ///< \brief Item is using identifier
 
32
    const long flPosition  = 0x0000004;  ///< \brief Item is using position
 
33
    const long flSize      = 0x0000008;  ///< \brief Item is using size
 
34
    const long flEnabled   = 0x0000010;  ///< \brief Item is using Enabled property
 
35
    const long flFocused   = 0x0000020;  ///< \brief Item is using Focused property
 
36
    const long flHidden    = 0x0000040;  ///< \brief Item is using Hidden property
 
37
    const long flColours   = 0x0000080;  ///< \brief Item is using colour properties (Fg and Bg)
 
38
    const long flToolTip   = 0x0000100;  ///< \brief Item is using tooltips
 
39
    const long flFont      = 0x0000200;  ///< \brief Item is using font
 
40
    const long flHelpText  = 0x0000400;  ///< \brief Item is using help text
 
41
    const long flSubclass  = 0x0000800;  ///< \brief Item is using subclassing
 
42
    const long flMinMaxSize= 0x0001000;  ///< \brief Item is using SetMinSize / SetMaxSize functions
 
43
    const long flExtraCode = 0x0002000;  ///< \brief Item is using extra item initialization code
 
44
    const long flValidator = 0x0004000;  ///< \brief Item is using specific validator (not wxDefaultValidator)
 
45
 
 
46
    const long flFile      = 0x8000000;  ///< \brief Edition in file mode
 
47
    const long flSource    = 0x4000000;  ///< \brief Edition in source mode
 
48
    const long flMixed     = 0x2000000;  ///< \brief Edition in mixed mode
 
49
    const long flFwdDeclar = 0x1000000;  ///< \brief Using forward declarations where possible
 
50
    const long flPchFilter = 0x0800000;  ///< \brief Use filtering of PCH files (include some headers only when there's no PCH)
 
51
    const long flPointer   = 0x0400000;  ///< \brief Flag set when current item is as pointer
 
52
    const long flLocal     = 0x0200000;  ///< \brief Flag set when current item is used only locally while building resource's content (is not member of class)
 
53
    const long flRoot      = 0x0100000;  ///< \brief Flag set when current item is root item of resource
 
54
 
 
55
    const long flWidget    = flVariable
 
56
                           | flId
 
57
                           | flPosition
 
58
                           | flSize
 
59
                           | flEnabled
 
60
                           | flFocused
 
61
                           | flHidden
 
62
                           | flColours
 
63
                           | flToolTip
 
64
                           | flFont
 
65
                           | flHelpText
 
66
                           | flSubclass
 
67
                           | flMinMaxSize
 
68
                           | flExtraCode
 
69
                           | flValidator; ///< \brief Default properties flags used by widgets for convenience
 
70
 
 
71
    const long flContainer = flVariable
 
72
                           | flId
 
73
                           | flPosition
 
74
                           | flSize
 
75
                           | flEnabled
 
76
                           | flFocused
 
77
                           | flHidden
 
78
                           | flColours
 
79
                           | flToolTip
 
80
                           | flFont
 
81
                           | flHelpText
 
82
                           | flSubclass
 
83
                           | flMinMaxSize
 
84
                           | flExtraCode; ///< \brief Default properties flags used by container widgets for convenience
 
85
 
 
86
    // Preview flags
 
87
    const long pfExact     = 0x0000001;  ///< \brief Notify to create exact preview (without any editor-like goodies)
 
88
 
 
89
    // Header flags
 
90
    const long hfLocal     = 0x0000001;  ///< \brief Header is needed only locally (while manually generating resource)
 
91
    const long hfInPCH     = 0x0000002;  ///< \brief This header has been included in default pch file
 
92
    const long hfForbidFwd = 0x0000004;  ///< \brief This header (when included in resource's header file) can not be replaced by forward declaration
 
93
}
 
94
 
 
95
#endif