Пример #1
0
        public void SaveSettings()
        {
            QtVSIPSettings.SaveMocDirectory(newMocDir);
            QtVSIPSettings.SaveMocOptions(newMocOptions);
            QtVSIPSettings.SaveUicDirectory(newUicDir);
            QtVSIPSettings.SaveRccDirectory(newRccDir);
            QtVSIPSettings.SaveLUpdateOnBuild(newLUpdateOnBuild);
            QtVSIPSettings.SaveLUpdateOptions(newLUpdateOptions);
            QtVSIPSettings.SaveLReleaseOptions(newLReleaseOptions);
            QtVSIPSettings.SaveAskBeforeCheckoutFile(newAskBeforeCheckoutFile);
            QtVSIPSettings.SaveDisableCheckoutFiles(newDisableCheckoutFiles);
            QtVSIPSettings.SaveDisableAutoMocStepsUpdate(newDisableAutoMOCStepsUpdate);

            var settingsManager = new ShellSettingsManager(Vsix.Instance);
            var store           = settingsManager.GetWritableSettingsStore(SettingsScope.UserSettings);

#if VS2013
            store.CreateCollection(Statics.QmlClassifierPath);
            store.SetBoolean(Statics.QmlClassifierPath, Statics.QmlClassifierKey,
                             EnableQmlClassifier);
#else
            store.CreateCollection(Statics.QmlTextMatePath);
            store.SetBoolean(Statics.QmlTextMatePath, Statics.QmlTextMateKey, EnableQmlTextMate);
#endif
        }
Пример #2
0
 public void SaveSettings()
 {
     QtVSIPSettings.SaveMocDirectory(newMocDir);
     QtVSIPSettings.SaveMocOptions(newMocOptions);
     QtVSIPSettings.SaveUicDirectory(newUicDir);
     QtVSIPSettings.SaveRccDirectory(newRccDir);
     QtVSIPSettings.SaveLUpdateOnBuild(newLUpdateOnBuild);
     QtVSIPSettings.SaveLUpdateOptions(newLUpdateOptions);
     QtVSIPSettings.SaveLReleaseOptions(newLReleaseOptions);
     QtVSIPSettings.SaveAskBeforeCheckoutFile(newAskBeforeCheckoutFile);
     QtVSIPSettings.SaveDisableCheckoutFiles(newDisableCheckoutFiles);
     QtVSIPSettings.SaveDisableAutoMocStepsUpdate(newDisableAutoMOCStepsUpdate);
 }