Syncing ShowQtf

git-svn-id: svn://ultimatepp.org/upp/trunk@2089 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2010-02-17 16:13:36 +00:00
parent 81e9a9ac74
commit b40b24219d
4 changed files with 54 additions and 0 deletions

21
uppdev/ShowQtf/ShowQtf.h Normal file
View file

@ -0,0 +1,21 @@
#ifndef _ShowQtf_ShowQtf_h
#define _ShowQtf_ShowQtf_h
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
class ShowQtf : public TopWindow {
DocEdit text;
RichTextCtrl qtf;
Splitter split;
void Text();
public:
typedef ShowQtf CLASSNAME;
ShowQtf();
};
#endif

View file

@ -0,0 +1,10 @@
uses
CtrlLib;
file
ShowQtf.h,
main.cpp;
mainconfig
"" = "GUI";

4
uppdev/ShowQtf/init Normal file
View file

@ -0,0 +1,4 @@
#ifndef _ShowQtf_icpp_init_stub
#define _ShowQtf_icpp_init_stub
#include "CtrlLib/init"
#endif

19
uppdev/ShowQtf/main.cpp Normal file
View file

@ -0,0 +1,19 @@
#include "ShowQtf.h"
void ShowQtf::Text()
{
qtf <<= ~text;
}
ShowQtf::ShowQtf()
{
text <<= THISBACK(Text);
split.Vert(text, qtf);
Add(split.SizePos());
}
GUI_APP_MAIN
{
ShowQtf().Run();
}