• R/O
  • SSH
  • HTTPS

kotoli: Commit


Commit MetaInfo

Revision221 (tree)
Time2011-01-19 22:32:57
Authorsiotsu

Log Message

変更)検索条件編集画面を修正(OK/Cancel)

Change Summary

Incremental Difference

--- branches/experimental/1e/Kotoli/KotoliForm.cs (revision 220)
+++ branches/experimental/1e/Kotoli/KotoliForm.cs (revision 221)
@@ -179,6 +179,7 @@
179179 // Formを作成
180180 Form searchForm = new Form();
181181 Panel rootPanel = new Panel();
182+ SearchDecisionPanel dicisionPanel = new SearchDecisionPanel();
182183 rootPanel.Height = 0;
183184 rootPanel.Tag = "RootPanel";
184185
@@ -192,7 +193,7 @@
192193 date > 2010/08/05
193194 }
194195 }");
195-
196+
196197 // UIをQueryTreeから作成
197198 CreateSearchPanel(q, rootPanel);
198199
@@ -202,11 +203,14 @@
202203 // Formに追加
203204 searchForm.Controls.Add(rootPanel);
204205
206+ // OK/Cancelボタンを追加
207+ searchForm.Controls.Add(dicisionPanel);
208+
205209 // 高さ、幅、座標を計算
206210 SetPanelHeight(rootPanel, 0);
207211
208212 // Formのサイズを更新
209- searchForm.Size = new Size(rootPanel.Width, rootPanel.Height);
213+ searchForm.Size = new Size(rootPanel.Width, rootPanel.Height + dicisionPanel.Height);
210214
211215 // 戻す
212216 this.ResumeLayout();
@@ -232,7 +236,6 @@
232236 else
233237 {
234238 UserControl qPanel = new QueryPanel();
235- //qPanel.Tag = queryNode.ToString();
236239 parent.Controls.Add(qPanel);
237240 }
238241
@@ -276,12 +279,10 @@
276279
277280 tabIndex++;
278281
279- //MessageBox.Show("Parent Height : " + parent.Height + "\n" + panelType + " Height : " + c.Height);
280282 }
281283 else // container以外のパネルの場合
282284 {
283285 // QueryPanelの場合
284- //MessageBox.Show("Parent Height : " + parent.Height + "\n" + panelType + " Height : " + c.Height);
285286 parent.Height += c.Height + Indent;
286287 parent.Width = c.Width;
287288
--- branches/experimental/1e/Kotoli/ContainerPanel.Designer.cs (revision 220)
+++ branches/experimental/1e/Kotoli/ContainerPanel.Designer.cs (revision 221)
@@ -54,6 +54,7 @@
5454 //
5555 this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
5656 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
57+ this.BackColor = System.Drawing.Color.Transparent;
5758 this.Controls.Add(this.TopPanel);
5859 this.Name = "ContainerPanel";
5960 this.Size = new System.Drawing.Size(518, 64);
--- branches/experimental/1e/Kotoli/QueryPanel.Designer.cs (revision 220)
+++ branches/experimental/1e/Kotoli/QueryPanel.Designer.cs (revision 221)
@@ -88,6 +88,7 @@
8888 //
8989 this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
9090 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
91+ this.BackColor = System.Drawing.Color.Transparent;
9192 this.Controls.Add(this.detailButton);
9293 this.Controls.Add(this.removeButton);
9394 this.Controls.Add(this.addButton);
Show on old repository browser