]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/SWIG.patches/Include.patch
1. Grid cell defaults are now handled by an internal
[wxWidgets.git] / utils / wxPython / SWIG.patches / Include.patch
CommitLineData
8bf5d46e
RD
1*** swig.h.old Wed Feb 04 15:59:40 1998
2--- swig.h Fri Aug 28 15:46:32 1998
09ee8e72
RD
3***************
4*** 178,185 ****
5--- 178,211 ----
6 char *firstkey();
7 char *nextkey();
8 };
8bf5d46e 9
09ee8e72
RD
10+ // -------------------------------------------------------------------
11+ // Simple Vector class
12+ // User is responsible for deleting contents before deleteing Vector
13+ // -------------------------------------------------------------------
8bf5d46e 14+
09ee8e72
RD
15+ class Vector {
16+ public:
17+ Vector(size_t allocSize=8);
18+ ~Vector();
8bf5d46e 19+
09ee8e72
RD
20+ size_t size() { return m_size; }
21+ size_t count() { return m_count; }
22+ size_t append(void* object);
23+ size_t extend(size_t newSize);
8bf5d46e 24+
09ee8e72 25+ void*& operator[] (size_t idx);
8bf5d46e 26+
09ee8e72 27+ static void* s_nullPtr;
8bf5d46e 28+
09ee8e72
RD
29+ private:
30+ size_t m_size;
31+ size_t m_count;
32+ void** m_data;
33+ };
8bf5d46e
RD
34+
35+
09ee8e72
RD
36 /************************************************************************
37 * class DataType
38 *
39 * Defines the basic datatypes supported by the translator.
40***************
41*** 684,691 ****
42--- 710,761 ----
43 extern char *name_get(char *vname, int suppress=0);
44 extern char *name_set(char *vname, int suppress=0);
45 extern char *name_construct(char *classname, int suppress=0);
46 extern char *name_destroy(char *classname, int suppress=0);
8bf5d46e 47+
09ee8e72
RD
48+ // ----------------------------------------------------------------------
49+ // class CPP_class
50+ //
51+ // Class for managing class members (internally)
52+ // ----------------------------------------------------------------------
8bf5d46e 53+
09ee8e72 54+ class CPP_member;
8bf5d46e 55+
09ee8e72
RD
56+ class CPP_class {
57+ public:
58+ char *classname; // Real class name
59+ char *classrename; // New name of class (if applicable)
60+ char *classtype; // class type (struct, union, class)
61+ int strip; // Strip off class declarator
62+ int wextern; // Value of extern wrapper variable for this class
63+ int have_constructor; // Status bit indicating if we've seen a constructor
64+ int have_destructor; // Status bit indicating if a destructor has been seen
65+ int is_abstract; // Status bit indicating if this is an abstract class
66+ int generate_default; // Generate default constructors
67+ int objective_c; // Set if this is an objective C class
68+ int error; // Set if this class can't be generated
69+ int line; // Line number
70+ char **baseclass; // Base classes (if any)
71+ Hash *local; // Hash table for local types
72+ Hash *scope; // Local scope hash table
73+ DocEntry *de; // Documentation entry of class
74+ CPP_member *members; // Linked list of members
75+ CPP_class *next; // Next class
76+ static CPP_class *classlist; // List of all classes stored
8bf5d46e 77+
09ee8e72 78+ Vector addPragmas;
8bf5d46e 79+
09ee8e72
RD
80+ CPP_class(char *name, char *ctype);
81+ void add_member(CPP_member *m);
82+ CPP_member *search_member(char *name);
83+ void inherit_decls(int mode);
84+ void emit_decls();
85+ static CPP_class *search(char *name);
86+ void create_default();
87+ static void create_all();
88+ };
8bf5d46e 89+
09ee8e72 90+ extern CPP_class *current_class;
8bf5d46e 91
09ee8e72
RD
92 /***********************************************************************
93 * -- Revision History
94 * $Log$
8bf5d46e
RD
95 * Revision 1.2 1999/07/31 07:54:05 RD
96 * wxPython 2.1b1:
97 *
98 * Added the missing wxWindow.GetUpdateRegion() method.
99 *
100 * Made a new change in SWIG (update your patches everybody) that
101 * provides a fix for global shadow objects that get an exception in
102 * their __del__ when their extension module has already been deleted.
103 * It was only a 1 line change in .../SWIG/Modules/pycpp.cxx at about
104 * line 496 if you want to do it by hand.
105 *
106 * It is now possible to run through MainLoop more than once in any one
107 * process. The cleanup that used to happen as MainLoop completed (and
108 * prevented it from running again) has been delayed until the wxc module
109 * is being unloaded by Python.
110 *
111 * wxWindow.PopupMenu() now takes a wxPoint instead of x,y. Added
112 * wxWindow.PopupMenuXY to be consistent with some other methods.
113 *
114 * Added wxGrid.SetEditInPlace and wxGrid.GetEditInPlace.
115 *
116 * You can now provide your own app.MainLoop method. See
117 * wxPython/demo/demoMainLoop.py for an example and some explaination.
118 *
119 * Got the in-place-edit for the wxTreeCtrl fixed and added some demo
120 * code to show how to use it.
121 *
122 * Put the wxIcon constructor back in for GTK as it now has one that
123 * matches MSW's.
124 *
125 * Added wxGrid.GetCells
126 *
127 * Added wxSystemSettings static methods as functions with names like
128 * wxSystemSettings_GetSystemColour.
129 *
130 * Removed wxPyMenu since using menu callbacks have been depreciated in
131 * wxWindows. Use wxMenu and events instead.
132 *
133 * Added alternate wxBitmap constructor (for MSW only) as
134 * wxBitmapFromData(data, type, width, height, depth = 1)
135 *
136 * Added a helper function named wxPyTypeCast that can convert shadow
137 * objects of one type into shadow objects of another type. (Like doing
138 * a down-cast.) See the implementation in wx.py for some docs.
09ee8e72 139 *