From: <hep...@us...> - 2008-12-15 18:30:19
|
Revision: 584 http://qterm.svn.sourceforge.net/qterm/?rev=584&view=rev Author: hephooey Date: 2008-12-15 18:30:15 +0000 (Mon, 15 Dec 2008) Log Message: ----------- New crypto module to replace the outdated openssl module, fix --as-needed Modified Paths: -------------- trunk/qterm-qt4/src/CMakeLists.txt Added Paths: ----------- trunk/qterm-qt4/cmake/FindOpenSSLCrypto.cmake Removed Paths: ------------- trunk/qterm-qt4/cmake/FindOpenSSL.cmake Deleted: trunk/qterm-qt4/cmake/FindOpenSSL.cmake =================================================================== --- trunk/qterm-qt4/cmake/FindOpenSSL.cmake 2008-12-15 18:30:09 UTC (rev 583) +++ trunk/qterm-qt4/cmake/FindOpenSSL.cmake 2008-12-15 18:30:15 UTC (rev 584) @@ -1,42 +0,0 @@ -# - Try to find the OpenSSL encryption library -# Once done this will define -# -# OPENSSL_FOUND - system has the OpenSSL library -# OPENSSL_INCLUDE_DIR - the OpenSSL include directory -# OPENSSL_LIBRARIES - The libraries needed to use OpenSSL - -if (OPENSSL_INCLUDE_DIR AND OPENSSL_LIBRARIES) - - # in cache already - SET(OPENSSL_FOUND TRUE) - -else (OPENSSL_INCLUDE_DIR AND OPENSSL_LIBRARIES) - - FIND_PATH(OPENSSL_INCLUDE_DIR openssl/ssl.h - /usr/include/ - /usr/local/include/ - ) - - FIND_LIBRARY(OPENSSL_LIBRARIES NAMES ssl ssleay32 - PATHS - /usr/lib - /usr/local/lib - ) - - if (OPENSSL_INCLUDE_DIR AND OPENSSL_LIBRARIES) - set(OPENSSL_FOUND TRUE) - endif (OPENSSL_INCLUDE_DIR AND OPENSSL_LIBRARIES) - - if (OPENSSL_FOUND) - if (NOT OpenSSL_FIND_QUIETLY) - message(STATUS "Found OpenSSL: ${OPENSSL_LIBRARIES}") - endif (NOT OpenSSL_FIND_QUIETLY) - else (OPENSSL_FOUND) - if (OpenSSL_FIND_REQUIRED) - message(FATAL_ERROR "Could NOT find OpenSSL") - endif (OpenSSL_FIND_REQUIRED) - endif (OPENSSL_FOUND) - - MARK_AS_ADVANCED(OPENSSL_INCLUDE_DIR OPENSSL_LIBRARIES) - -endif (OPENSSL_INCLUDE_DIR AND OPENSSL_LIBRARIES) Added: trunk/qterm-qt4/cmake/FindOpenSSLCrypto.cmake =================================================================== --- trunk/qterm-qt4/cmake/FindOpenSSLCrypto.cmake (rev 0) +++ trunk/qterm-qt4/cmake/FindOpenSSLCrypto.cmake 2008-12-15 18:30:15 UTC (rev 584) @@ -0,0 +1,76 @@ +# A Modified Version of FindOpenSSL.cmake from CMake 2.6.2 +# Because we only need the crypto library for QTerm + +# - Try to find the OpenSSL encryption library +# Once done this will define +# +# OPENSSL_FOUND - system has the OpenSSL library +# OPENSSL_INCLUDE_DIR - the OpenSSL include directory +# OPENSSL_LIBRARIES - The libraries needed to use OpenSSL + +# Copyright (c) 2006, Alexander Neundorf, <neu...@kd...> +# +# Redistribution and use is allowed according to the terms of the BSD license. +# For details see the accompanying COPYING-CMAKE-SCRIPTS file. + + +IF(OPENSSL_CRYPTO_LIBRARIES) + SET(OpenSSL_CRYPTO_FIND_QUIETLY TRUE) +ENDIF(OPENSSL_CRYPTO_LIBRARIES) + +IF(LIB_EAY_DEBUG AND LIB_EAY_RELEASE) + SET(LIB_FOUND 1) +ENDIF(LIB_EAY_DEBUG AND LIB_EAY_RELEASE) + +FIND_PATH(OPENSSL_CRYPTO_INCLUDE_DIR openssl/ssl.h ) + +IF(WIN32 AND MSVC) + # Not sure if this will work or not, since MSVC can not be used to + # compile QTerm + # /MD and /MDd are the standard values - if somone wants to use + # others, the libnames have to change here too + # use also ssl and ssleay32 in debug as fallback for openssl < 0.9.8b + + FIND_LIBRARY(LIB_EAY_DEBUG NAMES libeay32MDd libeay libeay32) + FIND_LIBRARY(LIB_EAY_RELEASE NAMES libeay32MD libeay libeay32) + + IF(MSVC_IDE) + IF(LIB_EAY_DEBUG AND LIB_EAY_RELEASE) + SET(OPENSSL_CRYPTO_LIBRARIES optimized ${SSL_EAY_RELEASE} debug ${SSL_EAY_DEBUG}) + ELSE(LIB_EAY_DEBUG AND LIB_EAY_RELEASE) + SET(OPENSSL_CRYPTO LIBRARIES NOTFOUND) + MESSAGE(STATUS "Could not find the debug and release version of openssl") + ENDIF(LIB_EAY_DEBUG AND LIB_EAY_RELEASE) + ELSE(MSVC_IDE) + STRING(TOLOWER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE_TOLOWER) + IF(CMAKE_BUILD_TYPE_TOLOWER MATCHES debug) + SET(OPENSSL_CRYPTO_LIBRARIES ${LIB_EAY_DEBUG}) + ELSE(CMAKE_BUILD_TYPE_TOLOWER MATCHES debug) + SET(OPENSSL_CRYPTO_LIBRARIES ${LIB_EAY_RELEASE}) + ENDIF(CMAKE_BUILD_TYPE_TOLOWER MATCHES debug) + ENDIF(MSVC_IDE) + MARK_AS_ADVANCED(LIB_EAY_DEBUG LIB_EAY_RELEASE) +ELSE(WIN32 AND MSVC) + + FIND_LIBRARY(OPENSSL_CRYPTO_LIBRARIES NAMES crypto libeay32 ) + +ENDIF(WIN32 AND MSVC) + +IF(OPENSSL_CRYPTO_INCLUDE_DIR AND OPENSSL_CRYPTO_LIBRARIES) + SET(OPENSSL_CRYPTO_FOUND TRUE) +ELSE(OPENSSL_CRYPTO_INCLUDE_DIR AND OPENSSL_CRYPTO_LIBRARIES) + SET(OPENSSL_CRYPTO_FOUND FALSE) +ENDIF (OPENSSL_CRYPTO_INCLUDE_DIR AND OPENSSL_CRYPTO_LIBRARIES) + +IF (OPENSSL_CRYPTO_FOUND) + IF (NOT OpenSSL_CRYPTO_FIND_QUIETLY) + MESSAGE(STATUS "Found OpenSSL Crypto Library: ${OPENSSL_CRYPTO_LIBRARIES}") + ENDIF (NOT OpenSSL_CRYPTO_FIND_QUIETLY) +ELSE (OPENSSL_CRYPTO_FOUND) + IF (OpenSSL_CRYPTO_FIND_REQUIRED) + MESSAGE(FATAL_ERROR "Could NOT find OpenSSL") + ENDIF (OpenSSL_CRYPTO_FIND_REQUIRED) +ENDIF (OPENSSL_CRYPTO_FOUND) + +MARK_AS_ADVANCED(OPENSSL_CRYPTO_INCLUDE_DIR OPENSSL_CRYPTO_LIBRARIES) + Modified: trunk/qterm-qt4/src/CMakeLists.txt =================================================================== --- trunk/qterm-qt4/src/CMakeLists.txt 2008-12-15 18:30:09 UTC (rev 583) +++ trunk/qterm-qt4/src/CMakeLists.txt 2008-12-15 18:30:15 UTC (rev 584) @@ -5,12 +5,12 @@ option(QTERM_ENABLE_DBUS "Build DBus Support" ON) option(QTERM_ENABLE_TEST "Build the tests") if(QTERM_ENABLE_SSH) - find_package(OpenSSL) - if(OPENSSL_FOUND) + find_package(OpenSSLCrypto) + if(OPENSSL_CRYPTO_FOUND) message(STATUS "OpenSSL found, enable SSH support") add_definitions(-DSSH_ENABLED) - include_directories(${OPENSSL_INCLUDE_DIR}) - set(optionalLibs ${optionalLibs} ${OPENSSL_LIBRARIES}) + include_directories(${OPENSSL_CRYPTO_INCLUDE_DIR}) + set(optionalLibs ${optionalLibs} ${OPENSSL_CRYPTO_LIBRARIES}) set(optionalSources ${optionalSources} ssh/auth.cpp ssh/channel.cpp @@ -19,7 +19,7 @@ ssh/packet.cpp ssh/socket.cpp ssh/transport.cpp) - endif(OPENSSL_FOUND) + endif(OPENSSL_CRYPTO_FOUND) endif(QTERM_ENABLE_SSH) if(QTERM_ENABLE_DBUS) if(QT_QTDBUS_FOUND) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hep...@us...> - 2008-12-19 00:46:42
|
Revision: 588 http://qterm.svn.sourceforge.net/qterm/?rev=588&view=rev Author: hephooey Date: 2008-12-19 00:46:40 +0000 (Fri, 19 Dec 2008) Log Message: ----------- Put FindKDE at the top dir, otherwise make install will not install qterm binary for some reason, maybe related to the "install configuration" things. Modified Paths: -------------- trunk/qterm-qt4/CMakeLists.txt trunk/qterm-qt4/src/CMakeLists.txt Modified: trunk/qterm-qt4/CMakeLists.txt =================================================================== --- trunk/qterm-qt4/CMakeLists.txt 2008-12-19 00:46:21 UTC (rev 587) +++ trunk/qterm-qt4/CMakeLists.txt 2008-12-19 00:46:40 UTC (rev 588) @@ -6,6 +6,7 @@ set(QTERM_VERSION "${QTERM_VERSION_MAJOR}.${QTERM_VERSION_MINOR}.${QTERM_VERSION_RELEASE}" ) set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") find_package(Qt4 REQUIRED) +find_package(KDE4) add_subdirectory(src) set(QTERM_BINDIR "${CMAKE_INSTALL_PREFIX}/bin") set(QTERM_DATADIR "${CMAKE_INSTALL_PREFIX}/share/qterm") Modified: trunk/qterm-qt4/src/CMakeLists.txt =================================================================== --- trunk/qterm-qt4/src/CMakeLists.txt 2008-12-19 00:46:21 UTC (rev 587) +++ trunk/qterm-qt4/src/CMakeLists.txt 2008-12-19 00:46:40 UTC (rev 588) @@ -40,7 +40,6 @@ else(QT_PHONON_FOUND) # Looking for KDE4, it is quite impossible that some system can have # Phonon without KDE4 - find_package(KDE4) if(PHONON_FOUND) message(STATUS "KDE Phonon module found, enable Phonon support") add_definitions(-DPHONON_ENABLED) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hep...@us...> - 2009-04-27 00:15:23
|
Revision: 720 http://qterm.svn.sourceforge.net/qterm/?rev=720&view=rev Author: hephooey Date: 2009-04-27 00:15:11 +0000 (Mon, 27 Apr 2009) Log Message: ----------- bump the version, update README and TODO Modified Paths: -------------- trunk/qterm-qt4/CMakeLists.txt trunk/qterm-qt4/README trunk/qterm-qt4/TODO Modified: trunk/qterm-qt4/CMakeLists.txt =================================================================== --- trunk/qterm-qt4/CMakeLists.txt 2009-04-26 20:42:33 UTC (rev 719) +++ trunk/qterm-qt4/CMakeLists.txt 2009-04-27 00:15:11 UTC (rev 720) @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.4.6 FATAL_ERROR) set(QTERM_VERSION_MAJOR 0) set(QTERM_VERSION_MINOR 5) -set(QTERM_VERSION_RELEASE 4) +set(QTERM_VERSION_RELEASE 5) set(QTERM_VERSION "${QTERM_VERSION_MAJOR}.${QTERM_VERSION_MINOR}.${QTERM_VERSION_RELEASE}" ) set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") find_package(Qt4 REQUIRED) Modified: trunk/qterm-qt4/README =================================================================== --- trunk/qterm-qt4/README 2009-04-26 20:42:33 UTC (rev 719) +++ trunk/qterm-qt4/README 2009-04-27 00:15:11 UTC (rev 720) @@ -1,14 +1,13 @@ -QTerm 0.5.4 +QTerm 0.5.5 =============== 这个版本添加/修正了下面一些功能: -1. 配置文件的格式改变 -2. 支持 UTF-8 等编码格式 +1. 在 KWallet 可用时用 KWallet 保存密码 +2. PTT 的一字双色支持 3. 打印当前内容 -4. KDE 的 Phonon 的支持 (Qt 的 Phonon 未测试) -5. 内容居中显示 -6. 显示程序图标 -7. Bug fixes +4. 跨行 url 识别 +5. MinGW 和 MSVC 的编译支持 +6. Bug fixes The QTerm Team http://www.qterm.org Modified: trunk/qterm-qt4/TODO =================================================================== --- trunk/qterm-qt4/TODO 2009-04-26 20:42:33 UTC (rev 719) +++ trunk/qterm-qt4/TODO 2009-04-27 00:15:11 UTC (rev 720) @@ -1,8 +1,6 @@ --Next release: - Use kwallet to save the password - Multiple line url detection - Support Phonon in windows - Compile and run with MSVC + Script support + Complete Vt102 support? --Should be easy (but I probably will not do it in the next release): Use different fonts for single width and double width char (the configure dialog need to be redesigned) Fix the warnings, compile time and runtime, also FIXMEs @@ -13,7 +11,4 @@ Proxy support using Qt Add a option to disable center display --In the future: - Script support - Half char drawing? - Complete Vt102 support? Ascii editor?(Kingson, where are you?) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hep...@us...> - 2009-06-07 04:49:03
|
Revision: 871 http://qterm.svn.sourceforge.net/qterm/?rev=871&view=rev Author: hephooey Date: 2009-06-07 04:48:58 +0000 (Sun, 07 Jun 2009) Log Message: ----------- Document script functions Added Paths: ----------- trunk/qterm-qt4/doc/ trunk/qterm-qt4/doc/script.txt Added: trunk/qterm-qt4/doc/script.txt =================================================================== --- trunk/qterm-qt4/doc/script.txt (rev 0) +++ trunk/qterm-qt4/doc/script.txt 2009-06-07 04:48:58 UTC (rev 871) @@ -0,0 +1,262 @@ +Introduction: + +Starting from the version 0.5.6, QTerm supports scripts with QtScript. With +the greatest and latest script support in QTerm, you can: + +1. Do boring and repeating operation automatically. +2. Change the default behavior of QTerm with system scripts. +3. Try new functions with script (In order to do this you might want to have + Qt bindings for QtScript installed, they can be downloaded from + http://labs.trolltech.com/page/Projects/QtScript/Generator) + +================================================================================ + +How to Use: + +You can run simple scripts using Script->Run, for example, save the following +code + +for (var i = 0; i < 10; i++) + QTerm.sendString("q"); + +to a script file, run it in QTerm will send 10 q's to the server. + +To use the system control script. Open the address book, in the very end of +the General tab. First enable the Load Control Script checkbox, then choose +your system script. + +================================================================================ + +How to Debug: + +If you want to develop serious/complicate scripts for QTerm, it is very +helpful to have QScriptEngineDebugger enable. This feature is introduced in Qt +4.5, make sure your qt is new enough. Then you can run cmake with +-DQTERM_ENABLE_SCRIPT_DEBUGGER=ON, for example: + +cmake .. -DQTERM_ENABLE_SCRIPT_DEBUGGER=ON + +Then do the usual make, make install to install QTerm + +After you enable the debugger. It will pop up every time the script engine +catches a exception. You can also call the debugger any time by Script->Debug. + +================================================================================ + +How To Write a Script + +Here is a list of functions you can call in the scripts, they are all in the +"QTerm" object, so for example if you want to call "version()" you should call +"QTerm.version()" instead. + +QString version() + Return the version of QTerm. + +int caretX() +int caretY() + Return the x or y coordinate of the current position of caret. + +int columns() +int rows() + Return the number of columns or rows of the current window. + +int charX(int x, int y) +int charY(int x, int y) + Given the graphical coordinate in the current window, convert it to the + text coordinate. + +int posX() +int posY() + Return the x or y coordinate of the mouse. + +QString getUrl() +QString getIP() + Return the URL or IP address under the mouse pointer, if no url is + detected an empty string will be returned. + +bool isConnected() + Check if the current window is conneced to a BBS server. + +void reconnect() + Reconnect to the BBS server, do nothing if the current window is already + connected. +void disconnect() + Disconnect from the current BBS server. + +void buzz() + Shake QTerm. + +void sendString(const QString & string) + Send string to the BBS server. + +void sendParsedString(const QString & string) + Send parsed string to the BBS server. you can use '^M' to represent the + return key for example. + +void showMessage(const QString & message, int icon = 1, int duration = 0) + Show message in the osd, icon = 0, 1, 2, 3 means No/Info/Warning/Error + icon. Duration is in the unit of ms, 0 means forever. + +void cancelZmodem() + Cancel the current zmodem transfer. + +void setZmodemFileList(const QStringList & fileList) + Set the list of files you want to upload with zmodem. + +QScriptValue getLine(int line) + Get the object represent the 'line' line text. + +QScriptValue window() + Return the current window object. + +bool addPopupMenu(QString id, QString menuTitle, QString icon = "QTerm") + Add a menu item to the popup menu, you can access to the new action with + QTerm.id property if the method succeed. menuTitle is the text displayed + in the menu. currently icon parameter has no effect. Return true if + succeed, otherwise it will return false. + +bool addUrlMenu(QString id, QString menuTitle, QString icon = "QTerm") + Add a menu item to the url popup menu, you can access to the new action + with QTerm.id property if the method succeed. menuTitle is the text + displayed in the menu. currently icon parameter has no effect. Return true + if succeed, otherwise it will return false. + +void addPopupSeparator() +void addUrlSeparator() + Add separators to the popup/url menu so they will look nicer. + +void import(const QString & filename) + Import external javascript files, QTerm will search the file under the + "scripts" directory under the local path (e.g.SHOME/.qterm) first and then + search the global path (e.g. /usr/share) + +void globalPath() + Return the global data path, for example, if you installed QTerm to /usr, + then it will return /usr/share. + +void localPath() + Return the local data path, $HOME/.qterm under Linux. + +QString getSelectedText(bool rect = false, bool color = false, const QString & escape = "") + Return the current selected region. rect should always be false currently. + color indicate if you want the copy the attribute of the text, escape is + only useful when color is true, indicate how you want to represent the + escape sequence. + +void openUrl(const QString & url) + Open the url using the http browser specified in QTerm. + +void loadExtension(const QString & extension) + Load extension, if you want to use the classes in Qt bindings, you + need to load them first. + +================================================================================ + +How to Write a System Script + +In order to change the behavior of QTerm. You can reimplement the following +functions in the system script, again all the functions are members of 'QTerm' +object, for example init() should be understand as QTerm.init(): + +There is a property which is important for this usage: QTerm.accepted. It +should be set to true if you do not want the native QTerm code to handle the +event any further, otherwise it should set to false. + +init() + This function is called every time the system script is loaded. You can + show messages or initiate some variables here. + +setCursorType() + Determine what kind of mouse cursor should be shown in the current + context, if mouse release events is not handle by the script this function + also determine how the mouse release will be handled. + +setPageState() + Determine the current state of the BBS page, useful for further determine + the mouse behavior + +isLineClickable(x,y) + Determine if the current line under mouse cursor is clickable, x and y is + the mouse text coordinate. + +getClickableString(x,y) + Determine if the string under mouse cursor is clickable, x and y is the + mouse text coordinate, the string should be returned and will be + highlighted by QTerm. + +onMouseEvent(type, button, buttons, modifiers, pt_x, pt_y) + Handle the mouse event, type, button, buttons, modifiers follow the + definition in QMouseEvent, pt_x and pt_y is the graphical coordinate of the + mouse pointer. + +onKeyPressEvent(key, modifiers, text) + Handle the key press event, the definition of the arguments again follows + QKeyEvent. + +onWheelEvent(delta, buttons, modifiers, orientation, pt_x, pt_y) + Handle the mouse wheel event, the definition of delta, button, modifiers, + and orientation follow QWheelEvent. pt_x and pt_y is the graphical + coordinate of the mouse pointer. + +onNewData() + The function will be called every time QTerm gets new data, you can + manipulate the received data a little bit. + +antiIdle() + Determine how the anti idle event should be handled. + +autoReply() + Determine how to reply the incoming message. Useful for those who want to + write BBS robots. + +checkUrl() + Determine if there is a URL under the mouse pointer, return the URL if + found, otherwise return a empty string. + +checkIP() + Determine if there is a IP address under the mouse pointer, return the URL + if found, otherwise return a empty string. + +onTelnetState() + Handle telnet events + +onZmodemState() + Handle zmodem events + +There is also a signal: scriptEvent(const QString& type) which can be used by +the script to emit and handle signals + +================================================================================ + +Example Scripts: + +There are several examples provided in the QTerm source code, you can use them +in you script or get a feeling about how the scripts can be used. + +utils.js + This script provides useful auxiliary functions to save a few keystrokes + for you. +article.js + This script provides basic article downloading functionality, note that + the downloading operation is not well handled right now. Do this through + the upcoming dbus interface might be a better idea. + +highlight.js + This script will highlight keywords your specified in the code if they are + found in the current page. + +console.js + This script gives you a console to test different script functions. Steal + from the great Amarok. You need qt bindings to run it. + +websnap.js + This script, modified from the code in graphics dojo + (http://qt.gitorious.org/qt-labs/graphics-dojo/trees/master/websnap), + generates webpage snapshot. Currently it has troubles with webpage with + frames, you are more than welcome to improve this if you are interested. + +smth.js + Sample system script for newsmth.net. + +ptt.js + Sample system script for ptt.cc. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hep...@us...> - 2009-06-07 14:13:27
|
Revision: 902 http://qterm.svn.sourceforge.net/qterm/?rev=902&view=rev Author: hephooey Date: 2009-06-07 13:41:47 +0000 (Sun, 07 Jun 2009) Log Message: ----------- Remove the pos arguments because it is confusing also redundant. Improve the document a little bit. Modified Paths: -------------- trunk/qterm-qt4/doc/script.txt trunk/qterm-qt4/src/qtermbbs.cpp trunk/qterm-qt4/src/scripts/ptt.js trunk/qterm-qt4/src/scripts/smth.js Modified: trunk/qterm-qt4/doc/script.txt =================================================================== --- trunk/qterm-qt4/doc/script.txt 2009-06-07 04:52:36 UTC (rev 901) +++ trunk/qterm-qt4/doc/script.txt 2009-06-07 13:41:47 UTC (rev 902) @@ -101,7 +101,8 @@ Cancel the current zmodem transfer. void setZmodemFileList(const QStringList & fileList) - Set the list of files you want to upload with zmodem. + Set the list of files you want to upload with zmodem. call it before your + start zmodem to avoid the file selection dialog. QScriptValue getLine(int line) Get the object represent the 'line' line text. @@ -166,7 +167,7 @@ This function is called every time the system script is loaded. You can show messages or initiate some variables here. -setCursorType() +setCursorType(x,y) Determine what kind of mouse cursor should be shown in the current context, if mouse release events is not handle by the script this function also determine how the mouse release will be handled. @@ -217,10 +218,10 @@ Determine if there is a IP address under the mouse pointer, return the URL if found, otherwise return a empty string. -onTelnetState() +onTelnetState(int state) Handle telnet events -onZmodemState() +onZmodemState(int type, int value, const QString& msg) Handle zmodem events There is also a signal: scriptEvent(const QString& type) which can be used by Modified: trunk/qterm-qt4/src/qtermbbs.cpp =================================================================== --- trunk/qterm-qt4/src/qtermbbs.cpp 2009-06-07 04:52:36 UTC (rev 901) +++ trunk/qterm-qt4/src/qtermbbs.cpp 2009-06-07 13:41:47 UTC (rev 902) @@ -149,10 +149,9 @@ TextLine * line = m_pBuffer->at(pt.y()); int x = pt.x(); int y = pt.y() - m_nScreenStart; - int pos = line->pos(m_ptCursor.x()); QScriptValue func = m_scriptEngine->globalObject().property("QTerm").property("setCursorType"); if (func.isFunction()) { - int ret = func.call(QScriptValue(), QScriptValueList() << x << y << pos).toInt32(); + int ret = func.call(QScriptValue(), QScriptValueList() << x << y).toInt32(); if (m_scriptHelper->accepted()) { return ret; } Modified: trunk/qterm-qt4/src/scripts/ptt.js =================================================================== --- trunk/qterm-qt4/src/scripts/ptt.js 2009-06-07 04:52:36 UTC (rev 901) +++ trunk/qterm-qt4/src/scripts/ptt.js 2009-06-07 13:41:47 UTC (rev 902) @@ -10,7 +10,7 @@ QTerm.showMessage("system script loaded", 1, 0); } -QTerm.setCursorType = function(x,y,pos) +QTerm.setCursorType = function(x,y) { QTerm.accepted = false; if (QTerm.isLineClickable(x,y)) { Modified: trunk/qterm-qt4/src/scripts/smth.js =================================================================== --- trunk/qterm-qt4/src/scripts/smth.js 2009-06-07 04:52:36 UTC (rev 901) +++ trunk/qterm-qt4/src/scripts/smth.js 2009-06-07 13:41:47 UTC (rev 902) @@ -10,7 +10,7 @@ QTerm.showMessage("system script loaded", 1, 0); } -QTerm.setCursorType = function(x,y,pos) +QTerm.setCursorType = function(x,y) { QTerm.accepted = false; return -1; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hep...@us...> - 2009-06-07 16:09:31
|
Revision: 907 http://qterm.svn.sourceforge.net/qterm/?rev=907&view=rev Author: hephooey Date: 2009-06-07 16:08:15 +0000 (Sun, 07 Jun 2009) Log Message: ----------- Update README and TODO Modified Paths: -------------- trunk/qterm-qt4/README trunk/qterm-qt4/TODO Modified: trunk/qterm-qt4/README =================================================================== --- trunk/qterm-qt4/README 2009-06-07 15:57:55 UTC (rev 906) +++ trunk/qterm-qt4/README 2009-06-07 16:08:15 UTC (rev 907) @@ -1,13 +1,12 @@ -QTerm 0.5.5 +QTerm 0.5.6 =============== 这个版本添加/修正了下面一些功能: -1. 在 KWallet 可用时用 KWallet 保存密码 -2. PTT 的一字双色支持 -3. 打印当前内容 -4. 跨行 url 识别 -5. MinGW 和 MSVC 的编译支持 -6. Bug fixes +1. QtScript 脚本支持 +2. QtScript 脚本支持 +3. QtScript 脚本支持 +4. QtScript 脚本支持 +5. Bug fixes The QTerm Team http://www.qterm.org Modified: trunk/qterm-qt4/TODO =================================================================== --- trunk/qterm-qt4/TODO 2009-06-07 15:57:55 UTC (rev 906) +++ trunk/qterm-qt4/TODO 2009-06-07 16:08:15 UTC (rev 907) @@ -1,14 +1,11 @@ --Next release: - Script support Complete Vt102 support? --Should be easy (but I probably will not do it in the next release): Use different fonts for single width and double width char (the configure dialog need to be redesigned) Fix the warnings, compile time and runtime, also FIXMEs - Revive preedit string display Fix tab and status bar Fix image viewer Anonying bugs Proxy support using Qt - Add a option to disable center display --In the future: Ascii editor?(Kingson, where are you?) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hep...@us...> - 2009-06-20 18:55:45
|
Revision: 952 http://qterm.svn.sourceforge.net/qterm/?rev=952&view=rev Author: hephooey Date: 2009-06-20 18:55:44 +0000 (Sat, 20 Jun 2009) Log Message: ----------- Do not hard code the path Modified Paths: -------------- trunk/qterm-qt4/CMakeLists.txt trunk/qterm-qt4/config.h.cmake trunk/qterm-qt4/src/qterm.h trunk/qterm-qt4/src/qtermglobal.cpp Modified: trunk/qterm-qt4/CMakeLists.txt =================================================================== --- trunk/qterm-qt4/CMakeLists.txt 2009-06-20 04:32:29 UTC (rev 951) +++ trunk/qterm-qt4/CMakeLists.txt 2009-06-20 18:55:44 UTC (rev 952) @@ -8,6 +8,4 @@ find_package(Qt4 REQUIRED) find_package(KDE4) add_subdirectory(src) -set(QTERM_BINDIR "${CMAKE_INSTALL_PREFIX}/bin") -set(QTERM_DATADIR "${CMAKE_INSTALL_PREFIX}/share/qterm") configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h) Modified: trunk/qterm-qt4/config.h.cmake =================================================================== --- trunk/qterm-qt4/config.h.cmake 2009-06-20 04:32:29 UTC (rev 951) +++ trunk/qterm-qt4/config.h.cmake 2009-06-20 18:55:44 UTC (rev 952) @@ -1,3 +1 @@ #define QTERM_VERSION "${QTERM_VERSION}" -#define QTERM_BINDIR "${QTERM_BINDIR}" -#define QTERM_DATADIR "${QTERM_DATADIR}" Modified: trunk/qterm-qt4/src/qterm.h =================================================================== --- trunk/qterm-qt4/src/qterm.h 2009-06-20 04:32:29 UTC (rev 951) +++ trunk/qterm-qt4/src/qterm.h 2009-06-20 18:55:44 UTC (rev 952) @@ -17,9 +17,7 @@ #ifdef HAVE_CONFIG_H #include "config.h" #else -#define QTERM_VERSION "0.4.0pre3" -#define QTERM_DATADIR "/usr/share/qterm" -#define QTERM_BINDIR "/usr/bin" +#define QTERM_VERSION "0.5.6" #endif #ifndef BUFSIZE Modified: trunk/qterm-qt4/src/qtermglobal.cpp =================================================================== --- trunk/qterm-qt4/src/qtermglobal.cpp 2009-06-20 04:32:29 UTC (rev 951) +++ trunk/qterm-qt4/src/qtermglobal.cpp 2009-06-20 18:55:44 UTC (rev 952) @@ -490,13 +490,16 @@ fi.setFile(param); m_pathLib = fi.path() + '/'; #else + QString prefix = QCoreApplication::applicationDirPath(); + prefix.chop(3); // "bin" + qDebug() << prefix; m_pathCfg = QDir::homePath() + "/.qterm/"; if (!isPathExist(m_pathCfg)) return false; // pathLib --- where datedir "pic", "cursor", "po" if (param.indexOf('/') == -1) - m_pathLib = QTERM_DATADIR"/"; + m_pathLib = prefix + "share/qterm/"; else { QFileInfo fi(param); if (fi.isSymLink()) @@ -505,9 +508,9 @@ param.truncate(param.lastIndexOf('/')); QString oldPath = QDir::currentPath(); QDir::setCurrent(param); - dir.setPath(QTERM_BINDIR); + dir.setPath(QCoreApplication::applicationDirPath()); if (dir == QDir::current()) - m_pathLib = QTERM_DATADIR; + m_pathLib = prefix + "share/qterm/"; else m_pathLib = QDir::currentPath(); QDir::setCurrent(oldPath); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hep...@us...> - 2009-06-30 13:29:43
|
Revision: 966 http://qterm.svn.sourceforge.net/qterm/?rev=966&view=rev Author: hephooey Date: 2009-06-30 13:29:38 +0000 (Tue, 30 Jun 2009) Log Message: ----------- Update the version and related files Modified Paths: -------------- trunk/qterm-qt4/CMakeLists.txt trunk/qterm-qt4/README trunk/qterm-qt4/TODO Modified: trunk/qterm-qt4/CMakeLists.txt =================================================================== --- trunk/qterm-qt4/CMakeLists.txt 2009-06-30 13:29:26 UTC (rev 965) +++ trunk/qterm-qt4/CMakeLists.txt 2009-06-30 13:29:38 UTC (rev 966) @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.4.6 FATAL_ERROR) set(QTERM_VERSION_MAJOR 0) set(QTERM_VERSION_MINOR 5) -set(QTERM_VERSION_RELEASE 6) +set(QTERM_VERSION_RELEASE 7) set(QTERM_VERSION "${QTERM_VERSION_MAJOR}.${QTERM_VERSION_MINOR}.${QTERM_VERSION_RELEASE}" ) set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") find_package(Qt4 REQUIRED) Modified: trunk/qterm-qt4/README =================================================================== --- trunk/qterm-qt4/README 2009-06-30 13:29:26 UTC (rev 965) +++ trunk/qterm-qt4/README 2009-06-30 13:29:38 UTC (rev 966) @@ -1,11 +1,11 @@ -QTerm 0.5.6 +QTerm 0.5.7 =============== 这个版本添加/修正了下面一些功能: -1. QtScript 脚本支持 -2. QtScript 脚本支持 -3. QtScript 脚本支持 -4. QtScript 脚本支持 +1. 分别设置字体 +2. 编辑配色方案 +3. 更多脚本 +4. 再次改变地址簿格式 5. Bug fixes The QTerm Team Modified: trunk/qterm-qt4/TODO =================================================================== --- trunk/qterm-qt4/TODO 2009-06-30 13:29:26 UTC (rev 965) +++ trunk/qterm-qt4/TODO 2009-06-30 13:29:38 UTC (rev 966) @@ -1,7 +1,6 @@ --Next release: Complete Vt102 support? --Should be easy (but I probably will not do it in the next release): - Use different fonts for single width and double width char (the configure dialog need to be redesigned) Fix the warnings, compile time and runtime, also FIXMEs Fix tab and status bar Fix image viewer This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hep...@us...> - 2009-07-20 15:39:36
|
Revision: 981 http://qterm.svn.sourceforge.net/qterm/?rev=981&view=rev Author: hephooey Date: 2009-07-20 15:39:34 +0000 (Mon, 20 Jul 2009) Log Message: ----------- Make uninstall, currently only the files get deleted, empty directorys still exist Modified Paths: -------------- trunk/qterm-qt4/CMakeLists.txt Added Paths: ----------- trunk/qterm-qt4/cmake_uninstall.cmake.in Modified: trunk/qterm-qt4/CMakeLists.txt =================================================================== --- trunk/qterm-qt4/CMakeLists.txt 2009-07-20 15:39:28 UTC (rev 980) +++ trunk/qterm-qt4/CMakeLists.txt 2009-07-20 15:39:34 UTC (rev 981) @@ -9,3 +9,10 @@ find_package(KDE4) add_subdirectory(src) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h) + +configure_file( + "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in" + "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" + IMMEDIATE @ONLY) +add_custom_target(uninstall + "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake") Added: trunk/qterm-qt4/cmake_uninstall.cmake.in =================================================================== --- trunk/qterm-qt4/cmake_uninstall.cmake.in (rev 0) +++ trunk/qterm-qt4/cmake_uninstall.cmake.in 2009-07-20 15:39:34 UTC (rev 981) @@ -0,0 +1,21 @@ +IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") + MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"") +ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") + +FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files) +STRING(REGEX REPLACE "\n" ";" files "${files}") +FOREACH(file ${files}) + MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"") + IF(EXISTS "$ENV{DESTDIR}${file}") + EXEC_PROGRAM( + "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\"" + OUTPUT_VARIABLE rm_out + RETURN_VALUE rm_retval + ) + IF(NOT "${rm_retval}" STREQUAL 0) + MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"") + ENDIF(NOT "${rm_retval}" STREQUAL 0) + ELSE(EXISTS "$ENV{DESTDIR}${file}") + MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.") + ENDIF(EXISTS "$ENV{DESTDIR}${file}") +ENDFOREACH(file) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hep...@us...> - 2009-12-23 11:56:06
|
Revision: 1045 http://qterm.svn.sourceforge.net/qterm/?rev=1045&view=rev Author: hephooey Date: 2009-12-23 11:55:56 +0000 (Wed, 23 Dec 2009) Log Message: ----------- Check Qt version at runtime Modified Paths: -------------- trunk/qterm-qt4/config.h.cmake trunk/qterm-qt4/src/main.cpp Modified: trunk/qterm-qt4/config.h.cmake =================================================================== --- trunk/qterm-qt4/config.h.cmake 2009-12-23 11:55:51 UTC (rev 1044) +++ trunk/qterm-qt4/config.h.cmake 2009-12-23 11:55:56 UTC (rev 1045) @@ -1 +1,2 @@ #define QTERM_VERSION "${QTERM_VERSION}" +#define QT_MIN_VERSION "${QT_MIN_VERSION}" Modified: trunk/qterm-qt4/src/main.cpp =================================================================== --- trunk/qterm-qt4/src/main.cpp 2009-12-23 11:55:51 UTC (rev 1044) +++ trunk/qterm-qt4/src/main.cpp 2009-12-23 11:55:56 UTC (rev 1045) @@ -127,6 +127,9 @@ int main( int argc, char ** argv ) { + if ( strcmp( qVersion(), QT_MIN_VERSION ) < 0 ) { + qFatal("QTerm requires Qt %s or above to run! Qt installed in your system is %s.", QT_MIN_VERSION, qVersion()); + } QApplication::setGraphicsSystem("raster"); QApplication a( argc, argv ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hep...@us...> - 2010-01-08 02:30:15
|
Revision: 1116 http://qterm.svn.sourceforge.net/qterm/?rev=1116&view=rev Author: hephooey Date: 2010-01-08 02:30:08 +0000 (Fri, 08 Jan 2010) Log Message: ----------- Install icons of various sizes Modified Paths: -------------- trunk/qterm-qt4/CMakeLists.txt trunk/qterm-qt4/src/CMakeLists.txt Added Paths: ----------- trunk/qterm-qt4/icons/ trunk/qterm-qt4/icons/CMakeLists.txt trunk/qterm-qt4/icons/hi128-app-qterm.png trunk/qterm-qt4/icons/hi16-app-qterm.png trunk/qterm-qt4/icons/hi22-app-qterm.png trunk/qterm-qt4/icons/hi32-app-qterm.png trunk/qterm-qt4/icons/hi48-app-qterm.png trunk/qterm-qt4/icons/hi64-app-qterm.png Removed Paths: ------------- trunk/qterm-qt4/src/qterm.png Modified: trunk/qterm-qt4/CMakeLists.txt =================================================================== --- trunk/qterm-qt4/CMakeLists.txt 2010-01-07 22:45:04 UTC (rev 1115) +++ trunk/qterm-qt4/CMakeLists.txt 2010-01-08 02:30:08 UTC (rev 1116) @@ -9,6 +9,7 @@ find_package(Qt4 REQUIRED) find_package(KDE4) add_subdirectory(src) +add_subdirectory(icons) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h) configure_file( Added: trunk/qterm-qt4/icons/CMakeLists.txt =================================================================== --- trunk/qterm-qt4/icons/CMakeLists.txt (rev 0) +++ trunk/qterm-qt4/icons/CMakeLists.txt 2010-01-08 02:30:08 UTC (rev 1116) @@ -0,0 +1,52 @@ +macro(qterm_install_icons _theme) + + file(GLOB _icons *.png) + file(GLOB _svg *svgz) + set(_icons ${_icons} ${_svg}) + foreach(_current_ICON ${_icons} ) + get_filename_component(_ctype ${_current_ICON} EXT) + + if (${_ctype} STREQUAL ".png") + string(REGEX REPLACE "^.*/[a-zA-Z]+([0-9]+)\\-([a-z]+)\\-(.+\\.png)$" "\\1" _size "${_current_ICON}") + string(REGEX REPLACE "^.*/[a-zA-Z]+([0-9]+)\\-([a-z]+)\\-(.+\\.png)$" "\\2" _group "${_current_ICON}") + string(REGEX REPLACE "^.*/[a-zA-Z]+([0-9]+)\\-([a-z]+)\\-(.+\\.png)$" "\\3" _name "${_current_ICON}") + set(_sizestring "${_size}x${_size}") + endif (${_ctype} STREQUAL ".png") + + if (${_ctype} STREQUAL ".svgz") + string(REGEX REPLACE "^.*/[a-zA-Z]+\\-([a-z]+)\\-(.+\\.svgz)$" "\\1" _group "${_current_ICON}") + string(REGEX REPLACE "^.*/[a-zA-Z]+\\-([a-z]+)\\-(.+\\.svgz)$" "\\2" _name "${_current_ICON}") + set(_sizestring "scalable") + endif (${_ctype} STREQUAL ".svgz") + + set(_icon_GROUP "actions") + + if(${_group} STREQUAL "mime") + set(_icon_GROUP "mimetypes") + endif(${_group} STREQUAL "mime") + + if(${_group} STREQUAL "filesys") + set(_icon_GROUP "filesystems") + endif(${_group} STREQUAL "filesys") + + if(${_group} STREQUAL "device") + set(_icon_GROUP "devices") + endif(${_group} STREQUAL "device") + + if(${_group} STREQUAL "app") + set(_icon_GROUP "apps") + endif(${_group} STREQUAL "app") + + if(${_group} STREQUAL "action") + set(_icon_GROUP "actions") + endif(${_group} STREQUAL "action") + + set(_ICON_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/share/icons/${_theme}/${_sizestring}/${_icon_GROUP}) + + install(FILES ${_current_ICON} DESTINATION ${_ICON_INSTALL_DIR} RENAME ${_name}) + + endforeach (_current_ICON) +endmacro(qterm_install_icons) + +qterm_install_icons(hicolor) + Added: trunk/qterm-qt4/icons/hi128-app-qterm.png =================================================================== --- trunk/qterm-qt4/icons/hi128-app-qterm.png (rev 0) +++ trunk/qterm-qt4/icons/hi128-app-qterm.png 2010-01-08 02:30:08 UTC (rev 1116) @@ -0,0 +1,184 @@ +\x89PNG + + |
From: <hep...@us...> - 2010-01-09 05:26:00
|
Revision: 1123 http://qterm.svn.sourceforge.net/qterm/?rev=1123&view=rev Author: hephooey Date: 2010-01-09 05:25:48 +0000 (Sat, 09 Jan 2010) Log Message: ----------- Check if we have Qt Bindings Modified Paths: -------------- trunk/qterm-qt4/src/CMakeLists.txt Added Paths: ----------- trunk/qterm-qt4/cmake/FindQtScriptQtBindings.cmake trunk/qterm-qt4/cmake/bindingstest/ trunk/qterm-qt4/cmake/bindingstest/CMakeLists.txt trunk/qterm-qt4/cmake/bindingstest/QtScriptBindingsTest.cpp Added: trunk/qterm-qt4/cmake/FindQtScriptQtBindings.cmake =================================================================== --- trunk/qterm-qt4/cmake/FindQtScriptQtBindings.cmake (rev 0) +++ trunk/qterm-qt4/cmake/FindQtScriptQtBindings.cmake 2010-01-09 05:25:48 UTC (rev 1123) @@ -0,0 +1,44 @@ +## Ian Monroe <ia...@mo...> Copyright 2009 +# released under public domain or: +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +# + +include(CheckCXXSourceRuns) + +if(NOT WIN32) + file( READ "${CMAKE_SOURCE_DIR}/cmake/bindingstest/QtScriptBindingsTest.cpp" source ) + message(STATUS "Checking if the QtScript Qt Bindings are installed.") + + + set(CMAKE_REQUIRED_DEFINTIONS ${QT_DEFINITIONS} ${KDE4_DEFINITIONS} ) + set(CMAKE_REQUIRED_INCLUDES ${QT_QTCORE_INCLUDE_DIR} ${QT_QTSCRIPT_INCLUDE_DIR} ${KDE4_INCLUDES}) + set(CMAKE_REQUIRED_LIBRARIES ${QT_QTSCRIPT_LIBRARY} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} -L${KDE4_LIB_DIR} -lkdecore -lkdeui) + message( STATUS "includes ${CMAKE_REQUIRED_INCLUDES} libraries ${CMAKE_REQUIRED_LIBRARIES}" ) + CHECK_CXX_SOURCE_RUNS( "${source}" BINDINGS_RUN_RESULT) + + if(BINDINGS_RUN_RESULT EQUAL 1) + message( STATUS "QtBindings found") + set(QTSCRIPTQTBINDINGS_FOUND TRUE) + else(BINDINGS_RUN_RESULT EQUAL 1) + message( STATUS "QtBindings not found. Some functions provided by the script will not be available without QtBindings.") + set(QTSCRIPTQTBINDINGS_FOUND FALSE) + endif(BINDINGS_RUN_RESULT EQUAL 1) + + set(CMAKE_REQUIRED_DEFINTIONS "" ) + set(CMAKE_REQUIRED_INCLUDES "") + set(CMAKE_REQUIRED_LIBRARIES "") +else(NOT WIN32) + set(QTSCRIPTQTBINDINGS_FOUND TRUE) +endif(NOT WIN32) Added: trunk/qterm-qt4/cmake/bindingstest/CMakeLists.txt =================================================================== --- trunk/qterm-qt4/cmake/bindingstest/CMakeLists.txt (rev 0) +++ trunk/qterm-qt4/cmake/bindingstest/CMakeLists.txt 2010-01-09 05:25:48 UTC (rev 1123) @@ -0,0 +1,10 @@ +cmake_minimum_required (VERSION 2.6) + +find_package( KDE4 REQUIRED ) + +add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS}) +include_directories (${QT_QTCORE_INCLUDE_DIR} ${QT_QTSCRIPT_INCLUDE_DIR} ${KDE4_INCLUDES}) + +add_executable (bindingstest QtScriptBindingsTest.cpp) +target_link_libraries( bindingstest ${QT_QTSCRIPT_LIBRARY} ${KDE4_KDEUI_LIBS} ) + Added: trunk/qterm-qt4/cmake/bindingstest/QtScriptBindingsTest.cpp =================================================================== --- trunk/qterm-qt4/cmake/bindingstest/QtScriptBindingsTest.cpp (rev 0) +++ trunk/qterm-qt4/cmake/bindingstest/QtScriptBindingsTest.cpp 2010-01-09 05:25:48 UTC (rev 1123) @@ -0,0 +1,46 @@ +/* + * Copyright (C) 2009 Ian Monroe <ia...@mo...> + * released under public domain or: + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#include <QtCore/QCoreApplication> +#include <QtScript/QScriptEngine> +#include <QtCore/QStringList> +#include <QtCore/QDebug> + +#define FAIL 0xA + +int main(int argc, char **argv) +{ + QCoreApplication app( argc, argv ); + + QStringList allowedBindings; + allowedBindings << "qt.core" << "qt.gui" << "qt.sql" << "qt.xml" << "qt.uitools" << "qt.network" << "qt.webkit"; + QScriptEngine engine; + foreach( QString binding, allowedBindings ) + { + QScriptValue error = engine.importExtension( binding ); + if( error.isUndefined() ) + { // undefined indiciates success + continue; + } + + qDebug() << "Extension" << binding << "not found:" << error.toString(); + qDebug() << "Available extensions:" << engine.availableExtensions(); + return FAIL; + } + return 0; +} Modified: trunk/qterm-qt4/src/CMakeLists.txt =================================================================== --- trunk/qterm-qt4/src/CMakeLists.txt 2010-01-09 04:15:22 UTC (rev 1122) +++ trunk/qterm-qt4/src/CMakeLists.txt 2010-01-09 05:25:48 UTC (rev 1123) @@ -60,6 +60,7 @@ if(QTERM_ENABLE_SCRIPT) if(QT_QTSCRIPT_FOUND) message(STATUS "QtScript module found, enable Script support") + find_package(QtScriptQtBindings) add_definitions(-DSCRIPT_ENABLED) include_directories(${QT_QTSCRIPT_INCLUDE_DIR}) set(optionalLibs ${optionalLibs} ${QT_QTSCRIPT_LIBRARY}) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hep...@us...> - 2010-01-16 13:50:45
|
Revision: 1139 http://qterm.svn.sourceforge.net/qterm/?rev=1139&view=rev Author: hephooey Date: 2010-01-16 13:50:38 +0000 (Sat, 16 Jan 2010) Log Message: ----------- Rename showMessage to osdMessage Modified Paths: -------------- trunk/qterm-qt4/doc/script.txt trunk/qterm-qt4/src/qtermwindow.cpp trunk/qterm-qt4/src/qtermwindow.h trunk/qterm-qt4/src/scripthelper.cpp trunk/qterm-qt4/src/scripthelper.h trunk/qterm-qt4/src/scripts/ptt.js trunk/qterm-qt4/src/scripts/senddelay.js trunk/qterm-qt4/src/scripts/smth.js trunk/qterm-qt4/src/scripts/websnap.js Modified: trunk/qterm-qt4/doc/script.txt =================================================================== --- trunk/qterm-qt4/doc/script.txt 2010-01-15 01:12:47 UTC (rev 1138) +++ trunk/qterm-qt4/doc/script.txt 2010-01-16 13:50:38 UTC (rev 1139) @@ -93,7 +93,7 @@ Send parsed string to the BBS server. you can use '^M' to represent the return key for example. -void showMessage(const QString & message, int icon = 1, int duration = 0) +void osdMessage(const QString & message, int icon = 1, int duration = 0) Show message in the osd, icon = 0, 1, 2, 3 means No/Info/Warning/Error icon. Duration is in the unit of ms, 0 means forever. Modified: trunk/qterm-qt4/src/qtermwindow.cpp =================================================================== --- trunk/qterm-qt4/src/qtermwindow.cpp 2010-01-15 01:12:47 UTC (rev 1138) +++ trunk/qterm-qt4/src/qtermwindow.cpp 2010-01-16 13:50:38 UTC (rev 1139) @@ -1653,7 +1653,7 @@ pHttp->deleteLater(); } -void Window::showMessage(const QString & message, int type, int duration) +void Window::osdMessage(const QString & message, int type, int duration) { m_pScreen->osd()->display(message, (PageViewMessage::Icon)type, duration); } Modified: trunk/qterm-qt4/src/qtermwindow.h =================================================================== --- trunk/qterm-qt4/src/qtermwindow.h 2010-01-15 01:12:47 UTC (rev 1138) +++ trunk/qterm-qt4/src/qtermwindow.h 2010-01-16 13:50:38 UTC (rev 1139) @@ -110,7 +110,7 @@ void initScript(); void externInput(const QString &); void getHttpHelper(const QString&, bool); - void showMessage(const QString &, int type, int duration); + void osdMessage(const QString &, int type, int duration); Screen * screen() { return m_pScreen; Modified: trunk/qterm-qt4/src/scripthelper.cpp =================================================================== --- trunk/qterm-qt4/src/scripthelper.cpp 2010-01-15 01:12:47 UTC (rev 1138) +++ trunk/qterm-qt4/src/scripthelper.cpp 2010-01-16 13:50:38 UTC (rev 1139) @@ -141,9 +141,9 @@ m_window->sendParsedString(string); } -void ScriptHelper::showMessage(const QString & message, int type, int duration) +void ScriptHelper::osdMessage(const QString & message, int type, int duration) { - m_window->showMessage(message, type, duration); + m_window->osdMessage(message, type, duration); } void ScriptHelper::cancelZmodem() @@ -264,7 +264,7 @@ { QScriptValue ret = m_scriptEngine->importExtension(extension); if (ret.isError()) { - showMessage("Fail to load extension: "+extension); + osdMessage("Fail to load extension: "+extension); qDebug() << "Fail to load extension: " << extension; return false; } Modified: trunk/qterm-qt4/src/scripthelper.h =================================================================== --- trunk/qterm-qt4/src/scripthelper.h 2010-01-15 01:12:47 UTC (rev 1138) +++ trunk/qterm-qt4/src/scripthelper.h 2010-01-16 13:50:38 UTC (rev 1139) @@ -37,7 +37,7 @@ void buzz(); void sendString(const QString & string); void sendParsedString(const QString & string); - void showMessage(const QString & message, int type = 1, int duration = 0); + void osdMessage(const QString & message, int type = 1, int duration = 0); void cancelZmodem(); void setZmodemFileList(const QStringList & fileList); QScriptValue getLine(int line); Modified: trunk/qterm-qt4/src/scripts/ptt.js =================================================================== --- trunk/qterm-qt4/src/scripts/ptt.js 2010-01-15 01:12:47 UTC (rev 1138) +++ trunk/qterm-qt4/src/scripts/ptt.js 2010-01-16 13:50:38 UTC (rev 1139) @@ -15,7 +15,7 @@ QTerm.init = function() { - QTerm.showMessage("system script loaded", QTerm.OSDType.Info, 10000); + QTerm.osdMessage("system script loaded", QTerm.OSDType.Info, 10000); } QTerm.setCursorType = function(x,y) @@ -145,7 +145,7 @@ QTerm.onKeyPressEvent = function(key, modifiers, text) { // var msg = "The key pressed is: " + text; -// QTerm.showMessage(msg,1,1000); +// QTerm.osdMessage(msg,1,1000); QTerm.accepted = false; } @@ -207,7 +207,7 @@ { var text = "" if (QTerm.pageState != QTerm.PTT.Article) - QTerm.showMessage("No article to download.", QTerm.OSDType.Warning, 5000); + QTerm.osdMessage("No article to download.", QTerm.OSDType.Warning, 5000); else text = QTerm.Article.getArticle(); QTerm.accepted = true; @@ -228,7 +228,7 @@ QTerm.onAbout = function() { msg = "You are using ptt.js in QTerm " + QTerm.version() + " (C) 2009 QTerm Developers"; - QTerm.showMessage(msg, QTerm.OSDType.Info, 10000); + QTerm.osdMessage(msg, QTerm.OSDType.Info, 10000); } if (QTerm.addPopupMenu( "aboutScript", "About This Script" ) ) { Modified: trunk/qterm-qt4/src/scripts/senddelay.js =================================================================== --- trunk/qterm-qt4/src/scripts/senddelay.js 2010-01-15 01:12:47 UTC (rev 1138) +++ trunk/qterm-qt4/src/scripts/senddelay.js 2010-01-16 13:50:38 UTC (rev 1139) @@ -23,7 +23,7 @@ this.t.timeout.connect(this,this.sendOneChar); QTerm.eventFinished.connect(this,this.q.quit); this.q.exec(); - QTerm.showMessage("Send String Finished", QTerm.OSDType.Info, 2000); + QTerm.osdMessage("Send String Finished", QTerm.OSDType.Info, 2000); this.t.timeout.disconnect(this,this.sendOneChar); QTerm.eventFinished.disconnect(this,this.q.quit); } @@ -66,7 +66,7 @@ var delay = dialog.delaySpinBox.value*1000; if (text.length != 0 && times != 0) { - QTerm.showMessage("send \""+text+"\" "+times+" times with "+delay+" ms delay", QTerm.OSDType.Info, 2000); + QTerm.osdMessage("send \""+text+"\" "+times+" times with "+delay+" ms delay", QTerm.OSDType.Info, 2000); QTerm.SendDelay.send(text,times,delay); } } Modified: trunk/qterm-qt4/src/scripts/smth.js =================================================================== --- trunk/qterm-qt4/src/scripts/smth.js 2010-01-15 01:12:47 UTC (rev 1138) +++ trunk/qterm-qt4/src/scripts/smth.js 2010-01-16 13:50:38 UTC (rev 1139) @@ -13,7 +13,7 @@ QTerm.init = function() { - QTerm.showMessage("system script loaded", QTerm.OSDType.Info, 10000); + QTerm.osdMessage("system script loaded", QTerm.OSDType.Info, 10000); } QTerm.setCursorType = function(x,y) @@ -181,7 +181,7 @@ QTerm.onKeyPressEvent = function(key, modifiers, text) { // var msg = "The key pressed is: " + text; -// QTerm.showMessage(msg,1,1000); +// QTerm.osdMessage(msg,1,1000); QTerm.accepted = false; } @@ -245,7 +245,7 @@ url = "http://www.google.com/search?q="+QTerm.getSelectedText()+"&ie=UTF-8&oe=UTF-8"; QTerm.openUrl(url); } else - QTerm.showMessage("No text is selected to search for", QTerm.OSDType.Warning, 5000); + QTerm.osdMessage("No text is selected to search for", QTerm.OSDType.Warning, 5000); } if (QTerm.addPopupMenu( "googleSearch", "Search Selected Text in Google" ) ) { @@ -261,7 +261,7 @@ { var text = "" if (QTerm.pageState != QTerm.SMTH.Article) - QTerm.showMessage("No article to download", QTerm.OSDType.Warning, 5000); + QTerm.osdMessage("No article to download", QTerm.OSDType.Warning, 5000); else text = QTerm.Article.getArticle(); QTerm.accepted = true; @@ -281,7 +281,7 @@ QTerm.onAbout = function() { msg = "You are using smth.js in QTerm " + QTerm.version() + " (C) 2009 QTerm Developers"; - QTerm.showMessage(msg, QTerm.OSDType.Info, 10000); + QTerm.osdMessage(msg, QTerm.OSDType.Info, 10000); } if (QTerm.addPopupMenu( "aboutScript", "About This Script" ) ) { Modified: trunk/qterm-qt4/src/scripts/websnap.js =================================================================== --- trunk/qterm-qt4/src/scripts/websnap.js 2010-01-15 01:12:47 UTC (rev 1138) +++ trunk/qterm-qt4/src/scripts/websnap.js 2010-01-16 13:50:38 UTC (rev 1139) @@ -12,7 +12,7 @@ WebSnap.showSnap = function(ok) { if (!ok) { - QTerm.showMessage("cannot download the webpage"); + QTerm.osdMessage("cannot download the webpage"); return; } this.loading = false; @@ -31,14 +31,14 @@ this.webPage.mainFrame().render(p); p.end(); image = image.scaled(target, Qt.KeepAspectRatioByExpanding, Qt.SmoothTransformation); -// QTerm.showMessage("generating finished", 1, 0); +// QTerm.osdMessage("generating finished", 1, 0); this.label.size = target; this.label.pixmap = image; } WebSnap.getWebsnap = function( urlStr ) { -// QTerm.showMessage("generating websnap", 1, 0); +// QTerm.osdMessage("generating websnap", 1, 0); var url = new QUrl(urlStr, QUrl.TolerantMode); // this.webPage = new QWebPage; // this.label = new QLabel; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <hep...@us...> - 2010-06-12 18:25:48
|
Revision: 1187 http://qterm.svn.sourceforge.net/qterm/?rev=1187&view=rev Author: hephooey Date: 2010-06-12 18:25:42 +0000 (Sat, 12 Jun 2010) Log Message: ----------- Bump the version number and update README Modified Paths: -------------- trunk/qterm-qt4/CMakeLists.txt trunk/qterm-qt4/README Modified: trunk/qterm-qt4/CMakeLists.txt =================================================================== --- trunk/qterm-qt4/CMakeLists.txt 2010-06-12 18:25:38 UTC (rev 1186) +++ trunk/qterm-qt4/CMakeLists.txt 2010-06-12 18:25:42 UTC (rev 1187) @@ -4,7 +4,7 @@ set(QT_MIN_VERSION "4.5.0") set(QTERM_VERSION_MAJOR 0) set(QTERM_VERSION_MINOR 5) -set(QTERM_VERSION_RELEASE 10) +set(QTERM_VERSION_RELEASE 11) set(QTERM_VERSION "${QTERM_VERSION_MAJOR}.${QTERM_VERSION_MINOR}.${QTERM_VERSION_RELEASE}" ) set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") find_package(Qt4 REQUIRED) Modified: trunk/qterm-qt4/README =================================================================== --- trunk/qterm-qt4/README 2010-06-12 18:25:38 UTC (rev 1186) +++ trunk/qterm-qt4/README 2010-06-12 18:25:42 UTC (rev 1187) @@ -1,9 +1,11 @@ -QTerm 0.5.10 +QTerm 0.5.11 =============== 这个版本添加/修正了下面一些功能: -1. 增强脚本支持 -2. 各种 Bug fixes +1. 支持 Unicode 补完计划 (UAO) +2. 重写了图片浏览器 +3. 增强脚本支持 +4. 各种 Bug fixes The QTerm Team http://www.qterm.org This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <si...@us...> - 2010-06-14 07:36:17
|
Revision: 1189 http://qterm.svn.sourceforge.net/qterm/?rev=1189&view=rev Author: sidos Date: 2010-06-14 07:36:10 +0000 (Mon, 14 Jun 2010) Log Message: ----------- fix various warnings Modified Paths: -------------- trunk/qterm-qt4/CMakeLists.txt trunk/qterm-qt4/src/address.cfg trunk/qterm-qt4/src/qterm.cfg trunk/qterm-qt4/src/qtermbbs.cpp trunk/qterm-qt4/src/qtermglobal.cpp trunk/qterm-qt4/src/qtermtelnet.cpp trunk/qterm-qt4/src/qtermtelnet.h trunk/qterm-qt4/src/ssh/channel.cpp Property Changed: ---------------- trunk/qterm-qt4/ trunk/qterm-qt4/src/ Property changes on: trunk/qterm-qt4 ___________________________________________________________________ Added: svn:ignore + *.vcxproj CMakeFiles *.filters Modified: trunk/qterm-qt4/CMakeLists.txt =================================================================== --- trunk/qterm-qt4/CMakeLists.txt 2010-06-12 19:43:42 UTC (rev 1188) +++ trunk/qterm-qt4/CMakeLists.txt 2010-06-14 07:36:10 UTC (rev 1189) @@ -9,10 +9,16 @@ set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") find_package(Qt4 REQUIRED) find_package(KDE4) + +IF(WIN32 AND MSVC) + ADD_DEFINITIONS (/D _CRT_SECURE_NO_WARNINGS) +ENDIF(WIN32 AND MSVC) + add_subdirectory(src) add_subdirectory(icons) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h) + configure_file( "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in" "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" Property changes on: trunk/qterm-qt4/src ___________________________________________________________________ Added: svn:ignore + *.cfg *.rule Modified: trunk/qterm-qt4/src/address.cfg =================================================================== --- trunk/qterm-qt4/src/address.cfg 2010-06-12 19:43:42 UTC (rev 1188) +++ trunk/qterm-qt4/src/address.cfg 2010-06-14 07:36:10 UTC (rev 1189) @@ -6,8 +6,8 @@ [bbs%200] name=NEWSMTH -addr=bbs.newsmth.org -port=23 +addr=newsmth.net +port=22 hosttype=0 autologin=0 prelogin= @@ -19,8 +19,8 @@ autofont=1 alwayshighlight=0 ansicolor=1 -asciifont=Monospace -generalfont=Monospace +asciifont=Courier New +generalfont=Constantia fontsize=14 termtype=vt102 keytype=0 @@ -35,7 +35,7 @@ proxyport=0 proxyuser= proxypassword= -protocol=0 +protocol=1 sshuser= sshpassword= maxidle=180 @@ -51,6 +51,7 @@ menucolor=#004184 schemefile= replykey= +keyboardprofile= [bbs%201] name=Unknown Space Modified: trunk/qterm-qt4/src/qterm.cfg =================================================================== --- trunk/qterm-qt4/src/qterm.cfg 2010-06-12 19:43:42 UTC (rev 1188) +++ trunk/qterm-qt4/src/qterm.cfg 2010-06-14 07:36:10 UTC (rev 1189) @@ -4,16 +4,19 @@ [global] max=1 font=Sans -pointsize=10 +pointsize=7 quickfont=Monospace fullscreen=0 -theme=0 +theme=WindowsXP language=eng clipcodec=0 -vscrollpos=0 +vscrollpos=2 statusbar=0 switchbar=1 pixelsize=12 +geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x1\0\0\0\0\0\x96\0\0\0^\0\0\x4\xe2\0\0\x3\x84\0\0\0\x9a\0\0\0|\0\0\x4\xde\0\0\x3\x80\0\0\0\0\0\0) +state=@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\0\0\0\x4\x45\0\0\x2\xbf\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\x1\0\0\0\x2\0\0\0\x3\0\0\0\x16\0m\0\x61\0i\0n\0T\0o\0o\0l\0\x42\0\x61\0r\x1\0\0\0\0\xff\xff\xff\xff\0\0\0\0\0\0\0\0\0\0\0 \0\x63\0u\0s\0t\0o\0m\0K\0\x65\0y\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0:\0\0\x3\xde\0\0\0\0\0\0\0\0\0\0\0(\0\x62\0\x62\0s\0O\0p\0\x65\0r\0\x61\0t\0i\0o\0n\0s\0T\0o\0o\0l\0\x42\0\x61\0r\0\0\0\0\x46\0\0\0/\0\0\0\0\0\0\0\0) +sites=@Invalid() [key] num=1 @@ -36,6 +39,12 @@ http=xdg-open antialias=1 tray=0 +wavefile= +externalplayer= +clearpool=0 +pool=C:/QTerm/trunk/qterm-qt4/src/pool/ +zmodem=C:/QTerm/trunk/qterm-qt4/src/zmodem/ +image= [quick%200] addr=debian @@ -54,6 +63,49 @@ actionBoss=F12 actionCopy=Ctrl+Ins actionPaste=Shift+Ins +actionConnect= +actionDisconnect= +actionExit= +actionColorCopy= +actionRect= +actionAutoCopy= +actionWordWrap= +actionNoESC= +actionESCESC= +actionUESC= +actionCustomESC= +actionGBK= +actionBig5= +actionFont= +actionColor= +actionEng= +actionChs= +actionCht= +actionUiFont= +actionHide= +actionLeft= +actionRight= +actionStatus= +actionSwitch= +actionCurrentSession= +actionDefault= +actionPref= +actionAntiIdle= +actionAutoReply= +actionBeep= +actionMouse= +actionViewImage= +actionHomepage= +actionReconnect= +actionShortcuts= +actionToolbars= +actionConnectButton= +actionPrint= +actionNoConversion= +actionS2T= +actionScriptReload= +actionMenuBar= +actionScriptDebug= [ToolBars] mainToolBar=actionQuickConnect Modified: trunk/qterm-qt4/src/qtermbbs.cpp =================================================================== --- trunk/qterm-qt4/src/qtermbbs.cpp 2010-06-12 19:43:42 UTC (rev 1188) +++ trunk/qterm-qt4/src/qtermbbs.cpp 2010-06-14 07:36:10 UTC (rev 1189) @@ -585,7 +585,7 @@ if ((ata = strText.indexOf('@', begin + 1)) == -1) host = url + (ata - begin) + 1; else - return -1; + return false; } else { host = url+urlRe.matchedLength(); } Modified: trunk/qterm-qt4/src/qtermglobal.cpp =================================================================== --- trunk/qterm-qt4/src/qtermglobal.cpp 2010-06-12 19:43:42 UTC (rev 1188) +++ trunk/qterm-qt4/src/qtermglobal.cpp 2010-06-14 07:36:10 UTC (rev 1189) @@ -31,11 +31,11 @@ #include <QtGui/QMessageBox> #if defined(_OS_WIN32_) || defined(Q_OS_WIN32) +#include <windows.h> +#include <shellapi.h> #ifndef MAX_PATH #define MAX_PATH 128 #endif -#include <windows.h> -#include <shellapi.h> #endif namespace QTerm Modified: trunk/qterm-qt4/src/qtermtelnet.cpp =================================================================== --- trunk/qterm-qt4/src/qtermtelnet.cpp 2010-06-12 19:43:42 UTC (rev 1188) +++ trunk/qterm-qt4/src/qtermtelnet.cpp 2010-06-14 07:36:10 UTC (rev 1189) @@ -560,7 +560,7 @@ void Telnet::putc_down(u_char c) { // check overflow - if ((wsize + 1) > to_socket.size()) { + if ((wsize + 1) > (uint) to_socket.size()) { qWarning("putc_down : to_socket buffer overflow"); return; } @@ -841,7 +841,7 @@ /*if (scrfp) (void) putc(ch, scrfp);*/ - if ((rsize + 1) > to_ansi.size()) { + if ((rsize + 1) > (uint) to_ansi.size()) { qWarning("xputc_up : Buffer to_ansi overflow"); return -1; } Modified: trunk/qterm-qt4/src/qtermtelnet.h =================================================================== --- trunk/qterm-qt4/src/qtermtelnet.h 2010-06-12 19:43:42 UTC (rev 1188) +++ trunk/qterm-qt4/src/qtermtelnet.h 2010-06-14 07:36:10 UTC (rev 1189) @@ -216,7 +216,7 @@ int done_naws; bool d_isSSH; bool bConnected; - int raw_size; + uint raw_size; }; } // namespace QTerm Modified: trunk/qterm-qt4/src/ssh/channel.cpp =================================================================== --- trunk/qterm-qt4/src/ssh/channel.cpp 2010-06-12 19:43:42 UTC (rev 1188) +++ trunk/qterm-qt4/src/ssh/channel.cpp 2010-06-14 07:36:10 UTC (rev 1189) @@ -89,8 +89,8 @@ qDebug() << "===remote ID " << target->remoteID << target->remoteWindow; #endif // TODO: wait for window adjust? - if (target->localWindow >= data.size()) - target->localWindow -= data.size(); + if (target->localWindow >= (size_t) data.size()) + target->localWindow -= (size_t) data.size(); else qDebug("local window size is too small"); #ifdef SSH_DEBUG @@ -107,7 +107,7 @@ void SSH2Channel::writeData(int id, const QByteArray & data) { - if (m_channelList.at(id)->remoteWindow < data.size()) { + if (m_channelList.at(id)->remoteWindow < (size_t) data.size()) { qDebug("remote window too small"); return; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <si...@us...> - 2010-09-27 10:32:13
|
Revision: 1253 http://qterm.svn.sourceforge.net/qterm/?rev=1253&view=rev Author: sidos Date: 2010-09-27 10:32:07 +0000 (Mon, 27 Sep 2010) Log Message: ----------- add CPACK package Modified Paths: -------------- trunk/qterm-qt4/CMakeLists.txt Added Paths: ----------- trunk/qterm-qt4/package.cmake Modified: trunk/qterm-qt4/CMakeLists.txt =================================================================== --- trunk/qterm-qt4/CMakeLists.txt 2010-09-20 09:47:23 UTC (rev 1252) +++ trunk/qterm-qt4/CMakeLists.txt 2010-09-27 10:32:07 UTC (rev 1253) @@ -18,6 +18,7 @@ add_subdirectory(icons) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h) +include("package.cmake") configure_file( "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in" Added: trunk/qterm-qt4/package.cmake =================================================================== --- trunk/qterm-qt4/package.cmake (rev 0) +++ trunk/qterm-qt4/package.cmake 2010-09-27 10:32:07 UTC (rev 1253) @@ -0,0 +1,26 @@ +INCLUDE(InstallRequiredSystemLibraries) + +SET(CPACK_PACKAGE_NAME "QTerm") +SET(CPACK_PACKAGE_VENDOR "The QTerm Project") +SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "QTerm - The BBS Client") +SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README") +SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/COPYRIGHT") +SET(CPACK_PACKAGE_VERSION_MAJOR ${QTERM_VERSION_MAJOR}) +SET(CPACK_PACKAGE_VERSION_MINOR ${QTERM_VERSION_MINOR}) +SET(CPACK_PACKAGE_VERSION_PATCH ${QTERM_VERSION_RELEASE}) +IF(WIN32 AND NOT UNIX) + # There is a bug in NSI that does not handle full unix paths properly. Make + # sure there is at least one set of four (4) backlasshes. + SET(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\qterm.exe") + SET(CPACK_NSIS_HELP_LINK "http:\\\\\\\\www.qterm.org") + SET(CPACK_NSIS_URL_INFO_ABOUT "http:\\\\\\\\www.qterm.org") + SET(CPACK_NSIS_MODIFY_PATH ON) +ELSE(WIN32 AND NOT UNIX) + SET(CPACK_STRIP_FILES "bin/qterm") + SET(CPACK_SOURCE_STRIP_FILES "") +ENDIF(WIN32 AND NOT UNIX) + +# Functions to install qt, ssl libraries +FUNCTION(install_libs, lib +INCLUDE(CPack) + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <si...@us...> - 2011-10-15 21:11:08
|
Revision: 1295 http://qterm.svn.sourceforge.net/qterm/?rev=1295&view=rev Author: sidos Date: 2011-10-15 21:11:02 +0000 (Sat, 15 Oct 2011) Log Message: ----------- build app bundle on mac os x Modified Paths: -------------- trunk/qterm-qt4/CMakeLists.txt trunk/qterm-qt4/src/CMakeLists.txt trunk/qterm-qt4/src/qterm.cfg Modified: trunk/qterm-qt4/CMakeLists.txt =================================================================== --- trunk/qterm-qt4/CMakeLists.txt 2011-10-15 21:08:45 UTC (rev 1294) +++ trunk/qterm-qt4/CMakeLists.txt 2011-10-15 21:11:02 UTC (rev 1295) @@ -14,6 +14,14 @@ ADD_DEFINITIONS (/D _CRT_SECURE_NO_WARNINGS) ENDIF(WIN32 AND MSVC) +IF(APPLE) + SET (PROGRAME QTerm) + SET (MACOSX_BUNDLE_VERSION $QTERM_VERSION) + SET (MACOSX_BUNDLE_ICON_FILE QTerm.icns) +ELSE(APPLE) + SET (PROGRAME qterm) +ENDIF(APPLE) + add_subdirectory(src) add_subdirectory(icons) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h) Modified: trunk/qterm-qt4/src/CMakeLists.txt =================================================================== --- trunk/qterm-qt4/src/CMakeLists.txt 2011-10-15 21:08:45 UTC (rev 1294) +++ trunk/qterm-qt4/src/CMakeLists.txt 2011-10-15 21:11:02 UTC (rev 1295) @@ -197,6 +197,15 @@ file(COPY ${qterm_MISC} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) +find_program(XDGOPEN NAME xdg-open DOC "Looking for xdg-open") +if (XDGOPEN_FOUND) + set (HTTP xdg-open) +else (XDGOPEN_FOUND) + set (HTTP) +endif (XDGOPEN_FOUND) + +configure_file(${CMAKE_CURRENT_BINARY_DIR}/qterm.cfg ${CMAKE_CURRENT_BINARY_DIR}/qterm.cfg) + if(WIN32) if(MINGW) # resource compilation for mingw @@ -233,11 +242,27 @@ ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) if(WIN32) - add_executable(qterm WIN32 ${qterm_SRCS} ${qterm_RCCS_SRCS}) -else(WIN32) - add_executable(qterm ${qterm_SRCS} ${qterm_RCCS_SRCS}) -endif(WIN32) -target_link_libraries(qterm + add_executable(${PROGRAME} WIN32 ${qterm_SRCS} ${qterm_RCCS_SRCS}) +elseif(APPLE) + set(qterm_MISC ${qterm_MISC} ${CMAKE_CURRENT_SOURCE_DIR}/../icons/QTerm.icns) + set_source_files_properties(${qterm_MISC} PROPERTIES MACOSX_PACKAGE_LOCATION Resources) + add_executable(${PROGRAME} MACOSX_BUNDLE ${qterm_SRCS} ${qterm_RCCS_SRCS} ${qterm_MISC} ) + add_custom_command( TARGET ${PROGRAME} PRE_BUILD + COMMAND mkdir ARGS -p ${PROGRAME}.app/Contents/MacOS + COMMAND mkdir ARGS -p ${PROGRAME}.app/Contents/Resources + COMMAND mkdir ARGS -p ${PROGRAME}.app/Contents/Resources/po + COMMAND mkdir ARGS -p ${PROGRAME}.app/Contents/Resources/doc + COMMAND mkdir ARGS -p ${PROGRAME}.app/Contents/Resources/keyboard_profiles + ) + add_custom_command( TARGET ${PROGRAME} POST_BUILD + COMMAND cp ARGS ${CMAKE_CURRENT_BINARY_DIR}/po/*.qm ${PROGRAME}.app/Contents/Resources/po + COMMAND cp ARGS ${CMAKE_CURRENT_BINARY_DIR}/doc/*.{qhc,qch} ${PROGRAME}.app/Contents/Resources/doc + COMMAND cp ARGS ${CMAKE_CURRENT_BINARY_DIR}/keyboard_profiles/*.keytab ${PROGRAME}.app/Contents/Resources/keyboard_profiles + ) +else() + add_executable(${PROGRAME} ${qterm_SRCS} ${qterm_RCCS_SRCS}) +endif() +target_link_libraries(${PROGRAME} ${QT_LIBRARIES} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} @@ -245,9 +270,9 @@ ${QT_QTXML_LIBRARY} ${optionalLibs}) if(WIN32 AND MINGW) - target_link_libraries(qterm ${win32Libs}) + target_link_libraries(${PROGRAME} ${win32Libs}) endif(WIN32 AND MINGW) -install(TARGETS qterm DESTINATION bin) +install(TARGETS ${PROGRAME} DESTINATION bin) install(FILES ${qterm_MISC} DESTINATION share/qterm) install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/qterm.desktop DESTINATION share/applications) add_subdirectory(scheme) @@ -255,7 +280,7 @@ add_subdirectory(po) add_subdirectory(keyboard_profiles) add_subdirectory(doc) -add_dependencies(qterm translations_target help_target) +add_dependencies(${PROGRAME} translations_target help_target) if(QTERM_ENABLE_TEST) add_subdirectory(test) endif(QTERM_ENABLE_TEST) Modified: trunk/qterm-qt4/src/qterm.cfg =================================================================== --- trunk/qterm-qt4/src/qterm.cfg 2011-10-15 21:08:45 UTC (rev 1294) +++ trunk/qterm-qt4/src/qterm.cfg 2011-10-15 21:11:02 UTC (rev 1295) @@ -34,7 +34,7 @@ blinktab=1 warn=1 beep=1 -http=xdg-open +http=${HTTP} antialias=1 tray=0 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <si...@us...> - 2011-10-15 22:27:56
|
Revision: 1296 http://qterm.svn.sourceforge.net/qterm/?rev=1296&view=rev Author: sidos Date: 2011-10-15 22:27:50 +0000 (Sat, 15 Oct 2011) Log Message: ----------- files are not installed on MacOSX but included in app bundle Modified Paths: -------------- trunk/qterm-qt4/icons/CMakeLists.txt trunk/qterm-qt4/src/CMakeLists.txt trunk/qterm-qt4/src/doc/CMakeLists.txt trunk/qterm-qt4/src/keyboard_profiles/CMakeLists.txt trunk/qterm-qt4/src/po/CMakeLists.txt trunk/qterm-qt4/src/scheme/CMakeLists.txt trunk/qterm-qt4/src/scripts/CMakeLists.txt Modified: trunk/qterm-qt4/icons/CMakeLists.txt =================================================================== --- trunk/qterm-qt4/icons/CMakeLists.txt 2011-10-15 21:11:02 UTC (rev 1295) +++ trunk/qterm-qt4/icons/CMakeLists.txt 2011-10-15 22:27:50 UTC (rev 1296) @@ -48,5 +48,6 @@ endforeach (_current_ICON) endmacro(qterm_install_icons) -qterm_install_icons(hicolor) - +if (NOT APPLE) + qterm_install_icons(hicolor) +endif () Modified: trunk/qterm-qt4/src/CMakeLists.txt =================================================================== --- trunk/qterm-qt4/src/CMakeLists.txt 2011-10-15 21:11:02 UTC (rev 1295) +++ trunk/qterm-qt4/src/CMakeLists.txt 2011-10-15 22:27:50 UTC (rev 1296) @@ -273,8 +273,14 @@ target_link_libraries(${PROGRAME} ${win32Libs}) endif(WIN32 AND MINGW) install(TARGETS ${PROGRAME} DESTINATION bin) -install(FILES ${qterm_MISC} DESTINATION share/qterm) -install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/qterm.desktop DESTINATION share/applications) +if (NOT APPLE) + install(FILES ${qterm_MISC} DESTINATION share/qterm) + install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/qterm.desktop DESTINATION share/applications) +endif() +install(CODE " + include(BundleUtilities) + fixup_bundle(\"${CMAKE_INSTALL_PREFIX}/bin/${PROGRAME}.app/Contents/MacOS/QTerm\" \"\" \"\") + " COMPONENT Runtime) add_subdirectory(scheme) add_subdirectory(scripts) add_subdirectory(po) Modified: trunk/qterm-qt4/src/doc/CMakeLists.txt =================================================================== --- trunk/qterm-qt4/src/doc/CMakeLists.txt 2011-10-15 21:11:02 UTC (rev 1295) +++ trunk/qterm-qt4/src/doc/CMakeLists.txt 2011-10-15 22:27:50 UTC (rev 1296) @@ -24,8 +24,10 @@ ADD_CUSTOM_TARGET(help_target DEPENDS qterm.qhc) -INSTALL( +if (NOT APPLE) + INSTALL( FILES ${CMAKE_CURRENT_BINARY_DIR}/qterm.qhc DESTINATION share/qterm/doc -) + ) +endif () Modified: trunk/qterm-qt4/src/keyboard_profiles/CMakeLists.txt =================================================================== --- trunk/qterm-qt4/src/keyboard_profiles/CMakeLists.txt 2011-10-15 21:11:02 UTC (rev 1295) +++ trunk/qterm-qt4/src/keyboard_profiles/CMakeLists.txt 2011-10-15 22:27:50 UTC (rev 1296) @@ -1,3 +1,5 @@ file(GLOB keyboardFiles "${CMAKE_CURRENT_SOURCE_DIR}/*.keytab") file(COPY ${keyboardFiles} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) -install(FILES ${keyboardFiles} DESTINATION share/qterm/keyboard_profiles) +if (NOT APPLE) + install(FILES ${keyboardFiles} DESTINATION share/qterm/keyboard_profiles) +endif () Modified: trunk/qterm-qt4/src/po/CMakeLists.txt =================================================================== --- trunk/qterm-qt4/src/po/CMakeLists.txt 2011-10-15 21:11:02 UTC (rev 1295) +++ trunk/qterm-qt4/src/po/CMakeLists.txt 2011-10-15 22:27:50 UTC (rev 1296) @@ -1,4 +1,6 @@ file(GLOB TRANSLATIONS_FILES *.ts) qt4_add_translation(QM_FILES ${TRANSLATIONS_FILES}) add_custom_target(translations_target DEPENDS ${QM_FILES}) -install(FILES ${QM_FILES} DESTINATION share/qterm/po) +if (NOT APPLE) + install(FILES ${QM_FILES} DESTINATION share/qterm/po) +endif() Modified: trunk/qterm-qt4/src/scheme/CMakeLists.txt =================================================================== --- trunk/qterm-qt4/src/scheme/CMakeLists.txt 2011-10-15 21:11:02 UTC (rev 1295) +++ trunk/qterm-qt4/src/scheme/CMakeLists.txt 2011-10-15 22:27:50 UTC (rev 1296) @@ -1,3 +1,5 @@ file(GLOB schemeFiles "${CMAKE_CURRENT_SOURCE_DIR}/*.scheme") file(COPY ${schemeFiles} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) -install(FILES ${schemeFiles} DESTINATION share/qterm/scheme) +if (NOT APPLE) + install(FILES ${schemeFiles} DESTINATION share/qterm/scheme) +endif() Modified: trunk/qterm-qt4/src/scripts/CMakeLists.txt =================================================================== --- trunk/qterm-qt4/src/scripts/CMakeLists.txt 2011-10-15 21:11:02 UTC (rev 1295) +++ trunk/qterm-qt4/src/scripts/CMakeLists.txt 2011-10-15 22:27:50 UTC (rev 1296) @@ -1,4 +1,6 @@ file(GLOB scriptFiles "${CMAKE_CURRENT_SOURCE_DIR}/*.js") file(COPY ${scriptFiles} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) -install(FILES ${scriptFiles} DESTINATION share/qterm/scripts) -add_subdirectory(ui) +if (NOT APPLE) + install(FILES ${scriptFiles} DESTINATION share/qterm/scripts) + add_subdirectory(ui) +endif() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |