Example #1
0
 public override void ReadDefault(KConfig arg1)
 {
 }
Example #2
0
 public override void WriteConfig(KConfig arg1)
 {
 }
Example #3
0
    private void SaveGlobalProperties(KConfig config)
    {
        config.Group("Number").WriteEntry("NumberOfDocuments", docList.Count);

        int z = 1;
        foreach (KTextEditor.Document document in docList) {
            string buf = "Document " + z.ToString();
            KConfigGroup cg = new KConfigGroup(config, buf);
            KTextEditor.Document doc = docList[z - 1];

            KTextEditor.SessionConfigInterface iface = qobject_cast<KTextEditor.SessionConfigInterface>(doc);
            if (iface != null)
                iface.WriteSessionConfig(cg);
            z++;
        }

        z = 1;
        foreach (KWrite window in winList) {
            string buf = "Window " + z.ToString();
            KConfigGroup cg = new KConfigGroup(config, buf);
            cg.WriteEntry("DocumentNumber", docList.IndexOf(window.View().Document()) + 1);
            z++;
        }
    }
Example #4
0
 public override void ReadConfig(KConfig arg1)
 {
 }
Example #5
0
 /// <remarks>
 ///  Changes the current country. The current country will be left
 ///  unchanged if failed. It will force a reload of the country specific
 ///  configuration.
 /// <param> name="country" The ISO 3166 country code.
 /// </param></remarks>        <return> True on success.
 ///    </return>
 ///         <short>    Changes the current country.</short>
 public bool SetCountry(string country, KConfig config)
 {
     return (bool) interceptor.Invoke("setCountry$#", "setCountry(const QString&, KConfig*)", typeof(bool), typeof(string), country, typeof(KConfig), config);
 }
Example #6
0
 public KLocale(string catalog, string language, string country, KConfig config)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("KLocale$$$#", "KLocale(const QString&, const QString&, const QString&, KConfig*)", typeof(void), typeof(string), catalog, typeof(string), language, typeof(string), country, typeof(KConfig), config);
 }
Example #7
0
 public abstract void WriteConfig(KConfig arg1);
Example #8
0
 /// <remarks>
 ///  Export the current setting to configuration <code>config.</code>
 ///  This initializes the configuration object. This will export the global
 ///  configuration too.
 /// <param> name="config" Config object
 ///      </param></remarks>        <short>    Export the current setting to configuration <code>config.</code></short>
 public void ExportConfiguration(KConfig config)
 {
     interceptor.Invoke("exportConfiguration#", "exportConfiguration(KConfig*) const", typeof(void), typeof(KConfig), config);
 }
Example #9
0
 public abstract void ReadConfig(KConfig arg1);
Example #10
0
 public abstract void ReadDefault(KConfig arg1);
Example #11
0
 /// <remarks>
 ///  Use <code>cfg</code> for all settings related to the dontShowAgainName feature.
 ///  If <code>cfg</code> is 0 (default) KGlobal.Config() will be used.
 ///      </remarks>        <short>    Use <code>cfg</code> for all settings related to the dontShowAgainName feature.</short>
 public static void SetDontShowAskAgainConfig(KConfig cfg)
 {
     staticInterceptor.Invoke("setDontShowAskAgainConfig#", "setDontShowAskAgainConfig(KConfig*)", typeof(void), typeof(KConfig), cfg);
 }
Example #12
0
 public void Init(KConfig config)
 {
     interceptor.Invoke("init#", "init(KConfig*)", typeof(void), typeof(KConfig), config);
 }
Example #13
0
 /// <remarks> Read settings from <code>config.</code>
 /// <param> name="config" is a pointer to KConfig object.
 /// </param><param> name="reset" if true, settings are always set; if false,
 ///   settings are only set if the config file has a corresponding key.
 ///      </param></remarks>		<short>   Read settings from <code>config.</code></short>
 public void Init(KConfig config, bool reset)
 {
     interceptor.Invoke("init#$", "init(KConfig*, bool)", typeof(void), typeof(KConfig), config, typeof(bool), reset);
 }
Example #14
0
 public void Restore(KConfig config)
 {
     interceptor.Invoke("restore#", "restore(KConfig*)", typeof(void), typeof(KConfig), config);
 }
Example #15
0
 public virtual void ReadConfig(KConfig config)
 {
     interceptor.Invoke("readConfig#", "readConfig(KConfig*)", typeof(void), typeof(KConfig), config);
 }
Example #16
0
 public void Save(KConfig config)
 {
     interceptor.Invoke("save#", "save(KConfig*)", typeof(void), typeof(KConfig), config);
 }
Example #17
0
 public virtual void WriteConfig(KConfig config)
 {
     interceptor.Invoke("writeConfig#", "writeConfig(KConfig*)", typeof(void), typeof(KConfig), config);
 }
Example #18
0
 /// <remarks>
 ///  Import the settings from configuration <code>config.</code>
 ///  This will remove all current setting before importing. All shortcuts
 ///  are set to KShortcut() prior to importing from <code>config</code>!
 /// <param> name="config" Config object
 ///      </param></remarks>        <short>    Import the settings from configuration <code>config.</code></short>
 public void ImportConfiguration(KConfig config)
 {
     interceptor.Invoke("importConfiguration#", "importConfiguration(KConfig*)", typeof(void), typeof(KConfig), config);
 }
Example #19
0
 /// <remarks>
 ///  Reads customized entries out of the given config object and add
 ///  them via addResourceDirs().
 /// <param> name="config" The object the entries are read from. This should
 ///         contain global config files
 /// </param></remarks>        <return> @c true if new config paths have been added
 ///  from <code>config.</code>
 /// </return>
 ///         <short>    Reads customized entries out of the given config object and add  them via addResourceDirs().</short>
 public bool AddCustomized(KConfig config)
 {
     return (bool) interceptor.Invoke("addCustomized#", "addCustomized(KConfig*)", typeof(bool), typeof(KConfig), config);
 }
Example #20
0
 /// <remarks>
 ///  Changes the current language. The current language will be left
 ///  unchanged if failed. It will force a reload of the country specific
 ///  configuration as well.
 /// <param> name="language" the language code
 /// </param></remarks>        <return> true on success
 ///    </return>
 ///         <short>    Changes the current language.</short>
 public bool SetLanguage(string language, KConfig config)
 {
     return (bool) interceptor.Invoke("setLanguage$#", "setLanguage(const QString&, KConfig*)", typeof(bool), typeof(string), language, typeof(KConfig), config);
 }
Example #21
0
 /// <remarks>
 ///  Copies all entries from this config object to a new config
 ///  object that will save itself to <code>file.</code>
 ///  Actual saving to <code>file</code> happens when the returned object is
 ///  destructed or when sync() is called upon it.
 /// <param> name="file" the new config object will save itself to.
 /// </param><param> name="config" optional config object to reuse
 /// </param></remarks>        <return> the same as <code>config</code> if it was set, otherwise a new KConfig object.
 ///  In that case, do not forget to delete it!
 ///      </return>
 ///         <short>    Copies all entries from this config object to a new config  object that will save itself to <code>file.</code></short>
 public KConfig CopyTo(string file, KConfig config)
 {
     return (KConfig) interceptor.Invoke("copyTo$#", "copyTo(const QString&, KConfig*) const", typeof(KConfig), typeof(string), file, typeof(KConfig), config);
 }
Example #22
0
 public ConfigWidget(KConfig config, QWidget parent)
     : this((Type) null)
 {
     CreateProxy();
     interceptor.Invoke("ConfigWidget##", "ConfigWidget(KConfig*, QWidget*)", typeof(void), typeof(KConfig), config, typeof(QWidget), parent);
 }
Example #23
0
 // session management
 protected void Restore(KConfig config, int n)
 {
     ReadPropertiesInternal(config, n);
 }