From 2e5c0de21b0f35531e3d42e63c27df80cf3fad02 Mon Sep 17 00:00:00 2001 From: dam Date: Wed, 1 Dec 2021 02:26:44 +0000 Subject: Convert from native to godot --- old_native_project/AndroidManifest.xml | 30 ++ .../gen/net/redroid/medlog/BuildConfig.java | 6 + old_native_project/gen/net/redroid/medlog/R.java | 145 +++++++ old_native_project/ic_launcher-web.png | Bin 0 -> 118840 bytes old_native_project/ic_launcher-web.png.import | 35 ++ old_native_project/libs/android-support-v4.jar | Bin 0 -> 627582 bytes old_native_project/libs/javacsv.jar | Bin 0 -> 13582 bytes old_native_project/lint.xml | 3 + old_native_project/proguard-project.txt | 20 + old_native_project/project.properties | 14 + .../res/drawable-hdpi/ic_launcher.png | Bin 0 -> 6369 bytes .../res/drawable-hdpi/ic_launcher.png.import | 35 ++ .../res/drawable-mdpi/ic_launcher.png | Bin 0 -> 3108 bytes .../res/drawable-mdpi/ic_launcher.png.import | 35 ++ .../res/drawable-xhdpi/ic_launcher.png | Bin 0 -> 9945 bytes .../res/drawable-xhdpi/ic_launcher.png.import | 35 ++ .../res/drawable-xxhdpi/ic_launcher.png | Bin 0 -> 18410 bytes .../res/drawable-xxhdpi/ic_launcher.png.import | 35 ++ old_native_project/res/layout/activity_main.xml | 23 ++ .../res/layout/fragment_file_operations.xml | 31 ++ .../res/layout/fragment_main_dummy.xml | 16 + .../res/layout/fragment_new_entry.xml | 216 ++++++++++ .../res/layout/fragment_view_data.xml | 24 ++ .../res/layout/multiline_spinner_dropdown_item.xml | 28 ++ .../res/layout/override_new_entry.xml | 95 +++++ old_native_project/res/menu/main.xml | 9 + old_native_project/res/values-sw600dp/dimens.xml | 8 + .../res/values-sw720dp-land/dimens.xml | 9 + old_native_project/res/values-v11/styles.xml | 11 + old_native_project/res/values-v14/styles.xml | 12 + old_native_project/res/values/dimens.xml | 7 + old_native_project/res/values/strings.xml | 38 ++ old_native_project/res/values/styles.xml | 20 + .../example/surgerylog/FileOperationsFragment.java | 185 +++++++++ .../com/example/surgerylog/ISpinnerRefresh.java | 9 + .../src/com/example/surgerylog/MainActivity.java | 330 ++++++++++++++++ .../src/com/example/surgerylog/MedLogInfo.java | 51 +++ .../src/com/example/surgerylog/MedLogRoot.java | 142 +++++++ .../src/com/example/surgerylog/MedLogSubType.java | 87 ++++ .../src/com/example/surgerylog/MedLogType.java | 52 +++ .../com/example/surgerylog/NewEntryFragment.java | 437 +++++++++++++++++++++ .../com/example/surgerylog/ViewDataFragment.java | 173 ++++++++ 42 files changed, 2406 insertions(+) create mode 100755 old_native_project/AndroidManifest.xml create mode 100755 old_native_project/gen/net/redroid/medlog/BuildConfig.java create mode 100755 old_native_project/gen/net/redroid/medlog/R.java create mode 100755 old_native_project/ic_launcher-web.png create mode 100644 old_native_project/ic_launcher-web.png.import create mode 100755 old_native_project/libs/android-support-v4.jar create mode 100755 old_native_project/libs/javacsv.jar create mode 100755 old_native_project/lint.xml create mode 100755 old_native_project/proguard-project.txt create mode 100755 old_native_project/project.properties create mode 100755 old_native_project/res/drawable-hdpi/ic_launcher.png create mode 100644 old_native_project/res/drawable-hdpi/ic_launcher.png.import create mode 100755 old_native_project/res/drawable-mdpi/ic_launcher.png create mode 100644 old_native_project/res/drawable-mdpi/ic_launcher.png.import create mode 100755 old_native_project/res/drawable-xhdpi/ic_launcher.png create mode 100644 old_native_project/res/drawable-xhdpi/ic_launcher.png.import create mode 100755 old_native_project/res/drawable-xxhdpi/ic_launcher.png create mode 100644 old_native_project/res/drawable-xxhdpi/ic_launcher.png.import create mode 100755 old_native_project/res/layout/activity_main.xml create mode 100755 old_native_project/res/layout/fragment_file_operations.xml create mode 100755 old_native_project/res/layout/fragment_main_dummy.xml create mode 100755 old_native_project/res/layout/fragment_new_entry.xml create mode 100755 old_native_project/res/layout/fragment_view_data.xml create mode 100755 old_native_project/res/layout/multiline_spinner_dropdown_item.xml create mode 100755 old_native_project/res/layout/override_new_entry.xml create mode 100755 old_native_project/res/menu/main.xml create mode 100755 old_native_project/res/values-sw600dp/dimens.xml create mode 100755 old_native_project/res/values-sw720dp-land/dimens.xml create mode 100755 old_native_project/res/values-v11/styles.xml create mode 100755 old_native_project/res/values-v14/styles.xml create mode 100755 old_native_project/res/values/dimens.xml create mode 100755 old_native_project/res/values/strings.xml create mode 100755 old_native_project/res/values/styles.xml create mode 100755 old_native_project/src/com/example/surgerylog/FileOperationsFragment.java create mode 100755 old_native_project/src/com/example/surgerylog/ISpinnerRefresh.java create mode 100755 old_native_project/src/com/example/surgerylog/MainActivity.java create mode 100755 old_native_project/src/com/example/surgerylog/MedLogInfo.java create mode 100755 old_native_project/src/com/example/surgerylog/MedLogRoot.java create mode 100755 old_native_project/src/com/example/surgerylog/MedLogSubType.java create mode 100755 old_native_project/src/com/example/surgerylog/MedLogType.java create mode 100755 old_native_project/src/com/example/surgerylog/NewEntryFragment.java create mode 100755 old_native_project/src/com/example/surgerylog/ViewDataFragment.java (limited to 'old_native_project') diff --git a/old_native_project/AndroidManifest.xml b/old_native_project/AndroidManifest.xml new file mode 100755 index 0000000..fd4ec79 --- /dev/null +++ b/old_native_project/AndroidManifest.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + diff --git a/old_native_project/gen/net/redroid/medlog/BuildConfig.java b/old_native_project/gen/net/redroid/medlog/BuildConfig.java new file mode 100755 index 0000000..c27f499 --- /dev/null +++ b/old_native_project/gen/net/redroid/medlog/BuildConfig.java @@ -0,0 +1,6 @@ +/** Automatically generated file. DO NOT MODIFY */ +package net.redroid.medlog; + +public final class BuildConfig { + public final static boolean DEBUG = true; +} \ No newline at end of file diff --git a/old_native_project/gen/net/redroid/medlog/R.java b/old_native_project/gen/net/redroid/medlog/R.java new file mode 100755 index 0000000..59722b1 --- /dev/null +++ b/old_native_project/gen/net/redroid/medlog/R.java @@ -0,0 +1,145 @@ +/* AUTO-GENERATED FILE. DO NOT MODIFY. + * + * This class was automatically generated by the + * aapt tool from the resource data it found. It + * should not be modified by hand. + */ + +package net.redroid.medlog; + +public final class R { + public static final class attr { + } + public static final class dimen { + /** Default screen margins, per the Android Design guidelines. + + Customize dimensions originally defined in res/values/dimens.xml (such as + screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here. + + */ + public static final int activity_horizontal_margin=0x7f040000; + public static final int activity_vertical_margin=0x7f040001; + } + public static final class drawable { + public static final int ic_launcher=0x7f020000; + } + public static final class id { + public static final int FileOperationsView=0x7f080002; + public static final int NewEntryView=0x7f080006; + public static final int OverrideNewEntry=0x7f080022; + public static final int RelativeLayout1=0x7f08001f; + public static final int action_settings=0x7f08002b; + public static final int anesthesiaOverride=0x7f08000d; + public static final int anesthesiaSpinner=0x7f08000c; + public static final int dataBaseListView=0x7f080021; + public static final int datePicker=0x7f080008; + public static final int exportDataBase=0x7f080004; + public static final int fillOverrideButton=0x7f08001d; + public static final int firstAiderOverride=0x7f08000f; + public static final int firstAiderSpinner=0x7f08000e; + public static final int importButton=0x7f080003; + public static final int interventionOverride=0x7f080019; + public static final int interventionSpinner=0x7f080018; + public static final int medSubSubTypeOverride=0x7f080015; + public static final int medSubSubTypeSpinner=0x7f080014; + public static final int medSubTypeOverride=0x7f080013; + public static final int medSubTypeSpinner=0x7f080012; + public static final int medTypeOverride=0x7f080011; + public static final int medTypeSpinner=0x7f080010; + public static final int nProcess=0x7f080007; + public static final int nSurgery=0x7f080009; + public static final int notesText=0x7f08001b; + public static final int overrideAnesthesia=0x7f08002a; + public static final int overrideCheckBox=0x7f08001c; + public static final int overrideFirstAider=0x7f080028; + public static final int overrideIntervention=0x7f080027; + public static final int overridePatholoty=0x7f080026; + public static final int overridePlace=0x7f080029; + public static final int overrideSubSubType=0x7f080025; + public static final int overrideSubType=0x7f080024; + public static final int overrideType=0x7f080023; + public static final int pager=0x7f080000; + public static final int pager_title_strip=0x7f080001; + public static final int pathologyOverride=0x7f080017; + public static final int pathologySpinner=0x7f080016; + public static final int placeOverride=0x7f08000b; + public static final int placeSpinner=0x7f08000a; + public static final int refreshBtn=0x7f080020; + public static final int saveButton=0x7f08001e; + public static final int section_label=0x7f080005; + public static final int urgencyCheckBox=0x7f08001a; + } + public static final class layout { + public static final int activity_main=0x7f030000; + public static final int fragment_file_operations=0x7f030001; + public static final int fragment_main_dummy=0x7f030002; + public static final int fragment_new_entry=0x7f030003; + public static final int fragment_view_data=0x7f030004; + public static final int multiline_spinner_dropdown_item=0x7f030005; + public static final int override_new_entry=0x7f030006; + } + public static final class menu { + public static final int main=0x7f070000; + } + public static final class string { + public static final int action_settings=0x7f050001; + public static final int anesthesia_str=0x7f05001c; + public static final int app_name=0x7f050000; + public static final int delete_str=0x7f05000c; + public static final int errorMissingProcessNumber_str=0x7f050010; + public static final int exportDataBase_str=0x7f050009; + public static final int exportMessageError_str=0x7f05000f; + public static final int exportMessage_str=0x7f05000e; + public static final int filloverride_str=0x7f050015; + public static final int firstaider_str=0x7f05001b; + public static final int importConfigs_str=0x7f050008; + public static final int intervention_str=0x7f05001a; + public static final int nProcess_str=0x7f050005; + public static final int nSurgery_str=0x7f050006; + public static final int no_str=0x7f050013; + public static final int notes_str=0x7f05001e; + public static final int ok_str=0x7f05000b; + public static final int override_str=0x7f050014; + public static final int pathology_str=0x7f050019; + public static final int place_str=0x7f05001d; + public static final int refresh_str=0x7f05000d; + public static final int save_str=0x7f05000a; + public static final int subsubtype_str=0x7f050018; + public static final int subtype_str=0x7f050017; + public static final int successSavingEntry_str=0x7f050011; + public static final int title_section1=0x7f050002; + public static final int title_section2=0x7f050003; + public static final int title_section3=0x7f050004; + public static final int type_str=0x7f050016; + public static final int urgency_str=0x7f050007; + public static final int yes_str=0x7f050012; + } + public static final class style { + /** + Base application theme, dependent on API level. This theme is replaced + by AppBaseTheme from res/values-vXX/styles.xml on newer devices. + + + Theme customizations available in newer API levels can go in + res/values-vXX/styles.xml, while customizations related to + backward-compatibility can go here. + + + Base application theme for API 11+. This theme completely replaces + AppBaseTheme from res/values/styles.xml on API 11+ devices. + + API 11 theme customizations can go here. + + Base application theme for API 14+. This theme completely replaces + AppBaseTheme from BOTH res/values/styles.xml and + res/values-v11/styles.xml on API 14+ devices. + + API 14 theme customizations can go here. + */ + public static final int AppBaseTheme=0x7f060000; + /** Application theme. + All customizations that are NOT specific to a particular API-level can go here. + */ + public static final int AppTheme=0x7f060001; + } +} diff --git a/old_native_project/ic_launcher-web.png b/old_native_project/ic_launcher-web.png new file mode 100755 index 0000000..e4d20ec Binary files /dev/null and b/old_native_project/ic_launcher-web.png differ diff --git a/old_native_project/ic_launcher-web.png.import b/old_native_project/ic_launcher-web.png.import new file mode 100644 index 0000000..f462da2 --- /dev/null +++ b/old_native_project/ic_launcher-web.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/ic_launcher-web.png-244ffa8897e9eebe71336a23a9033c01.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://old_native_project/ic_launcher-web.png" +dest_files=[ "res://.import/ic_launcher-web.png-244ffa8897e9eebe71336a23a9033c01.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/old_native_project/libs/android-support-v4.jar b/old_native_project/libs/android-support-v4.jar new file mode 100755 index 0000000..96644ed Binary files /dev/null and b/old_native_project/libs/android-support-v4.jar differ diff --git a/old_native_project/libs/javacsv.jar b/old_native_project/libs/javacsv.jar new file mode 100755 index 0000000..ceb59eb Binary files /dev/null and b/old_native_project/libs/javacsv.jar differ diff --git a/old_native_project/lint.xml b/old_native_project/lint.xml new file mode 100755 index 0000000..ee0eead --- /dev/null +++ b/old_native_project/lint.xml @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/old_native_project/proguard-project.txt b/old_native_project/proguard-project.txt new file mode 100755 index 0000000..f2fe155 --- /dev/null +++ b/old_native_project/proguard-project.txt @@ -0,0 +1,20 @@ +# To enable ProGuard in your project, edit project.properties +# to define the proguard.config property as described in that file. +# +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in ${sdk.dir}/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the ProGuard +# include property in project.properties. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/old_native_project/project.properties b/old_native_project/project.properties new file mode 100755 index 0000000..4ab1256 --- /dev/null +++ b/old_native_project/project.properties @@ -0,0 +1,14 @@ +# This file is automatically generated by Android Tools. +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! +# +# This file must be checked in Version Control Systems. +# +# To customize properties used by the Ant build system edit +# "ant.properties", and override values to adapt the script to your +# project structure. +# +# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home): +#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt + +# Project target. +target=android-19 diff --git a/old_native_project/res/drawable-hdpi/ic_launcher.png b/old_native_project/res/drawable-hdpi/ic_launcher.png new file mode 100755 index 0000000..9ef6cfb Binary files /dev/null and b/old_native_project/res/drawable-hdpi/ic_launcher.png differ diff --git a/old_native_project/res/drawable-hdpi/ic_launcher.png.import b/old_native_project/res/drawable-hdpi/ic_launcher.png.import new file mode 100644 index 0000000..fb44ccd --- /dev/null +++ b/old_native_project/res/drawable-hdpi/ic_launcher.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/ic_launcher.png-7b75c07f16537d4d1276f02b2da8f046.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://old_native_project/res/drawable-hdpi/ic_launcher.png" +dest_files=[ "res://.import/ic_launcher.png-7b75c07f16537d4d1276f02b2da8f046.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/old_native_project/res/drawable-mdpi/ic_launcher.png b/old_native_project/res/drawable-mdpi/ic_launcher.png new file mode 100755 index 0000000..330d0a4 Binary files /dev/null and b/old_native_project/res/drawable-mdpi/ic_launcher.png differ diff --git a/old_native_project/res/drawable-mdpi/ic_launcher.png.import b/old_native_project/res/drawable-mdpi/ic_launcher.png.import new file mode 100644 index 0000000..3e22a92 --- /dev/null +++ b/old_native_project/res/drawable-mdpi/ic_launcher.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/ic_launcher.png-60911ba4a7bacee1ef18c90549959e99.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://old_native_project/res/drawable-mdpi/ic_launcher.png" +dest_files=[ "res://.import/ic_launcher.png-60911ba4a7bacee1ef18c90549959e99.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/old_native_project/res/drawable-xhdpi/ic_launcher.png b/old_native_project/res/drawable-xhdpi/ic_launcher.png new file mode 100755 index 0000000..e6341a6 Binary files /dev/null and b/old_native_project/res/drawable-xhdpi/ic_launcher.png differ diff --git a/old_native_project/res/drawable-xhdpi/ic_launcher.png.import b/old_native_project/res/drawable-xhdpi/ic_launcher.png.import new file mode 100644 index 0000000..03ba604 --- /dev/null +++ b/old_native_project/res/drawable-xhdpi/ic_launcher.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/ic_launcher.png-392be394da50ded53954d6a34405ccd0.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://old_native_project/res/drawable-xhdpi/ic_launcher.png" +dest_files=[ "res://.import/ic_launcher.png-392be394da50ded53954d6a34405ccd0.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/old_native_project/res/drawable-xxhdpi/ic_launcher.png b/old_native_project/res/drawable-xxhdpi/ic_launcher.png new file mode 100755 index 0000000..590a40f Binary files /dev/null and b/old_native_project/res/drawable-xxhdpi/ic_launcher.png differ diff --git a/old_native_project/res/drawable-xxhdpi/ic_launcher.png.import b/old_native_project/res/drawable-xxhdpi/ic_launcher.png.import new file mode 100644 index 0000000..562f414 --- /dev/null +++ b/old_native_project/res/drawable-xxhdpi/ic_launcher.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/ic_launcher.png-d4038f1f519c934c855a1e1587c8d21b.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://old_native_project/res/drawable-xxhdpi/ic_launcher.png" +dest_files=[ "res://.import/ic_launcher.png-d4038f1f519c934c855a1e1587c8d21b.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/old_native_project/res/layout/activity_main.xml b/old_native_project/res/layout/activity_main.xml new file mode 100755 index 0000000..6cfef6f --- /dev/null +++ b/old_native_project/res/layout/activity_main.xml @@ -0,0 +1,23 @@ + + + + + + + diff --git a/old_native_project/res/layout/fragment_file_operations.xml b/old_native_project/res/layout/fragment_file_operations.xml new file mode 100755 index 0000000..2703afb --- /dev/null +++ b/old_native_project/res/layout/fragment_file_operations.xml @@ -0,0 +1,31 @@ + + + + +