Mercurial > repos > IBDev-IBBoard.WarFoundry.GUI.WinForms
comparison FrmMain.cs @ 123:ff931ff5891c
Re #88: Complete initial WinForms UI
* Switch to new style menu (needs translation doing)
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 27 Feb 2010 21:01:52 +0000 |
parents | d2aa50d97377 |
children | 4acfce15b222 |
comparison
equal
deleted
inserted
replaced
122:0c118c2bdd61 | 123:ff931ff5891c |
---|---|
64 private IBBoard.Windows.Forms.IBBToolBarButton bttnOpenArmy; | 64 private IBBoard.Windows.Forms.IBBToolBarButton bttnOpenArmy; |
65 private IBBoard.Windows.Forms.IBBToolBarButton bttnSep1; | 65 private IBBoard.Windows.Forms.IBBToolBarButton bttnSep1; |
66 private IBBoard.Windows.Forms.IBBToolBarButton bttnUndo; | 66 private IBBoard.Windows.Forms.IBBToolBarButton bttnUndo; |
67 private IBBoard.Windows.Forms.IBBToolBarButton bttnRedo; | 67 private IBBoard.Windows.Forms.IBBToolBarButton bttnRedo; |
68 private System.Windows.Forms.MainMenu mainMenu; | 68 private System.Windows.Forms.MainMenu mainMenu; |
69 private IBBoard.Windows.Forms.IBBMenuItem menuFile; | |
70 private IBBoard.Windows.Forms.IBBMenuItem miNewArmy; | |
71 private IBBoard.Windows.Forms.IBBMenuItem miOpenArmy; | |
72 private IBBoard.Windows.Forms.IBBMenuItem miCloseArmy; | |
73 private IBBoard.Windows.Forms.IBBMenuItem miSaveArmy; | |
74 private IBBoard.Windows.Forms.IBBMenuItem miSaveArmyAs; | |
75 private System.Windows.Forms.MenuItem miSep2; | |
76 private IBBoard.Windows.Forms.IBBMenuItem miReloadFiles; | |
77 private System.Windows.Forms.MenuItem miSep3; | |
78 private IBBoard.Windows.Forms.IBBMenuItem miExit; | |
79 private IBBoard.Windows.Forms.IBBMenuItem menuEdit; | |
80 private IBBoard.Windows.Forms.IBBMenuItem miUndo; | |
81 private IBBoard.Windows.Forms.IBBMenuItem miRedo; | |
82 private IBBoard.Windows.Forms.IBBMenuItem menuHelp; | |
83 private IBBoard.Windows.Forms.IBBMenuItem miAbout; | |
84 private IBBoard.Windows.Forms.ColorableStatusBarPanel sbMainPanel; | 69 private IBBoard.Windows.Forms.ColorableStatusBarPanel sbMainPanel; |
85 private IBBoard.Windows.Forms.ColorableStatusBarPanel sbErrorPanel; | 70 private IBBoard.Windows.Forms.ColorableStatusBarPanel sbErrorPanel; |
86 private IBBoard.Windows.Forms.ColorableStatusBarPanel sbPointsPanel; | 71 private IBBoard.Windows.Forms.ColorableStatusBarPanel sbPointsPanel; |
87 private System.Windows.Forms.ContextMenu undoMenu; | 72 private System.Windows.Forms.ContextMenu undoMenu; |
88 private System.Windows.Forms.ContextMenu redoMenu; | 73 private System.Windows.Forms.ContextMenu redoMenu; |
89 private IBBoard.Windows.Forms.ColorableStatusBar statusBar; | 74 private IBBoard.Windows.Forms.ColorableStatusBar statusBar; |
90 private System.Windows.Forms.Timer statusBarTimer; | 75 private System.Windows.Forms.Timer statusBarTimer; |
91 private IBBoard.Windows.Forms.IBBMenuItem miExportArmyAs; | 76 private MenuStrip menuStrip1; |
92 private IBBoard.Windows.Forms.IBBMenuItem miExportArmyAsBasicHTML; | 77 private ToolStripMenuItem menuFile; |
93 private System.Windows.Forms.Panel pnlRight; | 78 private ToolStripMenuItem miNewArmy; |
79 private ToolStripMenuItem miOpenArmy; | |
80 private ToolStripMenuItem miSaveArmy; | |
81 private ToolStripMenuItem miSaveArmyAs; | |
82 private ToolStripMenuItem miExportArmyAs; | |
83 private ToolStripMenuItem miExportArmyAsBasicHTML; | |
84 private ToolStripMenuItem miCloseArmy; | |
85 private ToolStripSeparator toolStripSeparator1; | |
86 private ToolStripMenuItem miReloadFiles; | |
87 private ToolStripSeparator toolStripSeparator2; | |
88 private ToolStripMenuItem miExit; | |
89 private ToolStripMenuItem menuEdit; | |
90 private ToolStripMenuItem miUndo; | |
91 private ToolStripMenuItem miRedo; | |
92 private ToolStripMenuItem menuHelp; | |
93 private ToolStripMenuItem miAbout; | |
94 | 94 |
95 /// <summary> | 95 /// <summary> |
96 /// The main entry point for the application. | 96 /// The main entry point for the application. |
97 /// </summary> | 97 /// </summary> |
98 [STAThread] | 98 [STAThread] |
229 this.undoMenu = new System.Windows.Forms.ContextMenu(); | 229 this.undoMenu = new System.Windows.Forms.ContextMenu(); |
230 this.bttnRedo = new IBBoard.Windows.Forms.IBBToolBarButton(); | 230 this.bttnRedo = new IBBoard.Windows.Forms.IBBToolBarButton(); |
231 this.redoMenu = new System.Windows.Forms.ContextMenu(); | 231 this.redoMenu = new System.Windows.Forms.ContextMenu(); |
232 this.buttonIcons = new System.Windows.Forms.ImageList(this.components); | 232 this.buttonIcons = new System.Windows.Forms.ImageList(this.components); |
233 this.mainMenu = new System.Windows.Forms.MainMenu(this.components); | 233 this.mainMenu = new System.Windows.Forms.MainMenu(this.components); |
234 this.menuFile = new IBBoard.Windows.Forms.IBBMenuItem(); | |
235 this.miNewArmy = new IBBoard.Windows.Forms.IBBMenuItem(); | |
236 this.miOpenArmy = new IBBoard.Windows.Forms.IBBMenuItem(); | |
237 this.miSaveArmy = new IBBoard.Windows.Forms.IBBMenuItem(); | |
238 this.miSaveArmyAs = new IBBoard.Windows.Forms.IBBMenuItem(); | |
239 this.miExportArmyAs = new IBBoard.Windows.Forms.IBBMenuItem(); | |
240 this.miExportArmyAsBasicHTML = new IBBoard.Windows.Forms.IBBMenuItem(); | |
241 this.miCloseArmy = new IBBoard.Windows.Forms.IBBMenuItem(); | |
242 this.miSep2 = new System.Windows.Forms.MenuItem(); | |
243 this.miReloadFiles = new IBBoard.Windows.Forms.IBBMenuItem(); | |
244 this.miSep3 = new System.Windows.Forms.MenuItem(); | |
245 this.miExit = new IBBoard.Windows.Forms.IBBMenuItem(); | |
246 this.menuEdit = new IBBoard.Windows.Forms.IBBMenuItem(); | |
247 this.miUndo = new IBBoard.Windows.Forms.IBBMenuItem(); | |
248 this.miRedo = new IBBoard.Windows.Forms.IBBMenuItem(); | |
249 this.menuHelp = new IBBoard.Windows.Forms.IBBMenuItem(); | |
250 this.miAbout = new IBBoard.Windows.Forms.IBBMenuItem(); | |
251 this.openArmyDialog = new System.Windows.Forms.OpenFileDialog(); | 234 this.openArmyDialog = new System.Windows.Forms.OpenFileDialog(); |
252 this.saveArmyDialog = new System.Windows.Forms.SaveFileDialog(); | 235 this.saveArmyDialog = new System.Windows.Forms.SaveFileDialog(); |
253 this.pnlRight = new System.Windows.Forms.Panel(); | |
254 this.statusBarTimer = new System.Windows.Forms.Timer(this.components); | 236 this.statusBarTimer = new System.Windows.Forms.Timer(this.components); |
255 ((System.ComponentModel.ISupportInitialize) (this.sbMainPanel)).BeginInit(); | 237 this.menuStrip1 = new System.Windows.Forms.MenuStrip(); |
256 ((System.ComponentModel.ISupportInitialize) (this.sbErrorPanel)).BeginInit(); | 238 this.menuFile = new System.Windows.Forms.ToolStripMenuItem(); |
257 ((System.ComponentModel.ISupportInitialize) (this.sbPointsPanel)).BeginInit(); | 239 this.miNewArmy = new System.Windows.Forms.ToolStripMenuItem(); |
240 this.miOpenArmy = new System.Windows.Forms.ToolStripMenuItem(); | |
241 this.miSaveArmy = new System.Windows.Forms.ToolStripMenuItem(); | |
242 this.miSaveArmyAs = new System.Windows.Forms.ToolStripMenuItem(); | |
243 this.miExportArmyAs = new System.Windows.Forms.ToolStripMenuItem(); | |
244 this.miExportArmyAsBasicHTML = new System.Windows.Forms.ToolStripMenuItem(); | |
245 this.miCloseArmy = new System.Windows.Forms.ToolStripMenuItem(); | |
246 this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); | |
247 this.miReloadFiles = new System.Windows.Forms.ToolStripMenuItem(); | |
248 this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); | |
249 this.miExit = new System.Windows.Forms.ToolStripMenuItem(); | |
250 this.menuEdit = new System.Windows.Forms.ToolStripMenuItem(); | |
251 this.miUndo = new System.Windows.Forms.ToolStripMenuItem(); | |
252 this.miRedo = new System.Windows.Forms.ToolStripMenuItem(); | |
253 this.menuHelp = new System.Windows.Forms.ToolStripMenuItem(); | |
254 this.miAbout = new System.Windows.Forms.ToolStripMenuItem(); | |
255 ((System.ComponentModel.ISupportInitialize)(this.sbMainPanel)).BeginInit(); | |
256 ((System.ComponentModel.ISupportInitialize)(this.sbErrorPanel)).BeginInit(); | |
257 ((System.ComponentModel.ISupportInitialize)(this.sbPointsPanel)).BeginInit(); | |
258 this.menuStrip1.SuspendLayout(); | |
258 this.SuspendLayout(); | 259 this.SuspendLayout(); |
259 // | 260 // |
260 // statusBar | 261 // statusBar |
261 // | 262 // |
262 this.statusBar.Location = new System.Drawing.Point(0, 546); | 263 this.statusBar.Location = new System.Drawing.Point(0, 546); |
305 this.bttnUndo, | 306 this.bttnUndo, |
306 this.bttnRedo}); | 307 this.bttnRedo}); |
307 this.toolBar.ButtonSize = new System.Drawing.Size(16, 16); | 308 this.toolBar.ButtonSize = new System.Drawing.Size(16, 16); |
308 this.toolBar.DropDownArrows = true; | 309 this.toolBar.DropDownArrows = true; |
309 this.toolBar.ImageList = this.buttonIcons; | 310 this.toolBar.ImageList = this.buttonIcons; |
310 this.toolBar.Location = new System.Drawing.Point(0, 0); | 311 this.toolBar.Location = new System.Drawing.Point(0, 24); |
311 this.toolBar.Name = "toolBar"; | 312 this.toolBar.Name = "toolBar"; |
312 this.toolBar.ShowToolTips = true; | 313 this.toolBar.ShowToolTips = true; |
313 this.toolBar.Size = new System.Drawing.Size(790, 28); | 314 this.toolBar.Size = new System.Drawing.Size(790, 28); |
314 this.toolBar.TabIndex = 2; | 315 this.toolBar.TabIndex = 2; |
315 this.toolBar.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar_ButtonClick); | 316 this.toolBar.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar_ButtonClick); |
351 this.bttnRedo.Name = "bttnRedo"; | 352 this.bttnRedo.Name = "bttnRedo"; |
352 this.bttnRedo.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton; | 353 this.bttnRedo.Style = System.Windows.Forms.ToolBarButtonStyle.DropDownButton; |
353 // | 354 // |
354 // buttonIcons | 355 // buttonIcons |
355 // | 356 // |
356 this.buttonIcons.ImageStream = ((System.Windows.Forms.ImageListStreamer) (resources.GetObject("buttonIcons.ImageStream"))); | 357 this.buttonIcons.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("buttonIcons.ImageStream"))); |
357 this.buttonIcons.TransparentColor = System.Drawing.Color.Transparent; | 358 this.buttonIcons.TransparentColor = System.Drawing.Color.Transparent; |
358 this.buttonIcons.Images.SetKeyName(0, ""); | 359 this.buttonIcons.Images.SetKeyName(0, ""); |
359 this.buttonIcons.Images.SetKeyName(1, ""); | 360 this.buttonIcons.Images.SetKeyName(1, ""); |
360 this.buttonIcons.Images.SetKeyName(2, ""); | 361 this.buttonIcons.Images.SetKeyName(2, ""); |
361 this.buttonIcons.Images.SetKeyName(3, ""); | 362 this.buttonIcons.Images.SetKeyName(3, ""); |
362 this.buttonIcons.Images.SetKeyName(4, ""); | 363 this.buttonIcons.Images.SetKeyName(4, ""); |
363 this.buttonIcons.Images.SetKeyName(5, ""); | 364 this.buttonIcons.Images.SetKeyName(5, ""); |
364 this.buttonIcons.Images.SetKeyName(6, ""); | 365 this.buttonIcons.Images.SetKeyName(6, ""); |
365 // | 366 // |
366 // mainMenu | 367 // saveArmyDialog |
367 // | 368 // |
368 this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { | 369 this.saveArmyDialog.Title = "Translatable:saveArmyDialog"; |
370 // | |
371 // statusBarTimer | |
372 // | |
373 this.statusBarTimer.Interval = 5000; | |
374 this.statusBarTimer.Tick += new System.EventHandler(this.statusBarTimer_Tick); | |
375 // | |
376 // menuStrip1 | |
377 // | |
378 this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { | |
369 this.menuFile, | 379 this.menuFile, |
370 this.menuEdit, | 380 this.menuEdit, |
371 this.menuHelp}); | 381 this.menuHelp}); |
382 this.menuStrip1.Location = new System.Drawing.Point(0, 0); | |
383 this.menuStrip1.Name = "menuStrip1"; | |
384 this.menuStrip1.Size = new System.Drawing.Size(790, 24); | |
385 this.menuStrip1.TabIndex = 6; | |
386 this.menuStrip1.Text = "menuStrip1"; | |
372 // | 387 // |
373 // menuFile | 388 // menuFile |
374 // | 389 // |
375 this.menuFile.Index = 0; | 390 this.menuFile.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { |
376 this.menuFile.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { | |
377 this.miNewArmy, | 391 this.miNewArmy, |
378 this.miOpenArmy, | 392 this.miOpenArmy, |
379 this.miSaveArmy, | 393 this.miSaveArmy, |
380 this.miSaveArmyAs, | 394 this.miSaveArmyAs, |
381 this.miExportArmyAs, | 395 this.miExportArmyAs, |
382 this.miCloseArmy, | 396 this.miCloseArmy, |
383 this.miSep2, | 397 this.toolStripSeparator1, |
384 this.miReloadFiles, | 398 this.miReloadFiles, |
385 this.miSep3, | 399 this.toolStripSeparator2, |
386 this.miExit}); | 400 this.miExit}); |
401 this.menuFile.Name = "menuFile"; | |
402 this.menuFile.Size = new System.Drawing.Size(33, 20); | |
387 this.menuFile.Text = "&file"; | 403 this.menuFile.Text = "&file"; |
388 this.menuFile.Name = "menuFile"; | |
389 // | 404 // |
390 // miNewArmy | 405 // miNewArmy |
391 // | 406 // |
392 this.miNewArmy.Index = 0; | 407 this.miNewArmy.Name = "miNewArmy"; |
408 this.miNewArmy.Size = new System.Drawing.Size(164, 22); | |
393 this.miNewArmy.Text = "&new army"; | 409 this.miNewArmy.Text = "&new army"; |
394 this.miNewArmy.Click += new System.EventHandler(this.miNewArmy_Click); | 410 this.miNewArmy.Click += new System.EventHandler(this.miNewArmy_Click); |
395 this.miNewArmy.Name = "miNewArmy"; | |
396 // | 411 // |
397 // miOpenArmy | 412 // miOpenArmy |
398 // | 413 // |
399 this.miOpenArmy.Index = 1; | 414 this.miOpenArmy.Name = "miOpenArmy"; |
415 this.miOpenArmy.Size = new System.Drawing.Size(164, 22); | |
400 this.miOpenArmy.Text = "&open army"; | 416 this.miOpenArmy.Text = "&open army"; |
401 this.miOpenArmy.Click += new System.EventHandler(this.miOpenArmy_Click); | 417 this.miOpenArmy.Click += new System.EventHandler(this.miOpenArmy_Click); |
402 this.miOpenArmy.Name = "miOpenArmy"; | |
403 // | 418 // |
404 // miSaveArmy | 419 // miSaveArmy |
405 // | 420 // |
406 this.miSaveArmy.Enabled = false; | 421 this.miSaveArmy.Enabled = false; |
407 this.miSaveArmy.Index = 2; | 422 this.miSaveArmy.Name = "miSaveArmy"; |
423 this.miSaveArmy.Size = new System.Drawing.Size(164, 22); | |
408 this.miSaveArmy.Text = "&save army"; | 424 this.miSaveArmy.Text = "&save army"; |
409 this.miSaveArmy.Click += new System.EventHandler(this.miSaveArmy_Click); | 425 this.miSaveArmy.Click += new System.EventHandler(this.miSaveArmy_Click); |
410 this.miSaveArmy.Name = "miSaveArmy"; | |
411 // | 426 // |
412 // miSaveArmyAs | 427 // miSaveArmyAs |
413 // | 428 // |
414 this.miSaveArmyAs.Enabled = false; | 429 this.miSaveArmyAs.Enabled = false; |
415 this.miSaveArmyAs.Index = 3; | 430 this.miSaveArmyAs.Name = "miSaveArmyAs"; |
431 this.miSaveArmyAs.Size = new System.Drawing.Size(164, 22); | |
416 this.miSaveArmyAs.Text = "save army &as..."; | 432 this.miSaveArmyAs.Text = "save army &as..."; |
417 this.miSaveArmyAs.Click += new System.EventHandler(this.miSaveArmyAs_Click); | 433 this.miSaveArmyAs.Click += new System.EventHandler(this.miSaveArmyAs_Click); |
418 this.miSaveArmyAs.Name = "miSaveArmyAs"; | |
419 // | 434 // |
420 // miExportArmyAs | 435 // miExportArmyAs |
421 // | 436 // |
437 this.miExportArmyAs.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { | |
438 this.miExportArmyAsBasicHTML}); | |
422 this.miExportArmyAs.Enabled = false; | 439 this.miExportArmyAs.Enabled = false; |
423 this.miExportArmyAs.Index = 4; | 440 this.miExportArmyAs.Name = "miExportArmyAs"; |
424 this.miExportArmyAs.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { | 441 this.miExportArmyAs.Size = new System.Drawing.Size(164, 22); |
425 this.miExportArmyAsBasicHTML}); | |
426 this.miExportArmyAs.Text = "export army as..."; | 442 this.miExportArmyAs.Text = "export army as..."; |
427 this.miExportArmyAs.Name = "miExportArmyAs"; | |
428 // | 443 // |
429 // miExportArmyAsBasicHTML | 444 // miExportArmyAsBasicHTML |
430 // | 445 // |
431 this.miExportArmyAsBasicHTML.Index = 0; | 446 this.miExportArmyAsBasicHTML.Name = "miExportArmyAsBasicHTML"; |
432 this.miExportArmyAsBasicHTML.Text = "basic html"; | 447 this.miExportArmyAsBasicHTML.Size = new System.Drawing.Size(152, 22); |
448 this.miExportArmyAsBasicHTML.Text = "&basic html"; | |
433 this.miExportArmyAsBasicHTML.Click += new System.EventHandler(this.miExportArmyAsBasicHTML_Click); | 449 this.miExportArmyAsBasicHTML.Click += new System.EventHandler(this.miExportArmyAsBasicHTML_Click); |
434 this.miExportArmyAsBasicHTML.Name = "miExportArmyAsBasicHTML"; | |
435 // | 450 // |
436 // miCloseArmy | 451 // miCloseArmy |
437 // | 452 // |
438 this.miCloseArmy.Enabled = false; | 453 this.miCloseArmy.Enabled = false; |
439 this.miCloseArmy.Index = 5; | 454 this.miCloseArmy.Name = "miCloseArmy"; |
455 this.miCloseArmy.Size = new System.Drawing.Size(164, 22); | |
440 this.miCloseArmy.Text = "&close army"; | 456 this.miCloseArmy.Text = "&close army"; |
441 this.miCloseArmy.Click += new System.EventHandler(this.miCloseArmy_Click); | 457 this.miCloseArmy.Click += new System.EventHandler(this.miCloseArmy_Click); |
442 this.miCloseArmy.Name = "miCloseArmy"; | 458 // |
443 // | 459 // toolStripSeparator1 |
444 // miSep2 | 460 // |
445 // | 461 this.toolStripSeparator1.Name = "toolStripSeparator1"; |
446 this.miSep2.Index = 6; | 462 this.toolStripSeparator1.Size = new System.Drawing.Size(161, 6); |
447 this.miSep2.Text = "-"; | |
448 // | 463 // |
449 // miReloadFiles | 464 // miReloadFiles |
450 // | 465 // |
451 this.miReloadFiles.Index = 7; | 466 this.miReloadFiles.Name = "miReloadFiles"; |
467 this.miReloadFiles.Size = new System.Drawing.Size(164, 22); | |
452 this.miReloadFiles.Text = "&reload files"; | 468 this.miReloadFiles.Text = "&reload files"; |
453 this.miReloadFiles.Click += new System.EventHandler(this.miReloadFiles_Click); | 469 this.miReloadFiles.Click += new System.EventHandler(this.miReloadFiles_Click); |
454 this.miReloadFiles.Name = "miReloadFiles"; | 470 // |
455 // | 471 // toolStripSeparator2 |
456 // miSep3 | 472 // |
457 // | 473 this.toolStripSeparator2.Name = "toolStripSeparator2"; |
458 this.miSep3.Index = 8; | 474 this.toolStripSeparator2.Size = new System.Drawing.Size(161, 6); |
459 this.miSep3.Text = "-"; | |
460 // | 475 // |
461 // miExit | 476 // miExit |
462 // | 477 // |
463 this.miExit.Index = 9; | 478 this.miExit.Name = "miExit"; |
479 this.miExit.Size = new System.Drawing.Size(164, 22); | |
464 this.miExit.Text = "e&xit"; | 480 this.miExit.Text = "e&xit"; |
465 this.miExit.Click += new System.EventHandler(this.miExit_Click); | 481 this.miExit.Click += new System.EventHandler(this.miExit_Click); |
466 this.miExit.Name = "miExit"; | |
467 // | 482 // |
468 // menuEdit | 483 // menuEdit |
469 // | 484 // |
470 this.menuEdit.Index = 1; | 485 this.menuEdit.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { |
471 this.menuEdit.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { | |
472 this.miUndo, | 486 this.miUndo, |
473 this.miRedo}); | 487 this.miRedo}); |
488 this.menuEdit.Name = "menuEdit"; | |
489 this.menuEdit.Size = new System.Drawing.Size(36, 20); | |
474 this.menuEdit.Text = "&edit"; | 490 this.menuEdit.Text = "&edit"; |
475 this.menuEdit.Name = "menuEdit"; | |
476 // | 491 // |
477 // miUndo | 492 // miUndo |
478 // | 493 // |
479 this.miUndo.Enabled = false; | 494 this.miUndo.Enabled = false; |
480 this.miUndo.Index = 0; | 495 this.miUndo.Name = "miUndo"; |
496 this.miUndo.Size = new System.Drawing.Size(152, 22); | |
481 this.miUndo.Text = "&undo"; | 497 this.miUndo.Text = "&undo"; |
482 this.miUndo.Click += new System.EventHandler(this.miUndo_Click); | 498 this.miUndo.Click += new System.EventHandler(this.miUndo_Click); |
483 this.miUndo.Name = "miUndo"; | |
484 // | 499 // |
485 // miRedo | 500 // miRedo |
486 // | 501 // |
487 this.miRedo.Enabled = false; | 502 this.miRedo.Enabled = false; |
488 this.miRedo.Index = 1; | 503 this.miRedo.Name = "miRedo"; |
504 this.miRedo.Size = new System.Drawing.Size(152, 22); | |
489 this.miRedo.Text = "&redo"; | 505 this.miRedo.Text = "&redo"; |
490 this.miRedo.Click += new System.EventHandler(this.miRedo_Click); | 506 this.miRedo.Click += new System.EventHandler(this.miRedo_Click); |
491 this.miRedo.Name = "miRedo"; | |
492 // | 507 // |
493 // menuHelp | 508 // menuHelp |
494 // | 509 // |
495 this.menuHelp.Index = 2; | 510 this.menuHelp.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { |
496 this.menuHelp.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { | |
497 this.miAbout}); | 511 this.miAbout}); |
512 this.menuHelp.Name = "menuHelp"; | |
513 this.menuHelp.Size = new System.Drawing.Size(39, 20); | |
498 this.menuHelp.Text = "&help"; | 514 this.menuHelp.Text = "&help"; |
499 this.menuHelp.Name = "menuHelp"; | |
500 // | 515 // |
501 // miAbout | 516 // miAbout |
502 // | 517 // |
503 this.miAbout.Index = 0; | 518 this.miAbout.Name = "miAbout"; |
519 this.miAbout.Size = new System.Drawing.Size(152, 22); | |
504 this.miAbout.Text = "&about"; | 520 this.miAbout.Text = "&about"; |
505 this.miAbout.Name = "miAbout"; | |
506 this.miAbout.Click += new System.EventHandler(this.miAbout_Click); | 521 this.miAbout.Click += new System.EventHandler(this.miAbout_Click); |
507 // | |
508 // saveArmyDialog | |
509 // | |
510 this.saveArmyDialog.Title = "Translatable:saveArmyDialog"; | |
511 // | |
512 // pnlRight | |
513 // | |
514 this.pnlRight.Anchor = ((System.Windows.Forms.AnchorStyles) (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | |
515 | System.Windows.Forms.AnchorStyles.Right))); | |
516 this.pnlRight.BackColor = System.Drawing.SystemColors.AppWorkspace; | |
517 this.pnlRight.Location = new System.Drawing.Point(724, 30); | |
518 this.pnlRight.Name = "pnlRight"; | |
519 this.pnlRight.Size = new System.Drawing.Size(64, 514); | |
520 this.pnlRight.TabIndex = 4; | |
521 this.pnlRight.Visible = false; | |
522 this.pnlRight.Paint += new System.Windows.Forms.PaintEventHandler(this.pnlRight_Paint); | |
523 // | |
524 // statusBarTimer | |
525 // | |
526 this.statusBarTimer.Interval = 5000; | |
527 this.statusBarTimer.Tick += new System.EventHandler(this.statusBarTimer_Tick); | |
528 // | 522 // |
529 // FrmMain | 523 // FrmMain |
530 // | 524 // |
531 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); | 525 this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); |
532 this.ClientSize = new System.Drawing.Size(790, 568); | 526 this.ClientSize = new System.Drawing.Size(790, 568); |
533 this.Controls.Add(this.pnlRight); | |
534 this.Controls.Add(this.toolBar); | 527 this.Controls.Add(this.toolBar); |
535 this.Controls.Add(this.statusBar); | 528 this.Controls.Add(this.statusBar); |
536 this.Icon = ((System.Drawing.Icon) (resources.GetObject("$this.Icon"))); | 529 this.Controls.Add(this.menuStrip1); |
530 this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); | |
537 this.IsMdiContainer = true; | 531 this.IsMdiContainer = true; |
532 this.MainMenuStrip = this.menuStrip1; | |
538 this.Menu = this.mainMenu; | 533 this.Menu = this.mainMenu; |
539 this.Name = "FrmMain"; | 534 this.Name = "FrmMain"; |
540 this.Text = "WarFoundry"; | 535 this.Text = "WarFoundry"; |
541 this.Load += new System.EventHandler(this.FrmMain_Load); | 536 this.Load += new System.EventHandler(this.FrmMain_Load); |
542 ((System.ComponentModel.ISupportInitialize) (this.sbMainPanel)).EndInit(); | 537 ((System.ComponentModel.ISupportInitialize)(this.sbMainPanel)).EndInit(); |
543 ((System.ComponentModel.ISupportInitialize) (this.sbErrorPanel)).EndInit(); | 538 ((System.ComponentModel.ISupportInitialize)(this.sbErrorPanel)).EndInit(); |
544 ((System.ComponentModel.ISupportInitialize) (this.sbPointsPanel)).EndInit(); | 539 ((System.ComponentModel.ISupportInitialize)(this.sbPointsPanel)).EndInit(); |
540 this.menuStrip1.ResumeLayout(false); | |
541 this.menuStrip1.PerformLayout(); | |
545 this.ResumeLayout(false); | 542 this.ResumeLayout(false); |
546 this.PerformLayout(); | 543 this.PerformLayout(); |
547 | 544 |
548 } | 545 } |
549 #endregion | 546 #endregion |
1194 { | 1191 { |
1195 pnlRight.Visible = false; | 1192 pnlRight.Visible = false; |
1196 } | 1193 } |
1197 }*/ | 1194 }*/ |
1198 | 1195 |
1199 public void pnlRight_Paint(object sender, System.Windows.Forms.PaintEventArgs e) | |
1200 { | |
1201 HatchBrush dockCueBrush = new HatchBrush(HatchStyle.LightDownwardDiagonal, Color.White, Color.Gray); | |
1202 Pen dockCuePen = new Pen(dockCueBrush, 10); | |
1203 e.Graphics.DrawRectangle(dockCuePen, new Rectangle(pnlRight.Left, pnlRight.Top, pnlRight.Width, pnlRight.Height)); | |
1204 } | |
1205 | |
1206 private void miUndo_Click(object sender, System.EventArgs e) | 1196 private void miUndo_Click(object sender, System.EventArgs e) |
1207 { | 1197 { |
1208 UndoLastAction(); | 1198 UndoLastAction(); |
1209 } | 1199 } |
1210 | 1200 |