コード例 #1
0
 /// ------------------------------------------------------------------------------------
 public DefineDistinctiveFeatureClassDlgBase(ClassListViewItem classInfo, ClassesDlg classDlg)
     : base(classInfo ?? new ClassListViewItem {
     ClassType = SearchClassType.Binary
 },
            classDlg, new DistinctiveFeatureListView(), App.BFeatureCache.GetEmptyMask())
 {
     InitializeComponent();
 }
コード例 #2
0
 /// ------------------------------------------------------------------------------------
 public DefineDescriptiveFeatureClassDlg(ClassListViewItem classInfo, ClassesDlg classDlg)
     : base(classInfo ?? new ClassListViewItem {
     ClassType = SearchClassType.Articulatory
 },
            classDlg, new DescriptiveFeatureListView(), App.AFeatureCache.GetEmptyMask())
 {
     InitializeComponent();
     _lvFeatures.EmphasizeCheckedItems = true;
 }
コード例 #3
0
 /// ------------------------------------------------------------------------------------
 public DefinePhoneClassDlg(ClassListViewItem classInfo, ClassesDlg classDlg)
     : base(classInfo ?? new ClassListViewItem {
     ClassType = SearchClassType.Phones
 }, classDlg)
 {
     InitializeComponent();
     IinitializeCharExplorer();
     _textBoxMembers.ReadOnly = false;
     _textBoxMembers.Font     = FontHelper.MakeRegularFontDerivative(App.PhoneticFont, 16);
 }
コード例 #4
0
        /// ------------------------------------------------------------------------------------
        public DefineClassBaseDlg(ClassListViewItem classInfo, ClassesDlg classDlg) : this()
        {
            m_classesDlg        = classDlg;
            m_origClassInfo     = classInfo;
            m_classInfo         = new ClassListViewItem(classInfo);
            m_classInfo.IsDirty = false;

            _textBoxClassName.Text         = m_classInfo.Text;
            _textBoxMembers.Text           = m_classInfo.FormattedMembersString;
            _textBoxMembers.SelectionStart = _textBoxMembers.Text.Length + 1;
        }
コード例 #5
0
        /// ------------------------------------------------------------------------------------
        public DefineFeatureClassDlgBase(ClassListViewItem classInfo, ClassesDlg classDlg,
                                         FeatureListViewBase lvFeatures, FeatureMask emptyMask)
            : base(classInfo ?? new ClassListViewItem {
            ClassType = SearchClassType.Articulatory
        }, classDlg)
        {
            _lvFeatures = lvFeatures;
            _lvFeatures.Load();
            _lvFeatures.Dock            = DockStyle.Fill;
            _lvFeatures.Visible         = true;
            _lvFeatures.LabelEdit       = false;
            _lvFeatures.FeatureChanged += HandleFeatureChanged;
            _lvFeatures.TabIndex        = _textBoxClassName.TabIndex + 1;
            _lvFeatures.CurrentMask     = (m_classInfo.Mask ?? emptyMask);

            SetupPhoneViewers();
            SetupSplitters();
            SetupRadioButtons();
            UpdateCharacterViewers();
        }