diff --git a/uppdev/AccessKey/init b/uppdev/AccessKey/init index 0fdc2bc59..a98d445c1 100644 --- a/uppdev/AccessKey/init +++ b/uppdev/AccessKey/init @@ -2,7 +2,8 @@ #define _AccessKey_icpp_init_stub #include "CtrlLib/init" #include "Web/init" -#define BLITZ_INDEX__ Fa0241d140f676330932ba69955e9bd41 +#include "SubTest/init" +#define BLITZ_INDEX__ F190185a01d70a422cd7de990bd1c48a1 #include "testing.icpp" #undef BLITZ_INDEX__ #endif diff --git a/uppdev/SubTest/SubTest.upp b/uppdev/SubTest/SubTest.upp new file mode 100644 index 000000000..e69de29bb diff --git a/uppdev/SubTest/SubTest2 b/uppdev/SubTest/SubTest2 new file mode 100644 index 000000000..e69de29bb diff --git a/uppdev/SubTest2/SubTest2.upp b/uppdev/SubTest2/SubTest2.upp new file mode 100644 index 000000000..e69de29bb diff --git a/uppdev/agg_upp_bind_test/agg_upp_bind_test.cpp b/uppdev/agg_upp_bind_test/agg_upp_bind_test.cpp deleted file mode 100644 index e435247d4..000000000 --- a/uppdev/agg_upp_bind_test/agg_upp_bind_test.cpp +++ /dev/null @@ -1,80 +0,0 @@ -//#include -#include "agg_upp_bind_test.h" - - - -struct ClockTest : TopWindow { - Option optR; - - void PaintPtr(Draw& w, double pos, double m, int d, Color color, Size sz2) - { - w.DrawLine(sz2.cx, sz2.cy, - sz2.cx + int(m * sin(pos * 2 * M_PI) * sz2.cx), - sz2.cy - int(m * cos(pos * 2 * M_PI) * sz2.cy), - d, color); - } - - void PaintCenteredText(Draw& w, int x, int y, const char *text, Font fnt, Color c) - { - Size tsz = GetTextSize(text, fnt); - w.DrawText(x - tsz.cx / 2, y - tsz.cy / 2, text, fnt, c); - } - - virtual void Paint(Draw& w) - { - Size sz = GetSize(); - w.DrawRect(sz, SLtGray); - sz -= 6; - w.Offset(3, 3); - Size sz2 = sz / 2; -// w.DrawEllipse(0, 0, sz.cx, sz.cy, SWhite, 3, SBlack); - - // Font fnt = Arial(min(sz.cx, sz.cy) / 10); - // for(int i = 1; i <= 12; i++) { - // int d = i % 3 == 0 ? 3 : 2; - // PaintCenteredText(w, sz2.cx + int(0.8 * sin(i * M_PI / 6) * sz2.cx), - // sz2.cy - int(0.8 * cos(i * M_PI / 6) * sz2.cy), - // AsString(i), i % 3 ? fnt : fnt().Bold(), SBlack); - // } - Date date = GetSysDate(); - Time time = GetSysTime(); - // PaintCenteredText(w, sz.cx / 2, 3 * sz.cy / 5, GetLanguageInfo().FormatDate(date), - // fnt().Bold(), SLtBlue); - double tm = GetSysTime() - ToTime(date); - // PaintPtr(w, tm / 60, 0.75, 1, SRed, sz2); - // PaintPtr(w, tm / 3600, 0.6, 2, SCyan, sz2); - // PaintPtr(w, tm / 3600 / 12, 0.5, 4, SBlack, sz2); - AggDrawer agd(RectC(0,0,sz.cx, sz.cy)); - agd.SetBackground(agg::rgba(0, 1.0, 1.0, ~optR)); -// agd.SetBackground(agg::rgba(1.0, 0.5, 0.5)); - - agd.DrawLine(0,0,100,100,10); - agd.SetBrushColor(agg::rgba(0, 0, 0)); -// agd.DrawLine(100,0,200,100,10); - agd.DrawEllipse(sz2.cx, sz2.cy, sz2.cx-10, sz2.cy-10, 3); - - agd.End(w, ~optR); - w.End(); - } - - void Timer() - { - Refresh(); - } - - ClockTest() - { - optR.SetRect(0,0,50,50); - Add(optR); - SetRect(0, 0, 600, 300); - Sizeable().Zoomable(); - BackPaint(); - SetTimeCallback(-1000, callback(this, &ClockTest::Timer)); - Title("ClockTest"); - } -}; - -GUI_APP_MAIN -{ - ClockTest().Run(); -} diff --git a/uppdev/agg_upp_bind_test/agg_upp_bind_test.h b/uppdev/agg_upp_bind_test/agg_upp_bind_test.h deleted file mode 100644 index b4ff036e4..000000000 --- a/uppdev/agg_upp_bind_test/agg_upp_bind_test.h +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef _agg_upp_bind_test_agg_upp_bind_test_h_ -#define _agg_upp_bind_test_agg_upp_bind_test_h_ - - -//#include -//#define AGG_RGBA32 -//#include - -//#include -//namespace agg -//{ -// UPP::NTL_MOVEABLE(vertex_d); -// typedef path_base > > stl_path_storage; -// typedef path_base > > upp_path_storage; - -//} - -//#define path_storage stl_path_storage -//#define path_storage upp_path_storage - - - -#include - -using namespace Upp; - -#if 0 -void TrianglePath(agg::path_storage& path, double *_m_x, double *_m_y) -{ - //aris: test ... -// agg::path_storage path; - path.move_to(_m_x[0], _m_y[0]); - path.line_to(_m_x[1], _m_y[1]); - path.line_to(_m_x[2], _m_y[2]); - path.close_polygon(); -// return path; -}; -#endif - -#endif diff --git a/uppdev/agg_upp_bind_test/agg_upp_bind_test.upp b/uppdev/agg_upp_bind_test/agg_upp_bind_test.upp deleted file mode 100644 index af00d15fc..000000000 --- a/uppdev/agg_upp_bind_test/agg_upp_bind_test.upp +++ /dev/null @@ -1,10 +0,0 @@ -uses - agg_upp_bind; - -file - agg_upp_bind_test.h, - agg_upp_bind_test.cpp; - -mainconfig - "" = "GUI"; -