[Kde-bindings] KDE/kdebindings
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Tue Jun 17 17:12:19 UTC 2008
SVN commit 821524 by rdale:
* Special case the Init() methods in KCmdLineArgs to take string[] args,
for the C++ 'int, char[] *' pairs.
CCMAIL: kde-bindings at kde.org
M +5 -0 csharp/kimono/ChangeLog
M +1 -41 csharp/kimono/kde/KCmdLineArgs.cs
A csharp/kimono/kde/KCmdLineArgsExtras.cs
M +2 -0 kalyptus/kalyptusCxxToKimono.pm
--- trunk/KDE/kdebindings/csharp/kimono/ChangeLog #821523:821524
@@ -0,0 +1,5 @@
+2008-06-17 Richard Dale <richard.j.dale at gmail.com>
+
+* Added marshallers for the various types of lists in the KDE classes
+* Special case the Init() methods in KCmdLineArgs to take string[] args,
+ for the C++ 'int, char[] *' pairs.
--- trunk/KDE/kdebindings/csharp/kimono/kde/KCmdLineArgs.cs #821523:821524
@@ -131,7 +131,7 @@
/// </version>
/// <short> A class for command-line argument handling. </short>
[SmokeClass("KCmdLineArgs")]
- public class KCmdLineArgs : Object {
+ public partial class KCmdLineArgs : Object {
protected SmokeInvocation interceptor = null;
private IntPtr smokeObject;
protected KCmdLineArgs(Type dummy) {}
@@ -257,46 +257,6 @@
interceptor.Invoke("KCmdLineArgs###", "KCmdLineArgs(const KCmdLineOptions&, const KLocalizedString&, const QByteArray&)", typeof(void), typeof(KCmdLineOptions), _options, typeof(KLocalizedString), _name, typeof(QByteArray), _id);
}
/// <remarks>
- /// Initialize class.
- /// This function should be called as the very first thing in
- /// your application.
- /// <param> name="argv" As passed to <code>main</code>(...).
- /// </param><param> name="appname" The untranslated name of your application. This should
- /// match with <code>argv</code>[0].
- /// </param><param> name="catalog" Translation catalog name, if empty <code>appname</code> will be used.
- /// </param><param> name="programName" A program name string to be used for display
- /// purposes. This string should be marked for translation.
- /// Example: ki18n("KEdit")
- /// </param><param> name="version" A version.
- /// </param><param> name="description" A short description of what your application is about.
- /// Also marked for translation.
- /// </param><param> name="stdargs" KDE/Qt or no default parameters
- /// </param></remarks> <short> Initialize class.</short>
- public static void Init(string argv, QByteArray appname, QByteArray catalog, KLocalizedString programName, QByteArray version, KLocalizedString description, uint stdargs) {
- staticInterceptor.Invoke("init$?#####$", "init(int, char**, const QByteArray&, const QByteArray&, const KLocalizedString&, const QByteArray&, const KLocalizedString&, KCmdLineArgs::StdCmdLineArgs)", typeof(void), typeof(string), argv, typeof(QByteArray), appname, typeof(QByteArray), catalog, typeof(KLocalizedString), programName, typeof(QByteArray), version, typeof(KLocalizedString), description, typeof(uint), stdargs);
- }
- public static void Init(string argv, QByteArray appname, QByteArray catalog, KLocalizedString programName, QByteArray version, KLocalizedString description) {
- staticInterceptor.Invoke("init$?#####", "init(int, char**, const QByteArray&, const QByteArray&, const KLocalizedString&, const QByteArray&, const KLocalizedString&)", typeof(void), typeof(string), argv, typeof(QByteArray), appname, typeof(QByteArray), catalog, typeof(KLocalizedString), programName, typeof(QByteArray), version, typeof(KLocalizedString), description);
- }
- public static void Init(string argv, QByteArray appname, QByteArray catalog, KLocalizedString programName, QByteArray version) {
- staticInterceptor.Invoke("init$?####", "init(int, char**, const QByteArray&, const QByteArray&, const KLocalizedString&, const QByteArray&)", typeof(void), typeof(string), argv, typeof(QByteArray), appname, typeof(QByteArray), catalog, typeof(KLocalizedString), programName, typeof(QByteArray), version);
- }
- /// <remarks>
- /// Initialize class.
- /// This function should be called as the very first thing in
- /// your application. It uses KAboutData to replace some of the
- /// arguments that would otherwise be required.
- /// <param> name="_argv" As passed to <code>main</code>(...).
- /// </param><param> name="about" A KAboutData object describing your program.
- /// </param><param> name="stdargs" KDE/Qt or no default parameters
- /// </param></remarks> <short> Initialize class.</short>
- public static void Init(string _argv, KAboutData about, uint stdargs) {
- staticInterceptor.Invoke("init$?#$", "init(int, char**, const KAboutData*, KCmdLineArgs::StdCmdLineArgs)", typeof(void), typeof(string), _argv, typeof(KAboutData), about, typeof(uint), stdargs);
- }
- public static void Init(string _argv, KAboutData about) {
- staticInterceptor.Invoke("init$?#", "init(int, char**, const KAboutData*)", typeof(void), typeof(string), _argv, typeof(KAboutData), about);
- }
- /// <remarks>
/// Initialize Class
/// This function should be called as the very first thing in your
/// application. This method will rarely be used, since it doesn't
--- trunk/KDE/kdebindings/kalyptus/kalyptusCxxToKimono.pm #821523:821524
@@ -175,6 +175,7 @@
%partial_classes =
(
'KConfigGroup' => '1',
+ 'KCmdLineArgs' => '1',
'QAbstractItemModel' => '1',
'QApplication' => '1',
'QBrush' => '1',
@@ -999,6 +1000,7 @@
|| ($classNode->{astNodeName} eq 'QGridLayout' and $name eq 'spacing')
|| ($classNode->{astNodeName} eq 'QMessageBox' and $name eq 'setWindowTitle')
|| ($classNode->{astNodeName} eq 'TextEvent' and $name eq 'data')
+ || ($classNode->{astNodeName} eq 'KCmdLineArgs' and $name eq 'init' and $m->{ParamList}[0]->{ArgType} =~ /int/)
|| ($classNode->{astNodeName} eq 'KConfigGroup' and $name eq 'groupImpl')
|| ($classNode->{astNodeName} eq 'KConfigGroup' and $name eq 'setReadDefaults')
|| ($classNode->{astNodeName} eq 'KConfigGroup' and $name eq 'KConfigGroup' && $#{$m->{ParamList}} == 1 && $m->{ParamList}[0]->{ArgType} =~ /const KConfigBase/)
More information about the Kde-bindings
mailing list