ow
This commit is contained in:
1 parent
996bb243df
commit
5f1062c010
15 files changed
+769
-104
No files matched your search
+44
-30
@@ -61,8 +61,9 @@ namespace CloudBuilder.AI.Gui
|
||||
statusCol = new DataGridViewTextBoxColumn();
|
||||
tabPage2 = new TabPage();
|
||||
tableLayoutPanel7 = new TableLayoutPanel();
|
||||
kryptonDataGridView1 = new Krypton.Toolkit.KryptonDataGridView();
|
||||
kryptonDataGridView2 = new Krypton.Toolkit.KryptonDataGridView();
|
||||
bookPersonGv = new Krypton.Toolkit.KryptonDataGridView();
|
||||
bookPersonNameCol = new DataGridViewTextBoxColumn();
|
||||
bookActorNameCol = new DataGridViewComboBoxColumn();
|
||||
tableLayoutPanel2 = new TableLayoutPanel();
|
||||
statusCombo = new Krypton.Toolkit.KryptonComboBox();
|
||||
guidLabel = new Krypton.Toolkit.KryptonLabel();
|
||||
@@ -113,8 +114,7 @@ namespace CloudBuilder.AI.Gui
|
||||
((System.ComponentModel.ISupportInitialize)dataGv).BeginInit();
|
||||
tabPage2.SuspendLayout();
|
||||
tableLayoutPanel7.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)kryptonDataGridView1).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)kryptonDataGridView2).BeginInit();
|
||||
((System.ComponentModel.ISupportInitialize)bookPersonGv).BeginInit();
|
||||
tableLayoutPanel2.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)statusCombo).BeginInit();
|
||||
processPanel.SuspendLayout();
|
||||
@@ -415,34 +415,48 @@ namespace CloudBuilder.AI.Gui
|
||||
//
|
||||
// tableLayoutPanel7
|
||||
//
|
||||
tableLayoutPanel7.ColumnCount = 2;
|
||||
tableLayoutPanel7.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
|
||||
tableLayoutPanel7.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
|
||||
tableLayoutPanel7.Controls.Add(kryptonDataGridView1, 0, 0);
|
||||
tableLayoutPanel7.Controls.Add(kryptonDataGridView2, 1, 0);
|
||||
tableLayoutPanel7.Location = new Point(76, 31);
|
||||
tableLayoutPanel7.ColumnCount = 1;
|
||||
tableLayoutPanel7.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F));
|
||||
tableLayoutPanel7.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 20F));
|
||||
tableLayoutPanel7.Controls.Add(bookPersonGv, 0, 0);
|
||||
tableLayoutPanel7.Dock = DockStyle.Fill;
|
||||
tableLayoutPanel7.Location = new Point(3, 3);
|
||||
tableLayoutPanel7.Name = "tableLayoutPanel7";
|
||||
tableLayoutPanel7.RowCount = 2;
|
||||
tableLayoutPanel7.RowStyles.Add(new RowStyle(SizeType.Percent, 69.93671F));
|
||||
tableLayoutPanel7.RowStyles.Add(new RowStyle(SizeType.Percent, 30.0632915F));
|
||||
tableLayoutPanel7.Size = new Size(622, 316);
|
||||
tableLayoutPanel7.RowCount = 1;
|
||||
tableLayoutPanel7.RowStyles.Add(new RowStyle(SizeType.Percent, 100F));
|
||||
tableLayoutPanel7.RowStyles.Add(new RowStyle(SizeType.Absolute, 20F));
|
||||
tableLayoutPanel7.Size = new Size(998, 392);
|
||||
tableLayoutPanel7.TabIndex = 0;
|
||||
//
|
||||
// kryptonDataGridView1
|
||||
// bookPersonGv
|
||||
//
|
||||
kryptonDataGridView1.BorderStyle = BorderStyle.None;
|
||||
kryptonDataGridView1.Location = new Point(3, 3);
|
||||
kryptonDataGridView1.Name = "kryptonDataGridView1";
|
||||
kryptonDataGridView1.Size = new Size(209, 173);
|
||||
kryptonDataGridView1.TabIndex = 0;
|
||||
bookPersonGv.AllowUserToAddRows = false;
|
||||
bookPersonGv.AllowUserToDeleteRows = false;
|
||||
bookPersonGv.BorderStyle = BorderStyle.None;
|
||||
bookPersonGv.Columns.AddRange(new DataGridViewColumn[] { bookPersonNameCol, bookActorNameCol });
|
||||
bookPersonGv.Dock = DockStyle.Fill;
|
||||
bookPersonGv.Location = new Point(3, 3);
|
||||
bookPersonGv.Name = "bookPersonGv";
|
||||
bookPersonGv.Size = new Size(992, 386);
|
||||
bookPersonGv.TabIndex = 0;
|
||||
//
|
||||
// kryptonDataGridView2
|
||||
// bookPersonNameCol
|
||||
//
|
||||
kryptonDataGridView2.BorderStyle = BorderStyle.None;
|
||||
kryptonDataGridView2.Location = new Point(314, 3);
|
||||
kryptonDataGridView2.Name = "kryptonDataGridView2";
|
||||
kryptonDataGridView2.Size = new Size(209, 173);
|
||||
kryptonDataGridView2.TabIndex = 0;
|
||||
bookPersonNameCol.DataPropertyName = "PersonName";
|
||||
bookPersonNameCol.HeaderText = "人名";
|
||||
bookPersonNameCol.Name = "bookPersonNameCol";
|
||||
bookPersonNameCol.Resizable = DataGridViewTriState.True;
|
||||
bookPersonNameCol.Width = 200;
|
||||
//
|
||||
// bookActorNameCol
|
||||
//
|
||||
bookActorNameCol.DataPropertyName = "ActorName";
|
||||
bookActorNameCol.DisplayStyle = DataGridViewComboBoxDisplayStyle.Nothing;
|
||||
bookActorNameCol.HeaderText = "配音";
|
||||
bookActorNameCol.Name = "bookActorNameCol";
|
||||
bookActorNameCol.Resizable = DataGridViewTriState.True;
|
||||
bookActorNameCol.SortMode = DataGridViewColumnSortMode.Automatic;
|
||||
bookActorNameCol.Width = 500;
|
||||
//
|
||||
// tableLayoutPanel2
|
||||
//
|
||||
@@ -904,8 +918,7 @@ namespace CloudBuilder.AI.Gui
|
||||
((System.ComponentModel.ISupportInitialize)dataGv).EndInit();
|
||||
tabPage2.ResumeLayout(false);
|
||||
tableLayoutPanel7.ResumeLayout(false);
|
||||
((System.ComponentModel.ISupportInitialize)kryptonDataGridView1).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)kryptonDataGridView2).EndInit();
|
||||
((System.ComponentModel.ISupportInitialize)bookPersonGv).EndInit();
|
||||
tableLayoutPanel2.ResumeLayout(false);
|
||||
tableLayoutPanel2.PerformLayout();
|
||||
((System.ComponentModel.ISupportInitialize)statusCombo).EndInit();
|
||||
@@ -975,8 +988,7 @@ namespace CloudBuilder.AI.Gui
|
||||
private TableLayoutPanel processPanel;
|
||||
private Krypton.Toolkit.KryptonButton extractNamesBut;
|
||||
private TableLayoutPanel tableLayoutPanel7;
|
||||
private Krypton.Toolkit.KryptonDataGridView kryptonDataGridView1;
|
||||
private Krypton.Toolkit.KryptonDataGridView kryptonDataGridView2;
|
||||
private Krypton.Toolkit.KryptonDataGridView bookPersonGv;
|
||||
private TableLayoutPanel tableLayoutPanel6;
|
||||
private CloudBuilder.Gui.GridViewPagination gridViewPagination;
|
||||
private Krypton.Toolkit.KryptonDataGridView sentenceGv;
|
||||
@@ -992,5 +1004,7 @@ namespace CloudBuilder.AI.Gui
|
||||
private Krypton.Toolkit.KryptonDataGridViewTextBoxColumn sentimentCol;
|
||||
private Krypton.Toolkit.KryptonDataGridViewComboBoxColumn sentenceStatusCol;
|
||||
private Krypton.Toolkit.KryptonButton generaterMp3But;
|
||||
private DataGridViewTextBoxColumn bookPersonNameCol;
|
||||
private DataGridViewComboBoxColumn bookActorNameCol;
|
||||
}
|
||||
}
|
||||
@@ -103,6 +103,7 @@ namespace CloudBuilder.AI.Gui
|
||||
private void InitComBox()
|
||||
{
|
||||
statusCombo.SetDataSource(bookStatusPolicy.GetDataSource(), true);
|
||||
bookPersonGv.SetColumnDataSource(bookActorNameCol, SoVITSTtsVoicePolicy.GetInstance().GetComposeMessages(), true);
|
||||
}
|
||||
/// <summary>
|
||||
/// DataGridView分页控件初始化
|
||||
@@ -132,9 +133,11 @@ namespace CloudBuilder.AI.Gui
|
||||
authorTxt.Set(AiBookEntity.AUTHOR);
|
||||
bookTypeTxt.Set(AiBookEntity.BOOK_TYPE);
|
||||
filePathTxt.Set(AiBookData.FILE_NAME, EnumEditModeColor.ReadOnly);
|
||||
bookPersonNameCol.Set(EnumEditModeColor.ReadOnly);
|
||||
|
||||
dataGv.InitColumn(false, false);
|
||||
sentenceGv.InitColumn(true, false);
|
||||
bookPersonGv.InitColumn(true, false);
|
||||
|
||||
guiOperateHelper = new GuiOperateHelper();
|
||||
}
|
||||
@@ -285,6 +288,7 @@ namespace CloudBuilder.AI.Gui
|
||||
private void PackUIToEntity()
|
||||
{
|
||||
guiBindingContext.DataPack();
|
||||
data.AiBookPersons = bookPersonGv.GetUpdateRows<AiBookPersonEntity>();
|
||||
}
|
||||
|
||||
private bool SaveValidate()
|
||||
@@ -416,6 +420,7 @@ namespace CloudBuilder.AI.Gui
|
||||
private void PackEntityToUI()
|
||||
{
|
||||
guiBindingContext.DataBind(data.AiBook, this);
|
||||
bookPersonGv.SetDataSource(data.AiBookPersons);
|
||||
|
||||
filePathTxt.Text = data.FileName;
|
||||
|
||||
@@ -752,7 +757,7 @@ namespace CloudBuilder.AI.Gui
|
||||
|
||||
AiChapterEntity chapter = dataGv.GetRowData<AiChapterEntity>(dataGv.SelectedCells[0].RowIndex);
|
||||
|
||||
AiSentenceViewEntity[] aiSentences = aiSentenceRequest.FindByChapterId(chapter.ChapterId);
|
||||
AiSentenceViewEntity[] aiSentences = aiSentenceRequest.FindByChapterId(chapter.BookId, chapter.ChapterId);
|
||||
|
||||
sentenceGv.SetDataSource(aiSentences);
|
||||
}
|
||||
|
||||
@@ -135,6 +135,12 @@
|
||||
<metadata name="statusCol.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="bookPersonNameCol.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="bookActorNameCol.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="createBut.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
|
||||
Reference in new issue
Block a user