2023-05-26 19:32:20 +00:00
|
|
|
@Calendar::AddEventWidget {
|
2023-10-06 21:24:37 +00:00
|
|
|
fill_with_background_color: true
|
|
|
|
layout: @GUI::VerticalBoxLayout {
|
|
|
|
margins: [4]
|
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Widget {
|
|
|
|
fill_with_background_color: true
|
2023-10-07 19:54:33 +00:00
|
|
|
fixed_height: 20
|
|
|
|
layout: @GUI::HorizontalBoxLayout {}
|
2023-10-06 21:24:37 +00:00
|
|
|
|
|
|
|
@GUI::Label {
|
2023-10-07 19:54:33 +00:00
|
|
|
text: "Title:"
|
2023-10-06 21:24:37 +00:00
|
|
|
text_alignment: "CenterLeft"
|
|
|
|
fixed_height: 14
|
|
|
|
font_weight: "Bold"
|
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::TextBox {
|
|
|
|
name: "event_title_textbox"
|
2023-10-07 19:54:33 +00:00
|
|
|
fixed_size: [310, 20]
|
2023-10-06 21:24:37 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Widget {
|
|
|
|
fill_with_background_color: true
|
|
|
|
fixed_height: 25
|
|
|
|
layout: @GUI::HorizontalBoxLayout {
|
|
|
|
spacing: 4
|
|
|
|
}
|
|
|
|
|
2023-10-07 19:54:33 +00:00
|
|
|
@GUI::Label {
|
|
|
|
text: "Start:"
|
|
|
|
text_alignment: "CenterLeft"
|
|
|
|
fixed_height: 14
|
|
|
|
font_weight: "Bold"
|
|
|
|
}
|
|
|
|
|
2023-11-17 18:33:01 +00:00
|
|
|
@GUI::TextBox {
|
|
|
|
name: "start_date"
|
|
|
|
mode: "ReadOnly"
|
|
|
|
fixed_width: 80
|
2023-10-06 21:24:37 +00:00
|
|
|
}
|
|
|
|
|
2023-11-17 18:33:01 +00:00
|
|
|
@GUI::Button {
|
|
|
|
name: "pick_start_date"
|
|
|
|
fixed_width: 20
|
2023-10-06 21:24:37 +00:00
|
|
|
}
|
2023-10-07 19:54:33 +00:00
|
|
|
|
|
|
|
@GUI::SpinBox {
|
|
|
|
name: "start_hour"
|
|
|
|
fixed_size: [50, 20]
|
2024-01-08 09:58:47 +00:00
|
|
|
min: 0
|
|
|
|
max: 23
|
2023-10-07 19:54:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::SpinBox {
|
|
|
|
name: "start_minute"
|
|
|
|
fixed_size: [40, 20]
|
2023-11-17 18:47:18 +00:00
|
|
|
min: 0
|
2023-10-07 19:54:33 +00:00
|
|
|
max: 59
|
|
|
|
}
|
2023-10-06 21:24:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Widget {
|
|
|
|
fill_with_background_color: true
|
|
|
|
fixed_height: 25
|
|
|
|
layout: @GUI::HorizontalBoxLayout {
|
|
|
|
spacing: 4
|
|
|
|
}
|
|
|
|
|
2023-10-07 19:54:33 +00:00
|
|
|
@GUI::Label {
|
|
|
|
text: "End:"
|
|
|
|
text_alignment: "CenterLeft"
|
|
|
|
fixed_height: 14
|
|
|
|
font_weight: "Bold"
|
|
|
|
}
|
|
|
|
|
2023-11-17 18:33:01 +00:00
|
|
|
@GUI::TextBox {
|
|
|
|
name: "end_date"
|
|
|
|
mode: "ReadOnly"
|
|
|
|
fixed_width: 80
|
2023-10-07 19:54:33 +00:00
|
|
|
}
|
|
|
|
|
2023-11-17 18:33:01 +00:00
|
|
|
@GUI::Button {
|
|
|
|
name: "pick_end_date"
|
|
|
|
fixed_width: 20
|
2023-10-07 19:54:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::SpinBox {
|
|
|
|
name: "end_hour"
|
2023-10-06 21:24:37 +00:00
|
|
|
fixed_size: [50, 20]
|
2024-01-08 09:58:47 +00:00
|
|
|
min: 0
|
|
|
|
max: 23
|
2023-10-06 21:24:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::SpinBox {
|
2023-10-07 19:54:33 +00:00
|
|
|
name: "end_minute"
|
2023-10-06 21:24:37 +00:00
|
|
|
fixed_size: [40, 20]
|
2023-11-17 18:47:18 +00:00
|
|
|
min: 0
|
2023-10-06 21:24:37 +00:00
|
|
|
max: 59
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-01-08 11:14:00 +00:00
|
|
|
@GUI::Widget {
|
|
|
|
fill_with_background_color: true
|
|
|
|
fixed_height: 25
|
|
|
|
layout: @GUI::HorizontalBoxLayout {
|
|
|
|
spacing: 4
|
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::Label {
|
|
|
|
text: "Duration:"
|
|
|
|
text_alignment: "CenterLeft"
|
|
|
|
fixed_height: 14
|
|
|
|
font_weight: "Bold"
|
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::SpinBox {
|
|
|
|
name: "duration_hour"
|
|
|
|
fixed_size: [50, 20]
|
|
|
|
min: 0
|
|
|
|
}
|
|
|
|
|
|
|
|
@GUI::SpinBox {
|
|
|
|
name: "duration_minute"
|
|
|
|
fixed_size: [40, 20]
|
|
|
|
min: 0
|
|
|
|
max: 59
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-10-06 21:24:37 +00:00
|
|
|
@GUI::Layout::Spacer {}
|
|
|
|
|
|
|
|
@GUI::Widget {
|
|
|
|
fill_with_background_color: true
|
|
|
|
fixed_height: 20
|
|
|
|
layout: @GUI::HorizontalBoxLayout {}
|
|
|
|
|
|
|
|
@GUI::Layout::Spacer {}
|
|
|
|
|
2023-11-17 18:48:26 +00:00
|
|
|
@GUI::Button {
|
|
|
|
name: "cancel_button"
|
|
|
|
text: "Cancel"
|
|
|
|
fixed_size: [80, 20]
|
|
|
|
}
|
|
|
|
|
2023-10-06 21:24:37 +00:00
|
|
|
@GUI::Button {
|
|
|
|
name: "ok_button"
|
|
|
|
text: "OK"
|
|
|
|
fixed_size: [80, 20]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|