From 4d741061672225c39b6137fd05279c7f8c9fe468 Mon Sep 17 00:00:00 2001 From: Lars Hvam Date: Mon, 18 Mar 2024 11:38:20 +0100 Subject: [PATCH 1/5] add salv constants --- src/cl_gui_alv_grid.clas.abap | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/cl_gui_alv_grid.clas.abap b/src/cl_gui_alv_grid.clas.abap index 6cd938a..c1432a9 100644 --- a/src/cl_gui_alv_grid.clas.abap +++ b/src/cl_gui_alv_grid.clas.abap @@ -65,6 +65,17 @@ CLASS cl_gui_alv_grid DEFINITION PUBLIC. it_index_rows TYPE any OPTIONAL it_row_no TYPE any OPTIONAL is_keep_other_selections TYPE abap_bool OPTIONAL. + + CONSTANTS mc_fc_loc_copy_row TYPE ui_func VALUE 'TODO'. + CONSTANTS mc_fc_loc_delete_row TYPE ui_func VALUE 'TODO'. + CONSTANTS mc_fc_loc_append_row TYPE ui_func VALUE 'TODO'. + CONSTANTS mc_fc_loc_insert_row TYPE ui_func VALUE 'TODO'. + CONSTANTS mc_fc_loc_move_row TYPE ui_func VALUE 'TODO'. + CONSTANTS mc_fc_loc_copy TYPE ui_func VALUE 'TODO'. + CONSTANTS mc_fc_loc_cut TYPE ui_func VALUE 'TODO'. + CONSTANTS mc_fc_loc_paste TYPE ui_func VALUE 'TODO'. + CONSTANTS mc_fc_loc_paste_new_row TYPE ui_func VALUE 'TODO'. + CONSTANTS mc_fc_loc_undo TYPE ui_func VALUE 'TODO'. ENDCLASS. CLASS cl_gui_alv_grid IMPLEMENTATION. From 8e87e4d632bd66b033918ba1aa6105273a30f981 Mon Sep 17 00:00:00 2001 From: Lars Hvam Date: Mon, 18 Mar 2024 11:40:03 +0100 Subject: [PATCH 2/5] add method set_focus --- src/cl_gui_control.clas.abap | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/cl_gui_control.clas.abap b/src/cl_gui_control.clas.abap index 2d32c1b..7469546 100644 --- a/src/cl_gui_control.clas.abap +++ b/src/cl_gui_control.clas.abap @@ -1,7 +1,15 @@ CLASS cl_gui_control DEFINITION PUBLIC. PUBLIC SECTION. + + CLASS-METHODS set_focus + IMPORTING + control TYPE REF TO cl_gui_control. ENDCLASS. CLASS cl_gui_control IMPLEMENTATION. + METHOD set_focus. + ASSERT 1 = 'todo'. + ENDMETHOD. + ENDCLASS. \ No newline at end of file From a0760e1dcf84f918e000656386fd5dd66a7d2bde Mon Sep 17 00:00:00 2001 From: Lars Hvam Date: Mon, 18 Mar 2024 11:44:46 +0100 Subject: [PATCH 3/5] update --- src/cl_gui_alv_grid.clas.abap | 10 ++++++++++ src/cl_gui_splitter_container.clas.abap | 11 +++++++++++ 2 files changed, 21 insertions(+) diff --git a/src/cl_gui_alv_grid.clas.abap b/src/cl_gui_alv_grid.clas.abap index c1432a9..86883cd 100644 --- a/src/cl_gui_alv_grid.clas.abap +++ b/src/cl_gui_alv_grid.clas.abap @@ -52,6 +52,10 @@ CLASS cl_gui_alv_grid DEFINITION PUBLIC. VALUE(e_column) TYPE any OPTIONAL VALUE(es_row_no) TYPE any OPTIONAL. + EVENTS user_command + EXPORTING + VALUE(e_ucomm) TYPE sy-ucomm OPTIONAL. + CLASS-METHODS offline RETURNING VALUE(e_offline) TYPE i. @@ -66,6 +70,8 @@ CLASS cl_gui_alv_grid DEFINITION PUBLIC. it_row_no TYPE any OPTIONAL is_keep_other_selections TYPE abap_bool OPTIONAL. + METHODS set_toolbar_interactive. + CONSTANTS mc_fc_loc_copy_row TYPE ui_func VALUE 'TODO'. CONSTANTS mc_fc_loc_delete_row TYPE ui_func VALUE 'TODO'. CONSTANTS mc_fc_loc_append_row TYPE ui_func VALUE 'TODO'. @@ -84,6 +90,10 @@ CLASS cl_gui_alv_grid IMPLEMENTATION. ASSERT 1 = 'todo'. ENDMETHOD. + METHOD set_toolbar_interactive. + ASSERT 1 = 'todo'. + ENDMETHOD. + METHOD set_ready_for_input. ASSERT 1 = 'todo'. ENDMETHOD. diff --git a/src/cl_gui_splitter_container.clas.abap b/src/cl_gui_splitter_container.clas.abap index 64e6a41..bad0c42 100644 --- a/src/cl_gui_splitter_container.clas.abap +++ b/src/cl_gui_splitter_container.clas.abap @@ -1,5 +1,12 @@ CLASS cl_gui_splitter_container DEFINITION PUBLIC. PUBLIC SECTION. + + METHODS constructor + IMPORTING + parent TYPE REF TO cl_gui_container OPTIONAL + rows TYPE i OPTIONAL + columns TYPE i OPTIONAL. + METHODS free. METHODS set_column_width @@ -29,6 +36,10 @@ ENDCLASS. CLASS cl_gui_splitter_container IMPLEMENTATION. + METHOD constructor. + ASSERT 1 = 'todo'. + ENDMETHOD. + METHOD free. ASSERT 1 = 'todo'. ENDMETHOD. From 79dfb0a9098495f913389b5c9426bd3367d11bd2 Mon Sep 17 00:00:00 2001 From: Lars Hvam Date: Mon, 18 Mar 2024 11:46:29 +0100 Subject: [PATCH 4/5] add event --- src/cl_alv_event_toolbar_set.clas.abap | 7 +++++++ src/cl_gui_alv_grid.clas.abap | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 src/cl_alv_event_toolbar_set.clas.abap diff --git a/src/cl_alv_event_toolbar_set.clas.abap b/src/cl_alv_event_toolbar_set.clas.abap new file mode 100644 index 0000000..109567c --- /dev/null +++ b/src/cl_alv_event_toolbar_set.clas.abap @@ -0,0 +1,7 @@ +CLASS cl_alv_event_toolbar_set DEFINITION PUBLIC. + PUBLIC SECTION. +ENDCLASS. + +CLASS cl_alv_event_toolbar_set IMPLEMENTATION. + +ENDCLASS. \ No newline at end of file diff --git a/src/cl_gui_alv_grid.clas.abap b/src/cl_gui_alv_grid.clas.abap index 86883cd..801f543 100644 --- a/src/cl_gui_alv_grid.clas.abap +++ b/src/cl_gui_alv_grid.clas.abap @@ -56,6 +56,11 @@ CLASS cl_gui_alv_grid DEFINITION PUBLIC. EXPORTING VALUE(e_ucomm) TYPE sy-ucomm OPTIONAL. + EVENTS toolbar + EXPORTING + VALUE(e_object) TYPE REF TO cl_alv_event_toolbar_set OPTIONAL + VALUE(e_interactive) TYPE char1 OPTIONAL. + CLASS-METHODS offline RETURNING VALUE(e_offline) TYPE i. From de3ac8ac2ad6d5f9ad17fbbc5e9361674ebacc48 Mon Sep 17 00:00:00 2001 From: Lars Hvam Date: Mon, 18 Mar 2024 11:51:57 +0100 Subject: [PATCH 5/5] add --- src/ddic/ui_functions.ttyp.xml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/ddic/ui_functions.ttyp.xml diff --git a/src/ddic/ui_functions.ttyp.xml b/src/ddic/ui_functions.ttyp.xml new file mode 100644 index 0000000..e971785 --- /dev/null +++ b/src/ddic/ui_functions.ttyp.xml @@ -0,0 +1,19 @@ + + + + + + UI_FUNCTIONS + E + UI_FUNC + E + CHAR + 000070 + T + D + N + UI_FUNCTIONS + + + +