Esempio n. 1
0
        public override void OnAddedToParent(IPluginChildWindow parent, IWindowPluginHost host, string state)
        {
            m_parent = parent;
            if (parent.CurrentState == null)
            {
                m_project  = null;
                m_verseRef = null;
            }
            else
            {
                m_project  = parent.CurrentState.Project;
                m_verseRef = parent.CurrentState.VerseRef;
            }

            parent.SetTitle(PluginG.pluginName);
            parent.WindowClosing   += WindowClosing;
            parent.ProjectChanged  += ProjectChanged;
            parent.VerseRefChanged += VerseRefChanged;
            if (m_project != null)
            {
                m_project.ProjectDataChanged += ProjectDataChanged;
            }

            m_UpdateThread = new Thread(UpdateTimeWorker);
            m_UpdateThread.Start();
        }
Esempio n. 2
0
        public override void OnAddedToParent(IPluginChildWindow parent, IWindowPluginHost host, string state)
        {
            parent.SetTitle(PluginJ.pluginName);
            SetProject(parent.CurrentState.Project);

            host.ActiveWindowSelectionChanged += ActiveWindowSelectionChanged;
            parent.ProjectChanged             += ProjectChanged;
        }
Esempio n. 3
0
 public override void OnAddedToParent(IPluginChildWindow parent, IWindowPluginHost host, string state)
 {
     m_project = parent.CurrentState.Project;
     parent.SetTitle(PluginF.pluginName);
     parent.SaveRequested  += SaveRequested;
     parent.WindowClosing  += WindowClosing;
     parent.ProjectChanged += ProjectChanged;
 }
Esempio n. 4
0
        public override void OnAddedToParent(IPluginChildWindow parent, IWindowPluginHost host, string state)
        {
            parent.SetTitle(PluginE.pluginName);
            m_Project   = parent.CurrentState.Project;
            m_Reference = parent.CurrentState.VerseRef;

            parent.ProjectChanged  += ProjectChanged;
            parent.VerseRefChanged += VerseRefChanged;
        }
Esempio n. 5
0
        public override void OnAddedToParent(IPluginChildWindow parent, IWindowPluginHost host, string state)
        {
            parent.Icon = Resources.icon;
            parent.SetTitle(ProjectTextEditorPlugin.pluginName, false);
            UpdateProject(parent.CurrentState.Project);

            parent.SaveRequested   += Parent_SaveRequested;
            parent.WindowClosing   += Parent_WindowClosing;
            parent.ProjectChanged  += Parent_ProjectChanged;
            parent.MegaMenuShowing += Parent_MegaMenuShowing;
        }
Esempio n. 6
0
        public override void OnAddedToParent(IPluginChildWindow parent, IWindowPluginHost host, string state)
        {
            m_host = host;
            parent.SetTitle(ChapterWordCloudPlugin.pluginName);

            parent.VerseRefChanged += Parent_VerseRefChanged;
            parent.ProjectChanged  += Parent_ProjectChanged;

            SetProject(parent.CurrentState.Project);
            m_reference    = parent.CurrentState.VerseRef;
            m_selectedText = state;
            selectedTextToolStripMenuItem.Checked = state != null;
        }
Esempio n. 7
0
        public override void OnAddedToParent(IPluginChildWindow parent, IWindowPluginHost host, string state)
        {
            parent.SetTitle(PluginH.pluginName);

            m_Host      = host;
            m_Project   = parent.CurrentState.Project;
            m_Reference = parent.CurrentState.VerseRef;

            IReferenceListWindow refList = host.ReferenceList;

            refList.ListChanged         += ListChanged;
            refList.SelectedItemChanged += SelectedItemChanged;
            refList.ItemDoubleClicked   += ItemDoubleClicked;
        }
Esempio n. 8
0
        public override void OnAddedToParent(IPluginChildWindow parent, IWindowPluginHost host, string state)
        {
            parent.SetTitle(PluginL.pluginName);
            parent.ProjectChanged  += ProjectChanged;
            parent.VerseRefChanged += VerseRefChanged;

            SetProject(parent.CurrentState.Project);
            m_verseRef = parent.CurrentState.VerseRef;

            RowStyle rowStyle = new RowStyle(SizeType.AutoSize);

            m_tableLayoutPanel.RowStyles.Add(rowStyle);

            AddHeaderRow();
        }
Esempio n. 9
0
        public override void OnAddedToParent(IPluginChildWindow parent, IWindowPluginHost host, string state)
        {
            parent.SetTitle(PluginK.pluginName);

            m_host    = host;
            m_project = parent.CurrentState.Project;
            m_parent  = parent;

            m_whichListListBox.BeginUpdate();
            m_whichListListBox.Items.Add(ProjectList);
            m_whichListListBox.Items.Add(AllList);
            m_whichListListBox.Items.Add(MajorList);
            m_whichListListBox.SetSelected(0, true);
            m_whichListListBox.EndUpdate();
        }
Esempio n. 10
0
        public override void OnAddedToParent(IPluginChildWindow parent, IWindowPluginHost host, string state)
        {
            parent.SetTitle(PluginI.pluginName);

            SetProject(parent.CurrentState.Project);
            m_Reference        = parent.CurrentState.VerseRef;
            chapterText.Text   = "Click 'Get Chapter'";
            bookName.Text      = m_Reference.BookCode;
            chapterNumber.Text = m_Reference.ChapterNum.ToString();
            chapterText.Text   = "";
            chapterText.BringToFront();
            changedCheckBox.Checked = false;
            EnableRadioButtons();
            UsfmRadioButton.Checked       = true;
            UsfmTokensRadioButton.Checked = false;
            UsxRadioButton.Checked        = false;
            m_WriteLock            = null;
            lockedCheckBox.Checked = false;

            parent.VerseRefChanged += ReferenceChanged;
            parent.WindowClosing   += WindowClosing;
            parent.SaveRequested   += SaveRequested;
            parent.ProjectChanged  += ProjectChanged;
        }