/// <summary> /// Fill the object with settings from UI /// </summary> public GeneralPrefs(bool mSaveArticleList, bool mIgnoreNoBots, System.Windows.Forms.ComboBox.ObjectCollection mSummaries, string mSelectedSummary, string[] mPasteMore, string mFindText, bool mFindRegex, bool mFindCaseSensitive, bool mWordWrap, bool mToolBarEnabled, bool mBypassRedirect, bool mAutoSaveSettings, bool mPreParseMode, bool mNoAutoChanges, int mOnLoadAction, bool mMinor, bool mWatch, bool mDoNotWatch, bool mTimerEnabled, bool mSortListAlphabetically, bool mAddIgnoredToLog, int mTextBoxSize, string mTextBoxFont, bool mLowThreadPriority, bool mBeep, bool mFlash, bool mMinimize, decimal mTimeOutLimit, bool autoSaveEditBoxEnabled, decimal autoSaveEditBoxPeriod, string autoSaveEditBoxFile, bool mLockSummary, bool mEditToolbarEnabled, bool mSuppressUsingAWB, bool mAddUsingAWBToActionSummaries, bool mfilterNonMainSpace, bool mAutoFilterDupes, bool mSortInterWikiOrder, bool mReplaceReferenceTags, bool mFocusAtEndOfEditBox, bool mscrollToUnbalancedBrackets) { SaveArticleList = mSaveArticleList; IgnoreNoBots = mIgnoreNoBots; foreach (object s in mSummaries) { Summaries.Add(s.ToString()); } SelectedSummary = mSelectedSummary; PasteMore = mPasteMore; FindText = mFindText; FindRegex = mFindRegex; FindCaseSensitive = mFindCaseSensitive; WordWrap = mWordWrap; ToolBarEnabled = mToolBarEnabled; BypassRedirect = mBypassRedirect; AutoSaveSettings = mAutoSaveSettings; PreParseMode = mPreParseMode; NoAutoChanges = mNoAutoChanges; OnLoadAction = mOnLoadAction; Minor = mMinor; Watch = mWatch; DoNotWatch = mDoNotWatch; TimerEnabled = mTimerEnabled; SortListAlphabetically = mSortListAlphabetically; AddIgnoredToLog = mAddIgnoredToLog; TextBoxSize = mTextBoxSize; TextBoxFont = mTextBoxFont; LowThreadPriority = mLowThreadPriority; Beep = mBeep; Flash = mFlash; Minimize = mMinimize; TimeOutLimit = mTimeOutLimit; AutoSaveEdit = new EditBoxAutoSavePrefs(autoSaveEditBoxEnabled, autoSaveEditBoxPeriod, autoSaveEditBoxFile); LockSummary = mLockSummary; EditToolbarEnabled = mEditToolbarEnabled; SuppressUsingAWB = mSuppressUsingAWB; AddUsingAWBToActionSummaries = mAddUsingAWBToActionSummaries; filterNonMainSpace = mfilterNonMainSpace; AutoFilterDuplicates = mAutoFilterDupes; FocusAtEndOfEditBox = mFocusAtEndOfEditBox; scrollToUnbalancedBrackets = mscrollToUnbalancedBrackets; SortInterWikiOrder = mSortInterWikiOrder; ReplaceReferenceTags = mReplaceReferenceTags; }
internal GeneralPrefs() { AutoSaveEdit = new EditBoxAutoSavePrefs(); }
/// <summary> /// Fill the object with settings from UI /// </summary> public GeneralPrefs(bool mSaveArticleList, bool mIgnoreNoBots, System.Windows.Forms.ComboBox.ObjectCollection mSummaries, string mSelectedSummary, string[] mPasteMore, string mFindText, bool mFindRegex, bool mFindCaseSensitive, bool mWordWrap, bool mToolBarEnabled, bool mBypassRedirect, bool mNoAutoChanges, int mOnLoadAction, bool mMinor, bool mWatch, bool mDoNotWatch, bool mTimerEnabled, bool mSortListAlphabetically, bool mAddIgnoredToLog, int mTextBoxSize, string mTextBoxFont, bool mLowThreadPriority, bool mBeep, bool mFlash, bool mMinimize, decimal mTimeOutLimit, bool autoSaveEditBoxEnabled, decimal autoSaveEditBoxPeriod, string autoSaveEditBoxFile, bool mLockSummary, bool mEditToolbarEnabled, bool mSuppressUsingAWB, bool mAddUsingAWBToActionSummaries, bool mfilterNonMainSpace, bool mAutoFilterDupes, bool mSortInterWikiOrder, bool mReplaceReferenceTags, bool mFocusAtEndOfEditBox) { SaveArticleList = mSaveArticleList; IgnoreNoBots = mIgnoreNoBots; foreach (object s in mSummaries) Summaries.Add(s.ToString()); SelectedSummary = mSelectedSummary; PasteMore = mPasteMore; FindText = mFindText; FindRegex = mFindRegex; FindCaseSensitive = mFindCaseSensitive; WordWrap = mWordWrap; ToolBarEnabled = mToolBarEnabled; BypassRedirect = mBypassRedirect; NoAutoChanges = mNoAutoChanges; OnLoadAction = mOnLoadAction; Minor = mMinor; Watch = mWatch; DoNotWatch = mDoNotWatch; TimerEnabled = mTimerEnabled; SortListAlphabetically = mSortListAlphabetically; AddIgnoredToLog = mAddIgnoredToLog; TextBoxSize = mTextBoxSize; TextBoxFont = mTextBoxFont; LowThreadPriority = mLowThreadPriority; Beep = mBeep; Flash = mFlash; Minimize = mMinimize; TimeOutLimit = mTimeOutLimit; AutoSaveEdit = new EditBoxAutoSavePrefs(autoSaveEditBoxEnabled, autoSaveEditBoxPeriod, autoSaveEditBoxFile); LockSummary = mLockSummary; EditToolbarEnabled = mEditToolbarEnabled; SuppressUsingAWB = mSuppressUsingAWB; AddUsingAWBToActionSummaries = mAddUsingAWBToActionSummaries; filterNonMainSpace = mfilterNonMainSpace; AutoFilterDuplicates = mAutoFilterDupes; FocusAtEndOfEditBox = mFocusAtEndOfEditBox; SortInterWikiOrder = mSortInterWikiOrder; ReplaceReferenceTags = mReplaceReferenceTags; }