glcanvas and utils have mode to the modules directory
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3482 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
78fa90773a
commit
c60fc26d55
File diff suppressed because it is too large
Load Diff
@ -1,2 +0,0 @@
|
||||
EXPORTS
|
||||
initglcanvasc
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,111 +0,0 @@
|
||||
# This file was created automatically by SWIG.
|
||||
import utilsc
|
||||
class wxConfigPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,utilsc=utilsc):
|
||||
if self.thisown == 1 :
|
||||
utilsc.delete_wxConfig(self)
|
||||
def DontCreateOnDemand(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_DontCreateOnDemand,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DeleteAll(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_DeleteAll,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DeleteEntry(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_DeleteEntry,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DeleteGroup(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_DeleteGroup,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Exists(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_Exists,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Flush(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_Flush,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetAppName(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_GetAppName,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFirstGroup(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_GetFirstGroup,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFirstEntry(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_GetFirstEntry,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetNextGroup(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_GetNextGroup,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetNextEntry(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_GetNextEntry,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetNumberOfEntries(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_GetNumberOfEntries,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetNumberOfGroups(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_GetNumberOfGroups,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPath(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_GetPath,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetVendorName(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_GetVendorName,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HasEntry(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_HasEntry,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HasGroup(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_HasGroup,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsExpandingEnvVars(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_IsExpandingEnvVars,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsRecordingDefaults(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_IsRecordingDefaults,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Read(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_Read,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ReadInt(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_ReadInt,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ReadFloat(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_ReadFloat,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetExpandEnvVars(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_SetExpandEnvVars,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPath(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_SetPath,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetRecordDefaults(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_SetRecordDefaults,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Write(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_Write,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def WriteInt(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_WriteInt,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def WriteFloat(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_WriteFloat,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxConfig instance at %s>" % (self.this,)
|
||||
class wxConfig(wxConfigPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(utilsc.new_wxConfig,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------- FUNCTION WRAPPERS ------------------
|
||||
|
||||
|
||||
|
||||
#-------------- VARIABLE WRAPPERS ------------------
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,111 +0,0 @@
|
||||
# This file was created automatically by SWIG.
|
||||
import utilsc
|
||||
class wxConfigPtr :
|
||||
def __init__(self,this):
|
||||
self.this = this
|
||||
self.thisown = 0
|
||||
def __del__(self,utilsc=utilsc):
|
||||
if self.thisown == 1 :
|
||||
utilsc.delete_wxConfig(self)
|
||||
def DontCreateOnDemand(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_DontCreateOnDemand,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DeleteAll(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_DeleteAll,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DeleteEntry(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_DeleteEntry,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def DeleteGroup(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_DeleteGroup,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Exists(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_Exists,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Flush(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_Flush,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetAppName(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_GetAppName,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFirstGroup(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_GetFirstGroup,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetFirstEntry(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_GetFirstEntry,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetNextGroup(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_GetNextGroup,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetNextEntry(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_GetNextEntry,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetNumberOfEntries(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_GetNumberOfEntries,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetNumberOfGroups(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_GetNumberOfGroups,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetPath(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_GetPath,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def GetVendorName(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_GetVendorName,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HasEntry(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_HasEntry,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def HasGroup(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_HasGroup,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsExpandingEnvVars(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_IsExpandingEnvVars,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def IsRecordingDefaults(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_IsRecordingDefaults,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Read(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_Read,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ReadInt(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_ReadInt,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def ReadFloat(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_ReadFloat,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetExpandEnvVars(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_SetExpandEnvVars,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetPath(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_SetPath,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def SetRecordDefaults(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_SetRecordDefaults,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def Write(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_Write,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def WriteInt(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_WriteInt,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def WriteFloat(self, *_args, **_kwargs):
|
||||
val = apply(utilsc.wxConfig_WriteFloat,(self,) + _args, _kwargs)
|
||||
return val
|
||||
def __repr__(self):
|
||||
return "<C wxConfig instance at %s>" % (self.this,)
|
||||
class wxConfig(wxConfigPtr):
|
||||
def __init__(self,*_args,**_kwargs):
|
||||
self.this = apply(utilsc.new_wxConfig,_args,_kwargs)
|
||||
self.thisown = 1
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#-------------- FUNCTION WRAPPERS ------------------
|
||||
|
||||
|
||||
|
||||
#-------------- VARIABLE WRAPPERS ------------------
|
||||
|
@ -1,139 +0,0 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: utils.i
|
||||
// Purpose: SWIG definitions of various utility classes
|
||||
//
|
||||
// Author: Robin Dunn
|
||||
//
|
||||
// Created: 25-nov-1998
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) 1998 by Total Control Software
|
||||
// Licence: wxWindows license
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
%module utils
|
||||
|
||||
%{
|
||||
#include "helpers.h"
|
||||
#include <wx/config.h>
|
||||
%}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
%include typemaps.i
|
||||
%include my_typemaps.i
|
||||
|
||||
|
||||
%{
|
||||
#ifdef SEPARATE
|
||||
wxString wxPyEmptyStr("");
|
||||
#endif
|
||||
%}
|
||||
|
||||
|
||||
%{
|
||||
static PyObject* __EnumerationHelper(bool flag, wxString& str, long index) {
|
||||
PyObject* ret = PyTuple_New(3);
|
||||
if (ret) {
|
||||
PyTuple_SET_ITEM(ret, 0, PyInt_FromLong(flag));
|
||||
PyTuple_SET_ITEM(ret, 1, PyString_FromString(str));
|
||||
PyTuple_SET_ITEM(ret, 2, PyInt_FromLong(index));
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
%}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
class wxConfig {
|
||||
public:
|
||||
wxConfig(const wxString& appName = wxPyEmptyStr,
|
||||
const wxString& vendorName = wxPyEmptyStr,
|
||||
const wxString& localFilename = wxPyEmptyStr,
|
||||
const wxString& globalFilename = wxPyEmptyStr,
|
||||
long style = 0);
|
||||
~wxConfig();
|
||||
|
||||
|
||||
void DontCreateOnDemand();
|
||||
bool DeleteAll(); // This is supposed to have been fixed...
|
||||
bool DeleteEntry(const wxString& key, bool bDeleteGroupIfEmpty = TRUE);
|
||||
bool DeleteGroup(const wxString& key);
|
||||
bool Exists(wxString& strName);
|
||||
bool Flush(bool bCurrentOnly = FALSE);
|
||||
wxString GetAppName();
|
||||
|
||||
|
||||
// Each of these enumeration methods return a 3-tuple consisting of
|
||||
// the continue flag, the value string, and the index for the next call.
|
||||
%addmethods {
|
||||
PyObject* GetFirstGroup() {
|
||||
bool cont;
|
||||
long index = 0;
|
||||
wxString value;
|
||||
|
||||
cont = self->GetFirstGroup(value, index);
|
||||
return __EnumerationHelper(cont, value, index);
|
||||
}
|
||||
|
||||
PyObject* GetFirstEntry() {
|
||||
bool cont;
|
||||
long index = 0;
|
||||
wxString value;
|
||||
|
||||
cont = self->GetFirstEntry(value, index);
|
||||
return __EnumerationHelper(cont, value, index);
|
||||
}
|
||||
|
||||
PyObject* GetNextGroup(long index) {
|
||||
bool cont;
|
||||
wxString value;
|
||||
|
||||
cont = self->GetNextGroup(value, index);
|
||||
return __EnumerationHelper(cont, value, index);
|
||||
}
|
||||
|
||||
PyObject* GetNextEntry(long index) {
|
||||
bool cont;
|
||||
wxString value;
|
||||
|
||||
cont = self->GetNextEntry(value, index);
|
||||
return __EnumerationHelper(cont, value, index);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int GetNumberOfEntries(bool bRecursive = FALSE);
|
||||
int GetNumberOfGroups(bool bRecursive = FALSE);
|
||||
wxString GetPath();
|
||||
wxString GetVendorName();
|
||||
bool HasEntry(wxString& strName);
|
||||
bool HasGroup(const wxString& strName);
|
||||
bool IsExpandingEnvVars();
|
||||
bool IsRecordingDefaults();
|
||||
|
||||
wxString Read(const wxString& key, const wxString& defaultVal = wxPyEmptyStr);
|
||||
%name(ReadInt)long Read(const wxString& key, long defaultVal = 0);
|
||||
%name(ReadFloat)double Read(const wxString& key, double defaultVal = 0.0);
|
||||
|
||||
void SetExpandEnvVars (bool bDoIt = TRUE);
|
||||
void SetPath(const wxString& strPath);
|
||||
void SetRecordDefaults(bool bDoIt = TRUE);
|
||||
|
||||
bool Write(const wxString& key, const wxString& value);
|
||||
%name(WriteInt)bool Write(const wxString& key, long value);
|
||||
%name(WriteFloat)bool Write(const wxString& key, double value);
|
||||
|
||||
};
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
%init %{
|
||||
|
||||
wxClassInfo::CleanUpClasses();
|
||||
wxClassInfo::InitializeClasses();
|
||||
|
||||
%}
|
||||
|
||||
//---------------------------------------------------------------------------
|
@ -1,2 +0,0 @@
|
||||
EXPORTS
|
||||
initutilsc
|
Loading…
Reference in New Issue
Block a user