diff --git a/uppdev/Alloc/Alloc.cpp b/uppdev/Alloc/Alloc.cpp new file mode 100644 index 000000000..027e5f42a --- /dev/null +++ b/uppdev/Alloc/Alloc.cpp @@ -0,0 +1,18 @@ +#include + +using namespace UPP; + +#define ITEM_COUNT 1000000 + +CONSOLE_APP_MAIN { + Vector v; + getchar(); + for(int i=0;i - -using namespace Upp; - -struct App : TopWindow { - ArrayCtrl a, b; - Splitter s; - - void DnD(PasteClip& d) - { - if(AcceptText(d)) - a.Add(GetString(d), GetString(d)); - } - - void DnDInsert(int line, PasteClip& d) - { - if(AcceptInternal(d, "array")) - a.InsertDrop(line, d); - if(AcceptText(d)) { - a.Insert(line); - a.Set(line, 0, GetString(d)); - a.SetCursor(line); - } - } - - void DnDInsertB(int line, PasteClip& d) - { - } - - void Drag() - { - } - - void DragB() - { - } - - typedef App CLASSNAME; - - App() { - a.AddColumn("Text"); - a.MultiSelect(); - a.NoGrid(); - a.WhenDropInsert = THISBACK(DnDInsert); - a.WhenDrop = THISBACK(DnD); - a.WhenDrag = THISBACK(Drag); - - b.AddColumn("Text"); - b.MultiSelect(); - b.WhenDropInsert = THISBACK(DnDInsertB); - b.WhenDrag = THISBACK(DragB); - - Add(s.Horz(a, b)); - for(int i = 0; i < 200; i++) { - a.Add(i); - b.Add(FormatIntRoman(i, true)); - if((i & 3) == 0) - a.AddSeparator(); - } - Sizeable(); - } -}; - -GUI_APP_MAIN -{ - DUMP("Test"); - App().Run(); -} +#include + +using namespace Upp; + +struct App : TopWindow { + ArrayCtrl a, b; + Splitter s; + + void DnD(PasteClip& d) + { + if(AcceptText(d)) + a.Add(GetString(d), GetString(d)); + } + + void DnDInsert(int line, PasteClip& d) + { + if(AcceptInternal(d, "array")) + a.InsertDrop(line, d); + if(AcceptText(d)) { + a.Insert(line); + a.Set(line, 0, GetString(d)); + a.SetCursor(line); + } + } + + void DnDInsertB(int line, PasteClip& d) + { + } + + void Drag() + { + } + + void DragB() + { + } + + typedef App CLASSNAME; + + App() { + a.AddColumn("\1Text alsdfjla fdlajd flajd falsjkd fla fals fj"); + a.MultiSelect(); + a.NoGrid(); + a.WhenDropInsert = THISBACK(DnDInsert); + a.WhenDrop = THISBACK(DnD); + a.WhenDrag = THISBACK(Drag); + + b.AddColumn("Text"); + b.MultiSelect(); + b.WhenDropInsert = THISBACK(DnDInsertB); + b.WhenDrag = THISBACK(DragB); + + Add(s.Horz(a, b)); + for(int i = 0; i < 200; i++) { + a.Add(i); + b.Add(FormatIntRoman(i, true)); + if((i & 3) == 0) + a.AddSeparator(); + } + Sizeable(); + } +}; + +GUI_APP_MAIN +{ + DUMP("Test"); + App().Run(); +} diff --git a/uppdev/FileSel/main.cpp b/uppdev/FileSel/main.cpp index 8e3e27f44..549cca7d2 100644 --- a/uppdev/FileSel/main.cpp +++ b/uppdev/FileSel/main.cpp @@ -15,12 +15,12 @@ GUI_APP_MAIN fs.DefaultExt("hhh"); // fs.NoMkDirOption(); - fs.Multi(); +// fs.Multi(); // fs.ActiveDir("/usr/include"); // fs.NoEditFileName(); - fs.ActiveDir("c:/"); - fs.PreSelect("U:/log.txt"); - fs.ActiveType(3); +// fs.ActiveDir("c:/"); +// fs.PreSelect("U:/log.txt"); +// fs.ActiveType(3); for(;;) { if(!fs.ExecuteSaveAs()) break;