# diff -ruN qterm-0.5.7/src/main.cpp qterm-0.5.7-1/src/main.cpp
--- qterm-0.5.7/src/main.cpp 2009-06-14 23:09:32.000000000 +0800
+++ qterm-0.5.7-1/src/main.cpp 2010-07-14 09:53:06.000000000 +0800
@@ -16,6 +16,9 @@
#include "qtermconfig.h"
#include "qtermglobal.h"
#include "qterm.h"
+#include "qtermparam.h"
+#include "qtermwindow.h"
+#include "qtermscreen.h"
#include <QtGlobal>
#include <QApplication>
@@ -139,12 +142,27 @@
return -1;
}
- QTerm::Frame * mw = new QTerm::Frame();
- mw->setWindowTitle( "QTerm "+QString(QTERM_VERSION) );
- mw->setWindowIcon( QPixmap(Global::instance()->pathLib()+"pic/qterm.png") );
- mw->show();
- a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
- int res = a.exec();
+ //QTerm::Frame * mw = new QTerm::Frame();
+ //mw->setWindowTitle( "QTerm "+QString(QTERM_VERSION) );
+ //mw->setWindowIcon( QPixmap(Global::instance()->pathLib()+"pic/qterm.png") );
+ //mw->show();
+ //a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
+ //int res = a.exec();
+
+ using namespace QTerm;
+ Global::instance()->setScrollPosition(Global::Hide);
+ Param param;
+ param.m_BBSCode = "GBK";
+ param.m_nDispCode = 0;
+ param.m_strAddr = "bbs.yanxi.org";
+ //param.m_nProxyType = 4;
+ //param.m_strProxyHost = "gsopanel";
+ //param.m_uProxyPort = 8000;
+ Window *win = new QTerm::Window(0, param);
+ win->setAttribute(Qt::WA_DeleteOnClose);
+ win->setMinimumSize(600, 400);
+ win->show();
+ int res = a.exec();
return res;
}