mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Syncing ShowQtf
git-svn-id: svn://ultimatepp.org/upp/trunk@2089 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
81e9a9ac74
commit
b40b24219d
4 changed files with 54 additions and 0 deletions
21
uppdev/ShowQtf/ShowQtf.h
Normal file
21
uppdev/ShowQtf/ShowQtf.h
Normal 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
|
||||
|
||||
10
uppdev/ShowQtf/ShowQtf.upp
Normal file
10
uppdev/ShowQtf/ShowQtf.upp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
uses
|
||||
CtrlLib;
|
||||
|
||||
file
|
||||
ShowQtf.h,
|
||||
main.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "GUI";
|
||||
|
||||
4
uppdev/ShowQtf/init
Normal file
4
uppdev/ShowQtf/init
Normal 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
19
uppdev/ShowQtf/main.cpp
Normal 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();
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue