aboutsummaryrefslogtreecommitdiff
path: root/main.tscn
diff options
context:
space:
mode:
Diffstat (limited to 'main.tscn')
-rw-r--r--main.tscn190
1 files changed, 107 insertions, 83 deletions
diff --git a/main.tscn b/main.tscn
index 83ee8d3..53f083a 100644
--- a/main.tscn
+++ b/main.tscn
@@ -1,9 +1,14 @@
-[gd_scene load_steps=5 format=2]
+[gd_scene load_steps=10 format=2]
[ext_resource path="res://main.gd" type="Script" id=1]
[ext_resource path="res://date_picker/date_picker.tscn" type="PackedScene" id=2]
[ext_resource path="res://theme_white.tres" type="Theme" id=3]
[ext_resource path="res://menu/menu.gd" type="Script" id=4]
+[ext_resource path="res://logic/database.gd" type="Script" id=5]
+[ext_resource path="res://icons/edit.png" type="Texture" id=6]
+[ext_resource path="res://icons/add.png" type="Texture" id=7]
+[ext_resource path="res://icons/delete.png" type="Texture" id=8]
+[ext_resource path="res://logic/stage.gd" type="Script" id=9]
[node name="main" type="Control"]
anchor_right = 1.0
@@ -14,192 +19,211 @@ __meta__ = {
"_edit_use_anchors_": false
}
-[node name="body" type="TabContainer" parent="."]
+[node name="database" type="ItemList" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
-tab_align = 0
+margin_top = 60.0
+script = ExtResource( 5 )
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="actions" type="VBoxContainer" parent="database"]
+anchor_left = 1.0
+anchor_top = 1.0
+anchor_right = 1.0
+anchor_bottom = 1.0
+margin_left = -140.0
+margin_top = -410.0
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="delete" type="Button" parent="database/actions"]
+margin_right = 140.0
+margin_bottom = 134.0
+focus_mode = 0
+enabled_focus_mode = 0
+icon = ExtResource( 8 )
+flat = true
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="edit" type="Button" parent="database/actions"]
+margin_top = 138.0
+margin_right = 140.0
+margin_bottom = 272.0
+focus_mode = 0
+enabled_focus_mode = 0
+icon = ExtResource( 6 )
+flat = true
+__meta__ = {
+"_edit_use_anchors_": false
+}
+
+[node name="add" type="Button" parent="database/actions"]
+margin_top = 276.0
+margin_right = 140.0
+margin_bottom = 410.0
+focus_mode = 0
+enabled_focus_mode = 0
+icon = ExtResource( 7 )
+flat = true
__meta__ = {
"_edit_use_anchors_": false
}
-[node name="record" type="ScrollContainer" parent="body"]
+[node name="stage" type="ScrollContainer" parent="."]
+visible = false
anchor_right = 1.0
anchor_bottom = 1.0
-margin_left = 4.0
margin_top = 60.0
-margin_right = -4.0
-margin_bottom = -4.0
scroll_horizontal_enabled = false
+script = ExtResource( 9 )
__meta__ = {
"_edit_use_anchors_": false
}
-[node name="VBoxContainer" type="VBoxContainer" parent="body/record"]
-margin_right = 1072.0
-margin_bottom = 1856.0
-rect_clip_content = true
+[node name="controls" type="VBoxContainer" parent="stage"]
+margin_right = 1080.0
+margin_bottom = 1860.0
size_flags_horizontal = 3
size_flags_vertical = 3
+__meta__ = {
+"_edit_use_anchors_": false
+}
-[node name="process_number" type="LineEdit" parent="body/record/VBoxContainer"]
-margin_right = 1072.0
+[node name="process_id" type="LineEdit" parent="stage/controls"]
+margin_right = 1080.0
margin_bottom = 52.0
placeholder_text = "Nº Processo"
caret_blink = true
caret_blink_speed = 0.5
-[node name="surgery_number" type="LineEdit" parent="body/record/VBoxContainer"]
+[node name="surgery_id" type="LineEdit" parent="stage/controls"]
margin_top = 56.0
-margin_right = 1072.0
+margin_right = 1080.0
margin_bottom = 108.0
placeholder_text = "Nº Cirurgia"
caret_blink = true
caret_blink_speed = 0.5
-[node name="date_picker" parent="body/record/VBoxContainer" instance=ExtResource( 2 )]
+[node name="date_picker" parent="stage/controls" instance=ExtResource( 2 )]
anchor_right = 0.0
anchor_bottom = 0.0
margin_top = 112.0
-margin_right = 1072.0
+margin_right = 1080.0
margin_bottom = 312.0
rect_min_size = Vector2( 400, 200 )
-[node name="place" type="LineEdit" parent="body/record/VBoxContainer"]
+[node name="place" type="LineEdit" parent="stage/controls"]
margin_top = 316.0
-margin_right = 1072.0
+margin_right = 1080.0
margin_bottom = 368.0
placeholder_text = "Local"
caret_blink = true
caret_blink_speed = 0.5
-[node name="anesthesia" type="LineEdit" parent="body/record/VBoxContainer"]
+[node name="anesthetic" type="LineEdit" parent="stage/controls"]
margin_top = 372.0
-margin_right = 1072.0
+margin_right = 1080.0
margin_bottom = 424.0
placeholder_text = "Anesthesics"
caret_blink = true
caret_blink_speed = 0.5
-[node name="first_aider" type="LineEdit" parent="body/record/VBoxContainer"]
+[node name="first_assistant" type="LineEdit" parent="stage/controls"]
margin_top = 428.0
-margin_right = 1072.0
+margin_right = 1080.0
margin_bottom = 480.0
placeholder_text = "1º Ajudante"
caret_blink = true
caret_blink_speed = 0.5
-[node name="type" type="LineEdit" parent="body/record/VBoxContainer"]
+[node name="type" type="LineEdit" parent="stage/controls"]
margin_top = 484.0
-margin_right = 1072.0
+margin_right = 1080.0
margin_bottom = 536.0
placeholder_text = "Tipo"
caret_blink = true
caret_blink_speed = 0.5
-[node name="sub_type" type="LineEdit" parent="body/record/VBoxContainer"]
+[node name="sub_type" type="LineEdit" parent="stage/controls"]
margin_top = 540.0
-margin_right = 1072.0
+margin_right = 1080.0
margin_bottom = 592.0
placeholder_text = "Subtipo"
caret_blink = true
caret_blink_speed = 0.5
-[node name="sub_sub_type" type="LineEdit" parent="body/record/VBoxContainer"]
+[node name="sub_sub_type" type="LineEdit" parent="stage/controls"]
margin_top = 596.0
-margin_right = 1072.0
+margin_right = 1080.0
margin_bottom = 648.0
placeholder_text = "Sub-Subtipo"
caret_blink = true
caret_blink_speed = 0.5
-[node name="pathology" type="LineEdit" parent="body/record/VBoxContainer"]
+[node name="pathology" type="LineEdit" parent="stage/controls"]
margin_top = 652.0
-margin_right = 1072.0
+margin_right = 1080.0
margin_bottom = 704.0
placeholder_text = "Patologia"
caret_blink = true
caret_blink_speed = 0.5
-[node name="intervention" type="LineEdit" parent="body/record/VBoxContainer"]
+[node name="intervention" type="LineEdit" parent="stage/controls"]
margin_top = 708.0
-margin_right = 1072.0
+margin_right = 1080.0
margin_bottom = 760.0
placeholder_text = "Intervenção"
caret_blink = true
caret_blink_speed = 0.5
-[node name="urgency" type="CheckBox" parent="body/record/VBoxContainer"]
+[node name="is_urgency" type="CheckBox" parent="stage/controls"]
margin_top = 764.0
-margin_right = 1072.0
+margin_right = 1080.0
margin_bottom = 814.0
text = "Urgência"
-[node name="notes" type="LineEdit" parent="body/record/VBoxContainer"]
+[node name="notes" type="LineEdit" parent="stage/controls"]
margin_top = 818.0
-margin_right = 1072.0
+margin_right = 1080.0
margin_bottom = 870.0
placeholder_text = "Notas"
caret_blink = true
caret_blink_speed = 0.5
-[node name="output" type="RichTextLabel" parent="body/record/VBoxContainer"]
+[node name="save" type="Button" parent="stage/controls"]
margin_top = 874.0
-margin_right = 1072.0
+margin_right = 1080.0
margin_bottom = 924.0
+grow_horizontal = 2
+grow_vertical = 2
rect_min_size = Vector2( 0, 50 )
+text = "save"
__meta__ = {
"_edit_use_anchors_": false
}
-[node name="timer" type="RichTextLabel" parent="body/record/VBoxContainer"]
+[node name="discard" type="Button" parent="stage/controls"]
margin_top = 928.0
-margin_right = 1072.0
+margin_right = 1080.0
margin_bottom = 978.0
-rect_min_size = Vector2( 0, 50 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="button" type="Button" parent="body/record/VBoxContainer"]
-margin_top = 982.0
-margin_right = 1072.0
-margin_bottom = 1032.0
grow_horizontal = 2
grow_vertical = 2
rect_min_size = Vector2( 0, 50 )
-text = "PRESS ME"
+text = "discard"
__meta__ = {
"_edit_use_anchors_": false
}
-[node name="log" type="RichTextLabel" parent="body/record/VBoxContainer"]
-margin_top = 1036.0
-margin_right = 1072.0
-margin_bottom = 1086.0
-rect_min_size = Vector2( 0, 50 )
-__meta__ = {
-"_edit_use_anchors_": false
-}
-
-[node name="list" type="ScrollContainer" parent="body"]
-visible = false
-anchor_right = 1.0
-anchor_bottom = 1.0
-margin_left = 4.0
-margin_top = 30.0
-margin_right = -4.0
-margin_bottom = -4.0
-scroll_horizontal_enabled = false
-
-[node name="ItemList" type="ItemList" parent="body/list"]
-visible = false
-
[node name="menu" type="MenuButton" parent="."]
-anchor_left = 1.0
anchor_right = 1.0
-margin_left = -32.0
-margin_bottom = 26.0
+margin_bottom = 48.0
text = "≡"
+align = 2
script = ExtResource( 4 )
__meta__ = {
"_edit_use_anchors_": false
@@ -221,7 +245,7 @@ anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 3
size_flags_vertical = 3
-window_title = ""
+window_title = "delete filters"
dialog_text = "Are you sure you want to delete all filters?"
dialog_autowrap = true
__meta__ = {
@@ -233,7 +257,7 @@ anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 3
size_flags_vertical = 3
-window_title = ""
+window_title = "Open a File"
mode = 0
access = 2
filters = PoolStringArray( "*.csv" )
@@ -249,7 +273,7 @@ anchor_right = 1.0
anchor_bottom = 1.0
size_flags_horizontal = 3
size_flags_vertical = 3
-window_title = ""
+window_title = "export filters"
access = 2
filters = PoolStringArray( "*.csv" )
show_hidden_files = true
@@ -260,11 +284,11 @@ __meta__ = {
}
[node name="debug" type="Label" parent="."]
-anchor_left = 1.0
+visible = false
anchor_right = 1.0
-margin_left = -571.0
-margin_top = 220.0
-margin_bottom = 829.0
+anchor_bottom = 1.0
+margin_top = 60.0
+valign = 2
__meta__ = {
"_edit_use_anchors_": false
}