mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
Merge continued
git-svn-id: svn://ultimatepp.org/upp/trunk@10263 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
adf46bd64e
commit
2e4b276e07
3860 changed files with 1161787 additions and 438 deletions
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…
Add table
Add a link
Reference in a new issue