// C:\Working\Sandbox\NppPlugin.NET\scintilla\scintilla\scite\src\SciTEBase.cxx@2795 // C:\Working\Sandbox\NppPlugin.NET\scintilla\scintilla\scite\gtk\SciTEGTK.cxx@1874 private void ShowDialog() { var currentTabSize = _editor.Call(SciMsg.SCI_GETTABWIDTH); var currentIndentSize = _editor.Call(SciMsg.SCI_GETINDENT); var currentUseTabs = (_editor.Call(SciMsg.SCI_GETUSETABS) != 0); var dialog = new IndentationSettingsForm { TabSize = currentTabSize, IndentSize = currentIndentSize, UseTabs = currentUseTabs }; dialog.ShowDialog(); SetTabSize(dialog.TabSize, dialog.IndentSize, dialog.UseTabs); if (dialog.ConvertIndent) ConvertIndentation(dialog.TabSize, dialog.UseTabs); }
private IndentationSettings() { _editor = Editor.GetActive(); _dialog = new IndentationSettingsForm(); _owner = new WindowWrapper(PluginBase.nppData._nppHandle); }