1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790
|
/*
* FormShortcutKeys.cs
* Copyright © 2009-2011 kbinani
*
* This file is part of org.kbinani.cadencii.
*
* org.kbinani.cadencii is free software; you can redistribute it and/or
* modify it under the terms of the GPLv3 License.
*
* org.kbinani.cadencii is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#if JAVA
package org.kbinani.cadencii;
//INCLUDE-SECTION IMPORT ../BuildJavaUI/src/org/kbinani/cadencii/FormShortcutKeys.java
import java.awt.event.*;
import java.util.*;
import javax.swing.*;
import org.kbinani.*;
import org.kbinani.apputil.*;
import org.kbinani.windows.forms.*;
#else
using System;
using System.Windows.Forms;
using org.kbinani.apputil;
using org.kbinani;
using org.kbinani.java.awt.event_;
using org.kbinani.java.util;
using org.kbinani.javax.swing;
using org.kbinani.windows.forms;
namespace org.kbinani.cadencii
{
using BEventArgs = System.EventArgs;
using BFormClosingEventArgs = System.Windows.Forms.FormClosingEventArgs;
using BKeyEventArgs = System.Windows.Forms.KeyEventArgs;
using BEventHandler = System.EventHandler;
using boolean = System.Boolean;
using BPreviewKeyDownEventArgs = System.Windows.Forms.PreviewKeyDownEventArgs;
using BFormClosingEventHandler = System.Windows.Forms.FormClosingEventHandler;
using BKeyEventHandler = System.Windows.Forms.KeyEventHandler;
using java = org.kbinani.java;
#endif
#if JAVA
public class FormShortcutKeys extends BDialog {
#else
public class FormShortcutKeys : BDialog
{
#endif
/// <summary>
/// カテゴリーのリスト
/// </summary>
private static readonly String[] mCategories = new String[]{
"menuFile", "menuEdit", "menuVisual", "menuJob", "menuLyric", "menuTrack",
"menuScript", "menuSetting", "menuHelp", ".other" };
private static int mColumnWidthCommand = 272;
private static int mColumnWidthShortcutKey = 177;
private static int mWindowWidth = 541;
private static int mWindowHeight = 572;
private TreeMap<String, ValuePair<String, BKeys[]>> mDict;
private TreeMap<String, ValuePair<String, BKeys[]>> mFirstDict;
private Vector<String> mFieldName = new Vector<String>();
private FormMain mMainForm = null;
/// <summary>
/// コンストラクタ
/// </summary>
/// <param name="dict">メニューアイテムの表示文字列をキーとする,メニューアイテムのフィールド名とショートカットキーのペアを格納したマップ</param>
public FormShortcutKeys( TreeMap<String, ValuePair<String, BKeys[]>> dict, FormMain main_form )
{
#if JAVA
super();
#endif
try {
#if JAVA
initialize();
#else
InitializeComponent();
#endif
} catch ( Exception ex ) {
#if DEBUG
serr.println( "FormShortcutKeys#.ctor; ex=" + ex );
#endif
}
#if DEBUG
sout.println( "FormShortcutKeys#.ctor; dict.size()=" + dict.size() );
sout.println( "FormShortcutKeys#.ctor; mColumnWidthCommand=" + mColumnWidthCommand + "; mColumnWidthShortcutKey=" + mColumnWidthShortcutKey );
#endif
mMainForm = main_form;
list.setColumnHeaders( new String[] { _( "Command" ), _( "Shortcut Key" ) } );
list.setColumnWidth( 0, mColumnWidthCommand );
list.setColumnWidth( 1, mColumnWidthShortcutKey );
applyLanguage();
setResources();
mDict = dict;
comboCategory.setSelectedIndex( 0 );
mFirstDict = new TreeMap<String, ValuePair<String, BKeys[]>>();
copyDict( mDict, mFirstDict );
comboEditKey.removeAllItems();
comboEditKey.addItem( BKeys.None );
// アルファベット順になるように一度配列に入れて並べ替える
int size = AppManager.SHORTCUT_ACCEPTABLE.size();
BKeys[] keys = new BKeys[size];
for ( int i = 0; i < size; i++ ){
keys[i] = AppManager.SHORTCUT_ACCEPTABLE.get( i );
}
boolean changed = true;
while( changed ){
changed = false;
for( int i = 0; i < size - 1; i++ ){
for( int j = i + 1; j < size; j++ ){
String itemi = keys[i] + "";
String itemj = keys[j] + "";
#if JAVA
if( itemi.compareTo( itemj ) > 0 ){
#else
if( itemi.CompareTo( itemj ) > 0 ){
#endif
BKeys t = keys[i];
keys[i] = keys[j];
keys[j] = t;
changed = true;
}
}
}
}
foreach( BKeys key in keys ){
comboEditKey.addItem( key );
}
this.setSize( mWindowWidth, mWindowHeight );
registerEventHandlers();
updateList();
Util.applyFontRecurse( this, AppManager.editorConfig.getBaseFont() );
}
#region public methods
public void applyLanguage()
{
setTitle( _( "Shortcut Config" ) );
btnOK.setText( _( "OK" ) );
btnCancel.setText( _( "Cancel" ) );
btnRevert.setText( _( "Revert" ) );
btnLoadDefault.setText( _( "Load Default" ) );
list.setColumnHeaders( new String[] { _( "Command" ), _( "Shortcut Key" ) } );
labelCategory.setText( _( "Category" ) );
int selected = comboCategory.getSelectedIndex();
comboCategory.removeAllItems();
foreach ( String category in mCategories ) {
String c = category;
if ( str.compare( category, "menuFile" ) ) {
c = _( "File" );
} else if ( str.compare( category, "menuEdit" ) ) {
c = _( "Edit" );
} else if ( str.compare( category, "menuVisual" ) ) {
c = _( "Visual" );
} else if ( str.compare( category, "menuJob" ) ) {
c = _( "Job" );
} else if ( str.compare( category, "menuLyric" ) ) {
c = _( "Lyric" );
} else if ( str.compare( category, "menuTrack" ) ) {
c = _( "Track" );
} else if ( str.compare( category, "menuScript" ) ) {
c = _( "Script" );
} else if ( str.compare( category, "menuSetting" ) ){
c = _( "Setting" );
} else if ( str.compare( category, "menuHelp" ) ) {
c = _( "Help" );
} else {
c = _( "Other" );
}
comboCategory.addItem( c );
}
if ( comboCategory.getItemCount() <= selected ) {
selected = comboCategory.getItemCount() - 1;
}
comboCategory.setSelectedIndex( selected );
labelCommand.setText( _( "Command" ) );
labelEdit.setText( _( "Edit" ) );
labelEditKey.setText( _( "Key:" ) );
labelEditModifier.setText( _( "Modifier:" ) );
}
public TreeMap<String, ValuePair<String, BKeys[]>> getResult()
{
TreeMap<String, ValuePair<String, BKeys[]>> ret = new TreeMap<String, ValuePair<String, BKeys[]>>();
copyDict( mDict, ret );
return ret;
}
#endregion
#region helper methods
private static String _( String id )
{
return Messaging.getMessage( id );
}
private static void copyDict( TreeMap<String, ValuePair<String, BKeys[]>> src, TreeMap<String, ValuePair<String, BKeys[]>> dest )
{
dest.clear();
for ( Iterator<String> itr = src.keySet().iterator(); itr.hasNext(); ) {
String name = itr.next();
String key = src.get( name ).getKey();
BKeys[] values = src.get( name ).getValue();
Vector<BKeys> cp = new Vector<BKeys>();
foreach ( BKeys k in values ) {
cp.add( k );
}
dest.put( name, new ValuePair<String, BKeys[]>( key, cp.toArray( new BKeys[] { } ) ) );
}
}
/// <summary>
/// リストを更新します
/// </summary>
private void updateList()
{
list.SelectedIndexChanged -= new BEventHandler( list_SelectedIndexChanged );
list.clear();
list.SelectedIndexChanged += new BEventHandler( list_SelectedIndexChanged );
mFieldName.clear();
// 現在のカテゴリーを取得
int selected = comboCategory.getSelectedIndex();
if ( selected < 0 ) {
selected = 0;
}
String category = mCategories[selected];
// 現在のカテゴリーに合致するものについてのみ,リストに追加
for ( Iterator<String> itr = mDict.keySet().iterator(); itr.hasNext(); ) {
String display = itr.next();
ValuePair<String, BKeys[]> item = mDict.get( display );
String field_name = item.getKey();
BKeys[] keys = item.getValue();
boolean add_this_one = false;
if ( str.compare( category, ".other" ) ) {
add_this_one = true;
for ( int i = 0; i < mCategories.Length; i++ ) {
String c = mCategories[i];
if ( str.compare( c, ".other" ) ) {
continue;
}
if ( str.startsWith( field_name, c ) ) {
add_this_one = false;
break;
}
}
} else {
if ( str.startsWith( field_name, category ) ) {
add_this_one = true;
}
}
if ( add_this_one ) {
list.addRow( new String[] { display, Utility.getShortcutDisplayString( keys ) } );
mFieldName.add( field_name );
}
}
updateColor();
//applyLanguage();
}
/// <summary>
/// リストアイテムの背景色を更新します.
/// 2つ以上のメニューに対して同じショートカットが割り当てられた場合に警告色で表示する.
/// </summary>
private void updateColor()
{
int size = list.getItemCountRow();
for ( int i = 0; i < size; i++ ) {
//BListViewItem list_item = list.getItemAt( i );
String field_name = mFieldName.get( i );
String key_display = list.getItemAt( i, 1 );
if ( str.compare( key_display, "" ) ){
// ショートカットキーが割り当てられていないのでスルー
list.setRowBackColor( i, java.awt.Color.white );
continue;
}
boolean found = false;
for ( Iterator<String> itr = mDict.keySet().iterator(); itr.hasNext(); ) {
String display1 = itr.next();
ValuePair<String, BKeys[]> item1 = mDict.get( display1 );
String field_name1 = item1.getKey();
if ( str.compare( field_name, field_name1 ) ) {
// 自分自身なのでスルー
continue;
}
BKeys[] keys1 = item1.getValue();
String key_display1 = Utility.getShortcutDisplayString( keys1 );
if ( str.compare( key_display, key_display1 ) ) {
// 同じキーが割り当てられてる!!
found = true;
break;
}
}
// 背景色を変える
if ( found ) {
list.setRowBackColor( i, java.awt.Color.yellow );
} else {
list.setRowBackColor( i, java.awt.Color.white );
}
}
}
private void registerEventHandlers()
{
//this.list.KeyDown += new BKeyEventHandler( list_KeyDown );
btnLoadDefault.Click += new BEventHandler( btnLoadDefault_Click );
btnRevert.Click += new BEventHandler( btnRevert_Click );
this.FormClosing += new BFormClosingEventHandler( FormShortcutKeys_FormClosing );
btnOK.Click += new BEventHandler( btnOK_Click );
btnCancel.Click += new BEventHandler( btnCancel_Click );
comboCategory.SelectedIndexChanged += new BEventHandler( comboCategory_SelectedIndexChanged );
list.SelectedIndexChanged += new BEventHandler( list_SelectedIndexChanged );
this.SizeChanged += new BEventHandler( FormShortcutKeys_SizeChanged );
reRegisterHandlers();
}
private void unRegisterHandlers()
{
comboEditKey.SelectedIndexChanged -= new BEventHandler( comboEditKey_SelectedIndexChanged );
checkCommand.CheckedChanged -= new BEventHandler( handleModifier_CheckedChanged );
checkShift.CheckedChanged -= new BEventHandler( handleModifier_CheckedChanged );
checkControl.CheckedChanged -= new BEventHandler( handleModifier_CheckedChanged );
checkOption.CheckedChanged -= new BEventHandler( handleModifier_CheckedChanged );
}
private void reRegisterHandlers()
{
comboEditKey.SelectedIndexChanged += new BEventHandler( comboEditKey_SelectedIndexChanged );
checkCommand.CheckedChanged += new BEventHandler( handleModifier_CheckedChanged );
checkShift.CheckedChanged += new BEventHandler( handleModifier_CheckedChanged );
checkControl.CheckedChanged += new BEventHandler( handleModifier_CheckedChanged );
checkOption.CheckedChanged += new BEventHandler( handleModifier_CheckedChanged );
}
private void setResources()
{
}
#endregion
#region event handlers
public void FormShortcutKeys_SizeChanged( Object sender, BEventArgs e )
{
mWindowWidth = getWidth();
mWindowHeight = getHeight();
}
public void handleModifier_CheckedChanged( Object sender, BEventArgs e )
{
updateSelectionKeys();
}
public void comboEditKey_SelectedIndexChanged( Object sender, BEventArgs e )
{
updateSelectionKeys();
}
/// <summary>
/// 現在選択中のコマンドのショートカットキーを,comboEditKey,
/// checkCommand, checkShift, checkControl, checkControlの状態にあわせて変更します.
/// </summary>
private void updateSelectionKeys()
{
int indx = comboEditKey.getSelectedIndex();
if( indx < 0 ){
return;
}
int indx_row = list.getSelectedRow();
if( indx_row < 0 ){
return;
}
BKeys key = (BKeys)comboEditKey.getItemAt( indx );
String display = list.getItemAt( indx_row, 0 );
if ( !mDict.containsKey( display ) ) {
return;
}
Vector<BKeys> capturelist = new Vector<BKeys>();
if( key != BKeys.None ){
capturelist.add( key );
if( checkCommand.isSelected() ){
capturelist.add( BKeys.Menu );
}
if( checkShift.isSelected() ){
capturelist.add( BKeys.Shift );
}
if( checkControl.isSelected() ){
capturelist.add( BKeys.Control );
}
if( checkOption.isSelected() ){
capturelist.add( BKeys.Alt );
}
}
BKeys[] keys = capturelist.toArray( new BKeys[] { } );
mDict.get( display ).setValue( keys );
list.setItemAt( indx_row, 1, Utility.getShortcutDisplayString( keys ) );
}
public void list_SelectedIndexChanged( Object sender, BEventArgs e )
{
int indx = list.getSelectedRow();
if( indx < 0 ){
return;
}
String display = list.getItemAt( indx, 0 );
if( !mDict.containsKey( display ) ){
return;
}
unRegisterHandlers();
ValuePair<String, BKeys[]> item = mDict.get( display );
BKeys[] keys = item.getValue();
Vector<BKeys> vkeys = new Vector<BKeys>( Arrays.asList( keys ) );
checkCommand.setSelected( vkeys.contains( BKeys.Menu ) );
checkShift.setSelected( vkeys.contains( BKeys.Shift ) );
checkControl.setSelected( vkeys.contains( BKeys.Control ) );
checkOption.setSelected( vkeys.contains( BKeys.Alt ) );
int size = comboEditKey.getItemCount();
comboEditKey.setSelectedIndex( -1 );
for( int i = 0; i < size; i++ ){
BKeys k = (BKeys)comboEditKey.getItemAt( i );
if( vkeys.contains( k ) ){
comboEditKey.setSelectedIndex( i );
break;
}
}
reRegisterHandlers();
}
public void comboCategory_SelectedIndexChanged( Object sender, EventArgs e )
{
int selected = comboCategory.getSelectedIndex();
#if DEBUG
sout.println( "FormShortcutKeys#comboCategory_selectedIndexChanged; selected=" + selected );
#endif
if ( selected < 0 ) {
comboCategory.setSelectedIndex( 0 );
//updateList();
return;
}
updateList();
}
public void btnRevert_Click( Object sender, BEventArgs e )
{
copyDict( mFirstDict, mDict );
updateList();
}
public void btnLoadDefault_Click( Object sender, BEventArgs e )
{
Vector<ValuePairOfStringArrayOfKeys> defaults = mMainForm.getDefaultShortcutKeys();
for ( int i = 0; i < defaults.size(); i++ ) {
String name = defaults.get( i ).Key;
BKeys[] keys = defaults.get( i ).Value;
for ( Iterator<String> itr = mDict.keySet().iterator(); itr.hasNext(); ) {
String display = itr.next();
if ( name.Equals( mDict.get( display ).getKey() ) ) {
mDict.get( display ).setValue( keys );
break;
}
}
}
updateList();
}
public void FormShortcutKeys_FormClosing( Object sender, BFormClosingEventArgs e )
{
mColumnWidthCommand = list.getColumnWidth( 0 );
mColumnWidthShortcutKey = list.getColumnWidth( 1 );
#if DEBUG
sout.println( "FormShortCurKeys#FormShortcutKeys_FormClosing; columnWidthCommand,columnWidthShortcutKey=" + mColumnWidthCommand + "," + mColumnWidthShortcutKey );
#endif
}
public void btnCancel_Click( Object sender, BEventArgs e )
{
setDialogResult( BDialogResult.CANCEL );
}
public void btnOK_Click( Object sender, BEventArgs e )
{
setDialogResult( BDialogResult.OK );
}
#endregion
#region UI implementation
#if JAVA
#region UI Impl for Java
//INCLUDE-SECTION FIELD ../BuildJavaUI/src/org/kbinani/cadencii/FormShortcutKeys.java
//INCLUDE-SECTION METHOD ../BuildJavaUI/src/org/kbinani/cadencii/FormShortcutKeys.java
#endregion
#else
#region UI Impl for C#
/// <summary>
/// 必要なデザイナ変数です。
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// 使用中のリソースをすべてクリーンアップします。
/// </summary>
/// <param name="disposing">マネージ リソースが破棄される場合 true、破棄されない場合は false です。</param>
protected override void Dispose( boolean disposing )
{
if ( disposing && (components != null) ) {
components.Dispose();
}
base.Dispose( disposing );
}
#region Windows フォーム デザイナで生成されたコード
/// <summary>
/// デザイナ サポートに必要なメソッドです。このメソッドの内容を
/// コード エディタで変更しないでください。
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.btnCancel = new org.kbinani.windows.forms.BButton();
this.btnOK = new org.kbinani.windows.forms.BButton();
this.list = new org.kbinani.windows.forms.BListView();
this.btnLoadDefault = new org.kbinani.windows.forms.BButton();
this.btnRevert = new org.kbinani.windows.forms.BButton();
this.toolTip = new System.Windows.Forms.ToolTip( this.components );
this.labelCategory = new org.kbinani.windows.forms.BLabel();
this.comboCategory = new org.kbinani.windows.forms.BComboBox();
this.labelCommand = new org.kbinani.windows.forms.BLabel();
this.labelEdit = new org.kbinani.windows.forms.BLabel();
this.labelEditKey = new org.kbinani.windows.forms.BLabel();
this.labelEditModifier = new org.kbinani.windows.forms.BLabel();
this.comboEditKey = new org.kbinani.windows.forms.BComboBox();
this.checkCommand = new org.kbinani.windows.forms.BCheckBox();
this.checkShift = new org.kbinani.windows.forms.BCheckBox();
this.checkControl = new org.kbinani.windows.forms.BCheckBox();
this.checkOption = new org.kbinani.windows.forms.BCheckBox();
this.SuspendLayout();
//
// btnCancel
//
this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.btnCancel.Location = new System.Drawing.Point( 325, 403 );
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size( 75, 23 );
this.btnCancel.TabIndex = 7;
this.btnCancel.Text = "Cancel";
this.btnCancel.UseVisualStyleBackColor = true;
//
// btnOK
//
this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK;
this.btnOK.Location = new System.Drawing.Point( 244, 403 );
this.btnOK.Name = "btnOK";
this.btnOK.Size = new System.Drawing.Size( 75, 23 );
this.btnOK.TabIndex = 6;
this.btnOK.Text = "OK";
this.btnOK.UseVisualStyleBackColor = true;
//
// list
//
this.list.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.list.FullRowSelect = true;
this.list.Location = new System.Drawing.Point( 36, 76 );
this.list.MultiSelect = false;
this.list.Name = "list";
this.list.Size = new System.Drawing.Size( 364, 182 );
this.list.TabIndex = 9;
this.list.UseCompatibleStateImageBehavior = false;
this.list.View = System.Windows.Forms.View.Details;
//
// btnLoadDefault
//
this.btnLoadDefault.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnLoadDefault.Location = new System.Drawing.Point( 113, 361 );
this.btnLoadDefault.Name = "btnLoadDefault";
this.btnLoadDefault.Size = new System.Drawing.Size( 122, 23 );
this.btnLoadDefault.TabIndex = 11;
this.btnLoadDefault.Text = "Load Default";
this.btnLoadDefault.UseVisualStyleBackColor = true;
//
// btnRevert
//
this.btnRevert.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.btnRevert.Location = new System.Drawing.Point( 12, 361 );
this.btnRevert.Name = "btnRevert";
this.btnRevert.Size = new System.Drawing.Size( 95, 23 );
this.btnRevert.TabIndex = 10;
this.btnRevert.Text = "Revert";
this.btnRevert.UseVisualStyleBackColor = true;
//
// labelCategory
//
this.labelCategory.AutoSize = true;
this.labelCategory.Location = new System.Drawing.Point( 12, 12 );
this.labelCategory.Name = "labelCategory";
this.labelCategory.Size = new System.Drawing.Size( 51, 12 );
this.labelCategory.TabIndex = 12;
this.labelCategory.Text = "Category";
//
// comboCategory
//
this.comboCategory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.comboCategory.FormattingEnabled = true;
this.comboCategory.Location = new System.Drawing.Point( 36, 27 );
this.comboCategory.Name = "comboCategory";
this.comboCategory.Size = new System.Drawing.Size( 364, 20 );
this.comboCategory.TabIndex = 13;
//
// labelCommand
//
this.labelCommand.AutoSize = true;
this.labelCommand.Location = new System.Drawing.Point( 12, 61 );
this.labelCommand.Name = "labelCommand";
this.labelCommand.Size = new System.Drawing.Size( 55, 12 );
this.labelCommand.TabIndex = 14;
this.labelCommand.Text = "Command";
//
// labelEdit
//
this.labelEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.labelEdit.AutoSize = true;
this.labelEdit.Location = new System.Drawing.Point( 12, 276 );
this.labelEdit.Name = "labelEdit";
this.labelEdit.Size = new System.Drawing.Size( 25, 12 );
this.labelEdit.TabIndex = 15;
this.labelEdit.Text = "Edit";
//
// labelEditKey
//
this.labelEditKey.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.labelEditKey.AutoSize = true;
this.labelEditKey.Location = new System.Drawing.Point( 34, 293 );
this.labelEditKey.Name = "labelEditKey";
this.labelEditKey.Size = new System.Drawing.Size( 26, 12 );
this.labelEditKey.TabIndex = 16;
this.labelEditKey.Text = "Key:";
//
// labelEditModifier
//
this.labelEditModifier.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.labelEditModifier.AutoSize = true;
this.labelEditModifier.Location = new System.Drawing.Point( 34, 317 );
this.labelEditModifier.Name = "labelEditModifier";
this.labelEditModifier.Size = new System.Drawing.Size( 48, 12 );
this.labelEditModifier.TabIndex = 17;
this.labelEditModifier.Text = "Modifier:";
//
// comboEditKey
//
this.comboEditKey.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.comboEditKey.FormattingEnabled = true;
this.comboEditKey.Location = new System.Drawing.Point( 101, 290 );
this.comboEditKey.Name = "comboEditKey";
this.comboEditKey.Size = new System.Drawing.Size( 299, 20 );
this.comboEditKey.TabIndex = 18;
//
// checkCommand
//
this.checkCommand.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.checkCommand.AutoSize = true;
this.checkCommand.Location = new System.Drawing.Point( 101, 316 );
this.checkCommand.Name = "checkCommand";
this.checkCommand.Padding = new System.Windows.Forms.Padding( 5, 0, 5, 0 );
this.checkCommand.Size = new System.Drawing.Size( 82, 16 );
this.checkCommand.TabIndex = 153;
this.checkCommand.Text = "command";
this.checkCommand.UseVisualStyleBackColor = true;
//
// checkShift
//
this.checkShift.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.checkShift.AutoSize = true;
this.checkShift.Location = new System.Drawing.Point( 189, 316 );
this.checkShift.Name = "checkShift";
this.checkShift.Padding = new System.Windows.Forms.Padding( 5, 0, 5, 0 );
this.checkShift.Size = new System.Drawing.Size( 57, 16 );
this.checkShift.TabIndex = 154;
this.checkShift.Text = "shift";
this.checkShift.UseVisualStyleBackColor = true;
//
// checkControl
//
this.checkControl.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.checkControl.AutoSize = true;
this.checkControl.Location = new System.Drawing.Point( 252, 316 );
this.checkControl.Name = "checkControl";
this.checkControl.Padding = new System.Windows.Forms.Padding( 5, 0, 5, 0 );
this.checkControl.Size = new System.Drawing.Size( 69, 16 );
this.checkControl.TabIndex = 155;
this.checkControl.Text = "control";
this.checkControl.UseVisualStyleBackColor = true;
//
// checkOption
//
this.checkOption.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.checkOption.AutoSize = true;
this.checkOption.Location = new System.Drawing.Point( 325, 316 );
this.checkOption.Name = "checkOption";
this.checkOption.Padding = new System.Windows.Forms.Padding( 5, 0, 5, 0 );
this.checkOption.Size = new System.Drawing.Size( 65, 16 );
this.checkOption.TabIndex = 156;
this.checkOption.Text = "option";
this.checkOption.UseVisualStyleBackColor = true;
//
// FormShortcutKeys
//
this.AcceptButton = this.btnOK;
this.AutoScaleDimensions = new System.Drawing.SizeF( 6F, 12F );
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.btnCancel;
this.ClientSize = new System.Drawing.Size( 412, 438 );
this.Controls.Add( this.checkOption );
this.Controls.Add( this.checkControl );
this.Controls.Add( this.checkShift );
this.Controls.Add( this.checkCommand );
this.Controls.Add( this.comboEditKey );
this.Controls.Add( this.labelEditModifier );
this.Controls.Add( this.labelEditKey );
this.Controls.Add( this.labelEdit );
this.Controls.Add( this.labelCommand );
this.Controls.Add( this.comboCategory );
this.Controls.Add( this.labelCategory );
this.Controls.Add( this.btnLoadDefault );
this.Controls.Add( this.btnRevert );
this.Controls.Add( this.list );
this.Controls.Add( this.btnCancel );
this.Controls.Add( this.btnOK );
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FormShortcutKeys";
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.Text = "Shortcut Config";
this.ResumeLayout( false );
this.PerformLayout();
}
#endregion
private BButton btnCancel;
private BButton btnOK;
private BListView list;
private BButton btnLoadDefault;
private BButton btnRevert;
private System.Windows.Forms.ToolTip toolTip;
private BLabel labelCategory;
private BComboBox comboCategory;
private org.kbinani.windows.forms.BLabel labelCommand;
private org.kbinani.windows.forms.BLabel labelEdit;
private org.kbinani.windows.forms.BLabel labelEditKey;
private org.kbinani.windows.forms.BLabel labelEditModifier;
private org.kbinani.windows.forms.BComboBox comboEditKey;
private BCheckBox checkCommand;
private BCheckBox checkShift;
private BCheckBox checkControl;
private BCheckBox checkOption;
#endregion
#endif
#endregion
}
#if !JAVA
}
#endif
|