Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 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 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | CLASS zcl_abapgit_gui_page_tutorial DEFINITION
PUBLIC
FINAL
INHERITING FROM zcl_abapgit_gui_component
CREATE PUBLIC.
PUBLIC SECTION.
INTERFACES zif_abapgit_gui_renderable.
CLASS-METHODS create
RETURNING
VALUE(ri_page) TYPE REF TO zif_abapgit_gui_renderable
RAISING
zcx_abapgit_exception.
PROTECTED SECTION.
PRIVATE SECTION.
CLASS-METHODS build_main_menu
RETURNING
VALUE(ro_menu) TYPE REF TO zcl_abapgit_html_toolbar.
ENDCLASS.
CLASS zcl_abapgit_gui_page_tutorial IMPLEMENTATION.
METHOD build_main_menu.
ro_menu = zcl_abapgit_html_toolbar=>create( 'toolbar-tutorial' ).
ro_menu->add(
iv_txt = zcl_abapgit_gui_buttons=>repo_list( )
iv_act = zif_abapgit_definitions=>c_action-abapgit_home
)->add(
iv_txt = zcl_abapgit_gui_buttons=>new_online( )
iv_act = zif_abapgit_definitions=>c_action-repo_newonline
)->add(
iv_txt = zcl_abapgit_gui_buttons=>new_offline( )
iv_act = zif_abapgit_definitions=>c_action-repo_newoffline
)->add(
iv_txt = zcl_abapgit_gui_buttons=>help( )
io_sub = zcl_abapgit_gui_menus=>help( ) ).
ENDMETHOD.
METHOD create.
DATA lo_component TYPE REF TO zcl_abapgit_gui_page_tutorial.
CREATE OBJECT lo_component.
ri_page = zcl_abapgit_gui_page_hoc=>create(
iv_page_title = 'Tutorial'
io_page_menu = build_main_menu( )
ii_child_component = lo_component ).
ENDMETHOD.
METHOD zif_abapgit_gui_renderable~render.
CREATE OBJECT ri_html TYPE zcl_abapgit_html.
ri_html->add( '<div class="tutorial">' ).
ri_html->add( '<h1>Tutorial</h1>' ).
ri_html->add( '<hr>' ).
ri_html->add( '<h2>Online repositories</h2>' ).
ri_html->add( '<p><ul>' ).
ri_html->add( `<li>To clone a remote repository (e.g. from github) click ` ).
ri_html->add_a( iv_txt = zcl_abapgit_gui_buttons=>new_online( )
iv_act = zif_abapgit_definitions=>c_action-repo_newonline ).
ri_html->add( ' from the top menu. This will link a remote repository with a package on your system.</li>' ).
ri_html->add( '<li>Use the pull button to retrieve and activate the remote objects.</li>' ).
ri_html->add( '<li>If the remote repository is updated,' ).
ri_html->add( ' you will see the changes and can pull to apply the updates.</li>' ).
ri_html->add( '</ul></p>' ).
ri_html->add( '<h2>Offline repositories</h2>' ).
ri_html->add( '<p><ul>' ).
ri_html->add( `<li>To add a package as an offline repository, click ` ).
ri_html->add_a( iv_txt = zcl_abapgit_gui_buttons=>new_offline( )
iv_act = zif_abapgit_definitions=>c_action-repo_newoffline ).
ri_html->add( ' from the top menu.' ).
ri_html->add( '<li>abapGit will start tracking changes for the package ' ).
ri_html->add( 'without linking it to an online git repository.</li>' ).
ri_html->add( '<li>You can link the package later or just export the package content as a ZIP file.</li>' ).
ri_html->add( '</ul></p>' ).
ri_html->add( '</ul></p>' ).
ri_html->add( '<h2>Repository list and favorites</h2>' ).
ri_html->add( '<p><ul>' ).
ri_html->add( |<li>To favorite a repository, use the {
ri_html->icon( 'star/darkgrey' ) } icon in the repository list.</li>| ).
ri_html->add( |<li>To go to a repository, click on the repository name.</li>| ).
ri_html->add( |<li>To go back to your favorites, use the| ).
ri_html->add_a(
iv_txt = zcl_abapgit_gui_buttons=>repo_list( )
iv_act = zif_abapgit_definitions=>c_action-abapgit_home ).
ri_html->add( |</li>| ).
ri_html->add( `<li>` ).
ri_html->add_a( iv_txt = 'Explore'
iv_act = zif_abapgit_definitions=>c_action-go_explore ).
ri_html->add( ' to find projects using abapGit</li>' ).
ri_html->add( '</ul></p>' ).
ri_html->add( '</div>' ).
ENDMETHOD.
ENDCLASS.
|