コード例 #1
0
ファイル: KCmdLineArgsExtras.cs プロジェクト: KDE/assemblygen
 public static void Init(string[] argv, QByteArray appname, QByteArray catalog, KLocalizedString programName, QByteArray version)
 {
     string[] args = new string[argv.Length + 1];
     args[0] = System.Reflection.Assembly.GetExecutingAssembly().Location;
     argv.CopyTo(args, 1);
     staticInterceptor.Invoke("init$?####", "init(int, char**, const QByteArray&, const QByteArray&, const KLocalizedString&, const QByteArray&)", typeof(void), false, typeof(int), args.Length, typeof(string[]), args, typeof(QByteArray), appname, typeof(QByteArray), catalog, typeof(KLocalizedString), programName, typeof(QByteArray), version);
 }
コード例 #2
0
ファイル: KAboutData.cs プロジェクト: KDE/kimono
 public KAboutData(QByteArray appName, QByteArray catalogName, KLocalizedString programName, QByteArray version, KLocalizedString shortDescription, KAboutData.LicenseKey licenseType, KLocalizedString copyrightStatement)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("KAboutData#####$#", "KAboutData(const QByteArray&, const QByteArray&, const KLocalizedString&, const QByteArray&, const KLocalizedString&, KAboutData::LicenseKey, const KLocalizedString&)", typeof(void), typeof(QByteArray), appName, typeof(QByteArray), catalogName, typeof(KLocalizedString), programName, typeof(QByteArray), version, typeof(KLocalizedString), shortDescription, typeof(KAboutData.LicenseKey), licenseType, typeof(KLocalizedString), copyrightStatement);
 }
コード例 #3
0
ファイル: KAboutData.cs プロジェクト: KDE/kimono
 /// <remarks>
 ///  @brief Sets the name(s) of the translator(s) of the GUI.
 ///  Since this depends on the language, just use a dummy text marked for
 ///  translation.
 ///  The canonical use is:
 ///  <pre>
 ///  setTranslator(ki18nc("NAME OF TRANSLATORS", "Your names"),
 ///                ki18nc("EMAIL OF TRANSLATORS", "Your emails"));
 ///  </pre>
 ///  The translator can then translate this dummy text with his name
 ///  or with a list of names separated with ",".
 ///  If there is no translation or the application is used with the
 ///  default language, this function call is ignored.
 /// <param> name="name" the name(s) of the translator(s)
 /// </param><param> name="emailAddress" the email address(es) of the translator(s)
 /// </param></remarks>        <short>    @brief Sets the name(s) of the translator(s) of the GUI.</short>
 ///         <see> KAboutTranslator</see>
 public KAboutData SetTranslator(KLocalizedString name, KLocalizedString emailAddress)
 {
     return (KAboutData) interceptor.Invoke("setTranslator##", "setTranslator(const KLocalizedString&, const KLocalizedString&)", typeof(KAboutData), typeof(KLocalizedString), name, typeof(KLocalizedString), emailAddress);
 }
コード例 #4
0
ファイル: KAboutData.cs プロジェクト: KDE/kimono
 /// <remarks>
 ///  Defines a short description of what the program does.
 /// <param> name="shortDescription" The program description. This string should
 ///         be marked for translation. Example: ki18n("An advanced text
 ///         editor with syntax highlighting support.").
 ///      </param></remarks>        <short>    Defines a short description of what the program does.</short>
 public KAboutData SetShortDescription(KLocalizedString shortDescription)
 {
     return (KAboutData) interceptor.Invoke("setShortDescription#", "setShortDescription(const KLocalizedString&)", typeof(KAboutData), typeof(KLocalizedString), shortDescription);
 }
コード例 #5
0
ファイル: KAboutData.cs プロジェクト: KDE/kimono
 /// <remarks>
 ///  Defines the displayable program name string.
 /// <param> name="programName" The program name. This string should be
 ///         marked for translation.
 ///         Example: ki18n("Advanced Text Editor").
 ///      </param></remarks>        <short>    Defines the displayable program name string.</short>
 public KAboutData SetProgramName(KLocalizedString programName)
 {
     return (KAboutData) interceptor.Invoke("setProgramName#", "setProgramName(const KLocalizedString&)", typeof(KAboutData), typeof(KLocalizedString), programName);
 }
コード例 #6
0
ファイル: KAboutPerson.cs プロジェクト: KDE/kimono
 public KAboutPerson(KLocalizedString name)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("KAboutPerson#", "KAboutPerson(const KLocalizedString&)", typeof(void), typeof(KLocalizedString), name);
 }
コード例 #7
0
 /// <remarks>
 ///  Sets the label of the action <code>type</code> to <code>text</code>, which is used during
 ///  updating the action state and substituted according to the number of
 ///  selected objects. This is mainly useful to customize the label of actions
 ///  that can operate on multiple objects.
 ///  Example:
 ///  @code
 ///  acctMgr.SetActionText( Akonadi.StandardActionManager.CopyItems,
 ///                          ki18np( "Copy Mail", "Copy %1 Mails" ) );
 ///  @endcode
 ///      </remarks>        <short>    Sets the label of the action <code>type</code> to <code>text</code>, which is used during  updating the action state and substituted according to the number of  selected objects.</short>
 public void SetActionText(Akonadi.StandardActionManager.TypeOf type, KLocalizedString text)
 {
     interceptor.Invoke("setActionText$#", "setActionText(Akonadi::StandardActionManager::Type, const KLocalizedString&)", typeof(void), typeof(Akonadi.StandardActionManager.TypeOf), type, typeof(KLocalizedString), text);
 }
コード例 #8
0
ファイル: KCmdLineArgs.cs プロジェクト: KDE/kimono
 /// <remarks>
 ///  Add options to your application.
 ///  You must make sure that all possible options have been added before
 ///  any class uses the command line arguments.
 ///  The list of options should look like this:
 ///  @code
 ///  KCmdLineOptions options;
 ///  options.add("option1 \<argument>", ki18n("Description 1"), "my_extra_arg");
 ///  options.add("o");
 ///  options.add("option2", ki18n("Description 2"));
 ///  options.add("nooption3", ki18n("Description 3"));
 ///  options.add("+file", ki18n("A required argument 'file'"));
 ///  @endcode
 /// 
 /// <li>
 /// "option1" is an option that requires an additional argument,
 ///      but if one is not provided, it uses "my_extra_arg".
 /// </li>
 /// 
 /// <li>
 /// "option2" is an option that can be turned on. The default is off.
 /// </li>
 /// 
 /// <li>
 /// "option3" is an option that can be turned off. The default is on.
 /// </li>
 /// 
 /// <li>
 /// "o" does not have a description. It is an alias for the option
 ///      that follows. In this case "option2".
 /// </li>
 /// 
 /// <li>
 /// "+file" specifies an argument. The '+' is removed. If your program
 ///      doesn't specify that it can use arguments your program will abort
 ///      when an argument is passed to it. Note that the reverse is not
 ///      true. If required, you must check yourself the number of arguments
 ///      specified by the user:
 ///      @code
 ///        KCmdLineArgs args = KCmdLineArgs.ParsedArgs();
 ///        if (args.Count() == 0) KCmdLineArgs.Usage(i18n("No file specified"));
 ///      @endcode
 /// </li>
 ///  In BNF:
 ///  @code
 ///  cmd = myapp [options] file
 ///  options = (option)
 ///  option = --option1 \<argument> |
 ///           (-o | --option2 | --nooption2) |
 ///           ( --option3 | --nooption3 )
 ///  @endcode
 ///  Instead of "--option3" one may also use "-option3"
 ///  Usage examples:
 /// 
 /// <li>
 /// "myapp --option1 test"
 /// </li>
 /// 
 /// <li>
 /// "myapp" (same as "myapp --option1 my_extra_arg")
 /// </li>
 /// 
 /// <li>
 /// "myapp --option2"
 /// </li>
 /// 
 /// <li>
 /// "myapp --nooption2" (same as "myapp", since it is off by default)
 /// </li>
 /// 
 /// <li>
 /// "myapp -o" (same as "myapp --option2")
 /// </li>
 /// 
 /// <li>
 /// "myapp --nooption3"
 /// </li>
 /// 
 /// <li>
 /// "myapp --option3 (same as "myapp", since it is on by default)
 /// </li>
 /// 
 /// <li>
 /// "myapp --option2 --nooption2" (same as "myapp", because it
 ///      option2 is off by default, and the last usage applies)
 /// </li>
 /// 
 /// <li>
 /// "myapp /tmp/file"
 /// </li>
 /// <param> name="options" A list of options that your code supplies.
 /// </param><param> name="name" the name of the option list, as displayed by
 ///              the help output. Can be empty.
 /// </param><param> name="id" A name with which these options can be identified, can be empty.
 /// </param><param> name="afterId" The options are inserted after this set of options, can be empty.
 ///    </param></remarks>        <short>    Add options to your application.</short>
 public static void AddCmdLineOptions(KCmdLineOptions options, KLocalizedString name, QByteArray id, QByteArray afterId)
 {
     staticInterceptor.Invoke("addCmdLineOptions####", "addCmdLineOptions(const KCmdLineOptions&, const KLocalizedString&, const QByteArray&, const QByteArray&)", typeof(void), typeof(KCmdLineOptions), options, typeof(KLocalizedString), name, typeof(QByteArray), id, typeof(QByteArray), afterId);
 }
コード例 #9
0
ファイル: KAboutData.cs プロジェクト: KDE/kimono
 /// <remarks>
 ///  Defines the copyright statement to show when displaying the license.
 /// <param> name="copyrightStatement" A copyright statement, that can look like
 ///         this: ki18n("(c) 1999-2000, Name"). The string specified here is
 ///         taken verbatim; the author information from addAuthor is not used.
 ///      </param></remarks>        <short>    Defines the copyright statement to show when displaying the license.</short>
 public KAboutData SetCopyrightStatement(KLocalizedString copyrightStatement)
 {
     return (KAboutData) interceptor.Invoke("setCopyrightStatement#", "setCopyrightStatement(const KLocalizedString&)", typeof(KAboutData), typeof(KLocalizedString), copyrightStatement);
 }
コード例 #10
0
ファイル: KAboutData.cs プロジェクト: KDE/kimono
 public KAboutData AddCredit(KLocalizedString name)
 {
     return (KAboutData) interceptor.Invoke("addCredit#", "addCredit(const KLocalizedString&)", typeof(KAboutData), typeof(KLocalizedString), name);
 }
コード例 #11
0
ファイル: KAboutData.cs プロジェクト: KDE/kimono
 public KAboutData AddCredit(KLocalizedString name, KLocalizedString task, QByteArray emailAddress)
 {
     return (KAboutData) interceptor.Invoke("addCredit###", "addCredit(const KLocalizedString&, const KLocalizedString&, const QByteArray&)", typeof(KAboutData), typeof(KLocalizedString), name, typeof(KLocalizedString), task, typeof(QByteArray), emailAddress);
 }
コード例 #12
0
ファイル: KAboutData.cs プロジェクト: KDE/kimono
 public KAboutData AddAuthor(KLocalizedString name, KLocalizedString task)
 {
     return (KAboutData) interceptor.Invoke("addAuthor##", "addAuthor(const KLocalizedString&, const KLocalizedString&)", typeof(KAboutData), typeof(KLocalizedString), name, typeof(KLocalizedString), task);
 }
コード例 #13
0
ファイル: KAboutData.cs プロジェクト: KDE/kimono
 public KAboutData(QByteArray appName, QByteArray catalogName, KLocalizedString programName, QByteArray version)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("KAboutData####", "KAboutData(const QByteArray&, const QByteArray&, const KLocalizedString&, const QByteArray&)", typeof(void), typeof(QByteArray), appName, typeof(QByteArray), catalogName, typeof(KLocalizedString), programName, typeof(QByteArray), version);
 }
コード例 #14
0
ファイル: KLocalizedString.cs プロジェクト: KDE/kimono
 /// <remarks>
 ///  Copy constructor.
 ///      </remarks>        <short>    Copy constructor.</short>
 public KLocalizedString(KLocalizedString rhs)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("KLocalizedString#", "KLocalizedString(const KLocalizedString&)", typeof(void), typeof(KLocalizedString), rhs);
 }
コード例 #15
0
ファイル: KCmdLineOptions.cs プロジェクト: KDE/kimono
 public KCmdLineOptions Add(QByteArray name, KLocalizedString description)
 {
     return (KCmdLineOptions) interceptor.Invoke("add##", "add(const QByteArray&, const KLocalizedString&)", typeof(KCmdLineOptions), typeof(QByteArray), name, typeof(KLocalizedString), description);
 }
コード例 #16
0
ファイル: KCmdLineArgs.cs プロジェクト: KDE/kimono
 /// <remarks>
 ///   Constructor.
 ///    </remarks>        <short>   </short>
 public KCmdLineArgs(KCmdLineOptions _options, KLocalizedString _name, QByteArray _id)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("KCmdLineArgs###", "KCmdLineArgs(const KCmdLineOptions&, const KLocalizedString&, const QByteArray&)", typeof(void), typeof(KCmdLineOptions), _options, typeof(KLocalizedString), _name, typeof(QByteArray), _id);
 }
コード例 #17
0
ファイル: KAboutData.cs プロジェクト: KDE/kimono
 /// <remarks>
 ///  Sets the custom text displayed around the list of authors instead
 ///  of the default message telling users to send bug reports to bugAddress().
 /// <param> name="plainText" The plain text.
 /// </param><param> name="richText" The rich text.
 /// </param> Setting both to parameters to KLocalizedString() will cause no message to be
 ///  displayed at all.  Call unsetCustomAuthorText() to revert to the default
 ///  message.
 ///      </remarks>        <short>    Sets the custom text displayed around the list of authors instead  of the default message telling users to send bug reports to bugAddress().</short>
 public KAboutData SetCustomAuthorText(KLocalizedString plainText, KLocalizedString richText)
 {
     return (KAboutData) interceptor.Invoke("setCustomAuthorText##", "setCustomAuthorText(const KLocalizedString&, const KLocalizedString&)", typeof(KAboutData), typeof(KLocalizedString), plainText, typeof(KLocalizedString), richText);
 }
コード例 #18
0
ファイル: KCmdLineArgs.cs プロジェクト: KDE/kimono
 public static void AddCmdLineOptions(KCmdLineOptions options, KLocalizedString name)
 {
     staticInterceptor.Invoke("addCmdLineOptions##", "addCmdLineOptions(const KCmdLineOptions&, const KLocalizedString&)", typeof(void), typeof(KCmdLineOptions), options, typeof(KLocalizedString), name);
 }
コード例 #19
0
ファイル: KAboutData.cs プロジェクト: KDE/kimono
 /// <remarks>
 ///  Defines a license text, which is marked for translation.
 ///  Example:
 ///  <pre>
 ///  setLicenseText( ki18n("This is my license") );
 ///  </pre>
 /// <param> name="license" The license text.
 ///      </param></remarks>        <short>    Defines a license text, which is marked for translation.</short>
 public KAboutData SetLicenseText(KLocalizedString license)
 {
     return (KAboutData) interceptor.Invoke("setLicenseText#", "setLicenseText(const KLocalizedString&)", typeof(KAboutData), typeof(KLocalizedString), license);
 }
コード例 #20
0
ファイル: KAboutData.cs プロジェクト: KDE/kimono
 /// <remarks>
 ///  Defines the additional text to show in the about dialog.
 /// <param> name="otherText" Some free form text, that can contain any kind of
 ///         information. The text can contain newlines. This string
 ///         should be marked for translation.
 ///      </param></remarks>        <short>    Defines the additional text to show in the about dialog.</short>
 public KAboutData SetOtherText(KLocalizedString otherText)
 {
     return (KAboutData) interceptor.Invoke("setOtherText#", "setOtherText(const KLocalizedString&)", typeof(KAboutData), typeof(KLocalizedString), otherText);
 }
コード例 #21
0
ファイル: KAboutPerson.cs プロジェクト: KDE/kimono
 public KAboutPerson(KLocalizedString name, KLocalizedString task, QByteArray emailAddress)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("KAboutPerson###", "KAboutPerson(const KLocalizedString&, const KLocalizedString&, const QByteArray&)", typeof(void), typeof(KLocalizedString), name, typeof(KLocalizedString), task, typeof(QByteArray), emailAddress);
 }