Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
luxe committed Jul 21, 2024
1 parent cad2506 commit b684afc
Show file tree
Hide file tree
Showing 15 changed files with 52 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/code/programs/ide/frame/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ hcp_hdrs_derive(
"//code/utilities/data_structures/graphics/objects/buildable_faced_tree:buildable_face_tree_is_mouse_over",
"//code/utilities/data_structures/graphics/objects/buildable_schema_faced_tree:buildable_schema_face_tree_drawer",
"//code/utilities/data_structures/graphics/objects/buttoned_faced_tree:button_face_tree_drawer",
"//code/utilities/data_structures/graphics/objects/faced_label:faced_label_drawer",
"//code/utilities/data_structures/graphics/objects/cursor:cursor_drawer",
"//code/utilities/data_structures/graphics/objects/cursor:label_cursor_action_doer",
"//code/utilities/data_structures/graphics/objects/faced_grid:grid_label_drawer",
Expand Down Expand Up @@ -184,6 +185,7 @@ hcp_hdrs_derive(
"//code/utilities/data_structures/graphics/objects/buildable_schema_faced_tree:buildable_schema_face_tree_drawer",
"//code/utilities/data_structures/graphics/objects/buildable_schema_faced_tree:buildable_schema_faced_tree_is_mouse_over",
"//code/utilities/data_structures/graphics/objects/buttoned_faced_tree:button_face_tree_drawer",
"//code/utilities/data_structures/graphics/objects/faced_label:faced_label_is_mouse_over",
"//code/utilities/data_structures/graphics/objects/cursor:cursor_drawer",
"//code/utilities/data_structures/graphics/objects/cursor:label_cursor_action_doer",
"//code/utilities/data_structures/graphics/objects/faced_grid:grid_label_drawer",
Expand Down
8 changes: 8 additions & 0 deletions source/code/programs/ide/frame/apply_schema_to_elements.hcp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ class
//NOT NEEDED
(void)x;
},
[&](Positioned_Faced_Label & x) {
//NOT NEEDED
(void)x;
},
}, it.element);

Expand Down Expand Up @@ -73,5 +77,9 @@ class
//NOT NEEDED
(void)x;
},
[&](Positioned_Faced_Label & x) {
//NOT NEEDED
(void)x;
},
}, it.element);
4 changes: 4 additions & 0 deletions source/code/programs/ide/frame/convert_all_ide_elements.hcp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ class
//todo
results.frame_elements.types += Label_Drawer::Full_Draw(settings.desktop.unilang_font_lookup,x,pc_input).types;
},
[&](Positioned_Faced_Label & x) {
//todo
results.frame_elements.types += Faced_Label_Drawer::Full_Draw(settings.desktop.unilang_font_lookup,x,pc_input).types;
},
}, it.element);
}

Expand Down
3 changes: 3 additions & 0 deletions source/code/programs/ide/frame/find_mouse_over_index.hcp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ class
[&](Positioned_Label & x) {
was_performed = Label_Is_Mouse_Over::Check(x.pos, x.state, pc_input);
},
[&](Positioned_Faced_Label & x) {
was_performed = Faced_Label_Is_Mouse_Over::Check(settings.desktop.unilang_font_lookup,x, x.pos, pc_input);
},
}, it.element);

if (was_performed){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ class
//NOT NEEDED
(void)x;
},
[&](Positioned_Faced_Label & x) {
//NOT NEEDED
(void)x;
},
}, it.element);

Expand Down
4 changes: 4 additions & 0 deletions source/code/programs/ide/frame/move_ide_element.hcp
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,9 @@ class
x.pos.x += pos.x;
x.pos.y += pos.y;
},
[&](Positioned_Faced_Label & x) {
x.pos.x += pos.x;
x.pos.y += pos.y;
},
}, it.element);
8 changes: 8 additions & 0 deletions source/code/programs/ide/frame/validate_ide_element.hcp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ class
//NOT NEEDED
(void)x;
},
[&](Positioned_Faced_Label const& x) {
//NOT NEEDED
(void)x;
},
}, it.element);


Expand Down Expand Up @@ -76,6 +80,10 @@ class
//NOT NEEDED
(void)x;
},
[&](Positioned_Faced_Label const& x) {
//NOT NEEDED
(void)x;
},
}, it.element);


Expand Down
2 changes: 2 additions & 0 deletions source/code/programs/ide/gl_context_element_load.hcp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class
[&](Positioned_Rectangle_Settings & x) {
},
[&](Positioned_Label & x) {
},
[&](Positioned_Faced_Label & x) {
}
}, it.element);
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ class
e.element = e2;
settings.elements.types.emplace_back(e);
}
else if (selected_item == "Add Positioned_Faced_Label"){
//
}
else if (selected_item == "Add Positioned_Image_Data"){
//
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ class
},
[&](Positioned_Label & x) {
},
[&](Positioned_Faced_Label & x) {
},
[&](Positioned_Select_Menu & x) {
auto label = Tree_Label_Active_Finder::Find_Active_Label(x.menu);
if (label != x.menu.nodes.end()){
Expand Down
1 change: 1 addition & 0 deletions source/code/programs/ide/settings/data/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ hcp_hdrs_derive(
"//code/utilities/data_structures/graphics/image:positioned_image_data",
"//code/utilities/data_structures/graphics/objects/buildable_faced_tree/data:positioned_buildable_face_tree",
"//code/utilities/data_structures/graphics/objects/buildable_schema_faced_tree/data:positioned_buildable_schema_faced_tree",
"//code/utilities/data_structures/graphics/objects/faced_label/data:positioned_faced_label",
"//code/utilities/data_structures/graphics/objects/label/data:positioned_label",
"//code/utilities/formats/json/converters:lib",
"//code/utilities/formats/json/overloads:variant_json_converters",
Expand Down
1 change: 1 addition & 0 deletions source/code/programs/ide/settings/data/ide_element.hcp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ public:

// Text-like boxes
Positioned_Label,
Positioned_Faced_Label,

// GUI Menu
Positioned_Select_Menu,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ class

face_label.state.faces[0].label.message = "Add Positioned_Label";
x.menu.nodes.insert(top,face_label);

face_label.state.faces[0].label.message = "Add Positioned_Faced_Label";
x.menu.nodes.insert(top,face_label);

face_label.state.faces[0].label.message = "Add Positioned_Image_Data";
x.menu.nodes.insert(top,face_label);
Expand Down
4 changes: 4 additions & 0 deletions source/code/utilities/code/save/state_to_code_converter.hcp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ class
//don't care
(void)x;
},
[&](Positioned_Faced_Label & x) {
//don't care
(void)x;
},
[&](Positioned_Buildable_Schema_Faced_Tree & x) {

//tokenize
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ class
⚞⚟


public: static▶ bool ☀Check(Character_Maps const& font_chars, Positioned_Faced_Label & label, Position const& pos, Pc_Input_State const& pc_input)❰
return Do_Check(font_chars,label.state,pos,pc_input.mouse.pos);
public: static▶ bool ☀Check(Character_Maps const& font_chars, Faced_Label & label, Position const& pos, Pc_Input_State const& pc_input)❰
return Do_Check(font_chars,label.state,pos,pc_input.mouse.pos);
Expand Down

0 comments on commit b684afc

Please sign in to comment.