« blib/lib/App/Asciio/setup/GTK/import_export/png.pl
↑ Summary
blib/lib/App/Asciio/setup/asciio_object/basic.pl »
| 1 | |||
| 2 | use App::Asciio::Actions::Align ; | ||
| 3 | use App::Asciio::Actions::Arrow ; | ||
| 4 | use App::Asciio::Actions::Asciio ; | ||
| 5 | use App::Asciio::Actions::Box ; | ||
| 6 | use App::Asciio::Actions::Clipboard ; | ||
| 7 | use App::Asciio::Actions::Clone ; | ||
| 8 | use App::Asciio::Actions::Colors ; | ||
| 9 | use App::Asciio::Actions::Debug ; | ||
| 10 | use App::Asciio::Actions::Elements ; | ||
| 11 | use App::Asciio::Actions::ElementsManipulation ; | ||
| 12 | use App::Asciio::Actions::File ; | ||
| 13 | use App::Asciio::Actions::Git ; | ||
| 14 | use App::Asciio::Actions::Mouse ; | ||
| 15 | use App::Asciio::Actions::Multiwirl ; | ||
| 16 | use App::Asciio::Actions::Presentation ; | ||
| 17 | use App::Asciio::Actions::Ruler ; | ||
| 18 | use App::Asciio::Actions::Shapes ; | ||
| 19 | use App::Asciio::Actions::Unsorted ; | ||
| 20 | |||
| 21 | |||
| 22 | #---------------------------------------------------------------------------------------------- | ||
| 23 | |||
| 24 | register_action_handlers | ||
| 25 | ( | ||
| 26 | 'flip cross mode' => [ '000-x', sub { $_[0]->{USE_CROSS_MODE} ^= 1 ; $_[0]->update_display ; } ], | ||
| 27 | |||
| 28 | 'Undo' => [['C00-z', '000-u'], \&App::Asciio::Actions::Unsorted::undo ], | ||
| 29 | 'Redo' => [['C00-y', 'C00-r'], \&App::Asciio::Actions::Unsorted::redo ], | ||
| 30 | 'Zoom in' => [['000-plus', 'C00-j', 'C00-scroll-up'], \&App::Asciio::Actions::Unsorted::zoom, 1 ], | ||
| 31 | 'Zoom out' => [['000-minus', 'C00-h', 'C00-scroll-down'],\&App::Asciio::Actions::Unsorted::zoom, -1 ], | ||
| 32 | 'Copy to clipboard' => [['C00-c', 'C00-Insert', 'y'], \&App::Asciio::Actions::Clipboard::copy_to_clipboard ], | ||
| 33 | 'Insert from clipboard' => [['C00-v', '00S-Insert', 'p'], \&App::Asciio::Actions::Clipboard::insert_from_clipboard ], | ||
| 34 | 'Export to clipboard & primary as ascii' => [['C00-e', '00S-Y', 'Y'], \&App::Asciio::Actions::Clipboard::export_to_clipboard_as_ascii ], | ||
| 35 | 'Export to clipboard & primary as markup'=> ['C0S-E', \&App::Asciio::Actions::Clipboard::export_to_clipboard_as_markup ], | ||
| 36 | 'Import from primary to box' => [['C0S-V', '00S-P', 'P'], \&App::Asciio::Actions::Clipboard::import_from_primary_to_box ], | ||
| 37 | 'Import from primary to text' => [['0A0-p','A-P'], \&App::Asciio::Actions::Clipboard::import_from_primary_to_text ], | ||
| 38 | 'Import from clipboard to box' => [ '0AS-E' , \&App::Asciio::Actions::Clipboard::import_from_clipboard_to_box ], | ||
| 39 | 'Import from clipboard to text' => [ '0AS-T' , \&App::Asciio::Actions::Clipboard::import_from_clipboard_to_text ], | ||
| 40 | |||
| 41 | 'Select next element' => [['000-Tab', '000-n'], \&App::Asciio::Actions::ElementsManipulation::select_element_direction, [1, 0, 0] ], | ||
| 42 | 'Select previous element' => [['00S-ISO_Left_Tab', '00S-N'], \&App::Asciio::Actions::ElementsManipulation::select_element_direction, [0, 0, 0] ], | ||
| 43 | 'Select next non arrow' => [['C00-Tab', 'C00-n'], \&App::Asciio::Actions::ElementsManipulation::select_element_direction, [1, 0, 1] ], | ||
| 44 | 'Select previous non arrow' => [['C0S-ISO_Left_Tab', 'C0S-N'], \&App::Asciio::Actions::ElementsManipulation::select_element_direction, [0, 0, 1] ], | ||
| 45 | 'Select next arrow' => [['CA0-Tab', 'C00-m'], \&App::Asciio::Actions::ElementsManipulation::select_element_direction, [1, 0, 2] ], | ||
| 46 | 'Select previous arrow' => [['CAS-ISO_Left_Tab', 'C0S-M'], \&App::Asciio::Actions::ElementsManipulation::select_element_direction, [0, 0, 2] ], | ||
| 47 | |||
| 48 | 'Select element by id' => ['0A0-Tab', \&App::Asciio::Actions::ElementsManipulation::select_element_by_id ], | ||
| 49 | |||
| 50 | 'Select all elements' => [['C00-a', '00S-V'], \&App::Asciio::Actions::ElementsManipulation::select_all_elements ], | ||
| 51 | 'Deselect all elements' => ['000-Escape', \&App::Asciio::Actions::ElementsManipulation::deselect_all_elements ], | ||
| 52 | 'Select connected elements' => ['000-v', \&App::Asciio::Actions::ElementsManipulation::select_connected ], | ||
| 53 | 'Select elements by word' => ['C00-f', \&App::Asciio::Actions::ElementsManipulation::select_all_elements_by_words ], | ||
| 54 | 'Select elements by word no group' => ['C0S-F', \&App::Asciio::Actions::ElementsManipulation::select_all_elements_by_words_no_group ], | ||
| 55 | |||
| 56 | 'Delete selected elements' => [['000-Delete', '000-d'], \&App::Asciio::Actions::ElementsManipulation::delete_selected_elements ], | ||
| 57 | |||
| 58 | 'Edit selected element' => [['000-2button-press-1','000-Return'], \&App::Asciio::Actions::ElementsManipulation::edit_selected_element, 0 ], | ||
| 59 | 'Edit selected element inline' => [['C00-2button-press-1','C00-Return'], \&App::Asciio::Actions::ElementsManipulation::edit_selected_element, 1 ], | ||
| 60 | |||
| 61 | 'Move selected elements left' => ['000-Left', \&App::Asciio::Actions::ElementsManipulation::move_selection_left ], | ||
| 62 | 'Move selected elements right' => ['000-Right', \&App::Asciio::Actions::ElementsManipulation::move_selection_right ], | ||
| 63 | 'Move selected elements up' => ['000-Up', \&App::Asciio::Actions::ElementsManipulation::move_selection_up ], | ||
| 64 | 'Move selected elements down' => ['000-Down', \&App::Asciio::Actions::ElementsManipulation::move_selection_down ], | ||
| 65 | |||
| 66 | 'Move selected elements left quick' => ['0A0-Left', \&App::Asciio::Actions::ElementsManipulation::move_selection_left, 10 ], | ||
| 67 | 'Move selected elements right quick' => ['0A0-Right', \&App::Asciio::Actions::ElementsManipulation::move_selection_right, 10 ], | ||
| 68 | 'Move selected elements up quick' => ['0A0-Up', \&App::Asciio::Actions::ElementsManipulation::move_selection_up, 10 ], | ||
| 69 | 'Move selected elements down quick' => ['0A0-Down', \&App::Asciio::Actions::ElementsManipulation::move_selection_down, 10 ], | ||
| 70 | |||
| 71 | 'Move selected elements left 2' => [['000-h', 'h'], \&App::Asciio::Actions::ElementsManipulation::move_selection_left ], | ||
| 72 | 'Move selected elements right 2' => [['000-l', 'l'], \&App::Asciio::Actions::ElementsManipulation::move_selection_right ], | ||
| 73 | 'Move selected elements up 2' => [['000-k', 'k'], \&App::Asciio::Actions::ElementsManipulation::move_selection_up ], | ||
| 74 | 'Move selected elements down 2' => [['000-j', 'j'], \&App::Asciio::Actions::ElementsManipulation::move_selection_down ], | ||
| 75 | |||
| 76 | 'Shrink box' => ['000-s', \&App::Asciio::Actions::ElementsManipulation::shrink_box ], | ||
| 77 | |||
| 78 | 'Make element narrower' => ['000-1', \&App::Asciio::Actions::ElementsManipulation::resize_element_offset, [-1, 0] ], | ||
| 79 | 'Make element taller' => ['000-2', \&App::Asciio::Actions::ElementsManipulation::resize_element_offset, [0, 1] ], | ||
| 80 | 'Make element shorter' => ['000-3', \&App::Asciio::Actions::ElementsManipulation::resize_element_offset, [0, -1] ], | ||
| 81 | 'Make element wider' => ['000-4', \&App::Asciio::Actions::ElementsManipulation::resize_element_offset, [1, 0] ], | ||
| 82 | |||
| 83 | 'Make elements Unicode' => ['C00-u', \&App::Asciio::Actions::Asciio::make_selection_unicode, 1 ], | ||
| 84 | 'Make elements not Unicode' => ['C0S-U', \&App::Asciio::Actions::Asciio::make_selection_unicode, 0 ], | ||
| 85 | |||
| 86 | # mouse | ||
| 87 | 'Mouse right-click' => ['000-button-press-3', \&App::Asciio::Actions::Mouse::mouse_right_click ], | ||
| 88 | |||
| 89 | 'Mouse left-click' => ['000-button-press-1', \&App::Asciio::Actions::Mouse::mouse_left_click ], | ||
| 90 | 'Mouse expand selection' => ['00S-button-press-1', \&App::Asciio::Actions::Mouse::expand_selection ], | ||
| 91 | 'Mouse selection flip' => ['C00-button-press-1', \&App::Asciio::Actions::Mouse::mouse_element_selection_flip ], | ||
| 92 | |||
| 93 | 'Mouse quick link' => [['0A0-button-press-1', '000-period'], \&App::Asciio::Actions::Mouse::quick_link ], | ||
| 94 | 'Mouse duplicate elements' => [['0AS-button-press-1', '000-comma'], \&App::Asciio::Actions::Mouse::mouse_duplicate_element ], | ||
| 95 | 'Mouse quick box' => [['C0S-button-press-1'], \&App::Asciio::Actions::Elements::add_element, ['Asciio/box', 0] ], | ||
| 96 | |||
| 97 | 'Arrow to mouse' => ['CA0-motion_notify', \&App::Asciio::Actions::Arrow::interactive_to_mouse ], | ||
| 98 | 'Arrow mouse change direction' => ['CA0-2button-press-1', \&App::Asciio::Actions::Arrow::change_arrow_direction ], | ||
| 99 | 'Arrow change direction' => ['CA0-d', \&App::Asciio::Actions::Arrow::interactive_change_arrow_direction ], | ||
| 100 | 'Wirl arrow add section' => ['CA0-button-press-1', \&App::Asciio::Actions::Multiwirl::interactive_add_section ], | ||
| 101 | 'Wirl arrow insert flex point' => ['CA0-button-press-2', \&App::Asciio::Actions::Multiwirl::insert_wirl_arrow_section ], | ||
| 102 | |||
| 103 | 'Mouse motion' => ['000-motion_notify', \&App::Asciio::Actions::Mouse::mouse_motion ], | ||
| 104 | 'Mouse motion 2' => ['0AS-motion_notify', \&App::Asciio::Actions::Mouse::mouse_motion ], | ||
| 105 | 'Mouse drag canvas' => ['C00-motion_notify', \&App::Asciio::Actions::Mouse::mouse_drag_canvas ], | ||
| 106 | |||
| 107 | # mouse emulation | ||
| 108 | 'Mouse emulation toggle' => [['000-apostrophe', "'"], \&App::Asciio::Actions::Mouse::toggle_mouse ], | ||
| 109 | |||
| 110 | 'Mouse emulation left-click' => ['000-odiaeresis', \&App::Asciio::Actions::Mouse::mouse_left_click ], | ||
| 111 | 'Mouse emulation expand selection' => ['00S-Odiaeresis', \&App::Asciio::Actions::Mouse::expand_selection ], | ||
| 112 | 'Mouse emulation selection flip' => ['C00-odiaeresis', \&App::Asciio::Actions::Mouse::mouse_element_selection_flip ], | ||
| 113 | |||
| 114 | 'Mouse emulation right-click' => ['000-adiaeresis', \&App::Asciio::Actions::Mouse::mouse_right_click ], | ||
| 115 | |||
| 116 | 'Mouse emulation move left' => ['C00-Left', \&App::Asciio::Actions::Mouse::mouse_move, [-1, 0] ], | ||
| 117 | 'Mouse emulation move right' => ['C00-Right', \&App::Asciio::Actions::Mouse::mouse_move, [ 1, 0] ], | ||
| 118 | 'Mouse emulation move up' => ['C00-Up', \&App::Asciio::Actions::Mouse::mouse_move, [ 0, -1] ], | ||
| 119 | 'Mouse emulation move down' => ['C00-Down', \&App::Asciio::Actions::Mouse::mouse_move, [ 0, 1] ], | ||
| 120 | |||
| 121 | 'Mouse emulation drag left' => ['00S-Left', \&App::Asciio::Actions::Mouse::mouse_drag_left ], | ||
| 122 | 'Mouse emulation drag right' => ['00S-Right', \&App::Asciio::Actions::Mouse::mouse_drag_right ], | ||
| 123 | 'Mouse emulation drag up' => ['00S-Up', \&App::Asciio::Actions::Mouse::mouse_drag_up ], | ||
| 124 | 'Mouse emulation drag down' => ['00S-Down', \&App::Asciio::Actions::Mouse::mouse_drag_down ], | ||
| 125 | |||
| 126 | 'Mouse on element id' => ['000-m', \&App::Asciio::Actions::Mouse::mouse_on_element_id ], | ||
| 127 | |||
| 128 | 'Asciio context_menu' => ['as_context_menu', undef, undef, \&App::Asciio::Actions::Asciio::context_menu ], | ||
| 129 | 'Box context_menu' => ['bo_context_menu', undef, undef, \&App::Asciio::Actions::Box::context_menu ] , | ||
| 130 | 'Multi_wirl context_menu' => ['mw_context_menu', undef, undef, \&App::Asciio::Actions::Multiwirl::multi_wirl_context_menu ], | ||
| 131 | 'Angled arrow context_menu' => ['aa_ontext menu', undef, undef, \&App::Asciio::Actions::Multiwirl::angled_arrow_context_menu ], | ||
| 132 | 'Ruler context_menu' => ['ru_context_menu', undef, undef, \&App::Asciio::Actions::Ruler::context_menu ], | ||
| 133 | 'Shapes context_menu' => ['sh_context_menu', undef, undef, \&App::Asciio::Actions::Shapes::context_menu ], | ||
| 134 | |||
| 135 | 'grouping leader' => | ||
| 136 | { | ||
| 137 | SHORTCUTS => '000-g', | ||
| 138 | |||
| 139 | 'Group selected elements' => ['000-g', \&App::Asciio::Actions::ElementsManipulation::group_selected_elements ], | ||
| 140 | 'Ungroup selected elements' => ['000-u', \&App::Asciio::Actions::ElementsManipulation::ungroup_selected_elements ], | ||
| 141 | 'Move selected elements to the front' => ['000-f', \&App::Asciio::Actions::ElementsManipulation::move_selected_elements_to_front ], | ||
| 142 | 'Move selected elements to the back' => ['000-b', \&App::Asciio::Actions::ElementsManipulation::move_selected_elements_to_back ], | ||
| 143 | 'Temporary move to the front' => ['00S-F', \&App::Asciio::Actions::ElementsManipulation::temporary_move_selected_element_to_front], | ||
| 144 | }, | ||
| 145 | |||
| 146 | 'stripes leader' => | ||
| 147 | { | ||
| 148 | SHORTCUTS => '0A0-g', | ||
| 149 | |||
| 150 | 'create stripes group' => ['000-g', \&App::Asciio::Actions::ElementsManipulation::create_stripes_group, 0], | ||
| 151 | 'create one stripe group' => ['000-1', \&App::Asciio::Actions::ElementsManipulation::create_stripes_group, 1], | ||
| 152 | 'ungroup stripes group' => ['000-u', \&App::Asciio::Actions::ElementsManipulation::ungroup_stripes_group ], | ||
| 153 | }, | ||
| 154 | |||
| 155 | 'align leader' => | ||
| 156 | { | ||
| 157 | SHORTCUTS => '00S-A', | ||
| 158 | |||
| 159 | 'Align top' => ['000-t', \&App::Asciio::Actions::Align::align, 'top' ], | ||
| 160 | 'Align left' => ['000-l', \&App::Asciio::Actions::Align::align, 'left' ], | ||
| 161 | 'Align bottom' => ['000-b', \&App::Asciio::Actions::Align::align, 'bottom' ], | ||
| 162 | 'Align right' => ['000-r', \&App::Asciio::Actions::Align::align, 'right' ], | ||
| 163 | 'Align vertically' => ['000-v', \&App::Asciio::Actions::Align::align, 'vertical' ], | ||
| 164 | 'Align horizontally' => ['000-h', \&App::Asciio::Actions::Align::align, 'horizontal'], | ||
| 165 | }, | ||
| 166 | |||
| 167 | 'change color/font leader'=> | ||
| 168 | { | ||
| 169 | SHORTCUTS => '000-z', | ||
| 170 | |||
| 171 | 'Change elements foreground color' => ['000-c', \&App::Asciio::Actions::Colors::change_elements_colors, 0 ], | ||
| 172 | 'Change elements background color' => ['00S-C', \&App::Asciio::Actions::Colors::change_elements_colors, 1 ], | ||
| 173 | |||
| 174 | 'Change Asciio background color' => ['0A0-c', \&App::Asciio::Actions::Colors::change_background_color ], | ||
| 175 | 'Change grid color' => ['0AS-C', \&App::Asciio::Actions::Colors::change_grid_color ], | ||
| 176 | 'Flip color scheme' => ['000-s', \&App::Asciio::Actions::Colors::flip_color_scheme ], | ||
| 177 | 'Flip transparent element background' => ['000-t', \&App::Asciio::Actions::Unsorted::transparent_elements ], | ||
| 178 | 'Flip grid display' => ['000-g', \&App::Asciio::Actions::Unsorted::flip_grid_display ], | ||
| 179 | 'Remove rulers' => ['000-r', \&App::Asciio::Actions::Ruler::remove_ruler ], | ||
| 180 | 'Flip hint lines' => ['000-h', \&App::Asciio::Actions::Unsorted::flip_hint_lines ], | ||
| 181 | 'Change font' => ['000-f', \&App::Asciio::Actions::Unsorted::change_font ], | ||
| 182 | 'Edit inline' => ['000-i', \&App::Asciio::GTK::Asciio::switch_gtk_popup_box_type ], | ||
| 183 | 'show/hide connectors' => ['000-v', \&App::Asciio::Actions::Unsorted::flip_connector_display ], | ||
| 184 | }, | ||
| 185 | |||
| 186 | 'arrow leader' => | ||
| 187 | { | ||
| 188 | SHORTCUTS => '000-a', | ||
| 189 | |||
| 190 | 'Change arrow direction' => ['000-d', \&App::Asciio::Actions::Arrow::change_arrow_direction ], | ||
| 191 | 'Flip arrow start and end' => ['000-f', \&App::Asciio::Actions::Arrow::flip_arrow_ends ], | ||
| 192 | 'Append multi_wirl section' => ['000-s', \&App::Asciio::Actions::Multiwirl::append_section, ], | ||
| 193 | 'Insert multi_wirl section' => ['000-S', \&App::Asciio::Actions::Multiwirl::insert_wirl_arrow_section ], | ||
| 194 | 'Prepend multi_wirl section' => ['0A0-s', \&App::Asciio::Actions::Multiwirl::prepend_section ], | ||
| 195 | 'Remove last section from multi_wirl' => ['C00-s', \&App::Asciio::Actions::Multiwirl::remove_last_section_from_section_wirl_arrow ], | ||
| 196 | }, | ||
| 197 | |||
| 198 | 'debug leader' => | ||
| 199 | { | ||
| 200 | SHORTCUTS => '00S-D', | ||
| 201 | |||
| 202 | 'Display undo stack statistics' => ['000-u', \&App::Asciio::Actions::Unsorted::display_undo_stack_statistics ], | ||
| 203 | 'Dump self' => ['000-s', \&App::Asciio::Actions::Debug::dump_self ], | ||
| 204 | 'Dump all elements' => ['000-e', \&App::Asciio::Actions::Debug::dump_all_elements ], | ||
| 205 | 'Dump selected elements' => ['000-E', \&App::Asciio::Actions::Debug::dump_selected_elements ], | ||
| 206 | 'Display numbered objects' => ['000-t', sub { $_[0]->{NUMBERED_OBJECTS} ^= 1 ; $_[0]->update_display() }], | ||
| 207 | 'Test' => ['000-o', \&App::Asciio::Actions::Debug::test ], | ||
| 208 | }, | ||
| 209 | |||
| 210 | 'commands leader'=> | ||
| 211 | { | ||
| 212 | SHORTCUTS => '00S-colon', | ||
| 213 | |||
| 214 | 'Help' => ['000-h', \&App::Asciio::Actions::Unsorted::display_help ], | ||
| 215 | 'Display keyboard mapping' => ['000-k', \&App::Asciio::Actions::Unsorted::display_keyboard_mapping_in_browser], | ||
| 216 | 'Display commands' => ['000-c', \&App::Asciio::Actions::Unsorted::display_commands ], | ||
| 217 | 'Display action files' => ['000-f', \&App::Asciio::Actions::Unsorted::display_action_files ], | ||
| 218 | 'Display manpage' => ['000-m', \&App::Asciio::Actions::Unsorted::manpage_in_browser ], | ||
| 219 | |||
| 220 | |||
| 221 | 'Open' => ['000-e', \&App::Asciio::Actions::File::open ], | ||
| 222 | 'Save' => ['000-w', \&App::Asciio::Actions::File::save, undef ], | ||
| 223 | 'SaveAs' => ['00S-W', \&App::Asciio::Actions::File::save, 'as' ], | ||
| 224 | 'Insert' => ['000-r', \&App::Asciio::Actions::File::insert ], | ||
| 225 | 'Quit' => ['000-q', \&App::Asciio::Actions::File::quit ], | ||
| 226 | 'Quit no save' => ['00S-Q', \&App::Asciio::Actions::File::quit_no_save], | ||
| 227 | }, | ||
| 228 | |||
| 229 | 'Insert leader' => | ||
| 230 | { | ||
| 231 | SHORTCUTS => '000-i', | ||
| 232 | |||
| 233 | # 'Add from file' => [ 'f' ], ??? | ||
| 234 | |||
| 235 | 'Add box' => ['000-b', \&App::Asciio::Actions::Elements::add_element, ['Asciio/box', 0] ], | ||
| 236 | 'Add unicode box' => ['0A0-b', \&App::Asciio::Actions::Elements::add_element, ['Asciio/box unicode', 0] ], | ||
| 237 | 'Add shrink box' => ['00S-B', \&App::Asciio::Actions::Elements::add_element, ['Asciio/shrink_box', 1] ], | ||
| 238 | |||
| 239 | 'Add text' => ['000-t', \&App::Asciio::Actions::Elements::add_element, ['Asciio/text', 1] ], | ||
| 240 | |||
| 241 | 'Add arrow' => ['000-a', \&App::Asciio::Actions::Elements::add_element, ['Asciio/wirl_arrow', 0] ], | ||
| 242 | # 'Add arrow' => ['000-a', | ||
| 243 | # sub | ||
| 244 | # { | ||
| 245 | # App::Asciio::Actions::Elements::add_element($_[0], ['Asciio/wirl_arrow', 0]) ; | ||
| 246 | # $_[0]->use_action_group('0A0-a') ; | ||
| 247 | # } | ||
| 248 | # ] , | ||
| 249 | |||
| 250 | 'Add unicode arrow' => ['0A0-a', \&App::Asciio::Actions::Elements::add_element, ['Asciio/wirl_arrow unicode', 0] ], | ||
| 251 | |||
| 252 | 'Add angled arrow' => ['00S-A', \&App::Asciio::Actions::Elements::add_element, ['Asciio/angled arrow', 0] ], | ||
| 253 | 'Add unicode angled arrow' => ['0AS-A', \&App::Asciio::Actions::Elements::add_element, ['Asciio/angled arrow unicode', 0] ], | ||
| 254 | |||
| 255 | 'Add connector' => ['000-c', \&App::Asciio::Actions::Elements::add_element, ['Asciio/connector', 0] ], | ||
| 256 | 'Add connector type 2' => ['00S-C', \&App::Asciio::Actions::Elements::add_element, ['Asciio/connector2', 0] ], | ||
| 257 | 'Add if' => ['000-i', \&App::Asciio::Actions::Elements::add_element, ['Asciio/Boxes/if', 1] ], | ||
| 258 | 'Add process' => ['000-p', \&App::Asciio::Actions::Elements::add_element, ['Asciio/Boxes/process', 1] ], | ||
| 259 | 'Add rhombus' => ['000-r', \&App::Asciio::Actions::Elements::add_element, ['Asciio/Shape/rhombus', 0] ], | ||
| 260 | 'Add ellipse' => ['000-e', \&App::Asciio::Actions::Elements::add_element, ['Asciio/Shape/ellipse', 0] ], | ||
| 261 | |||
| 262 | 'Add ascii line' => ['000-l', \&App::Asciio::Actions::Elements::add_line, 0 ], | ||
| 263 | 'Add unicode line' => ['00S-L', \&App::Asciio::Actions::Elements::add_line, 1 ], | ||
| 264 | 'Add unicode bold line' => ['0A0-l', \&App::Asciio::Actions::Elements::add_line, 2 ], | ||
| 265 | 'Add unicode double line' => ['0AS-L', \&App::Asciio::Actions::Elements::add_line, 3 ], | ||
| 266 | |||
| 267 | 'Add ascii no-connect line' => ['000-k', \&App::Asciio::Actions::Elements::add_non_connecting_line, 0 ], | ||
| 268 | 'Add unicode no-connect line' => ['00S-K', \&App::Asciio::Actions::Elements::add_non_connecting_line, 1 ], | ||
| 269 | 'Add unicode no-connect bold line' => ['0A0-k', \&App::Asciio::Actions::Elements::add_non_connecting_line, 2 ], | ||
| 270 | 'Add unicode no-connect double line' => ['0AS-K', \&App::Asciio::Actions::Elements::add_non_connecting_line, 3 ], | ||
| 271 | |||
| 272 | 'Add multiple texts' => ['C00-t', \&App::Asciio::Actions::Unsorted::insert_multiple_boxes_from_text_description, 0 ], | ||
| 273 | 'Add multiple boxes' => ['C00-b', \&App::Asciio::Actions::Unsorted::insert_multiple_boxes_from_text_description, 1 ], | ||
| 274 | |||
| 275 | 'Add exec box' => ['C00-e', \&App::Asciio::Actions::Elements::add_element, ['Asciio/Boxes/exec', 1] ], | ||
| 276 | 'Add exec box verbatim' => ['C00-v', \&App::Asciio::Actions::Elements::add_element, ['Asciio/Boxes/exec verbatim', 1] ], | ||
| 277 | 'Add exec box verbatim once' => ['C00-o', \&App::Asciio::Actions::Elements::add_element, ['Asciio/Boxes/exec verbatim once', 1] ], | ||
| 278 | 'Add line numbered box' => ['C00-l', \&App::Asciio::Actions::Elements::add_element, ['Asciio/Boxes/exec add lines', 1] ], | ||
| 279 | |||
| 280 | 'Add vertical ruler' => ['C00-r', \&App::Asciio::Actions::Ruler::add_ruler, {TYPE => 'VERTICAL'} ], | ||
| 281 | 'Add horizontal ruler' => ['C0S-R', \&App::Asciio::Actions::Ruler::add_ruler, {TYPE => 'HORIZONTAL'} ], | ||
| 282 | 'Add help box' => ['C00-h', \&App::Asciio::Actions::Elements::add_help_box, ], | ||
| 283 | }, | ||
| 284 | |||
| 285 | 'clone' => | ||
| 286 | { | ||
| 287 | SHORTCUTS => '000-c', | ||
| 288 | ENTER_GROUP => \&App::Asciio::Actions::Clone::clone_enter, | ||
| 289 | ESCAPE_KEY => '000-Escape', | ||
| 290 | |||
| 291 | 'clone escape' => [ '000-Escape', \&App::Asciio::Actions::Clone::clone_escape ], | ||
| 292 | 'clone motion' => [ '000-motion_notify', \&App::Asciio::Actions::Clone::clone_mouse_motion ], | ||
| 293 | |||
| 294 | 'clone insert' => [ '000-button-press-1', \&App::Asciio::Actions::Clone::clone_add_element ], | ||
| 295 | 'clone insert2' => [ '000-Return', \&App::Asciio::Actions::Clone::clone_add_element ], | ||
| 296 | 'clone arrow' => [ '000-a', \&App::Asciio::Actions::Clone::clone_set_overlay, ['Asciio/wirl_arrow', 0] ], | ||
| 297 | 'clone angled arrow' => [ '00S-A', \&App::Asciio::Actions::Clone::clone_set_overlay, ['Asciio/angled_arrow', 0] ], | ||
| 298 | 'clone box' => [ '000-b', \&App::Asciio::Actions::Clone::clone_set_overlay, ['Asciio/box', 0] ], | ||
| 299 | 'clone text' => [ '000-t', \&App::Asciio::Actions::Clone::clone_set_overlay, ['Asciio/text', 0] ], | ||
| 300 | 'clone flip hint lines' => [ '000-h', \&App::Asciio::Actions::Unsorted::flip_hint_lines ], | ||
| 301 | |||
| 302 | 'clone left' => ['000-Left', \&App::Asciio::Actions::ElementsManipulation::move_selection_left ], | ||
| 303 | 'clone right' => ['000-Right', \&App::Asciio::Actions::ElementsManipulation::move_selection_right ], | ||
| 304 | 'clone up' => ['000-Up', \&App::Asciio::Actions::ElementsManipulation::move_selection_up ], | ||
| 305 | 'clone down' => ['000-Down', \&App::Asciio::Actions::ElementsManipulation::move_selection_down ], | ||
| 306 | |||
| 307 | 'clone emulation left' => ['C00-Left', \&App::Asciio::Actions::Mouse::mouse_move, [-1, 0] ], | ||
| 308 | 'clone emulation right' => ['C00-Right', \&App::Asciio::Actions::Mouse::mouse_move, [ 1, 0] ], | ||
| 309 | 'clone emulation up' => ['C00-Up', \&App::Asciio::Actions::Mouse::mouse_move, [ 0, -1] ], | ||
| 310 | 'clone emulation down' => ['C00-Down', \&App::Asciio::Actions::Mouse::mouse_move, [ 0, 1] ], | ||
| 311 | }, | ||
| 312 | |||
| 313 | 'git' => | ||
| 314 | { | ||
| 315 | SHORTCUTS => '00S-G', | ||
| 316 | ESCAPE_KEY => '000-Escape', | ||
| 317 | |||
| 318 | 'Quick git' => [['000-button-press-3', '000-g'], \&App::Asciio::Actions::Git::quick_link ], | ||
| 319 | |||
| 320 | 'Git add box' => [ '000-b', \&App::Asciio::Actions::Elements::add_element, ['Asciio/box', 1] ], | ||
| 321 | 'Git add text' => [ '000-t', \&App::Asciio::Actions::Elements::add_element, ['Asciio/text', 1] ], | ||
| 322 | 'Git add arrow' => [ '000-a', \&App::Asciio::Actions::Elements::add_element, ['Asciio/wirl_arrow', 0]], | ||
| 323 | 'Git edit selected element' => [['000-2button-press-1', '000-Return'], \&App::Asciio::Actions::Git::edit_selected_element ], | ||
| 324 | |||
| 325 | 'Git mouse left-click' => [ '000-button-press-1', \&App::Asciio::Actions::Mouse::mouse_left_click ], | ||
| 326 | 'Git change arrow direction' => [ '000-d', \&App::Asciio::Actions::Arrow::change_arrow_direction ], | ||
| 327 | 'Git undo' => [ '000-u', \&App::Asciio::Actions::Unsorted::undo ], | ||
| 328 | 'Git delete elements' => [['000-Delete', '000-x'], \&App::Asciio::Actions::ElementsManipulation::delete_selected_elements ], | ||
| 329 | |||
| 330 | 'Git mouse motion' => [ '000-motion_notify', \&App::Asciio::Actions::Mouse::mouse_motion ], | ||
| 331 | 'Git move elements left' => [ '000-Left', \&App::Asciio::Actions::ElementsManipulation::move_selection_left ], | ||
| 332 | 'Git move elements right' => [ '000-Right', \&App::Asciio::Actions::ElementsManipulation::move_selection_right ], | ||
| 333 | 'Git move elements up' => [ '000-Up', \&App::Asciio::Actions::ElementsManipulation::move_selection_up ], | ||
| 334 | 'Git move elements down' => [ '000-Down', \&App::Asciio::Actions::ElementsManipulation::move_selection_down ], | ||
| 335 | |||
| 336 | 'Git mouse right-click' => [ '0A0-button-press-3', \&App::Asciio::Actions::Mouse::mouse_right_click ], | ||
| 337 | 'Git flip hint lines' => [ '000-h', \&App::Asciio::Actions::Unsorted::flip_hint_lines ], | ||
| 338 | }, | ||
| 339 | |||
| 340 | 'slides leader' => | ||
| 341 | { | ||
| 342 | SHORTCUTS => '00S-S', | ||
| 343 | |||
| 344 | 'Load slides' => ['000-l', \&App::Asciio::Actions::Presentation::load_slides ] , | ||
| 345 | 'previous slide' => ['00S-N', \&App::Asciio::Actions::Presentation::previous_slide], | ||
| 346 | 'next slide' => ['000-n', \&App::Asciio::Actions::Presentation::next_slide ], | ||
| 347 | 'first slide' => ['000-g', \&App::Asciio::Actions::Presentation::first_slide ], | ||
| 348 | 'show previous message' => ['000-m', \&App::Asciio::Actions::Presentation::show_previous_message], | ||
| 349 | 'show next message' => ['00S-M', \&App::Asciio::Actions::Presentation::show_next_message], | ||
| 350 | }, | ||
| 351 | |||
| 352 | 'move arrow ends' => | ||
| 353 | { | ||
| 354 | SHORTCUTS => '0A0-a', | ||
| 355 | ESCAPE_KEY => '000-Escape', | ||
| 356 | |||
| 357 | 'arrow start up' => [ '000-Up', \&App::Asciio::Actions::Arrow::move_arrow_start, [ 0, -1] ], | ||
| 358 | 'arrow start down' => [ '000-Down', \&App::Asciio::Actions::Arrow::move_arrow_start, [ 0, 1] ], | ||
| 359 | 'arrow start right' => [ '000-Right', \&App::Asciio::Actions::Arrow::move_arrow_start, [ 1, 0] ], | ||
| 360 | 'arrow start left' => [ '000-Left', \&App::Asciio::Actions::Arrow::move_arrow_start, [-1, 0] ], | ||
| 361 | 'arrow start up2' => [ '000-k', \&App::Asciio::Actions::Arrow::move_arrow_start, [ 0, -1] ], | ||
| 362 | 'arrow start down2' => [ '000-j', \&App::Asciio::Actions::Arrow::move_arrow_start, [ 0, 1] ], | ||
| 363 | 'arrow start right2' => [ '000-l', \&App::Asciio::Actions::Arrow::move_arrow_start, [ 1, 0] ], | ||
| 364 | 'arrow start left2' => [ '000-h', \&App::Asciio::Actions::Arrow::move_arrow_start, [-1, 0] ], | ||
| 365 | 'arrow end up' => [ '00S-Up', \&App::Asciio::Actions::Arrow::move_arrow_end, [ 0, -1] ], | ||
| 366 | 'arrow end down' => [ '00S-Down', \&App::Asciio::Actions::Arrow::move_arrow_end, [ 0, 1] ], | ||
| 367 | 'arrow end right' => [ '00S-Right', \&App::Asciio::Actions::Arrow::move_arrow_end, [ 1, 0] ], | ||
| 368 | 'arrow end left' => [ '00S-Left', \&App::Asciio::Actions::Arrow::move_arrow_end, [-1, 0] ], | ||
| 369 | 'arrow end up2' => [ '00S-K', \&App::Asciio::Actions::Arrow::move_arrow_end, [ 0, -1] ], | ||
| 370 | 'arrow end down2' => [ '00S-J', \&App::Asciio::Actions::Arrow::move_arrow_end, [ 0, 1] ], | ||
| 371 | 'arrow end right2' => [ '00S-L', \&App::Asciio::Actions::Arrow::move_arrow_end, [ 1, 0] ], | ||
| 372 | 'arrow end left2' => [ '00S-H', \&App::Asciio::Actions::Arrow::move_arrow_end, [-1, 0] ], | ||
| 373 | }, | ||
| 374 | ) ; | ||
| 375 | |||
| 376 |