Skip to content

Commit

Permalink
source repository migrate from google code to github
Browse files Browse the repository at this point in the history
  • Loading branch information
sinpowei committed May 8, 2015
1 parent 17eb411 commit e041ccb
Show file tree
Hide file tree
Showing 20 changed files with 842 additions and 143 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/bin
/out
/tmp
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Sokit

Sokit is a TCP & UDP package send/receive/transfer tool, Write in c++ with qt under Windows and Linux.





License
-------
Sokit is licensed under GNU GPLv3 - see the ``LICENSE`` file.
249 changes: 127 additions & 122 deletions build/linux86/qtcreator/sokit.pro
Original file line number Diff line number Diff line change
@@ -1,122 +1,127 @@
# ----------------------------------------------------
# sokit.pro
# ----------------------------------------------------

TEMPLATE = app
TARGET = sokit

QT += gui network
CONFIG += debug_and_release build_all thread
DEFINES += QT_NETWORK_LIB
INCLUDEPATH += . ./../../../tmp ./../../../src/sokit
DEPENDPATH += .
UI_DIR += ./../../../tmp
RCC_DIR += ./../../../tmp

win32 {
DEFINES += QT_LARGEFILE_SUPPORT
CONFIG += windows qt_static

QMAKE_CFLAGS_MT =-MT
QMAKE_CFLAGS_MT_DBG =-MTd
QMAKE_CFLAGS_MT_DLL =-MD
QMAKE_CFLAGS_MT_DLLDBG =-MDd
}

CONFIG(debug, debug|release) {
DESTDIR = ../../../bin/debug
MOC_DIR += ./../../../tmp/debug
OBJECTS_DIR += ./../../../tmp/debug
INCLUDEPATH += ./../../../tmp/debug

QMAKE_CFLAGS_DEBUG = $$unique(QMAKE_CFLAGS_DEBUG)
QMAKE_CXXFLAGS_DEBUG = $$unique(QMAKE_CFLAGS_DEBUG)

CONFIG(qt_static) {
QMAKE_CFLAGS_DEBUG -= $$QMAKE_CFLAGS_MT_DLLDBG
QMAKE_CFLAGS_DEBUG += $$QMAKE_CFLAGS_MT_DBG
QMAKE_CXXFLAGS_DEBUG -= $$QMAKE_CFLAGS_MT_DLLDBG
QMAKE_CXXFLAGS_DEBUG += $$QMAKE_CFLAGS_MT_DBG
} else {
QMAKE_CFLAGS_DEBUG -= $$QMAKE_CFLAGS_MT_DBG
QMAKE_CFLAGS_DEBUG += $$QMAKE_CFLAGS_MT_DLLDBG
QMAKE_CXXFLAGS_DEBUG -= $$QMAKE_CFLAGS_MT_DBG
QMAKE_CXXFLAGS_DEBUG += $$QMAKE_CFLAGS_MT_DLLDBG
}
} else {
DESTDIR = ../../../bin/release
MOC_DIR += ./../../../tmp/release
OBJECTS_DIR += ./../../../tmp/release
INCLUDEPATH += ./../../../tmp/release

QMAKE_CFLAGS_RELEASE = $$unique(QMAKE_CFLAGS_RELEASE)
QMAKE_CXXFLAGS_RELEASE = $$unique(QMAKE_CXXFLAGS_RELEASE)

CONFIG(qt_static) {
QMAKE_CFLAGS_RELEASE -= $$QMAKE_CFLAGS_MT_DLL
QMAKE_CFLAGS_RELEASE += $$QMAKE_CFLAGS_MT
QMAKE_CXXFLAGS_RELEASE -= $$QMAKE_CFLAGS_MT_DLL
QMAKE_CXXFLAGS_RELEASE += $$QMAKE_CFLAGS_MT
} else {
QMAKE_CFLAGS_RELEASE -= $$QMAKE_CFLAGS_MT
QMAKE_CFLAGS_RELEASE += $$QMAKE_CFLAGS_MT_DLL
QMAKE_CXXFLAGS_RELEASE -= $$QMAKE_CFLAGS_MT
QMAKE_CXXFLAGS_RELEASE += $$QMAKE_CFLAGS_MT_DLL
}
}

HEADERS += ../../../src/sokit/resource.h \
../../../src/sokit/setting.h \
../../../src/sokit/toolkit.h \
../../../src/sokit/baseform.h \
../../../src/sokit/clientform.h \
../../../src/sokit/clientskt.h \
../../../src/sokit/helpform.h \
../../../src/sokit/logger.h \
../../../src/sokit/main.h \
../../../src/sokit/notepadform.h \
../../../src/sokit/transferskt.h \
../../../src/sokit/transferform.h \
../../../src/sokit/serverskt.h \
../../../src/sokit/serverform.h
SOURCES += ../../../src/sokit/baseform.cpp \
../../../src/sokit/clientform.cpp \
../../../src/sokit/clientskt.cpp \
../../../src/sokit/helpform.cpp \
../../../src/sokit/logger.cpp \
../../../src/sokit/main.cpp \
../../../src/sokit/notepadform.cpp \
../../../src/sokit/serverform.cpp \
../../../src/sokit/serverskt.cpp \
../../../src/sokit/setting.cpp \
../../../src/sokit/toolkit.cpp \
../../../src/sokit/transferform.cpp \
../../../src/sokit/transferskt.cpp
FORMS += ../../../src/sokit/clientform.ui \
../../../src/sokit/helpform.ui \
../../../src/sokit/serverform.ui \
../../../src/sokit/transferform.ui
TRANSLATIONS += ../../../src/sokit/sokit.ts
RESOURCES += ../../../src/sokit/icons.qrc

QMAKE_PRE_LINK = lupdate ./sokit.pro
QMAKE_POST_LINK = lrelease ../../../src/sokit/sokit.ts -qm $$DESTDIR/sokit.lan

win32 {
RC_FILE = ../../../src/sokit/sokit.rc
LIBS += -lWs2_32 -lWinmm -lImm32
QMAKE_LFLAGS_DEBUG += /PDB:"$$DESTDIR/sokit.pdb"
QMAKE_CFLAGS_DEBUG += /Fd"$$OBJECTS_DIR/sokit.pdb"
QMAKE_CXXFLAGS_DEBUG += /Fd"$$OBJECTS_DIR/sokit.pdb"

CONFIG(qt_static) {
exists( $(QTDIR)/lib_s ) {
QMAKE_LIBDIR_QT = $(QTDIR)/lib_s
}
} else {
exists( $(QTDIR)/lib_d ) {
QMAKE_LIBDIR_QT = $(QTDIR)/lib_d
}
}
}

# ----------------------------------------------------
# sokit.pro
# ----------------------------------------------------

TEMPLATE = app
TARGET = sokit

QT += gui widgets network
CONFIG += debug_and_release build_all thread
DEFINES += QT_NETWORK_LIB
INCLUDEPATH += . ./../../../tmp ./../../../src/sokit
DEPENDPATH += .
UI_DIR += ./../../../tmp
RCC_DIR += ./../../../tmp

win32 {
DEFINES += QT_LARGEFILE_SUPPORT
CONFIG += windows qt_static

QMAKE_CFLAGS_MT =-MT
QMAKE_CFLAGS_MT_DBG =-MTd
QMAKE_CFLAGS_MT_DLL =-MD
QMAKE_CFLAGS_MT_DLLDBG =-MDd
}

CONFIG(debug, debug|release) {
DESTDIR = ../../../bin/debug
MOC_DIR += ./../../../tmp/debug
OBJECTS_DIR += ./../../../tmp/debug
INCLUDEPATH += ./../../../tmp/debug

QMAKE_CFLAGS_DEBUG = $$unique(QMAKE_CFLAGS_DEBUG)
QMAKE_CXXFLAGS_DEBUG = $$unique(QMAKE_CFLAGS_DEBUG)

CONFIG(qt_static) {
QMAKE_CFLAGS_DEBUG -= $$QMAKE_CFLAGS_MT_DLLDBG
QMAKE_CFLAGS_DEBUG += $$QMAKE_CFLAGS_MT_DBG
QMAKE_CXXFLAGS_DEBUG -= $$QMAKE_CFLAGS_MT_DLLDBG
QMAKE_CXXFLAGS_DEBUG += $$QMAKE_CFLAGS_MT_DBG
} else {
QMAKE_CFLAGS_DEBUG -= $$QMAKE_CFLAGS_MT_DBG
QMAKE_CFLAGS_DEBUG += $$QMAKE_CFLAGS_MT_DLLDBG
QMAKE_CXXFLAGS_DEBUG -= $$QMAKE_CFLAGS_MT_DBG
QMAKE_CXXFLAGS_DEBUG += $$QMAKE_CFLAGS_MT_DLLDBG
}
} else {
DESTDIR = ../../../bin/release
MOC_DIR += ./../../../tmp/release
OBJECTS_DIR += ./../../../tmp/release
INCLUDEPATH += ./../../../tmp/release

QMAKE_CFLAGS_RELEASE = $$unique(QMAKE_CFLAGS_RELEASE)
QMAKE_CXXFLAGS_RELEASE = $$unique(QMAKE_CXXFLAGS_RELEASE)

CONFIG(qt_static) {
QMAKE_CFLAGS_RELEASE -= $$QMAKE_CFLAGS_MT_DLL
QMAKE_CFLAGS_RELEASE += $$QMAKE_CFLAGS_MT
QMAKE_CXXFLAGS_RELEASE -= $$QMAKE_CFLAGS_MT_DLL
QMAKE_CXXFLAGS_RELEASE += $$QMAKE_CFLAGS_MT
} else {
QMAKE_CFLAGS_RELEASE -= $$QMAKE_CFLAGS_MT
QMAKE_CFLAGS_RELEASE += $$QMAKE_CFLAGS_MT_DLL
QMAKE_CXXFLAGS_RELEASE -= $$QMAKE_CFLAGS_MT
QMAKE_CXXFLAGS_RELEASE += $$QMAKE_CFLAGS_MT_DLL
}
}

HEADERS += ../../../src/sokit/resource.h \
../../../src/sokit/setting.h \
../../../src/sokit/toolkit.h \
../../../src/sokit/baseform.h \
../../../src/sokit/clientform.h \
../../../src/sokit/clientskt.h \
../../../src/sokit/helpform.h \
../../../src/sokit/logger.h \
../../../src/sokit/main.h \
../../../src/sokit/notepadform.h \
../../../src/sokit/transferskt.h \
../../../src/sokit/transferform.h \
../../../src/sokit/serverskt.h \
../../../src/sokit/serverform.h
SOURCES += ../../../src/sokit/baseform.cpp \
../../../src/sokit/clientform.cpp \
../../../src/sokit/clientskt.cpp \
../../../src/sokit/helpform.cpp \
../../../src/sokit/logger.cpp \
../../../src/sokit/main.cpp \
../../../src/sokit/notepadform.cpp \
../../../src/sokit/serverform.cpp \
../../../src/sokit/serverskt.cpp \
../../../src/sokit/setting.cpp \
../../../src/sokit/toolkit.cpp \
../../../src/sokit/transferform.cpp \
../../../src/sokit/transferskt.cpp
FORMS += ../../../src/sokit/clientform.ui \
../../../src/sokit/helpform.ui \
../../../src/sokit/serverform.ui \
../../../src/sokit/transferform.ui
TRANSLATIONS += ../../../src/sokit/sokit.ts
RESOURCES += ../../../src/sokit/icons.qrc

QMAKE_PRE_LINK = lupdate $$PWD/sokit.pro
QMAKE_POST_LINK = lrelease ../../../src/sokit/sokit.ts -qm $$DESTDIR/sokit.lan

win32 {
RC_FILE = ../../../src/sokit/sokit.rc
LIBS += -lWs2_32 -lWinmm -lImm32
QMAKE_LFLAGS_DEBUG += /PDB:"$$DESTDIR/sokit.pdb"
QMAKE_CFLAGS_DEBUG += /Fd"$$OBJECTS_DIR/sokit.pdb"
QMAKE_CXXFLAGS_DEBUG += /Fd"$$OBJECTS_DIR/sokit.pdb"

CONFIG(qt_static) {
exists( $(QTDIR)/lib_s ) {
QMAKE_LIBDIR_QT = $(QTDIR)/lib_s
}
} else {
exists( $(QTDIR)/lib_d ) {
QMAKE_LIBDIR_QT = $(QTDIR)/lib_d
}
}
}

OTHER_FILES += \
../../../src/sokit/sokit.ts \
../../../LICENSE \
../../../README.md

6 changes: 6 additions & 0 deletions doc/sokit/change.log
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2015-05-07 sinpowei<[email protected]>
version 1.3.1
build with QT v5.3.2

Source code repository migrated from Google Code to GitHub

2011-11-30 sinpowei<[email protected]>
version 1.3
build with QT v4.7.2
Expand Down
2 changes: 1 addition & 1 deletion doc/sokit/readme.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
sokit.lan is language file, if rename or delete it, then use default english UI

F1 for more help or go http:https://code.google.com/p/sokit/ for sourcecode
F1 for more help or go https:https://github.com/sinpolib/sokit/ for sourcecode
2 changes: 1 addition & 1 deletion src/sokit/baseform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#define PROP_DIRT "dirt"
#define PROP_TARG "targ"

BaseForm::BaseForm(QWidget* p, Qt::WFlags f)
BaseForm::BaseForm(QWidget* p, Qt::WindowFlags f)
:QWidget(p, f),m_cntRecv(0),m_cntSend(0),m_labRecv(0),m_labSend(0),m_cnlist(0)
{
}
Expand Down
2 changes: 1 addition & 1 deletion src/sokit/baseform.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class BaseForm : public QWidget
Q_OBJECT

public:
BaseForm(QWidget* p=0, Qt::WFlags f=0);
BaseForm(QWidget* p=0, Qt::WindowFlags f=0);
virtual ~BaseForm();

bool init();
Expand Down
2 changes: 1 addition & 1 deletion src/sokit/clientform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#define SET_VAL_LGCLT "log_client"

ClientForm::ClientForm(QWidget* p, Qt::WFlags f)
ClientForm::ClientForm(QWidget* p, Qt::WindowFlags f)
:BaseForm(p, f),m_client(0)
{
m_ui.setupUi(this);
Expand Down
2 changes: 1 addition & 1 deletion src/sokit/clientform.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ClientForm : public BaseForm
Q_OBJECT

public:
ClientForm(QWidget* p=0, Qt::WFlags f=0);
ClientForm(QWidget* p=0, Qt::WindowFlags f=0);
virtual ~ClientForm();

protected:
Expand Down
2 changes: 1 addition & 1 deletion src/sokit/helpform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <QShortcut>
#include <QTextStream>

HelpForm::HelpForm(QWidget* p, Qt::WFlags f):QDialog(p, f)
HelpForm::HelpForm(QWidget* p, Qt::WindowFlags f):QDialog(p, f)
{
m_ui.setupUi(this);
init();
Expand Down
2 changes: 1 addition & 1 deletion src/sokit/helpform.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class HelpForm : public QDialog
Q_OBJECT

public:
HelpForm(QWidget* p=0, Qt::WFlags f=0);
HelpForm(QWidget* p=0, Qt::WindowFlags f=0);
virtual ~HelpForm();

private:
Expand Down
4 changes: 2 additions & 2 deletions src/sokit/helpform.ui
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ p, li { white-space: pre-wrap; }
&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-weight:400; font-style:normal;&quot;&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-weight:600;&quot;&gt;sokit&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; &quot;&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; &quot;&gt;freeware version: 1.3 (GPLv3)&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; &quot;&gt;website: http:https://code.google.com/p/sokit/&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; &quot;&gt;freeware version: 1.3.1 (GPLv3)&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; &quot;&gt;website: https:https://github.com/sinpolib/sokit/&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; &quot;&gt;email: [email protected]&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; &quot;&gt;&lt;/p&gt;
&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; &quot;&gt;this is a TCP / UDP package send &amp;amp; receive &amp;amp; transfer tool&lt;/span&gt;&lt;/p&gt;
Expand Down
4 changes: 2 additions & 2 deletions src/sokit/notepadform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#define SET_NP_FILE "sokit.txt"

NotepadForm::NotepadForm(QWidget* p, Qt::WFlags f)
NotepadForm::NotepadForm(QWidget* p, Qt::WindowFlags f)
:QWidget(p, f)
{
setupUi();
Expand Down Expand Up @@ -99,4 +99,4 @@ void NotepadForm::jumptab()
p->setCurrentIndex(cur);
}
}
}
}
2 changes: 1 addition & 1 deletion src/sokit/notepadform.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class NotepadForm : public QWidget
Q_OBJECT

public:
NotepadForm(QWidget* p=0, Qt::WFlags f=0);
NotepadForm(QWidget* p=0, Qt::WindowFlags f=0);
virtual ~NotepadForm();

public:
Expand Down
2 changes: 1 addition & 1 deletion src/sokit/serverform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#define SET_VAL_LGSVR "log_server"

ServerForm::ServerForm(QWidget *parent, Qt::WFlags flags)
ServerForm::ServerForm(QWidget *parent, Qt::WindowFlags flags)
: BaseForm(parent, flags)
{
m_ui.setupUi(this);
Expand Down
2 changes: 1 addition & 1 deletion src/sokit/serverform.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ServerForm : public BaseForm
Q_OBJECT

public:
ServerForm(QWidget* p=0, Qt::WFlags f=0);
ServerForm(QWidget* p=0, Qt::WindowFlags f=0);
virtual ~ServerForm();

protected:
Expand Down
Loading

0 comments on commit e041ccb

Please sign in to comment.