コード例 #1
0
 public LabelControl()
 {
     InitializeComponent();
     m_helper = new ControlDataHelper <string>(this);
     m_helper.Options.DisplaysOwnCaption = true;
     m_helper.Initialise += m_helper_Initialise;
 }
コード例 #2
0
 public DropDownControl()
 {
     InitializeComponent();
     m_helper               = new ControlDataHelper <string>(this);
     m_helper.Initialise   += m_helper_Initialise;
     m_helper.Uninitialise += m_helper_Uninitialise;
 }
コード例 #3
0
 public CheckBoxControl()
 {
     InitializeComponent();
     m_helper = new ControlDataHelper <bool>(this);
     m_helper.Options.DisplaysOwnCaption = true;
     m_helper.Initialise += m_helper_Initialise;
 }
コード例 #4
0
ファイル: FileControl.xaml.cs プロジェクト: zeeneddie/quest
        public FileControl()
        {
            InitializeComponent();

            m_helper             = new ControlDataHelper <string>(this);
            m_helper.Initialise += m_helper_Initialise;
        }
コード例 #5
0
 public ListStringControl()
 {
     InitializeComponent();
     toolbar.IsItemSelected = false;
     m_helper = new ControlDataHelper <IEditableList <string> >(this);
     m_helper.Options.Resizable  = true;
     m_helper.Options.Scrollable = true;
     m_helper.Initialise        += m_helper_Initialise;
 }
コード例 #6
0
        public ExpressionControl()
        {
            InitializeComponent();

            m_helper               = new ControlDataHelper <string>(this);
            m_helper.Initialise   += Initialise;
            m_helper.Uninitialise += Uninitialise;
            InitialiseInsertMenu();
        }
コード例 #7
0
        public DictionaryScriptControl()
        {
            InitializeComponent();
            m_helper = new ControlDataHelper <IEditableDictionary <IEditableScripts> >(this);
            m_helper.Options.Resizable = true;
            m_helper.Initialise       += m_helper_Initialise;
            m_helper.Uninitialise     += m_helper_Uninitialise;

            ctlDictionaryScript.Dirty += ctlDictionaryScript_Dirty;
            ctlDictionaryScript.RequestParentElementEditorSave += ctlDictionaryScript_RequestParentElementEditorSave;
        }
コード例 #8
0
 public DictionaryStringControl()
 {
     InitializeComponent();
     m_helper = new ControlDataHelper <IEditableDictionary <string> >(this);
     // "Resizable" option doesn't work well for WinForms usercontrols - this should be made resizable
     // when the control is fully converted to WPF.
     //m_helper.Options.Resizable = true;
     m_helper.Initialise       += m_helper_Initialise;
     m_helper.Uninitialise     += m_helper_Uninitialise;
     ctlDictionaryString.Dirty += ctlDictionaryString_Dirty;
     ctlDictionaryString.RequestParentElementEditorSave += ctlDictionaryString_RequestParentElementEditorSave;
 }
コード例 #9
0
        public ScriptEditorControl()
        {
            InitializeComponent();
            SetEditButtonsEnabled(false);
            m_helper               = new ControlDataHelper <IEditableScripts>(this);
            m_helper.Initialise   += m_helper_Initialise;
            m_helper.Uninitialise += m_helper_Uninitialise;

            ctlToolbar.MakeEditable += ctlToolbar_MakeEditable;
            ctlToolbar.Delete       += ctlToolbar_Delete;
            ctlToolbar.MoveUp       += ctlToolbar_MoveUp;
            ctlToolbar.MoveDown     += ctlToolbar_MoveDown;
            ctlToolbar.Cut          += ctlToolbar_Cut;
            ctlToolbar.Copy         += ctlToolbar_Copy;
            ctlToolbar.Paste        += ctlToolbar_Paste;
            ctlToolbar.CodeView     += ctlToolbar_CodeView;
            ctlToolbar.PopOut       += ctlToolbar_PopOut;
        }
コード例 #10
0
        public TextEditorControl()
        {
            InitializeComponent();

            m_helper = new ControlDataHelper <string>(this);
            m_helper.Options.Scrollable = true;
            m_helper.Initialise        += new Action(m_helper_Initialise);

            SetSyntaxHighlighting("XML");
            textEditor.HorizontalScrollBarVisibility = System.Windows.Controls.ScrollBarVisibility.Auto;
            textEditor.Padding = new System.Windows.Thickness(5);

            m_foldingManager = FoldingManager.Install(textEditor.TextArea);

            textEditor.TextArea.TextEntering += TextEntering;
            textEditor.TextArea.TextEntered  += TextEntered;
            textEditor.TextArea.KeyUp        += KeyPressed;
            textEditor.TextChanged           += TextChanged;

            UndoActionStepCounts = new Stack <int>();
            RedoActionStepCounts = new Stack <int>();

            UpdateUndoRedoEnabled(true);
        }
コード例 #11
0
 public GameIdControl()
 {
     InitializeComponent();
     m_helper = new ControlDataHelper <string>(this);
 }
コード例 #12
0
 public PatternControl()
 {
     InitializeComponent();
     m_helper = new ControlDataHelper <IEditableCommandPattern>(this);
 }
コード例 #13
0
 public RichTextControl()
 {
     InitializeComponent();
     m_helper             = new ControlDataHelper <string>(this);
     m_helper.Initialise += Initialise;
 }
コード例 #14
0
 public NumberDoubleControl()
 {
     InitializeComponent();
     m_helper             = new ControlDataHelper <double>(this);
     m_helper.Initialise += m_helper_Initialise;
 }
コード例 #15
0
ファイル: GameIdControl.xaml.cs プロジェクト: zeeneddie/quest
 public GameIdControl()
 {
     InitializeComponent();
     cmdGenerate.Content = L.T("EditorGenerate");
     m_helper            = new ControlDataHelper <string>(this);
 }