mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
Adding uppdev....
git-svn-id: svn://ultimatepp.org/upp/trunk@328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
0fab880126
commit
351994a6cc
2823 changed files with 619073 additions and 0 deletions
33
uppdev/Qtf/main.cpp
Normal file
33
uppdev/Qtf/main.cpp
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
#include <Report/Report.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
String r_title = "This is [MY TITLE!]";
|
||||
|
||||
String qtf;
|
||||
qtf << " && [*= " << DeQtf(r_title)
|
||||
<< "&& [_= Analysis Report]&";
|
||||
|
||||
Report r;
|
||||
r.Header("[A2> Page $$P");
|
||||
r << qtf;
|
||||
Perform(r);
|
||||
}
|
||||
|
||||
void Foo()
|
||||
{
|
||||
DrawingDraw dw(100, 100);
|
||||
dw.DrawRect(0, 0, 100, 100, White);
|
||||
dw.DrawEllipse(10, 10, 80, 80, Red, 5, Blue);
|
||||
dw.DrawRect(50, 50, 50, 50, Yellow);
|
||||
QtfRichObject pict(CreateDrawingObject(dw.GetResult(), Size(500, 500), Size(500, 500)));
|
||||
String qtf;
|
||||
qtf << "[A6 This is some drawing in QTF: " << pict << "&";
|
||||
qtf << "[C3*@B And now in the table: {{1:1 " << pict << "::H100 Another cell " << pict << "}}";
|
||||
qtf << "[A6ph Some text ajdsfh akjds fakjs fjkash dfalsd fhal fakhjds fkahjds fka fkajhs dfka&]";
|
||||
qtf << "[A6pd Some text ajdsfh akjds fakjs fjkash dfalsd fhal fakhjds fkahjds fka fkajhs dfka&]";
|
||||
qtf << "[A6po Some text ajdsfh akjds fakjs fjkash dfalsd fhal fakhjds fkahjds fka fkajhs dfka&]";
|
||||
PromptOK(qtf);
|
||||
}
|
||||
Loading…
Reference in a new issue