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
9
uppdev/SetQTF/SetQTF.upp
Normal file
9
uppdev/SetQTF/SetQTF.upp
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
uses
|
||||
CtrlLib;
|
||||
|
||||
file
|
||||
main.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "GUI";
|
||||
|
||||
38
uppdev/SetQTF/main.cpp
Normal file
38
uppdev/SetQTF/main.cpp
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
#include <CtrlLib/CtrlLib.h>
|
||||
|
||||
class j2 : public Withj2Layout<TopWindow> {
|
||||
public:
|
||||
typedef j2 CLASSNAME;
|
||||
j2();
|
||||
};
|
||||
|
||||
j2 HG;
|
||||
String qtfx;
|
||||
|
||||
j2::j2() {
|
||||
CtrlLayout(*this, "Joachim 0.1");
|
||||
SetLanguage( LNG_('D','E','D','E') );
|
||||
SetDefaultCharset(CHARSET_UTF8);
|
||||
}
|
||||
|
||||
void textin_cb(int x,String farbe,String Sender,String text) {
|
||||
qtfx<<"\1"<<Sender<<":"<<text<<"\1]&";
|
||||
HG.e.SetQTF(qtfx);
|
||||
HG.e.ScrollEnd();
|
||||
}
|
||||
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
readinifile();
|
||||
int ids = 1;
|
||||
pthread_t threads;
|
||||
pfi = &ParseChatLine;
|
||||
pthread_create (&threads, NULL, readchat, &ids);
|
||||
HG.Run();
|
||||
}
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
}
|
||||
|
||||
Loading…
Reference in a new issue