ultimatepp/uppdev/SetQTF/main.cpp
cxl 4a1c627474 Adding uppdev....
git-svn-id: svn://ultimatepp.org/upp/trunk@328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-08-15 08:36:24 +00:00

38 lines
613 B
C++

#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
{
}