mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
ide: namespace agnostic layouts refactored again
This commit is contained in:
parent
6d284762a1
commit
433b11db63
31 changed files with 398 additions and 312 deletions
12
upptst/Gui16b/Gui16b.upp
Normal file
12
upptst/Gui16b/Gui16b.upp
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
description "Layouts - Upp namespace agnostic\377";
|
||||
|
||||
uses
|
||||
CtrlLib;
|
||||
|
||||
file
|
||||
main.cpp,
|
||||
dlg.lay;
|
||||
|
||||
mainconfig
|
||||
"" = "GUI";
|
||||
|
||||
8
upptst/Gui16b/dlg.lay
Normal file
8
upptst/Gui16b/dlg.lay
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
LAYOUT(DlgLayout, 208, 172)
|
||||
ITEM(Upp::Label, dv___0, SetLabel(t_("Label")).LeftPosZ(8, 36).TopPosZ(8, 19))
|
||||
ITEM(Upp::EditString, text, SetFrame(Upp::FieldFrame()).LeftPosZ(48, 92).TopPosZ(8, 19))
|
||||
ITEM(Upp::Option, option, SetLabel(t_("Option")).LeftPosZ(8, 108).TopPosZ(32, 15))
|
||||
ITEM(Upp::Label, dv___3, SetLabel(t_("Test")).SetAlign(Upp::ALIGN_CENTER).SetFont(Upp::SerifZ(15).Underline()).SetInk(Upp::LtBlue).SetFrame(Upp::ThinInsetFrame()).LeftPosZ(16, 156).TopPosZ(52, 44))
|
||||
ITEM(Upp::WithDropChoice<Upp::EditInt>, dv___4, LeftPosZ(16, 64).TopPosZ(112, 19))
|
||||
END_LAYOUT
|
||||
|
||||
15
upptst/Gui16b/main.cpp
Normal file
15
upptst/Gui16b/main.cpp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#include <CtrlLib/CtrlLib.h>
|
||||
|
||||
#define LAYOUTFILE <Gui16b/dlg.lay>
|
||||
#include <CtrlCore/lay.h>
|
||||
|
||||
struct MyAppWindow : public WithDlgLayout<Upp::TopWindow> {
|
||||
MyAppWindow() {
|
||||
CtrlLayout(*this, "MyDialog");
|
||||
}
|
||||
};
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
MyAppWindow().Run();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue