mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 21:37:35 +00:00
TextEditor: Move the find/replace buttons to JSON GUI
This commit is contained in:
parent
093de0e323
commit
119a0c5dee
2 changed files with 51 additions and 17 deletions
|
@ -53,7 +53,25 @@
|
|||
"preferred_height": 22,
|
||||
"layout": {
|
||||
"class": "GUI::HorizontalBoxLayout"
|
||||
}
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"class": "GUI::Button",
|
||||
"name": "find_previous_button",
|
||||
"text": "Find previous",
|
||||
"horizontal_size_policy": "Fixed",
|
||||
"vertical_size_policy": "Fill",
|
||||
"preferred_width": 150
|
||||
},
|
||||
{
|
||||
"class": "GUI::Button",
|
||||
"name": "find_next_button",
|
||||
"text": "Find next",
|
||||
"horizontal_size_policy": "Fixed",
|
||||
"vertical_size_policy": "Fill",
|
||||
"preferred_width": 150
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"class": "GUI::Widget",
|
||||
|
@ -64,7 +82,33 @@
|
|||
"preferred_height": 22,
|
||||
"layout": {
|
||||
"class": "GUI::HorizontalBoxLayout"
|
||||
}
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
"class": "GUI::Button",
|
||||
"name": "replace_previous_button",
|
||||
"text": "Replace previous",
|
||||
"horizontal_size_policy": "Fixed",
|
||||
"vertical_size_policy": "Fill",
|
||||
"preferred_width": 100
|
||||
},
|
||||
{
|
||||
"class": "GUI::Button",
|
||||
"name": "replace_next_button",
|
||||
"text": "Replace next",
|
||||
"horizontal_size_policy": "Fixed",
|
||||
"vertical_size_policy": "Fill",
|
||||
"preferred_width": 100
|
||||
},
|
||||
{
|
||||
"class": "GUI::Button",
|
||||
"name": "replace_all_button",
|
||||
"text": "Replace all",
|
||||
"horizontal_size_policy": "Fixed",
|
||||
"vertical_size_policy": "Fill",
|
||||
"preferred_width": 100
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue