Mercurial > hg > octave-avbm
changeset 14250:14d602c4f6e8 gui
Merge default onto gui
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Sun, 22 Jan 2012 15:13:22 -0500 |
parents | 995c69c217e5 (diff) 27abe77158d6 (current diff) |
children | 5dcfb705ce12 |
files | NEWS configure.ac doc/interpreter/contributors.in libcruft/arpack/LICENSE libcruft/arpack/README libcruft/arpack/docs/README libcruft/arpack/docs/debug.doc libcruft/arpack/docs/ex-complex.doc libcruft/arpack/docs/ex-nonsym.doc libcruft/arpack/docs/ex-sym.doc libcruft/arpack/docs/stat.doc libcruft/arpack/module.mk libcruft/arpack/src/cgetv0.f libcruft/arpack/src/cnaitr.f libcruft/arpack/src/cnapps.f libcruft/arpack/src/cnaup2.f libcruft/arpack/src/cnaupd.f libcruft/arpack/src/cneigh.f libcruft/arpack/src/cneupd.f libcruft/arpack/src/cngets.f libcruft/arpack/src/csortc.f libcruft/arpack/src/cstatn.f libcruft/arpack/src/debug.h libcruft/arpack/src/dgetv0.f libcruft/arpack/src/dlaqrb.f libcruft/arpack/src/dnaitr.f libcruft/arpack/src/dnapps.f libcruft/arpack/src/dnaup2.f libcruft/arpack/src/dnaupd.f libcruft/arpack/src/dnaupe.f libcruft/arpack/src/dnconv.f libcruft/arpack/src/dneigh.f libcruft/arpack/src/dneupd.f libcruft/arpack/src/dngets.f libcruft/arpack/src/dsaitr.f libcruft/arpack/src/dsapps.f libcruft/arpack/src/dsaup2.f libcruft/arpack/src/dsaupd.f libcruft/arpack/src/dsconv.f libcruft/arpack/src/dseigt.f libcruft/arpack/src/dsesrt.f libcruft/arpack/src/dseupd.f libcruft/arpack/src/dsgets.f libcruft/arpack/src/dsortc.f libcruft/arpack/src/dsortr.f libcruft/arpack/src/dstatn.f libcruft/arpack/src/dstats.f libcruft/arpack/src/dstqrb.f libcruft/arpack/src/sgetv0.f libcruft/arpack/src/slaqrb.f libcruft/arpack/src/snaitr.f libcruft/arpack/src/snapps.f libcruft/arpack/src/snaup2.f libcruft/arpack/src/snaupd.f libcruft/arpack/src/snaupe.f libcruft/arpack/src/snconv.f libcruft/arpack/src/sneigh.f libcruft/arpack/src/sneupd.f libcruft/arpack/src/sngets.f libcruft/arpack/src/ssaitr.f libcruft/arpack/src/ssapps.f libcruft/arpack/src/ssaup2.f libcruft/arpack/src/ssaupd.f libcruft/arpack/src/ssconv.f libcruft/arpack/src/sseigt.f libcruft/arpack/src/ssesrt.f libcruft/arpack/src/sseupd.f libcruft/arpack/src/ssgets.f libcruft/arpack/src/ssortc.f libcruft/arpack/src/ssortr.f libcruft/arpack/src/sstatn.f libcruft/arpack/src/sstats.f libcruft/arpack/src/sstqrb.f libcruft/arpack/src/stat.h libcruft/arpack/src/version.h libcruft/arpack/src/zgetv0.f libcruft/arpack/src/znaitr.f libcruft/arpack/src/znapps.f libcruft/arpack/src/znaup2.f libcruft/arpack/src/znaupd.f libcruft/arpack/src/zneigh.f libcruft/arpack/src/zneupd.f libcruft/arpack/src/zngets.f libcruft/arpack/src/zsortc.f libcruft/arpack/src/zstatn.f libcruft/arpack/util/cmout.f libcruft/arpack/util/cvout.f libcruft/arpack/util/dmout.f libcruft/arpack/util/dvout.f libcruft/arpack/util/icnteq.f libcruft/arpack/util/icopy.f libcruft/arpack/util/iset.f libcruft/arpack/util/iswap.f libcruft/arpack/util/ivout.f libcruft/arpack/util/second.f libcruft/arpack/util/smout.f libcruft/arpack/util/svout.f libcruft/arpack/util/zmout.f libcruft/arpack/util/zvout.f liboctave/regex-match.cc liboctave/regex-match.h scripts/deprecated/sphcat.m scripts/deprecated/spvcat.m scripts/plot/__gnuplot_drawnow__.m scripts/plot/__go_close_all__.m src/DLD-FUNCTIONS/onCleanup.cc src/base-list.h test/test_contin.m test/test_index-wfi-f.m test/test_index-wfi-t.m test/test_logical-wfi-f.m test/test_logical-wfi-t.m |
diffstat | 100 files changed, 18468 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/NEWS +++ b/NEWS @@ -1,3 +1,8 @@ +Summary of important user-visible changes for version 4.0: +--------------------------------------------------------- + + ** A new GUI is now available with Octave. + Summary of important user-visible changes for version 3.6: ---------------------------------------------------------
--- a/configure.ac +++ b/configure.ac @@ -730,6 +730,520 @@ FFT_DIR="fftpack" AC_SUBST(FFT_DIR) +dnl @synopsis BNV_HAVE_QT [--with-Qt-dir=DIR] [--with-Qt-lib-dir=DIR] [--with-Qt-lib=LIB] +dnl @synopsis BNV_HAVE_QT [--with-Qt-include-dir=DIR] [--with-Qt-bin-dir=DIR] [--with-Qt-lib-dir=DIR] [--with-Qt-lib=LIB] +dnl +dnl @summary Search for Trolltech's Qt GUI framework. +dnl +dnl Searches common directories for Qt include files, libraries and Qt +dnl binary utilities. The macro supports several different versions of +dnl the Qt framework being installed on the same machine. Without +dnl options, the macro is designed to look for the latest library, +dnl i.e., the highest definition of QT_VERSION in qglobal.h. By use of +dnl one or more options a different library may be selected. There are +dnl two different sets of options. Both sets contain the option +dnl --with-Qt-lib=LIB which can be used to force the use of a +dnl particular version of the library file when more than one are +dnl available. LIB must be in the form as it would appear behind the +dnl "-l" option to the compiler. Examples for LIB would be "qt-mt" for +dnl the multi-threaded version and "qt" for the regular version. In +dnl addition to this, the first set consists of an option +dnl --with-Qt-dir=DIR which can be used when the installation conforms +dnl to Trolltech's standard installation, which means that header files +dnl are in DIR/include, binary utilities are in DIR/bin and the library +dnl is in DIR/lib. The second set of options can be used to indicate +dnl individual locations for the header files, the binary utilities and +dnl the library file, in addition to the specific version of the +dnl library file. +dnl +dnl The following shell variable is set to either "yes" or "no": +dnl +dnl have_qt +dnl +dnl Additionally, the following variables are exported: +dnl +dnl QT_CXXFLAGS +dnl QT_LIBS +dnl QT_MOC +dnl QT_UIC +dnl QT_DIR +dnl +dnl which respectively contain an "-I" flag pointing to the Qt include +dnl directory (and "-DQT_THREAD_SUPPORT" when LIB is "qt-mt"), link +dnl flags necessary to link with Qt and X, the name of the meta object +dnl compiler and the user interface compiler both with full path, and +dnl finaly the variable QTDIR as Trolltech likes to see it defined (if +dnl possible). +dnl +dnl Example lines for Makefile.in: +dnl +dnl CXXFLAGS = @QT_CXXFLAGS@ +dnl MOC = @QT_MOC@ +dnl +dnl After the variables have been set, a trial compile and link is +dnl performed to check the correct functioning of the meta object +dnl compiler. This test may fail when the different detected elements +dnl stem from different releases of the Qt framework. In that case, an +dnl error message is emitted and configure stops. +dnl +dnl No common variables such as $LIBS or $CFLAGS are polluted. +dnl +dnl Options: +dnl +dnl --with-Qt-dir=DIR: DIR is equal to $QTDIR if you have followed the +dnl installation instructions of Trolltech. Header files are in +dnl DIR/include, binary utilities are in DIR/bin and the library is in +dnl DIR/lib. +dnl +dnl --with-Qt-include-dir=DIR: Qt header files are in DIR. +dnl +dnl --with-Qt-bin-dir=DIR: Qt utilities such as moc and uic are in DIR. +dnl +dnl --with-Qt-lib-dir=DIR: The Qt library is in DIR. +dnl +dnl --with-Qt-lib=LIB: Use -lLIB to link with the Qt library. +dnl +dnl If some option "=no" or, equivalently, a --without-Qt-* version is +dnl given in stead of a --with-Qt-*, "have_qt" is set to "no" and the +dnl other variables are set to the empty string. +dnl +dnl @category InstalledPackages +dnl @author Bastiaan Veelo <Bastiaan@Veelo.net> +dnl @version 2006-03-12 +dnl @license AllPermissive + +dnl Copyright (C) 2001, 2002, 2003, 2005, 2006 Bastiaan Veelo + +dnl THANKS! This code includes bug fixes and contributions made by: +dnl Tim McClarren, +dnl Dennis R. Weilert, +dnl Qingning Huo, +dnl Brian Mingus, +dnl Jens Hannemann, +dnl Pavel Roskin, +dnl Scott J. Bertin. + +dnl ChangeLog +dnl 2006-03-12 * Hide output of ls and fix an m4 quoting problem (due to Scott J. Bertin). +dnl 2006-02-13 * Check compiler return value instead of parsing the error stream, +dnl which detected warnings as false negatives (due to Jens Hannemann). +dnl 2006-02-02 * Spelling of "Success". +dnl * Fixed unsave test for $bnv_qt_lib without quotes. +dnl * Put dnl in front of all comments. +dnl * Changed -l$bnv_qt_lib_dir into -L$bnv_qt_lib_dir (all due to Pavel Roskin). +dnl 2006-01-19 * Support for 64bit architectures. +dnl * Updated documentation. +dnl 2006-01-18: * Fix "cat: bnv_qt_test.c: No such file or directory" (due to Jens Hannemann). +dnl * Hide output of failing ls. +dnl 2006-01-11: * Check in /Developer on Mac OS X; Check in $QTDIR (due to Brian Mingus). + +dnl Calls BNV_PATH_QT_DIRECT (contained in this file) as a subroutine. +AC_DEFUN([BNV_HAVE_QT], +[ + AC_REQUIRE([AC_PROG_CXX]) + AC_REQUIRE([AC_PATH_X]) + AC_REQUIRE([AC_PATH_XTRA]) + + AC_MSG_CHECKING(for Qt) + + AC_ARG_WITH([Qt-dir], + [ --with-Qt-dir=DIR DIR is equal to $QTDIR if you have followed the + installation instructions of Trolltech. Header + files are in DIR/include, binary utilities are + in DIR/bin. The library is in DIR/lib, unless + --with-Qt-lib-dir is also set.]) + AC_ARG_WITH([Qt-include-dir], + [ --with-Qt-include-dir=DIR + Qt header files are in DIR]) + AC_ARG_WITH([Qt-bin-dir], + [ --with-Qt-bin-dir=DIR Qt utilities such as moc and uic are in DIR]) + AC_ARG_WITH([Qt-lib-dir], + [ --with-Qt-lib-dir=DIR The Qt library is in DIR]) + AC_ARG_WITH([Qt-lib], + [ --with-Qt-lib=LIB Use -lLIB to link with the Qt library]) + if test x"$with_Qt_dir" = x"no" || + test x"$with_Qt_include-dir" = x"no" || + test x"$with_Qt_bin_dir" = x"no" || + test x"$with_Qt_lib_dir" = x"no" || + test x"$with_Qt_lib" = x"no"; then + # user disabled Qt. Leave cache alone. + have_qt="User disabled Qt." + else + # "yes" is a bogus option + if test x"$with_Qt_dir" = xyes; then + with_Qt_dir= + fi + if test x"$with_Qt_include_dir" = xyes; then + with_Qt_include_dir= + fi + if test x"$with_Qt_bin_dir" = xyes; then + with_Qt_bin_dir= + fi + if test x"$with_Qt_lib_dir" = xyes; then + with_Qt_lib_dir= + fi + if test x"$with_Qt_lib" = xyes; then + with_Qt_lib= + fi + # No Qt unless we discover otherwise + have_qt=no + # Check whether we are requested to link with a specific version + if test x"$with_Qt_lib" != x; then + bnv_qt_lib="$with_Qt_lib" + fi + # Check whether we were supplied with an answer already + if test x"$with_Qt_dir" != x; then + have_qt=yes + bnv_qt_dir="$with_Qt_dir" + bnv_qt_include_dir="$with_Qt_dir/include" + bnv_qt_bin_dir="$with_Qt_dir/bin" + bnv_qt_lib_dir="$with_Qt_dir/lib" + # Only search for the lib if the user did not define one already + if test x"$bnv_qt_lib" = x; then + bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p | + sed s@$bnv_qt_lib_dir/lib@@ | [sed s@[.].*@@]`" + fi + bnv_qt_LIBS="-L$bnv_qt_lib_dir -l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" + else + # Use cached value or do search, starting with suggestions from + # the command line + AC_CACHE_VAL(bnv_cv_have_qt, + [ + # We are not given a solution and there is no cached value. + bnv_qt_dir=NO + bnv_qt_include_dir=NO + bnv_qt_lib_dir=NO + if test x"$bnv_qt_lib" = x; then + bnv_qt_lib=NO + fi + BNV_PATH_QT_DIRECT + if test "$bnv_qt_dir" = NO || + test "$bnv_qt_include_dir" = NO || + test "$bnv_qt_lib_dir" = NO || + test "$bnv_qt_lib" = NO; then + # Problem with finding complete Qt. Cache the known absence of Qt. + bnv_cv_have_qt="have_qt=no" + else + # Record where we found Qt for the cache. + bnv_cv_have_qt="have_qt=yes \ + bnv_qt_dir=$bnv_qt_dir \ + bnv_qt_include_dir=$bnv_qt_include_dir \ + bnv_qt_bin_dir=$bnv_qt_bin_dir \ + bnv_qt_LIBS=\"$bnv_qt_LIBS\"" + fi + ])dnl + eval "$bnv_cv_have_qt" + fi # all $bnv_qt_* are set + fi # $have_qt reflects the system status + if test x"$have_qt" = xyes; then + QT_CXXFLAGS="-I$bnv_qt_include_dir" + if test x"$bnv_qt_lib" = xqt-mt; then + QT_CXXFLAGS="$QT_CXXFLAGS -DQT_THREAD_SUPPORT" + fi + QT_DIR="$bnv_qt_dir" + QT_LIBS="$bnv_qt_LIBS" + # If bnv_qt_dir is defined, utilities are expected to be in the + # bin subdirectory + if test x"$bnv_qt_dir" != x; then + if test -x "$bnv_qt_dir/bin/uic"; then + QT_UIC="$bnv_qt_dir/bin/uic" + else + # Old versions of Qt don't have uic + QT_UIC= + fi + QT_MOC="$bnv_qt_dir/bin/moc" + else + # Or maybe we are told where to look for the utilities + if test x"$bnv_qt_bin_dir" != x; then + if test -x "$bnv_qt_bin_dir/uic"; then + QT_UIC="$bnv_qt_bin_dir/uic" + else + # Old versions of Qt don't have uic + QT_UIC= + fi + QT_MOC="$bnv_qt_bin_dir/moc" + else + # Last possibility is that they are in $PATH + QT_UIC="`which uic`" + QT_MOC="`which moc`" + fi + fi + # All variables are defined, report the result + AC_MSG_RESULT([$have_qt: + QT_CXXFLAGS=$QT_CXXFLAGS + QT_DIR=$QT_DIR + QT_LIBS=$QT_LIBS + QT_UIC=$QT_UIC + QT_MOC=$QT_MOC]) + else + # Qt was not found + QT_CXXFLAGS= + QT_DIR= + QT_LIBS= + QT_UIC= + QT_MOC= + AC_MSG_RESULT($have_qt) + fi + AC_SUBST(QT_CXXFLAGS) + AC_SUBST(QT_DIR) + AC_SUBST(QT_LIBS) + AC_SUBST(QT_UIC) + AC_SUBST(QT_MOC) + + #### Being paranoid: + if test x"$have_qt" = xyes; then + AC_MSG_CHECKING(correct functioning of Qt installation) + AC_CACHE_VAL(bnv_cv_qt_test_result, + [ + cat > bnv_qt_test.h << EOF +#include <qobject.h> +class Test : public QObject +{ +Q_OBJECT +public: + Test() {} + ~Test() {} +public slots: + void receive() {} +signals: + void send(); +}; +EOF + + cat > bnv_qt_main.$ac_ext << EOF +#include "bnv_qt_test.h" +#include <qapplication.h> +int main( int argc, char **argv ) +{ + QApplication app( argc, argv ); + Test t; + QObject::connect( &t, SIGNAL(send()), &t, SLOT(receive()) ); +} +EOF + + bnv_cv_qt_test_result="failure" + bnv_try_1="$QT_MOC bnv_qt_test.h -o moc_bnv_qt_test.$ac_ext >/dev/null 2>/dev/null" + AC_TRY_EVAL(bnv_try_1) + if test x"$ac_status" != x0; then + echo "$bnv_err_1" >&AC_FD_CC + echo "configure: could not run $QT_MOC on:" >&AC_FD_CC + cat bnv_qt_test.h >&AC_FD_CC + else + bnv_try_2="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o moc_bnv_qt_test.o moc_bnv_qt_test.$ac_ext >/dev/null 2>/dev/null" + AC_TRY_EVAL(bnv_try_2) + if test x"$ac_status" != x0; then + echo "$bnv_err_2" >&AC_FD_CC + echo "configure: could not compile:" >&AC_FD_CC + cat moc_bnv_qt_test.$ac_ext >&AC_FD_CC + else + bnv_try_3="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o bnv_qt_main.o bnv_qt_main.$ac_ext >/dev/null 2>/dev/null" + AC_TRY_EVAL(bnv_try_3) + if test x"$ac_status" != x0; then + echo "$bnv_err_3" >&AC_FD_CC + echo "configure: could not compile:" >&AC_FD_CC + cat bnv_qt_main.$ac_ext >&AC_FD_CC + else + bnv_try_4="$CXX $QT_LIBS $LIBS -o bnv_qt_main bnv_qt_main.o moc_bnv_qt_test.o >/dev/null 2>/dev/null" + AC_TRY_EVAL(bnv_try_4) + if test x"$ac_status" != x0; then + echo "$bnv_err_4" >&AC_FD_CC + else + bnv_cv_qt_test_result="success" + fi + fi + fi + fi + ])dnl AC_CACHE_VAL bnv_cv_qt_test_result + AC_MSG_RESULT([$bnv_cv_qt_test_result]); + if test x"$bnv_cv_qt_test_result" = "xfailure"; then + AC_MSG_ERROR([Failed to find matching components of a complete + Qt installation. Try using more options, + see ./configure --help.]) + fi + + rm -f bnv_qt_test.h moc_bnv_qt_test.$ac_ext moc_bnv_qt_test.o \ + bnv_qt_main.$ac_ext bnv_qt_main.o bnv_qt_main + fi +]) + +dnl Internal subroutine of BNV_HAVE_QT +dnl Set bnv_qt_dir bnv_qt_include_dir bnv_qt_bin_dir bnv_qt_lib_dir bnv_qt_lib +AC_DEFUN([BNV_PATH_QT_DIRECT], +[ + ## Binary utilities ## + if test x"$with_Qt_bin_dir" != x; then + bnv_qt_bin_dir=$with_Qt_bin_dir + fi + ## Look for header files ## + if test x"$with_Qt_include_dir" != x; then + bnv_qt_include_dir="$with_Qt_include_dir" + else + # The following header file is expected to define QT_VERSION. + qt_direct_test_header=qglobal.h + # Look for the header file in a standard set of common directories. + bnv_include_path_list=" + /usr/include + `ls -dr ${QTDIR}/include 2>/dev/null` + `ls -dr /usr/include/qt* 2>/dev/null` + `ls -dr /usr/lib/qt*/include 2>/dev/null` + `ls -dr /usr/local/qt*/include 2>/dev/null` + `ls -dr /opt/qt*/include 2>/dev/null` + `ls -dr /Developer/qt*/include 2>/dev/null` + " + for bnv_dir in $bnv_include_path_list; do + if test -r "$bnv_dir/$qt_direct_test_header"; then + bnv_dirs="$bnv_dirs $bnv_dir" + fi + done + # Now look for the newest in this list + bnv_prev_ver=0 + for bnv_dir in $bnv_dirs; do + bnv_this_ver=`egrep -w '#define QT_VERSION' $bnv_dir/$qt_direct_test_header | sed s/'#define QT_VERSION'//` + if expr $bnv_this_ver '>' $bnv_prev_ver > /dev/null; then + bnv_qt_include_dir=$bnv_dir + bnv_prev_ver=$bnv_this_ver + fi + done + fi dnl Found header files. + + # Are these headers located in a traditional Trolltech installation? + # That would be $bnv_qt_include_dir stripped from its last element: + bnv_possible_qt_dir=`dirname $bnv_qt_include_dir` + if (test -x $bnv_possible_qt_dir/bin/moc) && + ((ls $bnv_possible_qt_dir/lib/libqt* > /dev/null 2>/dev/null) || + (ls $bnv_possible_qt_dir/lib64/libqt* > /dev/null 2>/dev/null)); then + # Then the rest is a piece of cake + bnv_qt_dir=$bnv_possible_qt_dir + bnv_qt_bin_dir="$bnv_qt_dir/bin" + if test x"$with_Qt_lib_dir" != x; then + bnv_qt_lib_dir="$with_Qt_lib_dir" + else + if (test -d $bnv_qt_dir/lib64); then + bnv_qt_lib_dir="$bnv_qt_dir/lib64" + else + bnv_qt_lib_dir="$bnv_qt_dir/lib" + fi + fi + # Only look for lib if the user did not supply it already + if test x"$bnv_qt_lib" = xNO; then + bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p | + sed s@$bnv_qt_lib_dir/lib@@ | [sed s@[.].*@@]`" + fi + bnv_qt_LIBS="-L$bnv_qt_lib_dir -l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" + else + # There is no valid definition for $QTDIR as Trolltech likes to see it + bnv_qt_dir= + ## Look for Qt library ## + if test x"$with_Qt_lib_dir" != x; then + bnv_qt_lib_dir="$with_Qt_lib_dir" + # Only look for lib if the user did not supply it already + if test x"$bnv_qt_lib" = xNO; then + bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p | + sed s@$bnv_qt_lib_dir/lib@@ | [sed s@[.].*@@]`" + fi + bnv_qt_LIBS="-L$bnv_qt_lib_dir -l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" + else + # Normally, when there is no traditional Trolltech installation, + # the library is installed in a place where the linker finds it + # automatically. + # If the user did not define the library name, try with qt + if test x"$bnv_qt_lib" = xNO; then + bnv_qt_lib=qt + fi + qt_direct_test_header=qapplication.h + qt_direct_test_main=" + int argc; + char ** argv; + QApplication app(argc,argv); + " + # See if we find the library without any special options. + # Don't add top $LIBS permanently yet + bnv_save_LIBS="$LIBS" + LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" + bnv_qt_LIBS="$LIBS" + bnv_save_CXXFLAGS="$CXXFLAGS" + CXXFLAGS="-I$bnv_qt_include_dir" + AC_TRY_LINK([#include <$qt_direct_test_header>], + $qt_direct_test_main, + [ + # Success. + # We can link with no special library directory. + bnv_qt_lib_dir= + ], [ + # That did not work. Try the multi-threaded version + echo "Non-critical error, please neglect the above." >&AC_FD_CC + bnv_qt_lib=qt-mt + LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" + AC_TRY_LINK([#include <$qt_direct_test_header>], + $qt_direct_test_main, + [ + # Success. + # We can link with no special library directory. + bnv_qt_lib_dir= + ], [ + # That did not work. Try the OpenGL version + echo "Non-critical error, please neglect the above." >&AC_FD_CC + bnv_qt_lib=qt-gl + LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" + AC_TRY_LINK([#include <$qt_direct_test_header>], + $qt_direct_test_main, + [ + # Success. + # We can link with no special library directory. + bnv_qt_lib_dir= + ], [ + # That did not work. Maybe a library version I don't know about? + echo "Non-critical error, please neglect the above." >&AC_FD_CC + # Look for some Qt lib in a standard set of common directories. + bnv_dir_list=" + `echo $bnv_qt_includes | sed ss/includess` + /lib + /usr/lib64 + /usr/lib + /usr/local/lib64 + /usr/local/lib + /opt/lib64 + /opt/lib + `ls -dr /usr/lib64/qt* 2>/dev/null` + `ls -dr /usr/lib64/qt*/lib64 2>/dev/null` + `ls -dr /usr/lib/qt* 2>/dev/null` + `ls -dr /usr/local/qt* 2>/dev/null` + `ls -dr /opt/qt* 2>/dev/null` + " + for bnv_dir in $bnv_dir_list; do + if ls $bnv_dir/libqt* >/dev/null 2>/dev/null; then + # Gamble that it's the first one... + bnv_qt_lib="`ls $bnv_dir/libqt* | sed -n 1p | + sed s@$bnv_dir/lib@@ | sed s/[[.]].*//`" + bnv_qt_lib_dir="$bnv_dir" + break + fi + done + # Try with that one + LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS" + AC_TRY_LINK([#include <$qt_direct_test_header>], + $qt_direct_test_main, + [ + # Success. + # We can link with no special library directory. + bnv_qt_lib_dir= + ], [ + # Leave bnv_qt_lib_dir defined + ]) + ]) + ]) + ]) + if test x"$bnv_qt_lib_dir" != x; then + bnv_qt_LIBS="-L$bnv_qt_lib_dir $LIBS" + else + bnv_qt_LIBS="$LIBS" + fi + LIBS="$bnv_save_LIBS" + CXXFLAGS="$bnv_save_CXXFLAGS" + fi dnl $with_Qt_lib_dir was not given + fi dnl Done setting up for non-traditional Trolltech installation +]) + # Checks for FFTW header and library. OCTAVE_CHECK_LIBRARY(fftw3, FFTW3,
--- a/doc/interpreter/contributors.in +++ b/doc/interpreter/contributors.in @@ -287,3 +287,6 @@ Michael Zeising Federico Zenith Alex Zvoleff +Valentin Ortega-Clavero +Jacob Dawid +JĂșlio Hoffimann
new file mode 100644 --- /dev/null +++ b/gui/COPYING @@ -0,0 +1,185 @@ +GNU AFFERO GENERAL PUBLIC LICENSE + +Version 3, 19 November 2007 + +Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/> +Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. + +Preamble + +The GNU Affero General Public License is a free, copyleft license for software and other kinds of works, specifically designed to ensure cooperation with the community in the case of network server software. + +The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, our General Public Licenses are intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. + +When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. + +Developers that use our General Public Licenses protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License which gives you legal permission to copy, distribute and/or modify the software. + +A secondary benefit of defending all users' freedom is that improvements made in alternate versions of the program, if they receive widespread use, become available for other developers to incorporate. Many developers of free software are heartened and encouraged by the resulting cooperation. However, in the case of software used on network servers, this result may fail to come about. The GNU General Public License permits making a modified version and letting the public access it on a server without ever releasing its source code to the public. + +The GNU Affero General Public License is designed specifically to ensure that, in such cases, the modified source code becomes available to the community. It requires the operator of a network server to provide the source code of the modified version running there to the users of that server. Therefore, public use of a modified version, on a publicly accessible server, gives the public access to the source code of the modified version. + +An older license, called the Affero General Public License and published by Affero, was designed to accomplish similar goals. This is a different license, not a version of the Affero GPL, but Affero has released a new version of the Affero GPL which permits relicensing under this license. + +The precise terms and conditions for copying, distribution and modification follow. + +TERMS AND CONDITIONS + +0. Definitions. +"This License" refers to version 3 of the GNU Affero General Public License. + +"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. + +"The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. + +To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. + +A "covered work" means either the unmodified Program or a work based on the Program. + +To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. + +To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. + +An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. + +1. Source Code. +The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. + +A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. + +The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. + +The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. + +The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. + +The Corresponding Source for a work in source code form is that same work. + +2. Basic Permissions. +All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. + +You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. + +Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. + +3. Protecting Users' Legal Rights From Anti-Circumvention Law. +No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. + +When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. + +4. Conveying Verbatim Copies. +You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. + +You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. + +5. Conveying Modified Source Versions. +You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: + +a) The work must carry prominent notices stating that you modified it, and giving a relevant date. +b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". +c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. +d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. +A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. + +6. Conveying Non-Source Forms. +You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: + +a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. +b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. +c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. +d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. +e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. +A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. + +A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. + +"Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. + +If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). + +The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. + +Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. + +7. Additional Terms. +"Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. + +When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. + +Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: + +a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or +b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or +c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or +d) Limiting the use for publicity purposes of names of licensors or authors of the material; or +e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or +f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. +All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. + +If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. + +Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. + +8. Termination. +You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). + +However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. + +Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. + +Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. + +9. Acceptance Not Required for Having Copies. +You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. + +10. Automatic Licensing of Downstream Recipients. +Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. + +An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. + +You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. + +11. Patents. +A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". + +A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. + +Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. + +In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. + +If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. + +If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. + +A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. + +Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. + +12. No Surrender of Others' Freedom. +If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. + +13. Remote Network Interaction; Use with the GNU General Public License. +Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version by providing access to the Corresponding Source from a network server at no charge, through some standard or customary means of facilitating copying of software. This Corresponding Source shall include the Corresponding Source for any work covered by version 3 of the GNU General Public License that is incorporated pursuant to the following paragraph. + +Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the work with which it is combined will remain governed by version 3 of the GNU General Public License. + +14. Revised Versions of this License. +The Free Software Foundation may publish revised and/or new versions of the GNU Affero General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU Affero General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU Affero General Public License, you may choose any version ever published by the Free Software Foundation. + +If the Program specifies that a proxy can decide which future versions of the GNU Affero General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. + +Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. + +15. Disclaimer of Warranty. +THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +16. Limitation of Liability. +IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +17. Interpretation of Sections 15 and 16. +If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. + +END OF TERMS AND CONDITIONS
new file mode 100644 --- /dev/null +++ b/gui/Doxyfile @@ -0,0 +1,1679 @@ +# Quint - A graphical user interface for Octave +# Copyright (C) 2011 Jacob Dawid +# jacob.dawid@googlemail.com +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + +# Doxyfile 1.7.1 + +# This file describes the settings to be used by the documentation system +# doxygen (www.doxygen.org) for a project +# +# All text after a hash (#) is considered a comment and will be ignored +# The format is: +# TAG = value [value, ...] +# For lists items can also be appended using: +# TAG += value [value, ...] +# Values that contain spaces should be placed between quotes (" ") + +#--------------------------------------------------------------------------- +# Project related configuration options +#--------------------------------------------------------------------------- + +# This tag specifies the encoding used for all characters in the config file +# that follow. The default is UTF-8 which is also the encoding used for all +# text before the first occurrence of this tag. Doxygen uses libiconv (or the +# iconv built into libc) for the transcoding. See +# http://www.gnu.org/software/libiconv for the list of possible encodings. + +DOXYFILE_ENCODING = UTF-8 + +# The PROJECT_NAME tag is a single word (or a sequence of words surrounded +# by quotes) that should identify the project. + +PROJECT_NAME = Quint + +# The PROJECT_NUMBER tag can be used to enter a project or revision number. +# This could be handy for archiving the generated documentation or +# if some version control system is used. + +PROJECT_NUMBER = 0.4 + +# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) +# base path where the generated documentation will be put. +# If a relative path is entered, it will be relative to the location +# where doxygen was started. If left blank the current directory will be used. + +OUTPUT_DIRECTORY = /home/jacob/Desktop/Quint-Documentation + +# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create +# 4096 sub-directories (in 2 levels) under the output directory of each output +# format and will distribute the generated files over these directories. +# Enabling this option can be useful when feeding doxygen a huge amount of +# source files, where putting all generated files in the same directory would +# otherwise cause performance problems for the file system. + +CREATE_SUBDIRS = NO + +# The OUTPUT_LANGUAGE tag is used to specify the language in which all +# documentation generated by doxygen is written. Doxygen will use this +# information to generate all constant output in the proper language. +# The default language is English, other supported languages are: +# Afrikaans, Arabic, Brazilian, Catalan, Chinese, Chinese-Traditional, +# Croatian, Czech, Danish, Dutch, Esperanto, Farsi, Finnish, French, German, +# Greek, Hungarian, Italian, Japanese, Japanese-en (Japanese with English +# messages), Korean, Korean-en, Lithuanian, Norwegian, Macedonian, Persian, +# Polish, Portuguese, Romanian, Russian, Serbian, Serbian-Cyrilic, Slovak, +# Slovene, Spanish, Swedish, Ukrainian, and Vietnamese. + +OUTPUT_LANGUAGE = English + +# If the BRIEF_MEMBER_DESC tag is set to YES (the default) Doxygen will +# include brief member descriptions after the members that are listed in +# the file and class documentation (similar to JavaDoc). +# Set to NO to disable this. + +BRIEF_MEMBER_DESC = YES + +# If the REPEAT_BRIEF tag is set to YES (the default) Doxygen will prepend +# the brief description of a member or function before the detailed description. +# Note: if both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the +# brief descriptions will be completely suppressed. + +REPEAT_BRIEF = YES + +# This tag implements a quasi-intelligent brief description abbreviator +# that is used to form the text in various listings. Each string +# in this list, if found as the leading text of the brief description, will be +# stripped from the text and the result after processing the whole list, is +# used as the annotated text. Otherwise, the brief description is used as-is. +# If left blank, the following values are used ("$name" is automatically +# replaced with the name of the entity): "The $name class" "The $name widget" +# "The $name file" "is" "provides" "specifies" "contains" +# "represents" "a" "an" "the" + +ABBREVIATE_BRIEF = "The $name class" \ + "The $name widget" \ + "The $name file" \ + is \ + provides \ + specifies \ + contains \ + represents \ + a \ + an \ + the + +# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then +# Doxygen will generate a detailed section even if there is only a brief +# description. + +ALWAYS_DETAILED_SEC = NO + +# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all +# inherited members of a class in the documentation of that class as if those +# members were ordinary class members. Constructors, destructors and assignment +# operators of the base classes will not be shown. + +INLINE_INHERITED_MEMB = NO + +# If the FULL_PATH_NAMES tag is set to YES then Doxygen will prepend the full +# path before files name in the file list and in the header files. If set +# to NO the shortest path that makes the file name unique will be used. + +FULL_PATH_NAMES = YES + +# If the FULL_PATH_NAMES tag is set to YES then the STRIP_FROM_PATH tag +# can be used to strip a user-defined part of the path. Stripping is +# only done if one of the specified strings matches the left-hand part of +# the path. The tag can be used to show relative paths in the file list. +# If left blank the directory from which doxygen is run is used as the +# path to strip. + +STRIP_FROM_PATH = + +# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of +# the path mentioned in the documentation of a class, which tells +# the reader which header file to include in order to use a class. +# If left blank only the name of the header file containing the class +# definition is used. Otherwise one should specify the include paths that +# are normally passed to the compiler using the -I flag. + +STRIP_FROM_INC_PATH = + +# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter +# (but less readable) file names. This can be useful is your file systems +# doesn't support long names like on DOS, Mac, or CD-ROM. + +SHORT_NAMES = NO + +# If the JAVADOC_AUTOBRIEF tag is set to YES then Doxygen +# will interpret the first line (until the first dot) of a JavaDoc-style +# comment as the brief description. If set to NO, the JavaDoc +# comments will behave just like regular Qt-style comments +# (thus requiring an explicit @brief command for a brief description.) + +JAVADOC_AUTOBRIEF = NO + +# If the QT_AUTOBRIEF tag is set to YES then Doxygen will +# interpret the first line (until the first dot) of a Qt-style +# comment as the brief description. If set to NO, the comments +# will behave just like regular Qt-style comments (thus requiring +# an explicit \brief command for a brief description.) + +QT_AUTOBRIEF = NO + +# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make Doxygen +# treat a multi-line C++ special comment block (i.e. a block of //! or /// +# comments) as a brief description. This used to be the default behaviour. +# The new default is to treat a multi-line C++ comment block as a detailed +# description. Set this tag to YES if you prefer the old behaviour instead. + +MULTILINE_CPP_IS_BRIEF = NO + +# If the INHERIT_DOCS tag is set to YES (the default) then an undocumented +# member inherits the documentation from any documented member that it +# re-implements. + +INHERIT_DOCS = YES + +# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce +# a new page for each member. If set to NO, the documentation of a member will +# be part of the file/class/namespace that contains it. + +SEPARATE_MEMBER_PAGES = NO + +# The TAB_SIZE tag can be used to set the number of spaces in a tab. +# Doxygen uses this value to replace tabs by spaces in code fragments. + +TAB_SIZE = 8 + +# This tag can be used to specify a number of aliases that acts +# as commands in the documentation. An alias has the form "name=value". +# For example adding "sideeffect=\par Side Effects:\n" will allow you to +# put the command \sideeffect (or @sideeffect) in the documentation, which +# will result in a user-defined paragraph with heading "Side Effects:". +# You can put \n's in the value part of an alias to insert newlines. + +ALIASES = + +# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C +# sources only. Doxygen will then generate output that is more tailored for C. +# For instance, some of the names that are used will be different. The list +# of all members will be omitted, etc. + +OPTIMIZE_OUTPUT_FOR_C = NO + +# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java +# sources only. Doxygen will then generate output that is more tailored for +# Java. For instance, namespaces will be presented as packages, qualified +# scopes will look different, etc. + +OPTIMIZE_OUTPUT_JAVA = NO + +# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran +# sources only. Doxygen will then generate output that is more tailored for +# Fortran. + +OPTIMIZE_FOR_FORTRAN = NO + +# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL +# sources. Doxygen will then generate output that is tailored for +# VHDL. + +OPTIMIZE_OUTPUT_VHDL = NO + +# Doxygen selects the parser to use depending on the extension of the files it +# parses. With this tag you can assign which parser to use for a given extension. +# Doxygen has a built-in mapping, but you can override or extend it using this +# tag. The format is ext=language, where ext is a file extension, and language +# is one of the parsers supported by doxygen: IDL, Java, Javascript, CSharp, C, +# C++, D, PHP, Objective-C, Python, Fortran, VHDL, C, C++. For instance to make +# doxygen treat .inc files as Fortran files (default is PHP), and .f files as C +# (default is Fortran), use: inc=Fortran f=C. Note that for custom extensions +# you also need to set FILE_PATTERNS otherwise the files are not read by doxygen. + +EXTENSION_MAPPING = + +# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want +# to include (a tag file for) the STL sources as input, then you should +# set this tag to YES in order to let doxygen match functions declarations and +# definitions whose arguments contain STL classes (e.g. func(std::string); v.s. +# func(std::string) {}). This also make the inheritance and collaboration +# diagrams that involve STL classes more complete and accurate. + +BUILTIN_STL_SUPPORT = NO + +# If you use Microsoft's C++/CLI language, you should set this option to YES to +# enable parsing support. + +CPP_CLI_SUPPORT = NO + +# Set the SIP_SUPPORT tag to YES if your project consists of sip sources only. +# Doxygen will parse them like normal C++ but will assume all classes use public +# instead of private inheritance when no explicit protection keyword is present. + +SIP_SUPPORT = NO + +# For Microsoft's IDL there are propget and propput attributes to indicate getter +# and setter methods for a property. Setting this option to YES (the default) +# will make doxygen to replace the get and set methods by a property in the +# documentation. This will only work if the methods are indeed getting or +# setting a simple type. If this is not the case, or you want to show the +# methods anyway, you should set this option to NO. + +IDL_PROPERTY_SUPPORT = YES + +# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC +# tag is set to YES, then doxygen will reuse the documentation of the first +# member in the group (if any) for the other members of the group. By default +# all members of a group must be documented explicitly. + +DISTRIBUTE_GROUP_DOC = NO + +# Set the SUBGROUPING tag to YES (the default) to allow class member groups of +# the same type (for instance a group of public functions) to be put as a +# subgroup of that type (e.g. under the Public Functions section). Set it to +# NO to prevent subgrouping. Alternatively, this can be done per class using +# the \nosubgrouping command. + +SUBGROUPING = YES + +# When TYPEDEF_HIDES_STRUCT is enabled, a typedef of a struct, union, or enum +# is documented as struct, union, or enum with the name of the typedef. So +# typedef struct TypeS {} TypeT, will appear in the documentation as a struct +# with name TypeT. When disabled the typedef will appear as a member of a file, +# namespace, or class. And the struct will be named TypeS. This can typically +# be useful for C code in case the coding convention dictates that all compound +# types are typedef'ed and only the typedef is referenced, never the tag name. + +TYPEDEF_HIDES_STRUCT = NO + +# The SYMBOL_CACHE_SIZE determines the size of the internal cache use to +# determine which symbols to keep in memory and which to flush to disk. +# When the cache is full, less often used symbols will be written to disk. +# For small to medium size projects (<1000 input files) the default value is +# probably good enough. For larger projects a too small cache size can cause +# doxygen to be busy swapping symbols to and from disk most of the time +# causing a significant performance penality. +# If the system has enough physical memory increasing the cache will improve the +# performance by keeping more symbols in memory. Note that the value works on +# a logarithmic scale so increasing the size by one will rougly double the +# memory usage. The cache size is given by this formula: +# 2^(16+SYMBOL_CACHE_SIZE). The valid range is 0..9, the default is 0, +# corresponding to a cache size of 2^16 = 65536 symbols + +SYMBOL_CACHE_SIZE = 0 + +#--------------------------------------------------------------------------- +# Build related configuration options +#--------------------------------------------------------------------------- + +# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in +# documentation are documented, even if no documentation was available. +# Private class members and static file members will be hidden unless +# the EXTRACT_PRIVATE and EXTRACT_STATIC tags are set to YES + +EXTRACT_ALL = YES + +# If the EXTRACT_PRIVATE tag is set to YES all private members of a class +# will be included in the documentation. + +EXTRACT_PRIVATE = NO + +# If the EXTRACT_STATIC tag is set to YES all static members of a file +# will be included in the documentation. + +EXTRACT_STATIC = NO + +# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) +# defined locally in source files will be included in the documentation. +# If set to NO only classes defined in header files are included. + +EXTRACT_LOCAL_CLASSES = YES + +# This flag is only useful for Objective-C code. When set to YES local +# methods, which are defined in the implementation section but not in +# the interface are included in the documentation. +# If set to NO (the default) only methods in the interface are included. + +EXTRACT_LOCAL_METHODS = NO + +# If this flag is set to YES, the members of anonymous namespaces will be +# extracted and appear in the documentation as a namespace called +# 'anonymous_namespace{file}', where file will be replaced with the base +# name of the file that contains the anonymous namespace. By default +# anonymous namespace are hidden. + +EXTRACT_ANON_NSPACES = NO + +# If the HIDE_UNDOC_MEMBERS tag is set to YES, Doxygen will hide all +# undocumented members of documented classes, files or namespaces. +# If set to NO (the default) these members will be included in the +# various overviews, but no documentation section is generated. +# This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_MEMBERS = NO + +# If the HIDE_UNDOC_CLASSES tag is set to YES, Doxygen will hide all +# undocumented classes that are normally visible in the class hierarchy. +# If set to NO (the default) these classes will be included in the various +# overviews. This option has no effect if EXTRACT_ALL is enabled. + +HIDE_UNDOC_CLASSES = NO + +# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, Doxygen will hide all +# friend (class|struct|union) declarations. +# If set to NO (the default) these declarations will be included in the +# documentation. + +HIDE_FRIEND_COMPOUNDS = NO + +# If the HIDE_IN_BODY_DOCS tag is set to YES, Doxygen will hide any +# documentation blocks found inside the body of a function. +# If set to NO (the default) these blocks will be appended to the +# function's detailed documentation block. + +HIDE_IN_BODY_DOCS = NO + +# The INTERNAL_DOCS tag determines if documentation +# that is typed after a \internal command is included. If the tag is set +# to NO (the default) then the documentation will be excluded. +# Set it to YES to include the internal documentation. + +INTERNAL_DOCS = NO + +# If the CASE_SENSE_NAMES tag is set to NO then Doxygen will only generate +# file names in lower-case letters. If set to YES upper-case letters are also +# allowed. This is useful if you have classes or files whose names only differ +# in case and if your file system supports case sensitive file names. Windows +# and Mac users are advised to set this option to NO. + +CASE_SENSE_NAMES = NO + +# If the HIDE_SCOPE_NAMES tag is set to NO (the default) then Doxygen +# will show members with their full class and namespace scopes in the +# documentation. If set to YES the scope will be hidden. + +HIDE_SCOPE_NAMES = NO + +# If the SHOW_INCLUDE_FILES tag is set to YES (the default) then Doxygen +# will put a list of the files that are included by a file in the documentation +# of that file. + +SHOW_INCLUDE_FILES = YES + +# If the FORCE_LOCAL_INCLUDES tag is set to YES then Doxygen +# will list include files with double quotes in the documentation +# rather than with sharp brackets. + +FORCE_LOCAL_INCLUDES = NO + +# If the INLINE_INFO tag is set to YES (the default) then a tag [inline] +# is inserted in the documentation for inline members. + +INLINE_INFO = YES + +# If the SORT_MEMBER_DOCS tag is set to YES (the default) then doxygen +# will sort the (detailed) documentation of file and class members +# alphabetically by member name. If set to NO the members will appear in +# declaration order. + +SORT_MEMBER_DOCS = YES + +# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the +# brief documentation of file, namespace and class members alphabetically +# by member name. If set to NO (the default) the members will appear in +# declaration order. + +SORT_BRIEF_DOCS = NO + +# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen +# will sort the (brief and detailed) documentation of class members so that +# constructors and destructors are listed first. If set to NO (the default) +# the constructors will appear in the respective orders defined by +# SORT_MEMBER_DOCS and SORT_BRIEF_DOCS. +# This tag will be ignored for brief docs if SORT_BRIEF_DOCS is set to NO +# and ignored for detailed docs if SORT_MEMBER_DOCS is set to NO. + +SORT_MEMBERS_CTORS_1ST = NO + +# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the +# hierarchy of group names into alphabetical order. If set to NO (the default) +# the group names will appear in their defined order. + +SORT_GROUP_NAMES = NO + +# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be +# sorted by fully-qualified names, including namespaces. If set to +# NO (the default), the class list will be sorted only by class name, +# not including the namespace part. +# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. +# Note: This option applies only to the class list, not to the +# alphabetical list. + +SORT_BY_SCOPE_NAME = NO + +# The GENERATE_TODOLIST tag can be used to enable (YES) or +# disable (NO) the todo list. This list is created by putting \todo +# commands in the documentation. + +GENERATE_TODOLIST = YES + +# The GENERATE_TESTLIST tag can be used to enable (YES) or +# disable (NO) the test list. This list is created by putting \test +# commands in the documentation. + +GENERATE_TESTLIST = YES + +# The GENERATE_BUGLIST tag can be used to enable (YES) or +# disable (NO) the bug list. This list is created by putting \bug +# commands in the documentation. + +GENERATE_BUGLIST = YES + +# The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or +# disable (NO) the deprecated list. This list is created by putting +# \deprecated commands in the documentation. + +GENERATE_DEPRECATEDLIST= YES + +# The ENABLED_SECTIONS tag can be used to enable conditional +# documentation sections, marked by \if sectionname ... \endif. + +ENABLED_SECTIONS = + +# The MAX_INITIALIZER_LINES tag determines the maximum number of lines +# the initial value of a variable or define consists of for it to appear in +# the documentation. If the initializer consists of more lines than specified +# here it will be hidden. Use a value of 0 to hide initializers completely. +# The appearance of the initializer of individual variables and defines in the +# documentation can be controlled using \showinitializer or \hideinitializer +# command in the documentation regardless of this setting. + +MAX_INITIALIZER_LINES = 30 + +# Set the SHOW_USED_FILES tag to NO to disable the list of files generated +# at the bottom of the documentation of classes and structs. If set to YES the +# list will mention the files that were used to generate the documentation. + +SHOW_USED_FILES = YES + +# If the sources in your project are distributed over multiple directories +# then setting the SHOW_DIRECTORIES tag to YES will show the directory hierarchy +# in the documentation. The default is NO. + +SHOW_DIRECTORIES = NO + +# Set the SHOW_FILES tag to NO to disable the generation of the Files page. +# This will remove the Files entry from the Quick Index and from the +# Folder Tree View (if specified). The default is YES. + +SHOW_FILES = YES + +# Set the SHOW_NAMESPACES tag to NO to disable the generation of the +# Namespaces page. This will remove the Namespaces entry from the Quick Index +# and from the Folder Tree View (if specified). The default is YES. + +SHOW_NAMESPACES = YES + +# The FILE_VERSION_FILTER tag can be used to specify a program or script that +# doxygen should invoke to get the current version for each file (typically from +# the version control system). Doxygen will invoke the program by executing (via +# popen()) the command <command> <input-file>, where <command> is the value of +# the FILE_VERSION_FILTER tag, and <input-file> is the name of an input file +# provided by doxygen. Whatever the program writes to standard output +# is used as the file version. See the manual for examples. + +FILE_VERSION_FILTER = + +# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed +# by doxygen. The layout file controls the global structure of the generated +# output files in an output format independent way. The create the layout file +# that represents doxygen's defaults, run doxygen with the -l option. +# You can optionally specify a file name after the option, if omitted +# DoxygenLayout.xml will be used as the name of the layout file. + +LAYOUT_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to warning and progress messages +#--------------------------------------------------------------------------- + +# The QUIET tag can be used to turn on/off the messages that are generated +# by doxygen. Possible values are YES and NO. If left blank NO is used. + +QUIET = NO + +# The WARNINGS tag can be used to turn on/off the warning messages that are +# generated by doxygen. Possible values are YES and NO. If left blank +# NO is used. + +WARNINGS = YES + +# If WARN_IF_UNDOCUMENTED is set to YES, then doxygen will generate warnings +# for undocumented members. If EXTRACT_ALL is set to YES then this flag will +# automatically be disabled. + +WARN_IF_UNDOCUMENTED = YES + +# If WARN_IF_DOC_ERROR is set to YES, doxygen will generate warnings for +# potential errors in the documentation, such as not documenting some +# parameters in a documented function, or documenting parameters that +# don't exist or using markup commands wrongly. + +WARN_IF_DOC_ERROR = YES + +# This WARN_NO_PARAMDOC option can be abled to get warnings for +# functions that are documented, but have no documentation for their parameters +# or return value. If set to NO (the default) doxygen will only warn about +# wrong or incomplete parameter documentation, but not about the absence of +# documentation. + +WARN_NO_PARAMDOC = NO + +# The WARN_FORMAT tag determines the format of the warning messages that +# doxygen can produce. The string should contain the $file, $line, and $text +# tags, which will be replaced by the file and line number from which the +# warning originated and the warning text. Optionally the format may contain +# $version, which will be replaced by the version of the file (if it could +# be obtained via FILE_VERSION_FILTER) + +WARN_FORMAT = "$file:$line: $text" + +# The WARN_LOGFILE tag can be used to specify a file to which warning +# and error messages should be written. If left blank the output is written +# to stderr. + +WARN_LOGFILE = + +#--------------------------------------------------------------------------- +# configuration options related to the input files +#--------------------------------------------------------------------------- + +# The INPUT tag can be used to specify the files and/or directories that contain +# documented source files. You may enter file names like "myfile.cpp" or +# directories like "/usr/src/myproject". Separate the files or directories +# with spaces. + +INPUT = /home/jacob/Desktop/gnu-octave/gui/src + +# This tag can be used to specify the character encoding of the source files +# that doxygen parses. Internally doxygen uses the UTF-8 encoding, which is +# also the default input encoding. Doxygen uses libiconv (or the iconv built +# into libc) for the transcoding. See http://www.gnu.org/software/libiconv for +# the list of possible encodings. + +INPUT_ENCODING = UTF-8 + +# If the value of the INPUT tag contains directories, you can use the +# FILE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank the following patterns are tested: +# *.c *.cc *.cxx *.cpp *.c++ *.java *.ii *.ixx *.ipp *.i++ *.inl *.h *.hh *.hxx +# *.hpp *.h++ *.idl *.odl *.cs *.php *.php3 *.inc *.m *.mm *.py *.f90 + +FILE_PATTERNS = *.c \ + *.cc \ + *.cxx \ + *.cpp \ + *.c++ \ + *.d \ + *.java \ + *.ii \ + *.ixx \ + *.ipp \ + *.i++ \ + *.inl \ + *.h \ + *.hh \ + *.hxx \ + *.hpp \ + *.h++ \ + *.idl \ + *.odl \ + *.cs \ + *.php \ + *.php3 \ + *.inc \ + *.m \ + *.mm \ + *.dox \ + *.py \ + *.f90 \ + *.f \ + *.vhd \ + *.vhdl + +# The RECURSIVE tag can be used to turn specify whether or not subdirectories +# should be searched for input files as well. Possible values are YES and NO. +# If left blank NO is used. + +RECURSIVE = YES + +# The EXCLUDE tag can be used to specify files and/or directories that should +# excluded from the INPUT source files. This way you can easily exclude a +# subdirectory from a directory tree whose root is specified with the INPUT tag. + +EXCLUDE = + +# The EXCLUDE_SYMLINKS tag can be used select whether or not files or +# directories that are symbolic links (a Unix filesystem feature) are excluded +# from the input. + +EXCLUDE_SYMLINKS = NO + +# If the value of the INPUT tag contains directories, you can use the +# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude +# certain files from those directories. Note that the wildcards are matched +# against the file with absolute path, so to exclude all test directories +# for example use the pattern */test/* + +EXCLUDE_PATTERNS = + +# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names +# (namespaces, classes, functions, etc.) that should be excluded from the +# output. The symbol name can be a fully qualified name, a word, or if the +# wildcard * is used, a substring. Examples: ANamespace, AClass, +# AClass::ANamespace, ANamespace::*Test + +EXCLUDE_SYMBOLS = + +# The EXAMPLE_PATH tag can be used to specify one or more files or +# directories that contain example code fragments that are included (see +# the \include command). + +EXAMPLE_PATH = + +# If the value of the EXAMPLE_PATH tag contains directories, you can use the +# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp +# and *.h) to filter out the source-files in the directories. If left +# blank all files are included. + +EXAMPLE_PATTERNS = * + +# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be +# searched for input files to be used with the \include or \dontinclude +# commands irrespective of the value of the RECURSIVE tag. +# Possible values are YES and NO. If left blank NO is used. + +EXAMPLE_RECURSIVE = NO + +# The IMAGE_PATH tag can be used to specify one or more files or +# directories that contain image that are included in the documentation (see +# the \image command). + +IMAGE_PATH = + +# The INPUT_FILTER tag can be used to specify a program that doxygen should +# invoke to filter for each input file. Doxygen will invoke the filter program +# by executing (via popen()) the command <filter> <input-file>, where <filter> +# is the value of the INPUT_FILTER tag, and <input-file> is the name of an +# input file. Doxygen will then use the output that the filter program writes +# to standard output. If FILTER_PATTERNS is specified, this tag will be +# ignored. + +INPUT_FILTER = + +# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern +# basis. Doxygen will compare the file name with each pattern and apply the +# filter if there is a match. The filters are a list of the form: +# pattern=filter (like *.cpp=my_cpp_filter). See INPUT_FILTER for further +# info on how filters are used. If FILTER_PATTERNS is empty, INPUT_FILTER +# is applied to all files. + +FILTER_PATTERNS = + +# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using +# INPUT_FILTER) will be used to filter the input files when producing source +# files to browse (i.e. when SOURCE_BROWSER is set to YES). + +FILTER_SOURCE_FILES = NO + +#--------------------------------------------------------------------------- +# configuration options related to source browsing +#--------------------------------------------------------------------------- + +# If the SOURCE_BROWSER tag is set to YES then a list of source files will +# be generated. Documented entities will be cross-referenced with these sources. +# Note: To get rid of all source code in the generated output, make sure also +# VERBATIM_HEADERS is set to NO. + +SOURCE_BROWSER = NO + +# Setting the INLINE_SOURCES tag to YES will include the body +# of functions and classes directly in the documentation. + +INLINE_SOURCES = NO + +# Setting the STRIP_CODE_COMMENTS tag to YES (the default) will instruct +# doxygen to hide any special comment blocks from generated source code +# fragments. Normal C and C++ comments will always remain visible. + +STRIP_CODE_COMMENTS = YES + +# If the REFERENCED_BY_RELATION tag is set to YES +# then for each documented function all documented +# functions referencing it will be listed. + +REFERENCED_BY_RELATION = NO + +# If the REFERENCES_RELATION tag is set to YES +# then for each documented function all documented entities +# called/used by that function will be listed. + +REFERENCES_RELATION = NO + +# If the REFERENCES_LINK_SOURCE tag is set to YES (the default) +# and SOURCE_BROWSER tag is set to YES, then the hyperlinks from +# functions in REFERENCES_RELATION and REFERENCED_BY_RELATION lists will +# link to the source code. Otherwise they will link to the documentation. + +REFERENCES_LINK_SOURCE = YES + +# If the USE_HTAGS tag is set to YES then the references to source code +# will point to the HTML generated by the htags(1) tool instead of doxygen +# built-in source browser. The htags tool is part of GNU's global source +# tagging system (see http://www.gnu.org/software/global/global.html). You +# will need version 4.8.6 or higher. + +USE_HTAGS = NO + +# If the VERBATIM_HEADERS tag is set to YES (the default) then Doxygen +# will generate a verbatim copy of the header file for each class for +# which an include is specified. Set to NO to disable this. + +VERBATIM_HEADERS = YES + +#--------------------------------------------------------------------------- +# configuration options related to the alphabetical class index +#--------------------------------------------------------------------------- + +# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index +# of all compounds will be generated. Enable this if the project +# contains a lot of classes, structs, unions or interfaces. + +ALPHABETICAL_INDEX = YES + +# If the alphabetical index is enabled (see ALPHABETICAL_INDEX) then +# the COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns +# in which this list will be split (can be a number in the range [1..20]) + +COLS_IN_ALPHA_INDEX = 5 + +# In case all classes in a project start with a common prefix, all +# classes will be put under the same header in the alphabetical index. +# The IGNORE_PREFIX tag can be used to specify one or more prefixes that +# should be ignored while generating the index headers. + +IGNORE_PREFIX = + +#--------------------------------------------------------------------------- +# configuration options related to the HTML output +#--------------------------------------------------------------------------- + +# If the GENERATE_HTML tag is set to YES (the default) Doxygen will +# generate HTML output. + +GENERATE_HTML = YES + +# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `html' will be used as the default path. + +HTML_OUTPUT = html + +# The HTML_FILE_EXTENSION tag can be used to specify the file extension for +# each generated HTML page (for example: .htm,.php,.asp). If it is left blank +# doxygen will generate files with .html extension. + +HTML_FILE_EXTENSION = .html + +# The HTML_HEADER tag can be used to specify a personal HTML header for +# each generated HTML page. If it is left blank doxygen will generate a +# standard header. + +HTML_HEADER = + +# The HTML_FOOTER tag can be used to specify a personal HTML footer for +# each generated HTML page. If it is left blank doxygen will generate a +# standard footer. + +HTML_FOOTER = + +# The HTML_STYLESHEET tag can be used to specify a user-defined cascading +# style sheet that is used by each HTML page. It can be used to +# fine-tune the look of the HTML output. If the tag is left blank doxygen +# will generate a default style sheet. Note that doxygen will try to copy +# the style sheet file to the HTML output directory, so don't put your own +# stylesheet in the HTML output directory as well, or it will be erased! + +HTML_STYLESHEET = + +# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. +# Doxygen will adjust the colors in the stylesheet and background images +# according to this color. Hue is specified as an angle on a colorwheel, +# see http://en.wikipedia.org/wiki/Hue for more information. +# For instance the value 0 represents red, 60 is yellow, 120 is green, +# 180 is cyan, 240 is blue, 300 purple, and 360 is red again. +# The allowed range is 0 to 359. + +HTML_COLORSTYLE_HUE = 220 + +# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of +# the colors in the HTML output. For a value of 0 the output will use +# grayscales only. A value of 255 will produce the most vivid colors. + +HTML_COLORSTYLE_SAT = 100 + +# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to +# the luminance component of the colors in the HTML output. Values below +# 100 gradually make the output lighter, whereas values above 100 make +# the output darker. The value divided by 100 is the actual gamma applied, +# so 80 represents a gamma of 0.8, The value 220 represents a gamma of 2.2, +# and 100 does not change the gamma. + +HTML_COLORSTYLE_GAMMA = 80 + +# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML +# page will contain the date and time when the page was generated. Setting +# this to NO can help when comparing the output of multiple runs. + +HTML_TIMESTAMP = YES + +# If the HTML_ALIGN_MEMBERS tag is set to YES, the members of classes, +# files or namespaces will be aligned in HTML using tables. If set to +# NO a bullet list will be used. + +HTML_ALIGN_MEMBERS = YES + +# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML +# documentation will contain sections that can be hidden and shown after the +# page has loaded. For this to work a browser that supports +# JavaScript and DHTML is required (for instance Mozilla 1.0+, Firefox +# Netscape 6.0+, Internet explorer 5.0+, Konqueror, or Safari). + +HTML_DYNAMIC_SECTIONS = NO + +# If the GENERATE_DOCSET tag is set to YES, additional index files +# will be generated that can be used as input for Apple's Xcode 3 +# integrated development environment, introduced with OSX 10.5 (Leopard). +# To create a documentation set, doxygen will generate a Makefile in the +# HTML output directory. Running make will produce the docset in that +# directory and running "make install" will install the docset in +# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find +# it at startup. +# See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html +# for more information. + +GENERATE_DOCSET = NO + +# When GENERATE_DOCSET tag is set to YES, this tag determines the name of the +# feed. A documentation feed provides an umbrella under which multiple +# documentation sets from a single provider (such as a company or product suite) +# can be grouped. + +DOCSET_FEEDNAME = "Doxygen generated docs" + +# When GENERATE_DOCSET tag is set to YES, this tag specifies a string that +# should uniquely identify the documentation set bundle. This should be a +# reverse domain-name style string, e.g. com.mycompany.MyDocSet. Doxygen +# will append .docset to the name. + +DOCSET_BUNDLE_ID = org.doxygen.Project + +# When GENERATE_PUBLISHER_ID tag specifies a string that should uniquely identify +# the documentation publisher. This should be a reverse domain-name style +# string, e.g. com.mycompany.MyDocSet.documentation. + +DOCSET_PUBLISHER_ID = org.doxygen.Publisher + +# The GENERATE_PUBLISHER_NAME tag identifies the documentation publisher. + +DOCSET_PUBLISHER_NAME = Publisher + +# If the GENERATE_HTMLHELP tag is set to YES, additional index files +# will be generated that can be used as input for tools like the +# Microsoft HTML help workshop to generate a compiled HTML help file (.chm) +# of the generated HTML documentation. + +GENERATE_HTMLHELP = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_FILE tag can +# be used to specify the file name of the resulting .chm file. You +# can add a path in front of the file if the result should not be +# written to the html output directory. + +CHM_FILE = + +# If the GENERATE_HTMLHELP tag is set to YES, the HHC_LOCATION tag can +# be used to specify the location (absolute path including file name) of +# the HTML help compiler (hhc.exe). If non-empty doxygen will try to run +# the HTML help compiler on the generated index.hhp. + +HHC_LOCATION = + +# If the GENERATE_HTMLHELP tag is set to YES, the GENERATE_CHI flag +# controls if a separate .chi index file is generated (YES) or that +# it should be included in the master .chm file (NO). + +GENERATE_CHI = NO + +# If the GENERATE_HTMLHELP tag is set to YES, the CHM_INDEX_ENCODING +# is used to encode HtmlHelp index (hhk), content (hhc) and project file +# content. + +CHM_INDEX_ENCODING = + +# If the GENERATE_HTMLHELP tag is set to YES, the BINARY_TOC flag +# controls whether a binary table of contents is generated (YES) or a +# normal table of contents (NO) in the .chm file. + +BINARY_TOC = NO + +# The TOC_EXPAND flag can be set to YES to add extra items for group members +# to the contents of the HTML help documentation and to the tree view. + +TOC_EXPAND = NO + +# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and +# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated +# that can be used as input for Qt's qhelpgenerator to generate a +# Qt Compressed Help (.qch) of the generated HTML documentation. + +GENERATE_QHP = NO + +# If the QHG_LOCATION tag is specified, the QCH_FILE tag can +# be used to specify the file name of the resulting .qch file. +# The path specified is relative to the HTML output folder. + +QCH_FILE = + +# The QHP_NAMESPACE tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#namespace + +QHP_NAMESPACE = org.doxygen.Project + +# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating +# Qt Help Project output. For more information please see +# http://doc.trolltech.com/qthelpproject.html#virtual-folders + +QHP_VIRTUAL_FOLDER = doc + +# If QHP_CUST_FILTER_NAME is set, it specifies the name of a custom filter to +# add. For more information please see +# http://doc.trolltech.com/qthelpproject.html#custom-filters + +QHP_CUST_FILTER_NAME = + +# The QHP_CUST_FILT_ATTRS tag specifies the list of the attributes of the +# custom filter to add. For more information please see +# <a href="http://doc.trolltech.com/qthelpproject.html#custom-filters"> +# Qt Help Project / Custom Filters</a>. + +QHP_CUST_FILTER_ATTRS = + +# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this +# project's +# filter section matches. +# <a href="http://doc.trolltech.com/qthelpproject.html#filter-attributes"> +# Qt Help Project / Filter Attributes</a>. + +QHP_SECT_FILTER_ATTRS = + +# If the GENERATE_QHP tag is set to YES, the QHG_LOCATION tag can +# be used to specify the location of Qt's qhelpgenerator. +# If non-empty doxygen will try to run qhelpgenerator on the generated +# .qhp file. + +QHG_LOCATION = + +# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files +# will be generated, which together with the HTML files, form an Eclipse help +# plugin. To install this plugin and make it available under the help contents +# menu in Eclipse, the contents of the directory containing the HTML and XML +# files needs to be copied into the plugins directory of eclipse. The name of +# the directory within the plugins directory should be the same as +# the ECLIPSE_DOC_ID value. After copying Eclipse needs to be restarted before +# the help appears. + +GENERATE_ECLIPSEHELP = NO + +# A unique identifier for the eclipse help plugin. When installing the plugin +# the directory name containing the HTML and XML files should also have +# this name. + +ECLIPSE_DOC_ID = org.doxygen.Project + +# The DISABLE_INDEX tag can be used to turn on/off the condensed index at +# top of each HTML page. The value NO (the default) enables the index and +# the value YES disables it. + +DISABLE_INDEX = NO + +# This tag can be used to set the number of enum values (range [1..20]) +# that doxygen will group on one line in the generated HTML documentation. + +ENUM_VALUES_PER_LINE = 4 + +# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index +# structure should be generated to display hierarchical information. +# If the tag value is set to YES, a side panel will be generated +# containing a tree-like index structure (just like the one that +# is generated for HTML Help). For this to work a browser that supports +# JavaScript, DHTML, CSS and frames is required (i.e. any modern browser). +# Windows users are probably better off using the HTML help feature. + +GENERATE_TREEVIEW = NO + +# By enabling USE_INLINE_TREES, doxygen will generate the Groups, Directories, +# and Class Hierarchy pages using a tree view instead of an ordered list. + +USE_INLINE_TREES = NO + +# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be +# used to set the initial width (in pixels) of the frame in which the tree +# is shown. + +TREEVIEW_WIDTH = 250 + +# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open +# links to external symbols imported via tag files in a separate window. + +EXT_LINKS_IN_WINDOW = NO + +# Use this tag to change the font size of Latex formulas included +# as images in the HTML documentation. The default is 10. Note that +# when you change the font size after a successful doxygen run you need +# to manually remove any form_*.png images from the HTML output directory +# to force them to be regenerated. + +FORMULA_FONTSIZE = 10 + +# Use the FORMULA_TRANPARENT tag to determine whether or not the images +# generated for formulas are transparent PNGs. Transparent PNGs are +# not supported properly for IE 6.0, but are supported on all modern browsers. +# Note that when changing this option you need to delete any form_*.png files +# in the HTML output before the changes have effect. + +FORMULA_TRANSPARENT = YES + +# When the SEARCHENGINE tag is enabled doxygen will generate a search box +# for the HTML output. The underlying search engine uses javascript +# and DHTML and should work on any modern browser. Note that when using +# HTML help (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets +# (GENERATE_DOCSET) there is already a search function so this one should +# typically be disabled. For large projects the javascript based search engine +# can be slow, then enabling SERVER_BASED_SEARCH may provide a better solution. + +SEARCHENGINE = YES + +# When the SERVER_BASED_SEARCH tag is enabled the search engine will be +# implemented using a PHP enabled web server instead of at the web client +# using Javascript. Doxygen will generate the search PHP script and index +# file to put on the web server. The advantage of the server +# based approach is that it scales better to large projects and allows +# full text search. The disadvances is that it is more difficult to setup +# and does not have live searching capabilities. + +SERVER_BASED_SEARCH = NO + +#--------------------------------------------------------------------------- +# configuration options related to the LaTeX output +#--------------------------------------------------------------------------- + +# If the GENERATE_LATEX tag is set to YES (the default) Doxygen will +# generate Latex output. + +GENERATE_LATEX = NO + +# The LATEX_OUTPUT tag is used to specify where the LaTeX docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `latex' will be used as the default path. + +LATEX_OUTPUT = latex + +# The LATEX_CMD_NAME tag can be used to specify the LaTeX command name to be +# invoked. If left blank `latex' will be used as the default command name. +# Note that when enabling USE_PDFLATEX this option is only used for +# generating bitmaps for formulas in the HTML output, but not in the +# Makefile that is written to the output directory. + +LATEX_CMD_NAME = latex + +# The MAKEINDEX_CMD_NAME tag can be used to specify the command name to +# generate index for LaTeX. If left blank `makeindex' will be used as the +# default command name. + +MAKEINDEX_CMD_NAME = makeindex + +# If the COMPACT_LATEX tag is set to YES Doxygen generates more compact +# LaTeX documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_LATEX = NO + +# The PAPER_TYPE tag can be used to set the paper type that is used +# by the printer. Possible values are: a4, a4wide, letter, legal and +# executive. If left blank a4wide will be used. + +PAPER_TYPE = a4wide + +# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX +# packages that should be included in the LaTeX output. + +EXTRA_PACKAGES = + +# The LATEX_HEADER tag can be used to specify a personal LaTeX header for +# the generated latex document. The header should contain everything until +# the first chapter. If it is left blank doxygen will generate a +# standard header. Notice: only use this tag if you know what you are doing! + +LATEX_HEADER = + +# If the PDF_HYPERLINKS tag is set to YES, the LaTeX that is generated +# is prepared for conversion to pdf (using ps2pdf). The pdf file will +# contain links (just like the HTML output) instead of page references +# This makes the output suitable for online browsing using a pdf viewer. + +PDF_HYPERLINKS = YES + +# If the USE_PDFLATEX tag is set to YES, pdflatex will be used instead of +# plain latex in the generated Makefile. Set this option to YES to get a +# higher quality PDF documentation. + +USE_PDFLATEX = YES + +# If the LATEX_BATCHMODE tag is set to YES, doxygen will add the \\batchmode. +# command to the generated LaTeX files. This will instruct LaTeX to keep +# running if errors occur, instead of asking the user for help. +# This option is also used when generating formulas in HTML. + +LATEX_BATCHMODE = NO + +# If LATEX_HIDE_INDICES is set to YES then doxygen will not +# include the index chapters (such as File Index, Compound Index, etc.) +# in the output. + +LATEX_HIDE_INDICES = NO + +# If LATEX_SOURCE_CODE is set to YES then doxygen will include +# source code with syntax highlighting in the LaTeX output. +# Note that which sources are shown also depends on other settings +# such as SOURCE_BROWSER. + +LATEX_SOURCE_CODE = NO + +#--------------------------------------------------------------------------- +# configuration options related to the RTF output +#--------------------------------------------------------------------------- + +# If the GENERATE_RTF tag is set to YES Doxygen will generate RTF output +# The RTF output is optimized for Word 97 and may not look very pretty with +# other RTF readers or editors. + +GENERATE_RTF = NO + +# The RTF_OUTPUT tag is used to specify where the RTF docs will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `rtf' will be used as the default path. + +RTF_OUTPUT = rtf + +# If the COMPACT_RTF tag is set to YES Doxygen generates more compact +# RTF documents. This may be useful for small projects and may help to +# save some trees in general. + +COMPACT_RTF = NO + +# If the RTF_HYPERLINKS tag is set to YES, the RTF that is generated +# will contain hyperlink fields. The RTF file will +# contain links (just like the HTML output) instead of page references. +# This makes the output suitable for online browsing using WORD or other +# programs which support those fields. +# Note: wordpad (write) and others do not support links. + +RTF_HYPERLINKS = NO + +# Load stylesheet definitions from file. Syntax is similar to doxygen's +# config file, i.e. a series of assignments. You only have to provide +# replacements, missing definitions are set to their default value. + +RTF_STYLESHEET_FILE = + +# Set optional variables used in the generation of an rtf document. +# Syntax is similar to doxygen's config file. + +RTF_EXTENSIONS_FILE = + +#--------------------------------------------------------------------------- +# configuration options related to the man page output +#--------------------------------------------------------------------------- + +# If the GENERATE_MAN tag is set to YES (the default) Doxygen will +# generate man pages + +GENERATE_MAN = NO + +# The MAN_OUTPUT tag is used to specify where the man pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `man' will be used as the default path. + +MAN_OUTPUT = man + +# The MAN_EXTENSION tag determines the extension that is added to +# the generated man pages (default is the subroutine's section .3) + +MAN_EXTENSION = .3 + +# If the MAN_LINKS tag is set to YES and Doxygen generates man output, +# then it will generate one additional man file for each entity +# documented in the real man page(s). These additional files +# only source the real man page, but without them the man command +# would be unable to find the correct page. The default is NO. + +MAN_LINKS = NO + +#--------------------------------------------------------------------------- +# configuration options related to the XML output +#--------------------------------------------------------------------------- + +# If the GENERATE_XML tag is set to YES Doxygen will +# generate an XML file that captures the structure of +# the code including all documentation. + +GENERATE_XML = NO + +# The XML_OUTPUT tag is used to specify where the XML pages will be put. +# If a relative path is entered the value of OUTPUT_DIRECTORY will be +# put in front of it. If left blank `xml' will be used as the default path. + +XML_OUTPUT = xml + +# The XML_SCHEMA tag can be used to specify an XML schema, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_SCHEMA = + +# The XML_DTD tag can be used to specify an XML DTD, +# which can be used by a validating XML parser to check the +# syntax of the XML files. + +XML_DTD = + +# If the XML_PROGRAMLISTING tag is set to YES Doxygen will +# dump the program listings (including syntax highlighting +# and cross-referencing information) to the XML output. Note that +# enabling this will significantly increase the size of the XML output. + +XML_PROGRAMLISTING = YES + +#--------------------------------------------------------------------------- +# configuration options for the AutoGen Definitions output +#--------------------------------------------------------------------------- + +# If the GENERATE_AUTOGEN_DEF tag is set to YES Doxygen will +# generate an AutoGen Definitions (see autogen.sf.net) file +# that captures the structure of the code including all +# documentation. Note that this feature is still experimental +# and incomplete at the moment. + +GENERATE_AUTOGEN_DEF = NO + +#--------------------------------------------------------------------------- +# configuration options related to the Perl module output +#--------------------------------------------------------------------------- + +# If the GENERATE_PERLMOD tag is set to YES Doxygen will +# generate a Perl module file that captures the structure of +# the code including all documentation. Note that this +# feature is still experimental and incomplete at the +# moment. + +GENERATE_PERLMOD = NO + +# If the PERLMOD_LATEX tag is set to YES Doxygen will generate +# the necessary Makefile rules, Perl scripts and LaTeX code to be able +# to generate PDF and DVI output from the Perl module output. + +PERLMOD_LATEX = NO + +# If the PERLMOD_PRETTY tag is set to YES the Perl module output will be +# nicely formatted so it can be parsed by a human reader. This is useful +# if you want to understand what is going on. On the other hand, if this +# tag is set to NO the size of the Perl module output will be much smaller +# and Perl will parse it just the same. + +PERLMOD_PRETTY = YES + +# The names of the make variables in the generated doxyrules.make file +# are prefixed with the string contained in PERLMOD_MAKEVAR_PREFIX. +# This is useful so different doxyrules.make files included by the same +# Makefile don't overwrite each other's variables. + +PERLMOD_MAKEVAR_PREFIX = + +#--------------------------------------------------------------------------- +# Configuration options related to the preprocessor +#--------------------------------------------------------------------------- + +# If the ENABLE_PREPROCESSING tag is set to YES (the default) Doxygen will +# evaluate all C-preprocessor directives found in the sources and include +# files. + +ENABLE_PREPROCESSING = YES + +# If the MACRO_EXPANSION tag is set to YES Doxygen will expand all macro +# names in the source code. If set to NO (the default) only conditional +# compilation will be performed. Macro expansion can be done in a controlled +# way by setting EXPAND_ONLY_PREDEF to YES. + +MACRO_EXPANSION = NO + +# If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES +# then the macro expansion is limited to the macros specified with the +# PREDEFINED and EXPAND_AS_DEFINED tags. + +EXPAND_ONLY_PREDEF = NO + +# If the SEARCH_INCLUDES tag is set to YES (the default) the includes files +# in the INCLUDE_PATH (see below) will be search if a #include is found. + +SEARCH_INCLUDES = YES + +# The INCLUDE_PATH tag can be used to specify one or more directories that +# contain include files that are not input files but should be processed by +# the preprocessor. + +INCLUDE_PATH = + +# You can use the INCLUDE_FILE_PATTERNS tag to specify one or more wildcard +# patterns (like *.h and *.hpp) to filter out the header-files in the +# directories. If left blank, the patterns specified with FILE_PATTERNS will +# be used. + +INCLUDE_FILE_PATTERNS = + +# The PREDEFINED tag can be used to specify one or more macro names that +# are defined before the preprocessor is started (similar to the -D option of +# gcc). The argument of the tag is a list of macros of the form: name +# or name=definition (no spaces). If the definition and the = are +# omitted =1 is assumed. To prevent a macro definition from being +# undefined via #undef or recursively expanded use the := operator +# instead of the = operator. + +PREDEFINED = + +# If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then +# this tag can be used to specify a list of macro names that should be expanded. +# The macro definition that is found in the sources will be used. +# Use the PREDEFINED tag if you want to use a different macro definition. + +EXPAND_AS_DEFINED = + +# If the SKIP_FUNCTION_MACROS tag is set to YES (the default) then +# doxygen's preprocessor will remove all function-like macros that are alone +# on a line, have an all uppercase name, and do not end with a semicolon. Such +# function macros are typically used for boiler-plate code, and will confuse +# the parser if not removed. + +SKIP_FUNCTION_MACROS = YES + +#--------------------------------------------------------------------------- +# Configuration::additions related to external references +#--------------------------------------------------------------------------- + +# The TAGFILES option can be used to specify one or more tagfiles. +# Optionally an initial location of the external documentation +# can be added for each tagfile. The format of a tag file without +# this location is as follows: +# TAGFILES = file1 file2 ... +# Adding location for the tag files is done as follows: +# TAGFILES = file1=loc1 "file2 = loc2" ... +# where "loc1" and "loc2" can be relative or absolute paths or +# URLs. If a location is present for each tag, the installdox tool +# does not have to be run to correct the links. +# Note that each tag file must have a unique name +# (where the name does NOT include the path) +# If a tag file is not located in the directory in which doxygen +# is run, you must also specify the path to the tagfile here. + +TAGFILES = + +# When a file name is specified after GENERATE_TAGFILE, doxygen will create +# a tag file that is based on the input files it reads. + +GENERATE_TAGFILE = + +# If the ALLEXTERNALS tag is set to YES all external classes will be listed +# in the class index. If set to NO only the inherited external classes +# will be listed. + +ALLEXTERNALS = NO + +# If the EXTERNAL_GROUPS tag is set to YES all external groups will be listed +# in the modules index. If set to NO, only the current project's groups will +# be listed. + +EXTERNAL_GROUPS = YES + +# The PERL_PATH should be the absolute path and name of the perl script +# interpreter (i.e. the result of `which perl'). + +PERL_PATH = /usr/bin/perl + +#--------------------------------------------------------------------------- +# Configuration options related to the dot tool +#--------------------------------------------------------------------------- + +# If the CLASS_DIAGRAMS tag is set to YES (the default) Doxygen will +# generate a inheritance diagram (in HTML, RTF and LaTeX) for classes with base +# or super classes. Setting the tag to NO turns the diagrams off. Note that +# this option is superseded by the HAVE_DOT option below. This is only a +# fallback. It is recommended to install and use dot, since it yields more +# powerful graphs. + +CLASS_DIAGRAMS = NO + +# You can define message sequence charts within doxygen comments using the \msc +# command. Doxygen will then run the mscgen tool (see +# http://www.mcternan.me.uk/mscgen/) to produce the chart and insert it in the +# documentation. The MSCGEN_PATH tag allows you to specify the directory where +# the mscgen tool resides. If left empty the tool is assumed to be found in the +# default search path. + +MSCGEN_PATH = + +# If set to YES, the inheritance and collaboration graphs will hide +# inheritance and usage relations if the target is undocumented +# or is not a class. + +HIDE_UNDOC_RELATIONS = YES + +# If you set the HAVE_DOT tag to YES then doxygen will assume the dot tool is +# available from the path. This tool is part of Graphviz, a graph visualization +# toolkit from AT&T and Lucent Bell Labs. The other options in this section +# have no effect if this option is set to NO (the default) + +HAVE_DOT = YES + +# The DOT_NUM_THREADS specifies the number of dot invocations doxygen is +# allowed to run in parallel. When set to 0 (the default) doxygen will +# base this on the number of processors available in the system. You can set it +# explicitly to a value larger than 0 to get control over the balance +# between CPU load and processing speed. + +DOT_NUM_THREADS = 0 + +# By default doxygen will write a font called FreeSans.ttf to the output +# directory and reference it in all dot files that doxygen generates. This +# font does not include all possible unicode characters however, so when you need +# these (or just want a differently looking font) you can specify the font name +# using DOT_FONTNAME. You need need to make sure dot is able to find the font, +# which can be done by putting it in a standard location or by setting the +# DOTFONTPATH environment variable or by setting DOT_FONTPATH to the directory +# containing the font. + +DOT_FONTNAME = FreeSans.ttf + +# The DOT_FONTSIZE tag can be used to set the size of the font of dot graphs. +# The default size is 10pt. + +DOT_FONTSIZE = 10 + +# By default doxygen will tell dot to use the output directory to look for the +# FreeSans.ttf font (which doxygen will put there itself). If you specify a +# different font using DOT_FONTNAME you can set the path where dot +# can find it using this tag. + +DOT_FONTPATH = + +# If the CLASS_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect inheritance relations. Setting this tag to YES will force the +# the CLASS_DIAGRAMS tag to NO. + +CLASS_GRAPH = YES + +# If the COLLABORATION_GRAPH and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for each documented class showing the direct and +# indirect implementation dependencies (inheritance, containment, and +# class references variables) of the class with other documented classes. + +COLLABORATION_GRAPH = YES + +# If the GROUP_GRAPHS and HAVE_DOT tags are set to YES then doxygen +# will generate a graph for groups, showing the direct groups dependencies + +GROUP_GRAPHS = YES + +# If the UML_LOOK tag is set to YES doxygen will generate inheritance and +# collaboration diagrams in a style similar to the OMG's Unified Modeling +# Language. + +UML_LOOK = NO + +# If set to YES, the inheritance and collaboration graphs will show the +# relations between templates and their instances. + +TEMPLATE_RELATIONS = NO + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDE_GRAPH, and HAVE_DOT +# tags are set to YES then doxygen will generate a graph for each documented +# file showing the direct and indirect include dependencies of the file with +# other documented files. + +INCLUDE_GRAPH = YES + +# If the ENABLE_PREPROCESSING, SEARCH_INCLUDES, INCLUDED_BY_GRAPH, and +# HAVE_DOT tags are set to YES then doxygen will generate a graph for each +# documented header file showing the documented files that directly or +# indirectly include this file. + +INCLUDED_BY_GRAPH = YES + +# If the CALL_GRAPH and HAVE_DOT options are set to YES then +# doxygen will generate a call dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable call graphs +# for selected functions only using the \callgraph command. + +CALL_GRAPH = YES + +# If the CALLER_GRAPH and HAVE_DOT tags are set to YES then +# doxygen will generate a caller dependency graph for every global function +# or class method. Note that enabling this option will significantly increase +# the time of a run. So in most cases it will be better to enable caller +# graphs for selected functions only using the \callergraph command. + +CALLER_GRAPH = YES + +# If the GRAPHICAL_HIERARCHY and HAVE_DOT tags are set to YES then doxygen +# will graphical hierarchy of all classes instead of a textual one. + +GRAPHICAL_HIERARCHY = YES + +# If the DIRECTORY_GRAPH, SHOW_DIRECTORIES and HAVE_DOT tags are set to YES +# then doxygen will show the dependencies a directory has on other directories +# in a graphical way. The dependency relations are determined by the #include +# relations between the files in the directories. + +DIRECTORY_GRAPH = YES + +# The DOT_IMAGE_FORMAT tag can be used to set the image format of the images +# generated by dot. Possible values are png, jpg, or gif +# If left blank png will be used. + +DOT_IMAGE_FORMAT = png + +# The tag DOT_PATH can be used to specify the path where the dot tool can be +# found. If left blank, it is assumed the dot tool can be found in the path. + +DOT_PATH = + +# The DOTFILE_DIRS tag can be used to specify one or more directories that +# contain dot files that are included in the documentation (see the +# \dotfile command). + +DOTFILE_DIRS = + +# The DOT_GRAPH_MAX_NODES tag can be used to set the maximum number of +# nodes that will be shown in the graph. If the number of nodes in a graph +# becomes larger than this value, doxygen will truncate the graph, which is +# visualized by representing a node as a red box. Note that doxygen if the +# number of direct children of the root node in a graph is already larger than +# DOT_GRAPH_MAX_NODES then the graph will not be shown at all. Also note +# that the size of a graph can be further restricted by MAX_DOT_GRAPH_DEPTH. + +DOT_GRAPH_MAX_NODES = 50 + +# The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the +# graphs generated by dot. A depth value of 3 means that only nodes reachable +# from the root by following a path via at most 3 edges will be shown. Nodes +# that lay further from the root node will be omitted. Note that setting this +# option to 1 or 2 may greatly reduce the computation time needed for large +# code bases. Also note that the size of a graph can be further restricted by +# DOT_GRAPH_MAX_NODES. Using a depth of 0 means no depth restriction. + +MAX_DOT_GRAPH_DEPTH = 0 + +# Set the DOT_TRANSPARENT tag to YES to generate images with a transparent +# background. This is disabled by default, because dot on Windows does not +# seem to support this out of the box. Warning: Depending on the platform used, +# enabling this option may lead to badly anti-aliased labels on the edges of +# a graph (i.e. they become hard to read). + +DOT_TRANSPARENT = NO + +# Set the DOT_MULTI_TARGETS tag to YES allow dot to generate multiple output +# files in one run (i.e. multiple -o and -T options on the command line). This +# makes dot run faster, but since only newer versions of dot (>1.8.10) +# support this, this feature is disabled by default. + +DOT_MULTI_TARGETS = NO + +# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will +# generate a legend page explaining the meaning of the various boxes and +# arrows in the dot generated graphs. + +GENERATE_LEGEND = YES + +# If the DOT_CLEANUP tag is set to YES (the default) Doxygen will +# remove the intermediate dot files that are used to generate +# the various graphs. + +DOT_CLEANUP = YES
new file mode 100644 --- /dev/null +++ b/gui/README @@ -0,0 +1,24 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +Octave GUI is a graphical user interface for Octave with readline support. + +If you have any problems, suggestions or ideas, feel free to drop me a mail at +jacob.dawid@googlemail.com or visit the official channel #octave on FreeNode. + +- Jacob Dawid +
new file mode 100755 --- /dev/null +++ b/gui/compile.sh @@ -0,0 +1,18 @@ +# Quint - A graphical user interface for Octave +# Copyright (C) 2011 Jacob Dawid +# jacob.dawid@googlemail.com +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +qmake-qt4 && make
new file mode 100644 --- /dev/null +++ b/gui/default-settings/.octave-gui @@ -0,0 +1,23 @@ +[General] +connectOnStartup=true +showMessageOfTheDay=false +showTopic=true +autoIdentification=false +nickServPassword= +useCustomFileEditor=false +customFileEditor=emacs +showFilenames=true +showFileSize=true +showFileType=false +showLastModified=false +showHiddenFiles=false +useAlternatingRowColors=true +IRCNick=User1 +language=en-en + +[MainWindow] +geometry="@ByteArray(\x1\xd9\xd0\xcb\0\x1\0\0\0\0\0\0\0\0\0\x18\0\0\x4\xff\0\0\x3\a\0\0\0\0\0\0\0,\0\0\x5v\0\0\x3\x1c\0\0\0\0\x2\0)" +windowState="@ByteArray(\0\0\0\xff\0\0\0\0\xfd\0\0\0\x2\0\0\0\0\0\0\x1;\0\0\x2\xa3\xfc\x2\0\0\0\x2\xfb\0\0\0&\0V\0\x61\0r\0i\0\x61\0\x62\0l\0\x65\0s\0\x44\0o\0\x63\0k\0W\0i\0\x64\0g\0\x65\0t\x1\0\0\0\x19\0\0\x1\xe\0\0\0k\0\xff\xff\xff\xfb\0\0\0\"\0H\0i\0s\0t\0o\0r\0y\0\x44\0o\0\x63\0k\0W\0i\0\x64\0g\0\x65\0t\x1\0\0\x1-\0\0\x1\x8f\0\0\0\x8c\0\xff\xff\xff\0\0\0\x1\0\0\x1,\0\0\x2\xa3\xfc\x2\0\0\0\x1\xfb\0\0\0\x1e\0\x46\0i\0l\0\x65\0s\0\x44\0o\0\x63\0k\0W\0i\0\x64\0g\0\x65\0t\x1\0\0\0\x19\0\0\x2\xa3\0\0\0\x9d\0\xff\xff\xff\0\0\x2\x8d\0\0\x2\xa3\0\0\0\x4\0\0\0\x4\0\0\0\b\0\0\0\b\xfc\0\0\0\0)" + +[MdiArea] +geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x1\0\0\0\0\x1\x41\0\0\0\x19\0\0\x3\xcd\0\0\x2\xbb\0\0\0\0\0\0\0\0\xff\xff\xff\xff\xff\xff\xff\xff\0\0\0\0\0\0)
new file mode 100644 --- /dev/null +++ b/gui/kb-layouts/default.keytab @@ -0,0 +1,133 @@ +# [README.default.Keytab] Buildin Keyboard Table +# +# To customize your keyboard, copy this file to something +# ending with .keytab and change it to meet you needs. +# Please read the README.KeyTab and the README.keyboard +# in this case. +# +# -------------------------------------------------------------- + +keyboard "Default (XFree 4)" + +# -------------------------------------------------------------- +# +# Note that this particular table is a "risc" version made to +# ease customization without bothering with obsolete details. +# See VT100.keytab for the more hairy stuff. +# +# -------------------------------------------------------------- + +# common keys + +key Escape : "\E" + +key Tab -Shift : "\t" +key Tab +Shift+Ansi : "\E[Z" +key Tab +Shift-Ansi : "\t" +key Backtab +Ansi : "\E[Z" +key Backtab -Ansi : "\t" + +key Return-Shift-NewLine : "\r" +key Return-Shift+NewLine : "\r\n" + +key Return+Shift : "\EOM" + +# Backspace and Delete codes are preserving CTRL-H. + +key Backspace : "\x7f" + +# Arrow keys in VT52 mode +# shift up/down are reserved for scrolling. +# shift left/right are reserved for switching between tabs (this is hardcoded). + +key Up -Shift-Ansi : "\EA" +key Down -Shift-Ansi : "\EB" +key Right-Shift-Ansi : "\EC" +key Left -Shift-Ansi : "\ED" + +# Arrow keys in ANSI mode with Application - and Normal Cursor Mode) + +key Up -Shift-AnyMod+Ansi+AppCuKeys : "\EOA" +key Down -Shift-AnyMod+Ansi+AppCuKeys : "\EOB" +key Right -Shift-AnyMod+Ansi+AppCuKeys : "\EOC" +key Left -Shift-AnyMod+Ansi+AppCuKeys : "\EOD" + +key Up -Shift-AnyMod+Ansi-AppCuKeys : "\E[A" +key Down -Shift-AnyMod+Ansi-AppCuKeys : "\E[B" +key Right -Shift-AnyMod+Ansi-AppCuKeys : "\E[C" +key Left -Shift-AnyMod+Ansi-AppCuKeys : "\E[D" + +key Up -Shift+AnyMod+Ansi : "\E[1;*A" +key Down -Shift+AnyMod+Ansi : "\E[1;*B" +key Right -Shift+AnyMod+Ansi : "\E[1;*C" +key Left -Shift+AnyMod+Ansi : "\E[1;*D" + +# other grey PC keys + +key Enter+NewLine : "\r\n" +key Enter-NewLine : "\r" + +key Home -AnyMod -AppCuKeys : "\E[H" +key End -AnyMod -AppCuKeys : "\E[F" +key Home -AnyMod +AppCuKeys : "\EOH" +key End -AnyMod +AppCuKeys : "\EOF" +key Home +AnyMod : "\E[1;*H" +key End +AnyMod : "\E[1;*F" + +key Insert -AnyMod : "\E[2~" +key Delete -AnyMod : "\E[3~" +key Insert +AnyMod : "\E[2;*~" +key Delete +AnyMod : "\E[3;*~" + +key Prior -Shift-AnyMod : "\E[5~" +key Next -Shift-AnyMod : "\E[6~" +key Prior -Shift+AnyMod : "\E[5;*~" +key Next -Shift+AnyMod : "\E[6;*~" + +# Function keys +key F1 -AnyMod : "\EOP" +key F2 -AnyMod : "\EOQ" +key F3 -AnyMod : "\EOR" +key F4 -AnyMod : "\EOS" +key F5 -AnyMod : "\E[15~" +key F6 -AnyMod : "\E[17~" +key F7 -AnyMod : "\E[18~" +key F8 -AnyMod : "\E[19~" +key F9 -AnyMod : "\E[20~" +key F10 -AnyMod : "\E[21~" +key F11 -AnyMod : "\E[23~" +key F12 -AnyMod : "\E[24~" + +key F1 +AnyMod : "\EO*P" +key F2 +AnyMod : "\EO*Q" +key F3 +AnyMod : "\EO*R" +key F4 +AnyMod : "\EO*S" +key F5 +AnyMod : "\E[15;*~" +key F6 +AnyMod : "\E[17;*~" +key F7 +AnyMod : "\E[18;*~" +key F8 +AnyMod : "\E[19;*~" +key F9 +AnyMod : "\E[20;*~" +key F10 +AnyMod : "\E[21;*~" +key F11 +AnyMod : "\E[23;*~" +key F12 +AnyMod : "\E[24;*~" + +# Work around dead keys + +key Space +Control : "\x00" + +# Some keys are used by konsole to cause operations. +# The scroll* operations refer to the history buffer. + +key Up +Shift-AppScreen : scrollLineUp +key Prior +Shift-AppScreen : scrollPageUp +key Down +Shift-AppScreen : scrollLineDown +key Next +Shift-AppScreen : scrollPageDown + +#key Up +Shift : scrollLineUp +#key Prior +Shift : scrollPageUp +#key Down +Shift : scrollLineDown +#key Next +Shift : scrollPageDown + +key ScrollLock : scrollLock + +# keypad characters are not offered differently by Qt.
new file mode 100644 --- /dev/null +++ b/gui/kb-layouts/linux.keytab @@ -0,0 +1,133 @@ +# [linux.keytab] Konsole Keyboard Table (Linux console keys) +# +# -------------------------------------------------------------- + +# NOT TESTED, MAY NEED SOME CLEANUPS +keyboard "Linux console" + +# -------------------------------------------------------------- +# +# This configuration table allows to customize the +# meaning of the keys. +# +# The syntax is that each entry has the form : +# +# "key" Keyname { ("+"|"-") Modename } ":" (String|Operation) +# +# Keynames are those defined in <qnamespace.h> with the +# "Qt::Key_" removed. (We'd better insert the list here) +# +# Mode names are : +# +# - Shift +# - Alt +# - Control +# +# The VT100 emulation has two modes that can affect the +# sequences emitted by certain keys. These modes are +# under control of the client program. +# +# - Newline : effects Return and Enter key. +# - Application : effects Up and Down key. +# +# - Ansi : effects Up and Down key (This is for VT52, really). +# +# Operations are +# +# - scrollUpLine +# - scrollUpPage +# - scrollDownLine +# - scrollDownPage +# +# - emitSelection +# +# If the key is not found here, the text of the +# key event as provided by QT is emitted, possibly +# preceeded by ESC if the Alt key is pressed. +# +# -------------------------------------------------------------- + +key Escape : "\E" +key Tab : "\t" + +# VT100 can add an extra \n after return. +# The NewLine mode is set by an escape sequence. + +key Return-NewLine : "\r" +key Return+NewLine : "\r\n" + +# Some desperately try to save the ^H. + +key Backspace : "\x7f" +key Delete : "\E[3~" + +# These codes are for the VT52 mode of VT100 +# The Ansi mode (i.e. VT100 mode) is set by +# an escape sequence + +key Up -Shift-Ansi : "\EA" +key Down -Shift-Ansi : "\EB" +key Right-Shift-Ansi : "\EC" +key Left -Shift-Ansi : "\ED" + +# VT100 emits a mode bit together +# with the arrow keys.The AppCuKeys +# mode is set by an escape sequence. + +key Up -Shift+Ansi+AppCuKeys : "\EOA" +key Down -Shift+Ansi+AppCuKeys : "\EOB" +key Right-Shift+Ansi+AppCuKeys : "\EOC" +key Left -Shift+Ansi+AppCuKeys : "\EOD" + +key Up -Shift+Ansi-AppCuKeys : "\E[A" +key Down -Shift+Ansi-AppCuKeys : "\E[B" +key Right-Shift+Ansi-AppCuKeys : "\E[C" +key Left -Shift+Ansi-AppCuKeys : "\E[D" + +# linux functions keys F1-F5 differ from xterm + +key F1 : "\E[[A" +key F2 : "\E[[B" +key F3 : "\E[[C" +key F4 : "\E[[D" +key F5 : "\E[[E" + +key F6 : "\E[17~" +key F7 : "\E[18~" +key F8 : "\E[19~" +key F9 : "\E[20~" +key F10 : "\E[21~" +key F11 : "\E[23~" +key F12 : "\E[24~" + +key Home : "\E[1~" +key End : "\E[4~" + +key Prior -Shift : "\E[5~" +key Next -Shift : "\E[6~" +key Insert-Shift : "\E[2~" + +# Keypad-Enter. See comment on Return above. + +key Enter+NewLine : "\r\n" +key Enter-NewLine : "\r" + +key Space +Control : "\x00" + +# some of keys are used by konsole. + +key Up +Shift : scrollLineUp +key Prior +Shift : scrollPageUp +key Down +Shift : scrollLineDown +key Next +Shift : scrollPageDown + +key ScrollLock : scrollLock + +#---------------------------------------------------------- + +# keypad characters as offered by Qt +# cannot be recognized as such. + +#---------------------------------------------------------- + +# Following other strings as emitted by konsole.
new file mode 100644 --- /dev/null +++ b/gui/kb-layouts/vt420pc.keytab @@ -0,0 +1,163 @@ +# [vt420pc.keytab] Konsole Keyboard Table (VT420pc keys) +# adapted by ferdinand gassauer f.gassauer@aon.at +# Nov 2000 +# +################################################################ +# +# The escape sequences emmited by the +# keys Shift+F1 to Shift+F12 might not fit your needs +# +################# IMPORTANT NOTICE ############################# +# the key bindings (Kcontrol -> look and feel -> keybindgs) +# overrule the settings in this file. The key bindings might be +# changed by the user WITHOUT notification of the maintainer of +# the keytab file. Konsole will not work as expected by +# the maintainer of the keytab file. +################################################################ +# +# -------------------------------------------------------------- + +keyboard "DEC VT420 Terminal" + +# -------------------------------------------------------------- +# +# This configuration table allows to customize the +# meaning of the keys. +# +# The syntax is that each entry has the form : +# +# "key" Keyname { ("+"|"-") Modename } ":" (String|Operation) +# +# Keynames are those defined in <qnamespace.h> with the +# "Qt::Key_" removed. (We'd better insert the list here) +# +# Mode names are : +# +# - Shift +# - Alt +# - Control +# +# The VT100 emulation has two modes that can affect the +# sequences emitted by certain keys. These modes are +# under control of the client program. +# +# - Newline : effects Return and Enter key. +# - Application : effects Up and Down key. +# +# - Ansi : effects Up and Down key (This is for VT52, really). +# +# Operations are +# +# - scrollUpLine +# - scrollUpPage +# - scrollDownLine +# - scrollDownPage +# +# - emitSelection +# +# If the key is not found here, the text of the +# key event as provided by QT is emitted, possibly +# preceeded by ESC if the Alt key is pressed. +# +# -------------------------------------------------------------- + +key Escape : "\E" +key Tab : "\t" +key Backtab: "\E[Z" + +# VT100 can add an extra \n after return. +# The NewLine mode is set by an escape sequence. + +key Return-NewLine : "\r" +key Return+NewLine : "\r\n" + +# Some desperately try to save the ^H. +# may be not everyone wants this + +key Backspace : "\x08" # Control H +key Delete : "\x7f" + +# These codes are for the VT420pc +# The Ansi mode (i.e. VT100 mode) is set by +# an escape sequence + +key Up -Shift-Ansi : "\EA" +key Down -Shift-Ansi : "\EB" +key Right-Shift-Ansi : "\EC" +key Left -Shift-Ansi : "\ED" + +# VT100 emits a mode bit together +# with the arrow keys.The AppCuKeys +# mode is set by an escape sequence. + +key Up -Shift+Ansi+AppCuKeys : "\EOA" +key Down -Shift+Ansi+AppCuKeys : "\EOB" +key Right-Shift+Ansi+AppCuKeys : "\EOC" +key Left -Shift+Ansi+AppCuKeys : "\EOD" + +key Up -Shift+Ansi-AppCuKeys : "\E[A" +key Down -Shift+Ansi-AppCuKeys : "\E[B" +key Right-Shift+Ansi-AppCuKeys : "\E[C" +key Left -Shift+Ansi-AppCuKeys : "\E[D" + +# function keys + +key F1 -Shift : "\E[11~" +key F2 -Shift : "\E[12~" +key F3 -Shift : "\E[13~" +key F4 -Shift : "\E[14~" +key F5 -Shift : "\E[15~" +key F6 -Shift : "\E[17~" +key F7 -Shift : "\E[18~" +key F8 -Shift : "\E[19~" +key F9 -Shift : "\E[20~" +key F10-Shift : "\E[21~" +key F11-Shift : "\E[23~" +key F12-Shift : "\E[24~" +# +# Shift F1-F12 +# +key F1 +Shift : "\E[11;2~" +key F2 +Shift : "\E[12;2~" +key F3 +Shift : "\E[13;2~" +key F4 +Shift : "\E[14;2~" +key F5 +Shift : "\E[15;2~" +key F6 +Shift : "\E[17;2~" +key F7 +Shift : "\E[18;2~" +key F8 +Shift : "\E[19;2~" +key F9 +Shift : "\E[20;2~" +key F10+Shift : "\E[21;2~" +key F11+Shift : "\E[23;2~" +key F12+Shift : "\E[24;2~" + +key Home : "\E[H" +key End : "\E[F" + +key Prior -Shift : "\E[5~" +key Next -Shift : "\E[6~" +key Insert-Shift : "\E[2~" + +# Keypad-Enter. See comment on Return above. + +key Enter+NewLine : "\r\n" +key Enter-NewLine : "\r" + +key Space +Control : "\x00" + +# some of keys are used by konsole. + +key Up +Shift : scrollLineUp +key Prior +Shift : scrollPageUp +key Down +Shift : scrollLineDown +key Next +Shift : scrollPageDown + +key ScrollLock : scrollLock + +#---------------------------------------------------------- + +# keypad characters as offered by Qt +# cannot be recognized as such. + +#---------------------------------------------------------- + +# Following other strings as emitted by konsole.
new file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..a701c3df75595c1b14d890e84c3577aa8d342474 GIT binary patch literal 10151 zc$}?S3veA}6+TJt&ExhaY0{FW0n(+93~g<Yj8)9kLi1`1ZCaX=05YX}?{4nh$==<| zK9VLf3@9@yFsK6#j3T2JDZ&iQ2r@wBA(o+v0t$oj5@(c-hzv8Jh=S<(&;Re;|K9B8 zrs!mH_dfPN=R1%8JLmkn`2nrt7jNJ4&0n2%%A*Iq_wcLz0E;@H_Q6L0YHxzXtycrI z_V8=x=OA(Td4R+*NIa7OX!|K7H+cZdZiD3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QE?|L>?+O!Wty~&++wu;*M z&xsQwNPbn;?-8&K0o{^-r}p3|ZMdE|V~>?mhvb4ZAL`vFs62K>1MboChs4P-)%53I R^zr)TNO51mA8KoA{tHnat`-0Q
new file mode 100644 --- /dev/null +++ b/gui/languages/de-de.ts @@ -0,0 +1,642 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="de_DE"> +<context> + <name>FileEditorMdiSubWindow</name> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="114"/> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="207"/> + <source>File Editor</source> + <translation>Dateieditor</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="115"/> + <source>Cannot read file %1: +%2.</source> + <translation>Konnte Datei %1 nicht lesen: +%2.</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="127"/> + <source>File loaded.</source> + <translation>Datei geladen.</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="153"/> + <source>Do you want to save the current file +%1 ?</source> + <translation>Möchten Sie die Datei %1 sichern ?</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="208"/> + <source>Cannot write file %1: +%2.</source> + <translation>Konnte Datei %1 nicht schreiben: +%2.</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="220"/> + <source>File %1 saved</source> + <translation>Datei %1 gesichert</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="383"/> + <source>&Close File</source> + <translation>&Datei schlieĂen</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="386"/> + <source>&New File</source> + <translation>&Neue Datei</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="389"/> + <source>&Open File</source> + <translation>&Ăffne Datei</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="392"/> + <source>&Save File</source> + <translation>&Sichere Datei</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="395"/> + <source>Save File &As</source> + <translation>Sichere Datei &als</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="398"/> + <source>&Undo</source> + <translation>&RĂŒckgĂ€ngig</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="401"/> + <source>&Redo</source> + <translation>&Wiederholen</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="402"/> + <source>&Copy</source> + <translation>&Kopieren</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="403"/> + <source>Cu&t</source> + <translation>&Ausschneiden</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="404"/> + <source>&Paste</source> + <translation>&EinfĂŒgen</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="405"/> + <source>&Next Bookmark</source> + <translation>&NĂ€chstes Bookmark</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="406"/> + <source>Pre&vious Bookmark</source> + <translation>&Voriges Bookmark</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="407"/> + <source>Toggle &Bookmark</source> + <translation>&Bookmark setzen</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="410"/> + <source>&Run File</source> + <translation>&AusfĂŒhren</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="449"/> + <source>&File</source> + <translation>&Datei</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="457"/> + <source>&Edit</source> + <translation>&Editieren</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="469"/> + <source>&Run</source> + <translation>&AusfĂŒhren</translation> + </message> +</context> +<context> + <name>FilesDockWidget</name> + <message> + <source>Current Folder</source> + <translation type="obsolete">Aktuelles Verzeichnis</translation> + </message> + <message> + <location filename="../src/FilesDockWidget.cpp" line="32"/> + <source>Current Directory</source> + <translation>Aktuelles Verzeichnis</translation> + </message> + <message> + <location filename="../src/FilesDockWidget.cpp" line="46"/> + <source>Move up one directory.</source> + <translation>Ein Verzeichnis höher wechseln.</translation> + </message> + <message> + <location filename="../src/FilesDockWidget.cpp" line="49"/> + <source>Enter the path or filename.</source> + <translation>Geben Sie einen Pfad oder Dateinamen ein.</translation> + </message> + <message> + <location filename="../src/FilesDockWidget.cpp" line="78"/> + <source>Doubleclick a file to open it.</source> + <translation>FĂŒhren Sie einen Doppelklick aus, um eine Datei zu öffnen.</translation> + </message> +</context> +<context> + <name>HistoryDockWidget</name> + <message> + <location filename="../src/HistoryDockWidget.cpp" line="36"/> + <source>Doubleclick a command to transfer it to the terminal.</source> + <translation>FĂŒhren Sie einen Doppelklick aus, um den Befehl in das Terminal zu ĂŒbertragen.</translation> + </message> + <message> + <location filename="../src/HistoryDockWidget.cpp" line="38"/> + <source>Enter text to filter the command history.</source> + <translation>Geben Sie Text ein, um die Befehlshistorie zu filtern.</translation> + </message> + <message> + <location filename="../src/HistoryDockWidget.cpp" line="41"/> + <source>Command History</source> + <translation>Befehlshistorie</translation> + </message> + <message> + <source>History updated.</source> + <translation type="obsolete">Befehlshistorie aktualisiert.</translation> + </message> +</context> +<context> + <name>LexerOctaveGui</name> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="111"/> + <source>Default</source> + <translation>Standard</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="113"/> + <source>Comment</source> + <translation>Kommentar</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="115"/> + <source>Command</source> + <translation>Befehl</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="117"/> + <source>Number</source> + <translation>Zahl</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="119"/> + <source>Keyword</source> + <translation>SchlĂŒsselwort</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="121"/> + <source>Single-quoted string</source> + <translation>Zeichenkette in einfachen Hochkommata</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="123"/> + <source>Operator</source> + <translation>Operator</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="125"/> + <source>Identifier</source> + <translation>Bezeichner</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="127"/> + <source>Double-quoted string</source> + <translation>Zeichenkette in doppelten Hochkommata</translation> + </message> +</context> +<context> + <name>MainWindow</name> + <message> + <location filename="../src/MainWindow.cpp" line="47"/> + <source>Opening file.</source> + <translation>Ăffne Datei.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="124"/> + <source>Save Workspace</source> + <translation>Speichere Arbeitsumgebung</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="134"/> + <source>Load Workspace</source> + <translation>Lade Arbeitsumgebung</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="226"/> + <location filename="../src/MainWindow.cpp" line="362"/> + <source>About Octave</source> + <translation>Ăber Octave</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="238"/> + <source>Saving data and shutting down.</source> + <translation>Speichere Daten und schlieĂe.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="276"/> + <source>View the variables in the active workspace.</source> + <translation>Sehen Sie die Variablen ein, die sich in der aktiven Arbeitsumgebung befinden.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="278"/> + <source>Browse and search the command history.</source> + <translation>Durchsuchen Sie die Befehlshistorie.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="280"/> + <source>Browse your files.</source> + <translation>Durchsuchen Sie Ihre Dateien.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="294"/> + <source>Terminal</source> + <translation>Terminal</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="298"/> + <source>Enter your commands into the Octave terminal.</source> + <translation>Geben Sie Ihre Befehle in das Octave Terminal ein.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="311"/> + <source>Browse the Octave documentation for help.</source> + <translation>Durchsuchen Sie die Octave Dokumentation, um Hilfe zu erhalten.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="320"/> + <source>Chat</source> + <translation>Chat</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="323"/> + <source>Instantly chat with other Octave users for help.</source> + <translation>Tauschen Sie sich direkt mit anderen Octave Benutzern aus, um Hilfe zu erhalten.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="330"/> + <source>Octave</source> + <translation>Octave</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="331"/> + <source>Settings</source> + <translation>Einstellungen</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="333"/> + <source>Exit</source> + <translation>Beenden</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="335"/> + <source>Interface</source> + <translation>OberflĂ€che</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="337"/> + <source>Align Windows</source> + <translation>Fenster ausrichten</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="339"/> + <location filename="../src/MainWindow.cpp" line="351"/> + <source>Workspace</source> + <translation>Arbeitsumgebung</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="342"/> + <source>History</source> + <translation>Befehlshistorie</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="345"/> + <source>File Browser</source> + <translation>Dateibrowser</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="349"/> + <source>Open New Editor Window</source> + <translation>Neues Editorfenster öffnen</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="352"/> + <source>Load</source> + <translation>Laden</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="353"/> + <source>Save</source> + <translation>Sichern</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="355"/> + <source>Clear</source> + <translation>Löschen</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="357"/> + <source>Community</source> + <translation>Gemeinschaft</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="358"/> + <source>Report Bug</source> + <translation>Fehler melden</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="359"/> + <source>Agora</source> + <translation>Agora</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="360"/> + <source>Octave Forge</source> + <translation>Octave Forge</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="363"/> + <source>About Qt</source> + <translation>Ăber Qt</translation> + </message> + <message> + <source>Octave Toolbar</source> + <translation type="obsolete">Octave Werkzeugleiste</translation> + </message> + <message> + <source>Command Window</source> + <translation type="obsolete">Konsolenfenster</translation> + </message> + <message> + <source>File Editor</source> + <translation type="obsolete">Dateieditor</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="307"/> + <source>Documentation</source> + <translation>Dokumentation</translation> + </message> + <message> + <source>Service</source> + <translation type="obsolete">Service</translation> + </message> + <message> + <source>Established link to Octave.</source> + <translation type="obsolete">Verbindung zu Octave hergestellt.</translation> + </message> +</context> +<context> + <name>NumberBar</name> + <message> + <source>Stop Here</source> + <translation type="obsolete">Stoppe hier</translation> + </message> + <message> + <source>Current Line</source> + <translation type="obsolete">Aktuelle Zeile</translation> + </message> + <message> + <source>Error Line</source> + <translation type="obsolete">Fehlerzeile</translation> + </message> +</context> +<context> + <name>NumberedCodeEdit</name> + <message> + <source>This file name is not valid.</source> + <translation type="obsolete">Dieser Dateiname ist nicht gĂŒltig.</translation> + </message> + <message> + <source>Octave doesn't understand this file name: +</source> + <translation type="obsolete">Octave versteht diesen Dateityp nicht:</translation> + </message> + <message> + <source> +Please, change it. + Do you want to save your changes?</source> + <translation type="obsolete">Bitte Ă€ndern Sie dies. Möchten Sie Ihre Ănderungen sichern?</translation> + </message> +</context> +<context> + <name>SettingsDialog</name> + <message> + <location filename="../src/SettingsDialog.ui" line="29"/> + <source>Settings</source> + <translation>Einstellungen</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="39"/> + <source>Chat</source> + <translation>Char</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="47"/> + <source>Connect to #octave on startup</source> + <translation>Beim Start mit #octave verbinden</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="57"/> + <source>Show message of the day</source> + <translation>Nachricht des Tages anzeigen (MOTD)</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="64"/> + <source>Show topic</source> + <translation>Thema des Chatkanals anzeigen</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="71"/> + <source>Automatically identify on NickServ</source> + <translation>Automatisch bei NickServ identifizieren</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="78"/> + <source>Warning: Your password will be stored in ~/.octavegui in human-readable format. Do not enter your password if you worry about security issues.</source> + <translation>Warnung: Ihre Passwort wird unter ~/.octave-gui in einem menschenlesbaren Format gesichert. Hinterlegen Sie nicht Ihr Password, wenn Sie Bedenken ĂŒber die Sicherheit haben.</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="103"/> + <location filename="../src/SettingsDialog.ui" line="311"/> + <source>Password:</source> + <translation>Passwort:</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="125"/> + <source>Editor</source> + <translation>Editor</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="133"/> + <source>Use custom file editor:</source> + <translation>Benutzerdefinierten Editor verwenden:</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="143"/> + <source>emacs</source> + <translation>emacs</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="166"/> + <source>File Browser</source> + <translation>Dateibrowser</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="172"/> + <source>Show filenames</source> + <translation>Dateinamen anzeigen</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="179"/> + <source>Show file size</source> + <translation>DateigröĂe anzeigen</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="186"/> + <source>Show file type</source> + <translation>Dateityp anzeigen</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="193"/> + <source>Show date of last modification</source> + <translation>Datum der letzten Ănderung anzeigen</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="200"/> + <source>Show hidden files</source> + <translation>Versteckte Dateien anzeigen</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="207"/> + <source>Alternating row colors</source> + <translation>Alternierende Farben verwenden</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="215"/> + <source>Network</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="221"/> + <source>Use proxy server</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="233"/> + <source>Proxy Type:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="244"/> + <source>HttpProxy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="249"/> + <source>Socks5Proxy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="260"/> + <source>Hostname:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="277"/> + <source>Port:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="294"/> + <source>Username:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="339"/> + <source>Reset to defaults</source> + <translation>Standardeinstellungen wiederherstellen</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="362"/> + <source>Export</source> + <translation>Exportieren</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="372"/> + <source>Import</source> + <translation>Importieren</translation> + </message> +</context> +<context> + <name>VariablesDockWidget</name> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="40"/> + <source>Name</source> + <translation>Bezeichner</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="40"/> + <source>Type</source> + <translation>Typ</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="40"/> + <source>Value</source> + <translation>Wert</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="36"/> + <source>Workspace</source> + <translation>Arbeitsumgebung</translation> + </message> + <message> + <source>Save</source> + <translation type="obsolete">Sichern</translation> + </message> + <message> + <source>Load</source> + <translation type="obsolete">Laden</translation> + </message> + <message> + <source>Clear</source> + <translation type="obsolete">Löschen</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="52"/> + <source>Local</source> + <translation>Lokal</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="56"/> + <source>Global</source> + <translation>Global</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="60"/> + <source>Persistent</source> + <translation>Persistent</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="64"/> + <source>Hidden</source> + <translation>Versteckt</translation> + </message> +</context> +</TS>
new file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..7fbf74ee61166c382a369dbfe80f7d2796451295 GIT binary patch literal 9411 zc$}?S3yd6f8UOa!y~lQMuXlYP<vM`f*sDG0X{B69;d<8>wAXUiUM*=VvortQ9XdO+ z%;T<G!JrZZK|%zBiAn;EfRLaF5()~{lvrOt0%|ZQ5(5zl5<z3B3V#3ZKf5!#H?zAH z+U(8l&V29R_xkTekE=_6@%FdA{_C@sKYiuhKmNl;fVPv+cJwK{4nh2`>j8QUab0>h z#P53%Abt?y&&2_HS3+W)1JHL05?j{+NLNAP8_xhN8i2$xhM)fmgZGvJU^fgtiO<8= zVDR~sczqsL-~2s**xz9FalD?<4_jXU0zmgAaOvtVqP$<i)V^zw{*$o(OFslSdjRwc zjsUFqDt!Co1VHCa@Rvt6Al)nQZgCmFS@*@xJ^mel)MK&dUq}7s-5Gmp1Ik~tvu(+- zMF0zqw%zmZA%MjXw>|b1d@lBI+worw0HpWDxA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GiQ4yE;St`M&lCJfF2c`;`_*mKzi#bV`ZAU7as+PlKtPJL1>I~0O$Dy2; zF*as6UILAbi=@+3TRY66L=1(9&<H;*vv<m+NcNwe!#;QnYd6KbFNUAJM#k;@Ib!Pf zM9JHgbkU@JfRTWLreZx5TVv~<62;f1PEt8j7Msvpfy%dpB%t!PoTu>f4yMZGC^<_* zB0|H0KQR$U$1G_|G?4d@Vpi?U80BxuM^VyEZ=uuRa3vc9Rba^;oBu+Ct4>h_pHYPj zuL&REzbfUedu5A{lOxhTz6F-NYJw|=u1i@2DY9WI@9>{LZ%EYbysPog1sC_lHT-us zJ_PVx1l!n<G;T`#M=<7ZmQ|iwPW-fFT2@(->FCI2ifiE}EorvxdPf6cj!SxjnG(QA zf)!;Y5*H~P2X)%Ef&*0h7TwH>@oB+yWqzqU<rNEuhe@AuD}k{gWfF%_lPZlbF|plL znhKoov(InM6PQ{J=@!$^-Bw_BrJ2JA<StwiasTzsmLvIe;=D=4#h1O?D;^C@tsYAI XrcTSc+nDUbOn;$FZ^RpIvDp6ra)cJ@
new file mode 100644 --- /dev/null +++ b/gui/languages/es-es.ts @@ -0,0 +1,576 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="es_MX"> +<context> + <name>FileEditorMdiSubWindow</name> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="114"/> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="207"/> + <source>File Editor</source> + <translation>Editor de archivos</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="115"/> + <source>Cannot read file %1: +%2.</source> + <translation>No se puede leer archivo %1: +%2.</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="127"/> + <source>File loaded.</source> + <translation>Archivo cargado.</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="153"/> + <source>Do you want to save the current file +%1 ?</source> + <translation>ÂżDesea guardar archivo actual +%1 ?</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="208"/> + <source>Cannot write file %1: +%2.</source> + <translation>No se puede escribir archivo %1: +%2.</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="220"/> + <source>File %1 saved</source> + <translation>Archivo %1 guardado</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="383"/> + <source>&Close File</source> + <translation>&Cerrar archivo</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="386"/> + <source>&New File</source> + <translation>Archivo &nuevo</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="389"/> + <source>&Open File</source> + <translation>&Abrir archivo</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="392"/> + <source>&Save File</source> + <translation>&Guardar archivo</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="395"/> + <source>Save File &As</source> + <translatorcomment>Search for proper shortcut for this command</translatorcomment> + <translation>Guardar archivo &como</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="398"/> + <source>&Undo</source> + <translation>&Deshacer</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="401"/> + <source>&Redo</source> + <translation>&Rehacer</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="402"/> + <source>&Copy</source> + <translation>&Copiar</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="403"/> + <source>Cu&t</source> + <translation>Cor&tar</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="404"/> + <source>&Paste</source> + <translation>&Pegar</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="405"/> + <source>&Next Bookmark</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="406"/> + <source>Pre&vious Bookmark</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="407"/> + <source>Toggle &Bookmark</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="410"/> + <source>&Run File</source> + <translation>&Ejecutar archivo</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="449"/> + <source>&File</source> + <translation>&Archivo</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="457"/> + <source>&Edit</source> + <translation>&Editar</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="469"/> + <source>&Run</source> + <translation>&Ejecutar</translation> + </message> +</context> +<context> + <name>FilesDockWidget</name> + <message> + <source>Current Folder</source> + <translation type="obsolete">Carpeta actual</translation> + </message> + <message> + <location filename="../src/FilesDockWidget.cpp" line="32"/> + <source>Current Directory</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FilesDockWidget.cpp" line="46"/> + <source>Move up one directory.</source> + <translation>Subir un directorio.</translation> + </message> + <message> + <location filename="../src/FilesDockWidget.cpp" line="49"/> + <source>Enter the path or filename.</source> + <translation>Introduzca direcciĂłn o nombre de archivo.</translation> + </message> + <message> + <location filename="../src/FilesDockWidget.cpp" line="78"/> + <source>Doubleclick a file to open it.</source> + <translation>Haga doble clic para abir archivo.</translation> + </message> +</context> +<context> + <name>HistoryDockWidget</name> + <message> + <location filename="../src/HistoryDockWidget.cpp" line="36"/> + <source>Doubleclick a command to transfer it to the terminal.</source> + <translation>Haga doble clic para transferir el comando a la terminal.</translation> + </message> + <message> + <location filename="../src/HistoryDockWidget.cpp" line="38"/> + <source>Enter text to filter the command history.</source> + <translation>Introduzca texto para filtrar el historial de comandos.</translation> + </message> + <message> + <location filename="../src/HistoryDockWidget.cpp" line="41"/> + <source>Command History</source> + <translation>Historial de comandos</translation> + </message> +</context> +<context> + <name>LexerOctaveGui</name> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="111"/> + <source>Default</source> + <translation>Valores predeterminados</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="113"/> + <source>Comment</source> + <translation>Comentario</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="115"/> + <source>Command</source> + <translation>Comando</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="117"/> + <source>Number</source> + <translation>NĂșmero</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="119"/> + <source>Keyword</source> + <translation>Contraseña</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="121"/> + <source>Single-quoted string</source> + <translation>Cadena entre comillas simples</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="123"/> + <source>Operator</source> + <translation>Operador</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="125"/> + <source>Identifier</source> + <translation>Identificador</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="127"/> + <source>Double-quoted string</source> + <translation>Cadena entre comillas dobles</translation> + </message> +</context> +<context> + <name>MainWindow</name> + <message> + <location filename="../src/MainWindow.cpp" line="47"/> + <source>Opening file.</source> + <translation>Abriendo archivo.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="124"/> + <source>Save Workspace</source> + <translation>Guardar espacio de trabajo</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="134"/> + <source>Load Workspace</source> + <translation>Cargar espacio de trabajo</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="226"/> + <location filename="../src/MainWindow.cpp" line="362"/> + <source>About Octave</source> + <translation>Acerca de Octave</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="238"/> + <source>Saving data and shutting down.</source> + <translation>Guardando datos y cerrando el sistema.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="276"/> + <source>View the variables in the active workspace.</source> + <translation>Ver variables en el espacio de trabajo activo.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="278"/> + <source>Browse and search the command history.</source> + <translation>Navegar y buscar en el historial de comandos.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="280"/> + <source>Browse your files.</source> + <translation>Explorar sus archivos.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="294"/> + <source>Terminal</source> + <translation>Terminal</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="298"/> + <source>Enter your commands into the Octave terminal.</source> + <translation>Introducir su comando a la terminal de Octave.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="307"/> + <source>Documentation</source> + <translation>DocumentaciĂłn</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="311"/> + <source>Browse the Octave documentation for help.</source> + <translation>Consultar la documentaciĂłn de Octave para obtener ayuda.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="320"/> + <source>Chat</source> + <translation>Chat/conversaciĂłn instantanea</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="323"/> + <source>Instantly chat with other Octave users for help.</source> + <translation>CoversaciĂłn instantanea con otros usuarios de octave para obtener ayuda.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="330"/> + <source>Octave</source> + <translation>Octave</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="331"/> + <source>Settings</source> + <translation>ConfiguraciĂłn</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="333"/> + <source>Exit</source> + <translation>Salir</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="335"/> + <source>Interface</source> + <translation>Interfase</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="337"/> + <source>Align Windows</source> + <translation>Alinear ventanas</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="339"/> + <location filename="../src/MainWindow.cpp" line="351"/> + <source>Workspace</source> + <translation>Espacio de trabajo</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="342"/> + <source>History</source> + <translation>Historial</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="345"/> + <source>File Browser</source> + <translation>Explorador de archivos</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="349"/> + <source>Open New Editor Window</source> + <translation>Abrir nueva ventana de editor</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="352"/> + <source>Load</source> + <translation>Cargar</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="353"/> + <source>Save</source> + <translation>Guardar</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="355"/> + <source>Clear</source> + <translation>Limpiar</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="357"/> + <source>Community</source> + <translation>Comunidad</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="358"/> + <source>Report Bug</source> + <translation>Reportar error de software/Bug</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="359"/> + <source>Agora</source> + <translation>Ăgora</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="360"/> + <source>Octave Forge</source> + <translation>Octave Forge</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="363"/> + <source>About Qt</source> + <translation>Acerca de Qt</translation> + </message> +</context> +<context> + <name>SettingsDialog</name> + <message> + <location filename="../src/SettingsDialog.ui" line="29"/> + <source>Settings</source> + <translation>ConfiguraciĂłn</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="39"/> + <source>Chat</source> + <translation>Chat/conversaciĂłn instantanea</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="47"/> + <source>Connect to #octave on startup</source> + <translation>Conectar a #octave en el arranque</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="57"/> + <source>Show message of the day</source> + <translation>Mostrar mensaje del dĂa</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="64"/> + <source>Show topic</source> + <translation>Mostrar tema</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="71"/> + <source>Automatically identify on NickServ</source> + <translation>Identificar automĂĄticamente el NickServ</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="78"/> + <source>Warning: Your password will be stored in ~/.octavegui in human-readable format. Do not enter your password if you worry about security issues.</source> + <translatorcomment>Advertencia: La contraseña se guarda en ~ / octavegui en formato legible. No introduzca su contraseña en caso de que le preocupen los aspectos de seguridad.</translatorcomment> + <translation></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="103"/> + <location filename="../src/SettingsDialog.ui" line="311"/> + <source>Password:</source> + <translation>Contraseña:</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="125"/> + <source>Editor</source> + <translation>Editor</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="133"/> + <source>Use custom file editor:</source> + <translation>Usar editor de archivos personalizados:</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="143"/> + <source>emacs</source> + <translation>emacs</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="166"/> + <source>File Browser</source> + <translation>Explorador de archivos</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="172"/> + <source>Show filenames</source> + <translation>Mostrar nombres de archivos</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="179"/> + <source>Show file size</source> + <translation>Mostrar tamaño de archivo</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="186"/> + <source>Show file type</source> + <translation>Mostrar tipo de archivo</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="193"/> + <source>Show date of last modification</source> + <translation>Mostrar fecha de la Ășltima modificaciĂłn</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="200"/> + <source>Show hidden files</source> + <translation>Mostrar archivos ocultos</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="207"/> + <source>Alternating row colors</source> + <translation>Colores alternos de filas</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="215"/> + <source>Network</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="221"/> + <source>Use proxy server</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="233"/> + <source>Proxy Type:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="244"/> + <source>HttpProxy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="249"/> + <source>Socks5Proxy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="260"/> + <source>Hostname:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="277"/> + <source>Port:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="294"/> + <source>Username:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="339"/> + <source>Reset to defaults</source> + <translation>Restaurar los valores predeterminados</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="362"/> + <source>Export</source> + <translation>Exportar</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="372"/> + <source>Import</source> + <translation>Importar</translation> + </message> +</context> +<context> + <name>VariablesDockWidget</name> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="36"/> + <source>Workspace</source> + <translation>Espacio de trabajo</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="40"/> + <source>Name</source> + <translation>Nombre</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="40"/> + <source>Type</source> + <translation>Tipo</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="40"/> + <source>Value</source> + <translation>Valor</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="52"/> + <source>Local</source> + <translation>Local</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="56"/> + <source>Global</source> + <translation>Global</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="60"/> + <source>Persistent</source> + <translation>Persistente</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="64"/> + <source>Hidden</source> + <translation>Oculto</translation> + </message> +</context> +</TS>
new file mode 100644 --- /dev/null +++ b/gui/languages/generic.qm @@ -0,0 +1,1 @@ +<ždÊïÍ!ż`ĄœĘ \ No newline at end of file
new file mode 100644 --- /dev/null +++ b/gui/languages/generic.ts @@ -0,0 +1,567 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0"> +<context> + <name>FileEditorMdiSubWindow</name> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="114"/> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="207"/> + <source>File Editor</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="115"/> + <source>Cannot read file %1: +%2.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="127"/> + <source>File loaded.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="153"/> + <source>Do you want to save the current file +%1 ?</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="208"/> + <source>Cannot write file %1: +%2.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="220"/> + <source>File %1 saved</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="383"/> + <source>&Close File</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="386"/> + <source>&New File</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="389"/> + <source>&Open File</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="392"/> + <source>&Save File</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="395"/> + <source>Save File &As</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="398"/> + <source>&Undo</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="401"/> + <source>&Redo</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="402"/> + <source>&Copy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="403"/> + <source>Cu&t</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="404"/> + <source>&Paste</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="405"/> + <source>&Next Bookmark</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="406"/> + <source>Pre&vious Bookmark</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="407"/> + <source>Toggle &Bookmark</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="410"/> + <source>&Run File</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="449"/> + <source>&File</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="457"/> + <source>&Edit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="469"/> + <source>&Run</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>FilesDockWidget</name> + <message> + <location filename="../src/FilesDockWidget.cpp" line="32"/> + <source>Current Directory</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FilesDockWidget.cpp" line="46"/> + <source>Move up one directory.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FilesDockWidget.cpp" line="49"/> + <source>Enter the path or filename.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FilesDockWidget.cpp" line="78"/> + <source>Doubleclick a file to open it.</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>HistoryDockWidget</name> + <message> + <location filename="../src/HistoryDockWidget.cpp" line="36"/> + <source>Doubleclick a command to transfer it to the terminal.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/HistoryDockWidget.cpp" line="38"/> + <source>Enter text to filter the command history.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/HistoryDockWidget.cpp" line="41"/> + <source>Command History</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>LexerOctaveGui</name> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="111"/> + <source>Default</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="113"/> + <source>Comment</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="115"/> + <source>Command</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="117"/> + <source>Number</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="119"/> + <source>Keyword</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="121"/> + <source>Single-quoted string</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="123"/> + <source>Operator</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="125"/> + <source>Identifier</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="127"/> + <source>Double-quoted string</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>MainWindow</name> + <message> + <location filename="../src/MainWindow.cpp" line="47"/> + <source>Opening file.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="124"/> + <source>Save Workspace</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="134"/> + <source>Load Workspace</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="226"/> + <location filename="../src/MainWindow.cpp" line="362"/> + <source>About Octave</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="238"/> + <source>Saving data and shutting down.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="276"/> + <source>View the variables in the active workspace.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="278"/> + <source>Browse and search the command history.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="280"/> + <source>Browse your files.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="294"/> + <source>Terminal</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="298"/> + <source>Enter your commands into the Octave terminal.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="307"/> + <source>Documentation</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="311"/> + <source>Browse the Octave documentation for help.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="320"/> + <source>Chat</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="323"/> + <source>Instantly chat with other Octave users for help.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="330"/> + <source>Octave</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="331"/> + <source>Settings</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="333"/> + <source>Exit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="335"/> + <source>Interface</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="337"/> + <source>Align Windows</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="339"/> + <location filename="../src/MainWindow.cpp" line="351"/> + <source>Workspace</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="342"/> + <source>History</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="345"/> + <source>File Browser</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="349"/> + <source>Open New Editor Window</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="352"/> + <source>Load</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="353"/> + <source>Save</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="355"/> + <source>Clear</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="357"/> + <source>Community</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="358"/> + <source>Report Bug</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="359"/> + <source>Agora</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="360"/> + <source>Octave Forge</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="363"/> + <source>About Qt</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>SettingsDialog</name> + <message> + <location filename="../src/SettingsDialog.ui" line="29"/> + <source>Settings</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="39"/> + <source>Chat</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="47"/> + <source>Connect to #octave on startup</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="57"/> + <source>Show message of the day</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="64"/> + <source>Show topic</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="71"/> + <source>Automatically identify on NickServ</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="78"/> + <source>Warning: Your password will be stored in ~/.octavegui in human-readable format. Do not enter your password if you worry about security issues.</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="103"/> + <location filename="../src/SettingsDialog.ui" line="311"/> + <source>Password:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="125"/> + <source>Editor</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="133"/> + <source>Use custom file editor:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="143"/> + <source>emacs</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="166"/> + <source>File Browser</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="172"/> + <source>Show filenames</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="179"/> + <source>Show file size</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="186"/> + <source>Show file type</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="193"/> + <source>Show date of last modification</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="200"/> + <source>Show hidden files</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="207"/> + <source>Alternating row colors</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="215"/> + <source>Network</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="221"/> + <source>Use proxy server</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="233"/> + <source>Proxy Type:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="244"/> + <source>HttpProxy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="249"/> + <source>Socks5Proxy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="260"/> + <source>Hostname:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="277"/> + <source>Port:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="294"/> + <source>Username:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="339"/> + <source>Reset to defaults</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="362"/> + <source>Export</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="372"/> + <source>Import</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>VariablesDockWidget</name> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="36"/> + <source>Workspace</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="40"/> + <source>Name</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="40"/> + <source>Type</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="40"/> + <source>Value</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="52"/> + <source>Local</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="56"/> + <source>Global</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="60"/> + <source>Persistent</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="64"/> + <source>Hidden</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS>
new file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..83d512baa96d8ad07afa2ef66532922ed0ddcb01 GIT binary patch literal 8860 zc$}?S4U8OR8Gi4&d%fH4-d&G!El0VIU@xV$2UH5!kdo_Ne`&9!SFX?y<lC8VcZbf- zEc0`J5JXfokq{M#28BebNN55^P*D(xDO!mF5u&1^k|Kzt!B`u9jOhEl-?uxndoz32 zXqxNn&dmGwy#L=``na*|*|)!T_b)%R{KwaQ{YS5C0%(02QulotAh%0id)Gng`4m9s zvyfiz19aaD>22!)`fr5vSDpdrIRxpaIevc!)_ndE05}0_j^MTBHrV?5Cjl1euw%`w z$Zrb9uD%K18-Z&+^<97!Yrwkr5WrdY!M*Q}0<^sbe|>Z#%HIzs%4Y!dJ=Jo~k#7QI zUTt~d^_KuTe%f+;Bg*OdRqN8HPX}0BYQ6tog8)k|Y(4Ueet@iz+S&Iq%6TyL#G*Xv z{YvWjiMs%n_N0zog>uh&A@%k{Poexw>fMeWfCb0XDSG~m^tpp~ApPId2OdOw7GIpc z=8~VF+)VoL`c{<tiS&z;*P{Ka(r=BQKzqK}cIPucLp}0sN56p2Gnci!RQdqm%#&@u zdkUZT9a#9;+fkp?)`f?!Jq@q-FZ}aYKaO^tXwSU(5WeTMKk)c{Xz$AQm*4p#K)SX4 zO+fiww|1=l*h#eKxAM9o-*IhuGvWyy7W*g4UDa{Rdv_xJK*wV(zrnkG9e>*QE!6jL zrt9btwCj;f-|G+Kd%w>Zm!QAe?Tm5h61+Z;d3fXdXy+@LCvQjpwZE1*`en4UTVJ&9 zhd)3)K9g;m5pwR&Uh*HLKW%+>ViIw0`Dk_~XXEu~_Lf7x1~~oB>|HH?z~}$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biQt!Yujo$c{$9THeQ{l8qQ|r zN~5wdq})bn*pxDZVeL?L4JD>`I{F*}+v!K*a%2TcjbcG*O4CbcS}q+7dK3jT^@J(7 x2iH;Dwbf~G6WRM@F%4z!Q^m50nd6iR(ODur&a9w0+5b9;#xnjKK4@Lg@?TSErf~oO
new file mode 100644 --- /dev/null +++ b/gui/languages/pt-br.ts @@ -0,0 +1,571 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="pt_BR" sourcelanguage="en"> +<context> + <name>FileEditorMdiSubWindow</name> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="114"/> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="207"/> + <source>File Editor</source> + <translation>Editor de Arquivos</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="115"/> + <source>Cannot read file %1: +%2.</source> + <translation>NĂŁo foi possĂvel ler o arquivo %1: %2.</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="127"/> + <source>File loaded.</source> + <translation>Arquivo carregado.</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="153"/> + <source>Do you want to save the current file +%1 ?</source> + <translation>VocĂȘ deseja salvar o arquivo atual %1 ?</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="208"/> + <source>Cannot write file %1: +%2.</source> + <translation>NĂŁo foi possĂvel escrever no arquivo %1: %2.</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="220"/> + <source>File %1 saved</source> + <translation>Arquivo %1 salvo</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="383"/> + <source>&Close File</source> + <translation>&Fechar Arquivo</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="386"/> + <source>&New File</source> + <translation>&Novo Arquivo</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="389"/> + <source>&Open File</source> + <translation>&Abrir Arquivo</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="392"/> + <source>&Save File</source> + <translation>&Salvar Arquivo</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="395"/> + <source>Save File &As</source> + <translation>Salvar Arquivo &Como</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="398"/> + <source>&Undo</source> + <translation>&Desfazer</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="401"/> + <source>&Redo</source> + <translation>&Refazer</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="402"/> + <source>&Copy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="403"/> + <source>Cu&t</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="404"/> + <source>&Paste</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="405"/> + <source>&Next Bookmark</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="406"/> + <source>Pre&vious Bookmark</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="407"/> + <source>Toggle &Bookmark</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="410"/> + <source>&Run File</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="449"/> + <source>&File</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="457"/> + <source>&Edit</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="469"/> + <source>&Run</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>FilesDockWidget</name> + <message> + <source>Current Folder</source> + <translation type="obsolete">DiretĂłrio Atual</translation> + </message> + <message> + <location filename="../src/FilesDockWidget.cpp" line="32"/> + <source>Current Directory</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/FilesDockWidget.cpp" line="46"/> + <source>Move up one directory.</source> + <translation>Subir um diretĂłrio.</translation> + </message> + <message> + <location filename="../src/FilesDockWidget.cpp" line="49"/> + <source>Enter the path or filename.</source> + <translation>Digite o caminho ou o nome do arquivo.</translation> + </message> + <message> + <location filename="../src/FilesDockWidget.cpp" line="78"/> + <source>Doubleclick a file to open it.</source> + <translation>Clique duas vezes num arquivo para abrĂ-lo.</translation> + </message> +</context> +<context> + <name>HistoryDockWidget</name> + <message> + <location filename="../src/HistoryDockWidget.cpp" line="36"/> + <source>Doubleclick a command to transfer it to the terminal.</source> + <translation>Clique duas vezes num comando para transferĂ-lo ao terminal.</translation> + </message> + <message> + <location filename="../src/HistoryDockWidget.cpp" line="38"/> + <source>Enter text to filter the command history.</source> + <translation>Digite um texto para filtrar o hitĂłrico de comandos.</translation> + </message> + <message> + <location filename="../src/HistoryDockWidget.cpp" line="41"/> + <source>Command History</source> + <translation>HistĂłrico de Comandos</translation> + </message> +</context> +<context> + <name>LexerOctaveGui</name> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="111"/> + <source>Default</source> + <translation>PadrĂŁo</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="113"/> + <source>Comment</source> + <translation>ComentĂĄrio</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="115"/> + <source>Command</source> + <translation>Comando</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="117"/> + <source>Number</source> + <translation>NĂșmero</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="119"/> + <source>Keyword</source> + <translation>Palavra-Chave</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="121"/> + <source>Single-quoted string</source> + <translation>String com aspas simples</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="123"/> + <source>Operator</source> + <translation>Operador</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="125"/> + <source>Identifier</source> + <translation>Identificador</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="127"/> + <source>Double-quoted string</source> + <translation>String com aspas duplas</translation> + </message> +</context> +<context> + <name>MainWindow</name> + <message> + <location filename="../src/MainWindow.cpp" line="47"/> + <source>Opening file.</source> + <translation>Abrindo arquivo.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="124"/> + <source>Save Workspace</source> + <translation>Salvar ambiente de trabalho</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="134"/> + <source>Load Workspace</source> + <translation>Carregar ambiente de trabalho</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="226"/> + <location filename="../src/MainWindow.cpp" line="362"/> + <source>About Octave</source> + <translation>Sobre o Octave</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="238"/> + <source>Saving data and shutting down.</source> + <translation>Salvando dados e encerrando a sessĂŁo.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="276"/> + <source>View the variables in the active workspace.</source> + <translation>Visualizar variĂĄveis no ambiente de trabalho.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="278"/> + <source>Browse and search the command history.</source> + <translation>Pesquise no histĂłrico de comandos.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="280"/> + <source>Browse your files.</source> + <translation>Procure seus arquivos.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="294"/> + <source>Terminal</source> + <translation>Terminal</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="298"/> + <source>Enter your commands into the Octave terminal.</source> + <translation>Digite seus comandos no terminal do Octave.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="307"/> + <source>Documentation</source> + <translation>Documentação</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="311"/> + <source>Browse the Octave documentation for help.</source> + <translation>Procure na documentação do Octave.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="320"/> + <source>Chat</source> + <translation>Chat</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="323"/> + <source>Instantly chat with other Octave users for help.</source> + <translation>Converse instantaneamente com outros usuĂĄrios do Octave para pedir ajuda.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="330"/> + <source>Octave</source> + <translation>Octave</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="331"/> + <source>Settings</source> + <translation>ConfiguraçÔes</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="333"/> + <source>Exit</source> + <translation>Sair</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="335"/> + <source>Interface</source> + <translation>Interface</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="337"/> + <source>Align Windows</source> + <translation>Alinhar Janelas</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="339"/> + <location filename="../src/MainWindow.cpp" line="351"/> + <source>Workspace</source> + <translation>Ambiente de trabalho</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="342"/> + <source>History</source> + <translation>HistĂłrico</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="345"/> + <source>File Browser</source> + <translation>Navegador de Arquivos</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="349"/> + <source>Open New Editor Window</source> + <translation>Abrir nova janela de edição</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="352"/> + <source>Load</source> + <translation>Carregar</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="353"/> + <source>Save</source> + <translation>Salvar</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="355"/> + <source>Clear</source> + <translation>Limpar</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="357"/> + <source>Community</source> + <translation>Comunidade</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="358"/> + <source>Report Bug</source> + <translation>Reportar Bug</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="359"/> + <source>Agora</source> + <translation>Agora</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="360"/> + <source>Octave Forge</source> + <translation>Octave Forge</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="363"/> + <source>About Qt</source> + <translation>Sobre o Qt</translation> + </message> +</context> +<context> + <name>SettingsDialog</name> + <message> + <location filename="../src/SettingsDialog.ui" line="29"/> + <source>Settings</source> + <translation>ConfiguraçÔes</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="39"/> + <source>Chat</source> + <translation>Chat</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="47"/> + <source>Connect to #octave on startup</source> + <translation>Conectar ao #octave ao iniciar</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="57"/> + <source>Show message of the day</source> + <translation>Mostrar mensagem do dia</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="64"/> + <source>Show topic</source> + <translation>Mostrar tĂłpico</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="71"/> + <source>Automatically identify on NickServ</source> + <translation>Identificar-se automaticamente com o NickServ</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="78"/> + <source>Warning: Your password will be stored in ~/.octavegui in human-readable format. Do not enter your password if you worry about security issues.</source> + <translation>Aviso: Sua senha serĂĄ salva em ~/.octavegui em um formato legĂvel. NĂŁo digite sua senha se vocĂȘ tem problemas com segurança.</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="103"/> + <location filename="../src/SettingsDialog.ui" line="311"/> + <source>Password:</source> + <translation>Senha:</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="125"/> + <source>Editor</source> + <translation>Editor</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="133"/> + <source>Use custom file editor:</source> + <translation>Usar editor de arquivos personalizado:</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="143"/> + <source>emacs</source> + <translation>emacs</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="166"/> + <source>File Browser</source> + <translation>Navegador de Arquivos</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="172"/> + <source>Show filenames</source> + <translation>Mostrar nomes de arquivo</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="179"/> + <source>Show file size</source> + <translation>Mostrar tamanho do arquivo</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="186"/> + <source>Show file type</source> + <translation>Mostrar tipo do arquivo</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="193"/> + <source>Show date of last modification</source> + <translation>Mostrar data de Ășltima modificação</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="200"/> + <source>Show hidden files</source> + <translation>Mostrar arquivos ocultos</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="207"/> + <source>Alternating row colors</source> + <translation>Alternar cores das linhas</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="215"/> + <source>Network</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="221"/> + <source>Use proxy server</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="233"/> + <source>Proxy Type:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="244"/> + <source>HttpProxy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="249"/> + <source>Socks5Proxy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="260"/> + <source>Hostname:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="277"/> + <source>Port:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="294"/> + <source>Username:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="339"/> + <source>Reset to defaults</source> + <translation>Resetar ao padrĂŁo</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="362"/> + <source>Export</source> + <translation>Exportar</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="372"/> + <source>Import</source> + <translation>Importar</translation> + </message> +</context> +<context> + <name>VariablesDockWidget</name> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="36"/> + <source>Workspace</source> + <translation>Ambiente de trabalho</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="40"/> + <source>Name</source> + <translation>Nome</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="40"/> + <source>Type</source> + <translation>Tipo</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="40"/> + <source>Value</source> + <translation>Valor</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="52"/> + <source>Local</source> + <translation>Local</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="56"/> + <source>Global</source> + <translation>Global</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="60"/> + <source>Persistent</source> + <translation>Persistente</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="64"/> + <source>Hidden</source> + <translation>Oculto</translation> + </message> +</context> +</TS>
new file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..de3a769e3f6ba4f834ed1e7a6066bb9c0e6beeee GIT binary patch literal 9784 zc$}qKeQX=$8Gn<$&W95_iJPWrX~VUphPE_yLejWy?8J6HmyongX$PvhUhGS9s^bfH z=cFkN!G<(67($}ckT#g08bwrsX=RA68$(msx^8?-pdnx%NC*V#5Yk{93;}!I=RNz* z&Ry(|Ka#W0_degx@A<gyXOhhqKm5`6U)Zqj*GC@y)n8+TtY{|XXP+gcTqE?MI|->5 z__g^@gr0hp5c&Y2FHu4o9we?#osg9Q;u`8CWWyuG^}zFltQsJ$=OjWl2FTV&7YQK) zWa~M2p4>yWzPuT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7l(&^;H5yDQle~>wc_7=vE!qBV$Ypxo*&$5qWzYKP6-L%A z<?R|(5=B^-vQ?#H0A9;dX~K16ey?T~#JvZGW|-TJO|&DO3c8WOwaIzE0m_ai>S6e0 pN@oGX?3Y{z#8hVa!(XL4wk3KO{NQOQ`+Q5ymyPB0^K0EJ{|7cAT@U~O
new file mode 100644 --- /dev/null +++ b/gui/languages/ru-ru.ts @@ -0,0 +1,574 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="ru_RU"> +<context> + <name>FileEditorMdiSubWindow</name> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="114"/> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="207"/> + <source>File Editor</source> + <translation>РДЎаĐșŃĐŸŃ ŃĐ°ĐčĐ»ĐŸĐČ</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="115"/> + <source>Cannot read file %1: +%2.</source> + <translation>ĐĐ” ŃĐŽĐ°Đ»ĐŸŃŃ ĐżŃĐŸŃĐžŃĐ°ŃŃ ŃĐ°ĐčĐ» %1: +%2.</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="127"/> + <source>File loaded.</source> + <translation>ЀаĐčĐ» Đ·Đ°ĐłŃŃĐ¶Đ”Đœ.</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="153"/> + <source>Do you want to save the current file +%1 ?</source> + <translation>ĐĄĐŸŃ ŃĐ°ĐœĐžŃŃ ŃĐ”ĐșŃŃĐžĐč ŃĐ°ĐčĐ» +%1?</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="208"/> + <source>Cannot write file %1: +%2.</source> + <translation>ĐĐ” ŃĐŽĐ°Đ»ĐŸŃŃ ŃĐŸŃ ŃĐ°ĐœĐžŃŃ ŃĐ°ĐčĐ» %1: +%2.</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="220"/> + <source>File %1 saved</source> + <translation>ЀаĐčĐ» %1 ŃĐŸŃ ŃĐ°ĐœŃĐœ</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="383"/> + <source>&Close File</source> + <translation>&ĐĐ°ĐșŃŃŃŃ</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="386"/> + <source>&New File</source> + <translation>ĐĄĐŸĐ·ĐŽ&Đ°ŃŃ</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="389"/> + <source>&Open File</source> + <translation>&ĐŃĐșŃŃŃŃ</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="392"/> + <source>&Save File</source> + <translation>&ĐĄĐŸŃ ŃĐ°ĐœĐžŃŃ</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="395"/> + <source>Save File &As</source> + <translation>ĐĄĐŸŃ ŃĐ°ĐœĐžŃŃ &ĐșĐ°Đș</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="398"/> + <source>&Undo</source> + <translation>Đ&ŃĐŒĐ”ĐœĐžŃŃ</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="401"/> + <source>&Redo</source> + <translation>&ĐĐŸĐČŃĐŸŃĐžŃŃ</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="402"/> + <source>&Copy</source> + <translation>&ĐĐŸĐżĐžŃĐŸĐČĐ°ŃŃ</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="403"/> + <source>Cu&t</source> + <translation>ĐŃ&ŃДзаŃŃ</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="404"/> + <source>&Paste</source> + <translation>&ĐŃŃĐ°ĐČĐžŃŃ</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="405"/> + <source>&Next Bookmark</source> + <translation>ĐĄ&лДЎŃŃŃĐ°Ń Đ·Đ°ĐșлаЎĐșĐ°</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="406"/> + <source>Pre&vious Bookmark</source> + <translation>ĐŃ&ДЎŃĐŽŃŃĐ°Ń Đ·Đ°ĐșлаЎĐșĐ°</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="407"/> + <source>Toggle &Bookmark</source> + <translation>&ĐŁŃŃĐ°ĐœĐŸĐČĐžŃŃ/ŃĐœŃŃŃ Đ·Đ°ĐșлаЎĐșŃ</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="410"/> + <source>&Run File</source> + <translation>&ĐĐ°ĐżŃŃŃĐžŃŃ ŃĐ°ĐčĐ»</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="449"/> + <source>&File</source> + <translation>&ЀаĐčĐ»</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="457"/> + <source>&Edit</source> + <translation>&ĐŃĐ°ĐČĐșĐ°</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="469"/> + <source>&Run</source> + <translation>&ĐĐ°ĐżŃŃĐș</translation> + </message> +</context> +<context> + <name>FilesDockWidget</name> + <message> + <source>Current Folder</source> + <translation type="obsolete">йДĐșŃŃĐžĐč ĐșĐ°ŃĐ°Đ»ĐŸĐł</translation> + </message> + <message> + <location filename="../src/FilesDockWidget.cpp" line="32"/> + <source>Current Directory</source> + <translation>йДĐșŃŃĐžĐč ĐșĐ°ŃĐ°Đ»ĐŸĐł</translation> + </message> + <message> + <location filename="../src/FilesDockWidget.cpp" line="46"/> + <source>Move up one directory.</source> + <translation>ĐĐ”ŃĐ”ĐčŃĐž ĐœĐ° ŃŃĐŸĐČĐ”ĐœŃ ĐČŃŃĐ”.</translation> + </message> + <message> + <location filename="../src/FilesDockWidget.cpp" line="49"/> + <source>Enter the path or filename.</source> + <translation>ĐĐČДЎОŃĐ” ĐżŃŃŃ ĐžĐ»Đž ĐžĐŒŃ ŃĐ°Đčла.</translation> + </message> + <message> + <location filename="../src/FilesDockWidget.cpp" line="78"/> + <source>Doubleclick a file to open it.</source> + <translation>ĐĐČĐŸĐčĐœĐŸĐč ŃДлŃĐŸĐș ĐżĐŸ ŃĐ°ĐčĐ»Ń ĐŸŃĐșŃĐŸĐ”Ń Đ”ĐłĐŸ.</translation> + </message> +</context> +<context> + <name>HistoryDockWidget</name> + <message> + <location filename="../src/HistoryDockWidget.cpp" line="36"/> + <source>Doubleclick a command to transfer it to the terminal.</source> + <translation>ĐĐČĐŸĐčĐœĐŸĐč ŃДлŃĐŸĐș ĐżĐŸ ĐșĐŸĐŒĐ°ĐœĐŽĐ” пДŃĐ”ĐœĐ”ŃŃŃ Đ”Ń ĐČ ĐșĐŸĐŒĐ°ĐœĐŽĐœŃŃ ŃŃŃĐŸĐșŃ.</translation> + </message> + <message> + <location filename="../src/HistoryDockWidget.cpp" line="38"/> + <source>Enter text to filter the command history.</source> + <translation>ĐĐČДЎОŃĐ” ŃĐ”ĐșŃŃ ĐŽĐ»Ń ŃОлŃŃŃĐ°ŃОО ĐČŃĐżĐŸĐ»ĐœĐ”ĐœĐœŃŃ ĐșĐŸĐŒĐ°ĐœĐŽ.</translation> + </message> + <message> + <location filename="../src/HistoryDockWidget.cpp" line="41"/> + <source>Command History</source> + <translation>ĐŃŃĐœĐ°Đ» ĐČŃĐżĐŸĐ»ĐœĐ”ĐœĐœŃŃ ĐșĐŸĐŒĐ°ĐœĐŽ</translation> + </message> +</context> +<context> + <name>LexerOctaveGui</name> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="111"/> + <source>Default</source> + <translation>ĐĐŸ ŃĐŒĐŸĐ»ŃĐ°ĐœĐžŃ</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="113"/> + <source>Comment</source> + <translation>ĐĐŸĐŒĐŒĐ”ĐœŃĐ°ŃĐžĐč</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="115"/> + <source>Command</source> + <translation>ĐĐŸĐŒĐ°ĐœĐŽĐ°</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="117"/> + <source>Number</source> + <translation>ЧОŃĐ»ĐŸ</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="119"/> + <source>Keyword</source> + <translation>ĐĐ°ŃДзДŃĐČĐžŃĐŸĐČĐ°ĐœĐœĐŸĐ” ŃĐ»ĐŸĐČĐŸ</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="121"/> + <source>Single-quoted string</source> + <translation>ĐĄŃŃĐŸĐșĐ° ĐČ ĐŸĐŽĐžĐœĐ°ŃĐœŃŃ ĐșĐ°ĐČŃŃĐșĐ°Ń </translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="123"/> + <source>Operator</source> + <translation>ĐпДŃĐ°ŃĐŸŃ</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="125"/> + <source>Identifier</source> + <translation>ĐĐŽĐ”ĐœŃĐžŃĐžĐșĐ°ŃĐŸŃ</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="127"/> + <source>Double-quoted string</source> + <translation>ĐĄŃŃĐŸĐșĐ° ĐČ ĐŽĐČĐŸĐčĐœŃŃ ĐșĐ°ĐČŃŃĐșĐ°Ń </translation> + </message> +</context> +<context> + <name>MainWindow</name> + <message> + <location filename="../src/MainWindow.cpp" line="47"/> + <source>Opening file.</source> + <translation>ĐŃĐșŃŃĐČĐ°Đ”ŃŃŃ ŃĐ°ĐčĐ».</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="124"/> + <source>Save Workspace</source> + <translation>ĐĄĐŸŃ ŃĐ°ĐœĐžŃŃ ĐŸĐ±Đ»Đ°ŃŃŃ ĐżĐ”ŃĐ”ĐŒĐ”ĐœĐœŃŃ </translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="134"/> + <source>Load Workspace</source> + <translation>ĐĐ°ĐłŃŃĐ·ĐžŃŃ ĐŸĐ±Đ»Đ°ŃŃŃ ĐżĐ”ŃĐ”ĐŒĐ”ĐœĐœŃŃ </translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="226"/> + <location filename="../src/MainWindow.cpp" line="362"/> + <source>About Octave</source> + <translation>Đб Octave</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="238"/> + <source>Saving data and shutting down.</source> + <translation>ĐĄĐŸŃ ŃĐ°ĐœĐžŃŃ Đž Đ·Đ°ĐČĐ”ŃŃĐžŃŃ ŃĐ°Đ±ĐŸŃŃ.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="276"/> + <source>View the variables in the active workspace.</source> + <translation>ĐŃĐŸŃĐŒĐŸŃŃ ŃĐŸĐŽĐ”ŃĐ¶ĐžĐŒĐŸĐłĐŸ ŃĐ”ĐșŃŃĐ”Đč ĐŸĐ±Đ»Đ°ŃŃĐž пДŃĐ”ĐŒĐ”ĐœĐœŃŃ .</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="278"/> + <source>Browse and search the command history.</source> + <translation>ĐŃĐŸŃĐŒĐŸŃŃ Đž ĐżĐŸĐžŃĐș ĐČ Đ¶ŃŃĐœĐ°Đ»Đ” ĐČŃĐżĐŸĐ»ĐœĐ”ĐœĐœŃŃ ĐșĐŸĐŒĐ°ĐœĐŽ.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="280"/> + <source>Browse your files.</source> + <translation>ĐŃĐŸŃĐŒĐŸŃŃ ŃĐ°ĐčĐ»ĐŸĐČ.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="294"/> + <source>Terminal</source> + <translation>ĐĐŸĐŒĐ°ĐœĐŽĐœĐ°Ń ŃŃŃĐŸĐșĐ°</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="298"/> + <source>Enter your commands into the Octave terminal.</source> + <translation>ĐĐČДЎОŃĐ” ĐșĐŸĐŒĐ°ĐœĐŽŃ ĐČ ĐșĐŸĐŒĐ°ĐœĐŽĐœĐŸĐč ŃŃŃĐŸĐșĐ” Octave.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="307"/> + <source>Documentation</source> + <translation>ĐĐŸĐșŃĐŒĐ”ĐœŃĐ°ŃĐžŃ</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="311"/> + <source>Browse the Octave documentation for help.</source> + <translation>ĐŃĐșŃŃŃŃ ĐŽĐŸĐșŃĐŒĐ”ĐœŃĐ°ŃĐžŃ ĐżĐŸ Octave.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="320"/> + <source>Chat</source> + <translation>ЧаŃ</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="323"/> + <source>Instantly chat with other Octave users for help.</source> + <translation>Đ§Đ°Ń Ń ĐżĐŸĐ»ŃĐ·ĐŸĐČĐ°ŃДлŃĐŒĐž Octave.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="330"/> + <source>Octave</source> + <translation>Octave</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="331"/> + <source>Settings</source> + <translation>ĐĐ°ŃĐ°ĐŒĐ”ŃŃŃ</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="333"/> + <source>Exit</source> + <translation>ĐŃŃ ĐŸĐŽ</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="335"/> + <source>Interface</source> + <translation>ĐĐœŃĐ”ŃŃĐ”ĐčŃ</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="337"/> + <source>Align Windows</source> + <translation>ĐŃŃĐŸĐČĐœŃŃŃ ĐŸĐșĐœĐ°</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="339"/> + <location filename="../src/MainWindow.cpp" line="351"/> + <source>Workspace</source> + <translation>ĐблаŃŃŃ ĐżĐ”ŃĐ”ĐŒĐ”ĐœĐœŃŃ </translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="342"/> + <source>History</source> + <translation>ĐŃŃĐœĐ°Đ» ĐČŃĐżĐŸĐ»ĐœĐ”ĐœĐœŃŃ ĐșĐŸĐŒĐ°ĐœĐŽ</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="345"/> + <source>File Browser</source> + <translation>ЀаĐčĐ»ĐŸĐČŃĐč ĐŒĐ”ĐœĐ”ĐŽĐ¶Đ”Ń</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="349"/> + <source>Open New Editor Window</source> + <translation>ĐŃĐșŃŃŃŃ ĐœĐŸĐČĐŸĐ” ĐŸĐșĐœĐŸ ŃДЎаĐșŃĐŸŃĐ°</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="352"/> + <source>Load</source> + <translation>ĐĐ°ĐłŃŃĐ·ĐžŃŃ</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="353"/> + <source>Save</source> + <translation>ĐĄĐŸŃ ŃĐ°ĐœĐžŃŃ</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="355"/> + <source>Clear</source> + <translation>ĐŃĐžŃŃĐžŃŃ</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="357"/> + <source>Community</source> + <translation>ĐĄĐŸĐŸĐ±ŃĐ”ŃŃĐČĐŸ</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="358"/> + <source>Report Bug</source> + <translation>ĐĄĐŸĐŸĐ±ŃĐžŃŃ ĐŸĐ± ĐŸŃОбĐșĐ”</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="359"/> + <source>Agora</source> + <translation>Agora</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="360"/> + <source>Octave Forge</source> + <translation>Octave Forge</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="363"/> + <source>About Qt</source> + <translation>Đ Qt</translation> + </message> +</context> +<context> + <name>SettingsDialog</name> + <message> + <location filename="../src/SettingsDialog.ui" line="29"/> + <source>Settings</source> + <translation>ĐĐ°ŃĐ°ĐŒĐ”ŃŃŃ</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="39"/> + <source>Chat</source> + <translation>ЧаŃ</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="47"/> + <source>Connect to #octave on startup</source> + <translation>ĐĐŸĐŽĐșĐ»ŃŃĐžŃŃŃŃ Đș #octave ĐżŃĐž Đ·Đ°ĐżŃŃĐșĐ”</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="57"/> + <source>Show message of the day</source> + <translation>ĐĐŸĐșĐ°Đ·ŃĐČĐ°ŃŃ ŃĐŸĐČĐ”Ń ĐŽĐœŃ</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="64"/> + <source>Show topic</source> + <translation>ĐĐŸĐșĐ°Đ·ŃĐČĐ°ŃŃ ŃĐ”ĐŒŃ ĐŸĐ±ŃŃĐ¶ĐŽĐ”ĐœĐžŃ ĐżŃĐž ĐżĐŸĐŽĐșĐ»ŃŃĐ”ĐœĐžĐž</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="71"/> + <source>Automatically identify on NickServ</source> + <translation>ĐĐČŃĐŸĐŒĐ°ŃĐžŃĐ”ŃĐșĐž ĐžĐŽĐ”ĐœŃĐžŃĐžŃĐžŃĐŸĐČĐ°ŃŃŃŃ Ń NickServ</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="78"/> + <source>Warning: Your password will be stored in ~/.octavegui in human-readable format. Do not enter your password if you worry about security issues.</source> + <translation>ĐŃДЎŃĐżŃĐ”Đ¶ĐŽĐ”ĐœĐžĐ”: паŃĐŸĐ»Ń Đ±ŃĐŽĐ”Ń ŃĐŸŃ ŃĐ°ĐœŃĐœ ĐČ ~/.octavegui ĐŸĐ±ŃŃĐœŃĐŒ ŃĐ”ĐșŃŃĐŸĐŒ. ĐĐ” ĐČĐČĐŸĐŽĐžŃĐ” паŃĐŸĐ»Ń, Đ”ŃлО пДŃДжОĐČĐ°Đ”ŃĐ” ĐŸ ĐČĐŸĐ·ĐŒĐŸĐ¶ĐœŃŃ ŃŃĐ·ĐČĐžĐŒĐŸŃŃŃŃ ĐČ Đ±Đ”Đ·ĐŸĐżĐ°ŃĐœĐŸŃŃĐž ĐżŃĐžĐ»ĐŸĐ¶Đ”ĐœĐžŃ.</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="103"/> + <location filename="../src/SettingsDialog.ui" line="311"/> + <source>Password:</source> + <translation>ĐĐ°ŃĐŸĐ»Ń:</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="125"/> + <source>Editor</source> + <translation>РДЎаĐșŃĐŸŃ</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="133"/> + <source>Use custom file editor:</source> + <translation>ĐŃбŃĐ°ŃŃ ŃДЎаĐșŃĐŸŃ:</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="143"/> + <source>emacs</source> + <translation>emacs</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="166"/> + <source>File Browser</source> + <translation>ЀаĐčĐ»ĐŸĐČŃĐč ĐŒĐ”ĐœĐ”ĐŽĐ¶Đ”Ń</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="172"/> + <source>Show filenames</source> + <translation>ĐĐŸĐșĐ°Đ·ŃĐČĐ°ŃŃ ĐžĐŒĐ”ĐœĐ° ŃĐ°ĐčĐ»ĐŸĐČ</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="179"/> + <source>Show file size</source> + <translation>ĐĐŸĐșĐ°Đ·ŃĐČĐ°ŃŃ ŃĐ°Đ·ĐŒĐ”Ń ŃĐ°ĐčĐ»ĐŸĐČ</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="186"/> + <source>Show file type</source> + <translation>ĐĐŸĐșĐ°Đ·ŃĐČĐ°ŃŃ ŃĐžĐżŃ ŃĐ°ĐčĐ»ĐŸĐČ</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="193"/> + <source>Show date of last modification</source> + <translation>ĐĐŸĐșĐ°Đ·ŃĐČĐ°ŃŃ ĐŽĐ°ŃŃ ĐżĐŸŃĐ»Đ”ĐŽĐœĐ”ĐłĐŸ ĐžĐ·ĐŒĐ”ĐœĐ”ĐœĐžŃ</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="200"/> + <source>Show hidden files</source> + <translation>ĐĐŸĐșĐ°Đ·ŃĐČĐ°ŃŃ ŃĐșŃŃŃŃĐ” ŃĐ°ĐčĐ»Ń</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="207"/> + <source>Alternating row colors</source> + <translation>ЧДŃДЎŃŃŃОДŃŃ ŃĐČĐ”ŃĐ° ŃŃŃĐŸĐș</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="215"/> + <source>Network</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="221"/> + <source>Use proxy server</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="233"/> + <source>Proxy Type:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="244"/> + <source>HttpProxy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="249"/> + <source>Socks5Proxy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="260"/> + <source>Hostname:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="277"/> + <source>Port:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="294"/> + <source>Username:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="339"/> + <source>Reset to defaults</source> + <translation>ĐŁŃŃĐ°ĐœĐŸĐČĐžŃŃ ĐżĐ°ŃĐ°ĐŒĐ”ŃŃŃ ĐżĐŸ ŃĐŒĐŸĐ»ŃĐ°ĐœĐžŃ</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="362"/> + <source>Export</source> + <translation>ĐĐșŃĐżĐŸŃŃĐžŃĐŸĐČĐ°ŃŃ</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="372"/> + <source>Import</source> + <translation>ĐĐŒĐżĐŸŃŃĐžŃĐŸĐČĐ°ŃŃ</translation> + </message> +</context> +<context> + <name>VariablesDockWidget</name> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="36"/> + <source>Workspace</source> + <translation>ĐблаŃŃŃ ĐżĐ”ŃĐ”ĐŒĐ”ĐœĐœŃŃ </translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="40"/> + <source>Name</source> + <translation>ĐĐŽĐ”ĐœŃĐžŃĐžĐșĐ°ŃĐŸŃ</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="40"/> + <source>Type</source> + <translation>йОп</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="40"/> + <source>Value</source> + <translation>ĐĐœĐ°ŃĐ”ĐœĐžĐ”</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="52"/> + <source>Local</source> + <translation>ĐĐŸĐșĐ°Đ»ŃĐœĐ°Ń</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="56"/> + <source>Global</source> + <translation>ĐĐ»ĐŸĐ±Đ°Đ»ŃĐœĐ°Ń</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="60"/> + <source>Persistent</source> + <translation>ĐĄŃĐ°ŃĐžŃĐ”ŃĐșĐ°Ń</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="64"/> + <source>Hidden</source> + <translation>ĐĄĐșŃŃŃĐ°Ń</translation> + </message> +</context> +</TS>
new file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..106e473c4ee5a25399cf11bc5c2f5f0a50834565 GIT binary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`m?Al-SOSkPG#X!<b=h~CxNmNQJNY+sVO;&N&1QR%6x#_~5=H4=qq)p)v%8E| zmaTO23->;hZO~lRby<xmwhQfes>`r$hf%2pO#644T^=9R!sh8+7-*31wkGD5L!!!B z<*0Bun^tEH6ovsSlMyB$?ZFLFn)Nl;Ufjm(-BeCy-=}jh*Y031G+FDzCNC)DZ9=~y zu(ynoH36G6<w^eDPEpkbLB!RQCZ%#JO!|VXX*pvN;S^|IaLNogCq*=CyCBVoDc5`p z(v?{Bb|QF>6fB{thBC?oZx~l5^SxWqHaLhIGdlv<&JSb4FL}P6t}$}4n7e00NtIw; z&SsU40<4t~VMG2UHTG+k2;O}#EW@;J?515QRMCwL!Y!T$44__uXA?rnP(C9qwUc5d fxAfsJ))70B`!+oAuc-KJ%kpy#mGrai-j)9c_2Oqa
new file mode 100644 --- /dev/null +++ b/gui/languages/uk-ua.ts @@ -0,0 +1,574 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.0" language="uk_UA"> +<context> + <name>FileEditorMdiSubWindow</name> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="114"/> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="207"/> + <source>File Editor</source> + <translation>РДЎаĐșŃĐŸŃ ŃĐ°ĐčĐ»ŃĐČ</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="115"/> + <source>Cannot read file %1: +%2.</source> + <translation>ĐĐ” ĐČĐŽĐ°Đ»ĐŸŃŃ ĐżŃĐŸŃĐžŃĐ°ŃĐž ŃĐ°ĐčĐ» %1:ïżŒ +%2.</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="127"/> + <source>File loaded.</source> + <translation>ЀаĐčĐ» Đ·Đ°ĐČĐ°ĐœŃĐ°Đ¶Đ”ĐœĐŸ.</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="153"/> + <source>Do you want to save the current file +%1 ?</source> + <translation>ĐĄĐżŃĐ°ĐČĐŽŃ Đ·Đ±Đ”ŃДгŃĐž ĐżĐŸŃĐŸŃĐœĐžĐč ŃĐ°ĐčĐ» +%1?</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="208"/> + <source>Cannot write file %1: +%2.</source> + <translation>ĐĐ” ĐČĐŽĐ°Đ»ĐŸŃŃ Đ·Đ±Đ”ŃДгŃĐž ŃĐ°ĐčĐ» %1: +%2.</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="220"/> + <source>File %1 saved</source> + <translation>ЀаĐčĐ» %1 збДŃĐ”Đ¶Đ”ĐœĐŸ</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="383"/> + <source>&Close File</source> + <translation>ĐĐ°&ĐșŃĐžŃĐž</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="386"/> + <source>&New File</source> + <translation>&ĐĄŃĐČĐŸŃĐžŃĐž</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="389"/> + <source>&Open File</source> + <translation>&ĐŃĐŽĐșŃĐžŃĐž</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="392"/> + <source>&Save File</source> + <translation>&ĐбДŃДгŃĐž</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="395"/> + <source>Save File &As</source> + <translation>ĐбДŃДгŃĐž &ŃĐș</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="398"/> + <source>&Undo</source> + <translation>Đ&Đ”ŃĐœŃŃĐž</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="401"/> + <source>&Redo</source> + <translation>Đ&ĐŸĐČŃĐŸŃĐžŃĐž</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="402"/> + <source>&Copy</source> + <translation>&ĐĐŸĐżŃŃĐČĐ°ŃĐž</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="403"/> + <source>Cu&t</source> + <translation>ĐĐžŃŃĐ·Đ°&ŃĐž</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="404"/> + <source>&Paste</source> + <translation>&ĐŃŃĐ°ĐČĐžŃĐž</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="405"/> + <source>&Next Bookmark</source> + <translation>ĐĐŸ &ĐœĐ°ŃŃŃĐżĐœĐŸŃ Đ·Đ°ĐșлаЎĐșĐž</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="406"/> + <source>Pre&vious Bookmark</source> + <translation>ĐĐŸ &ĐżĐŸĐżĐ”ŃĐ”ĐŽĐœŃĐŸŃ Đ·Đ°ĐșлаЎĐșĐž</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="407"/> + <source>Toggle &Bookmark</source> + <translation>Đ&ŃŃĐ°ĐœĐŸĐČĐžŃĐž/ĐČОЎалОŃĐž Đ·Đ°ĐșлаЎĐșŃ</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="410"/> + <source>&Run File</source> + <translation>&ĐĐžĐșĐŸĐœĐ°ŃĐž ŃĐ°ĐčĐ»</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="449"/> + <source>&File</source> + <translation>&ЀаĐčĐ»</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="457"/> + <source>&Edit</source> + <translation>&ĐŃĐ°ĐČĐșĐ°</translation> + </message> + <message> + <location filename="../src/FileEditorMdiSubWindow.cpp" line="469"/> + <source>&Run</source> + <translation>&ĐĐžĐșĐŸĐœĐ°ĐœĐœŃ</translation> + </message> +</context> +<context> + <name>FilesDockWidget</name> + <message> + <source>Current Folder</source> + <translation type="obsolete">ĐĐŸŃĐŸŃĐœĐžĐč ĐșĐ°ŃĐ°Đ»ĐŸĐł</translation> + </message> + <message> + <location filename="../src/FilesDockWidget.cpp" line="32"/> + <source>Current Directory</source> + <translation>ĐĐŸŃĐŸŃĐœĐžĐč ĐșĐ°ŃĐ°Đ»ĐŸĐł</translation> + </message> + <message> + <location filename="../src/FilesDockWidget.cpp" line="46"/> + <source>Move up one directory.</source> + <translation>ĐĐ”ŃĐ”ĐčŃĐž ĐČĐłĐŸŃŃ ĐŽĐ”ŃĐ”ĐČĐŸĐŒ ĐșĐ°ŃĐ°Đ»ĐŸĐłŃĐČ.</translation> + </message> + <message> + <location filename="../src/FilesDockWidget.cpp" line="49"/> + <source>Enter the path or filename.</source> + <translation>ĐĐČДЎŃŃŃ ĐżĐŸĐČĐœĐžĐč ŃĐ»ŃŃ ĐŽĐŸ ŃĐ°ĐčĐ»Ń Đ°Đ±ĐŸ ĐœĐ°Đ·ĐČŃ ŃĐ°ĐčĐ»Ń.</translation> + </message> + <message> + <location filename="../src/FilesDockWidget.cpp" line="78"/> + <source>Doubleclick a file to open it.</source> + <translation>ĐĐŸĐŽĐČŃĐčĐœĐ” ĐșлаŃĐ°ĐœĐœŃ ĐČŃĐŽĐșŃĐžŃ ŃĐ°ĐčĐ».</translation> + </message> +</context> +<context> + <name>HistoryDockWidget</name> + <message> + <location filename="../src/HistoryDockWidget.cpp" line="36"/> + <source>Doubleclick a command to transfer it to the terminal.</source> + <translation>ĐĐŸĐŽĐČŃĐčĐœĐ” ĐșлаŃĐ°ĐœĐœŃ ĐżĐ”ŃĐ”ĐœĐ”ŃĐ” ĐșĐŸĐŒĐ°ĐœĐŽŃ ĐŽĐŸ ĐșĐŸĐŒĐ°ĐœĐŽĐœĐŸĐłĐŸ ŃŃĐŽĐșŃ.</translation> + </message> + <message> + <location filename="../src/HistoryDockWidget.cpp" line="38"/> + <source>Enter text to filter the command history.</source> + <translation>ĐĐČДЎŃŃŃ ŃĐ”ĐșŃŃ ĐŽĐ»Ń ŃŃĐ»ŃŃŃŃĐČĐ°ĐœĐœŃ ŃŃŃĐŸŃŃŃ ĐČĐžĐșĐŸĐœĐ°ĐœĐžŃ ĐșĐŸĐŒĐ°ĐœĐŽ.</translation> + </message> + <message> + <location filename="../src/HistoryDockWidget.cpp" line="41"/> + <source>Command History</source> + <translation>ĐŃŃĐŸŃŃŃ ĐČĐžĐșĐŸĐœĐ°ĐœĐžŃ ĐșĐŸĐŒĐ°ĐœĐŽ</translation> + </message> +</context> +<context> + <name>LexerOctaveGui</name> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="111"/> + <source>Default</source> + <translation>ĐĄŃĐ°ĐœĐŽĐ°ŃŃĐœŃ ĐœĐ°Đ»Đ°ŃŃŃĐČĐ°ĐœĐœŃ</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="113"/> + <source>Comment</source> + <translation>ĐĐŸĐŒĐ”ĐœŃĐ°Ń</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="115"/> + <source>Command</source> + <translation>ĐĐŸĐŒĐ°ĐœĐŽĐ°</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="117"/> + <source>Number</source> + <translation>ЧОŃĐ»ĐŸ</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="119"/> + <source>Keyword</source> + <translation>ĐĐ°ŃДзДŃĐČĐŸĐČĐ°ĐœĐ” ŃĐ»ĐŸĐČĐŸ</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="121"/> + <source>Single-quoted string</source> + <translation>Đ ŃĐŽĐŸĐș ĐČ ĐŸĐŽĐžĐœĐ°ŃĐœĐžŃ Đ»Đ°ĐżĐșĐ°Ń </translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="123"/> + <source>Operator</source> + <translation>ĐпДŃĐ°ŃĐŸŃ</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="125"/> + <source>Identifier</source> + <translation>ĐĐŽĐ”ĐœŃĐžŃŃĐșĐ°ŃĐŸŃ</translation> + </message> + <message> + <location filename="../src/lexer/lexeroctavegui.cpp" line="127"/> + <source>Double-quoted string</source> + <translation>Đ ŃĐŽĐŸĐș Ń ĐżĐŸĐŽĐČŃĐčĐœĐžŃ Đ»Đ°ĐżĐșĐ°Ń </translation> + </message> +</context> +<context> + <name>MainWindow</name> + <message> + <location filename="../src/MainWindow.cpp" line="47"/> + <source>Opening file.</source> + <translation>ĐŃĐŽĐșŃĐžĐČĐ°ŃŃŃŃŃ ŃĐ°ĐčĐ».</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="124"/> + <source>Save Workspace</source> + <translation>ĐбДŃДгŃĐž ĐŸĐ±Đ»Đ°ŃŃŃ Đ·ĐŒŃĐœĐœĐžŃ </translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="134"/> + <source>Load Workspace</source> + <translation>ĐĐ°ĐČĐ°ĐœŃажОŃĐž ĐŸĐ±Đ»Đ°ŃŃŃ Đ·ĐŒŃĐœĐœĐžŃ </translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="226"/> + <location filename="../src/MainWindow.cpp" line="362"/> + <source>About Octave</source> + <translation>ĐŃĐŸ Octave</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="238"/> + <source>Saving data and shutting down.</source> + <translation>ĐбДŃДгŃĐž ĐŽĐ°ĐœŃ Ń Đ·Đ°ĐČĐ”ŃŃĐžŃĐž ŃĐŸĐ±ĐŸŃŃ.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="276"/> + <source>View the variables in the active workspace.</source> + <translation>ĐĐ”ŃДглŃĐŽ Đ·ĐŒŃŃŃŃ ĐżĐŸŃĐŸŃĐœĐŸŃ ĐŸĐ±Đ»Đ°ŃŃŃ Đ·ĐŒŃĐœĐœĐžŃ .</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="278"/> + <source>Browse and search the command history.</source> + <translation>ĐĐ”ŃДглŃĐŽ Ń ĐżĐŸŃŃĐș ŃĐ”ŃДЎ ŃŃŃĐŸŃŃŃ ĐČĐžĐșĐŸĐœĐ°ĐœĐžŃ ĐșĐŸĐŒĐ°ĐœĐŽ.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="280"/> + <source>Browse your files.</source> + <translation>ĐĐ”ŃДглŃĐœŃŃĐž ŃĐ°ĐčлО.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="294"/> + <source>Terminal</source> + <translation>ĐĐŸĐŒĐ°ĐœĐŽĐœĐžĐč ŃŃĐŽĐŸĐș</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="298"/> + <source>Enter your commands into the Octave terminal.</source> + <translation>ĐĐČДЎŃŃŃ ĐșĐŸĐŒĐ°ĐœĐŽĐž ĐŽĐŸ ĐșĐŸĐŒĐ°ĐœĐŽĐœĐŸĐłĐŸ ŃŃĐŽĐșĐ° Octave.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="307"/> + <source>Documentation</source> + <translation>ĐĐŸĐșŃĐŒĐ”ĐœŃĐ°ŃŃŃ</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="311"/> + <source>Browse the Octave documentation for help.</source> + <translation>ĐĐ”ŃДглŃĐœŃŃĐž ĐŽĐŸĐșŃĐŒĐ”ĐœŃĐ°ŃŃŃ ĐŽĐŸ Octave.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="320"/> + <source>Chat</source> + <translation>ЧаŃ</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="323"/> + <source>Instantly chat with other Octave users for help.</source> + <translation>Đ§Đ°Ń Đ· ĐșĐŸŃĐžŃŃŃĐČĐ°ŃĐ°ĐŒĐž Octave.</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="330"/> + <source>Octave</source> + <translation>Octave</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="331"/> + <source>Settings</source> + <translation>ĐалаŃŃŃĐČĐ°ĐœĐœŃ</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="333"/> + <source>Exit</source> + <translation>ĐĐžĐčŃĐž</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="335"/> + <source>Interface</source> + <translation>ĐĐœŃĐ”ŃŃĐ”ĐčŃ</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="337"/> + <source>Align Windows</source> + <translation>ĐĐžŃŃĐČĐœŃŃĐž ĐČŃĐșĐœĐ°</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="339"/> + <location filename="../src/MainWindow.cpp" line="351"/> + <source>Workspace</source> + <translation>ĐблаŃŃŃ Đ·ĐŒŃĐœĐœĐžŃ </translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="342"/> + <source>History</source> + <translation>ĐŃŃĐŸŃŃŃ ĐČĐžĐșĐŸĐœĐ°ĐœĐžŃ ĐșĐŸĐŒĐ°ĐœĐŽ</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="345"/> + <source>File Browser</source> + <translation>ЀаĐčĐ»ĐŸĐČĐžĐč ĐŒĐ”ĐœĐ”ĐŽĐ¶Đ”Ń</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="349"/> + <source>Open New Editor Window</source> + <translation>ĐŃĐŽĐșŃĐžŃĐž ĐœĐŸĐČĐ” ĐČŃĐșĐœĐŸ ŃДЎаĐșŃĐŸŃĐ°</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="352"/> + <source>Load</source> + <translation>ĐĐ°ĐČĐ°ĐœŃажОŃĐž</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="353"/> + <source>Save</source> + <translation>ĐбДŃДгŃĐž</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="355"/> + <source>Clear</source> + <translation>ĐŃĐžŃŃĐžŃĐž</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="357"/> + <source>Community</source> + <translation>ĐĄĐżŃĐ»ŃĐœĐŸŃĐ°</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="358"/> + <source>Report Bug</source> + <translation>ĐĐŸĐČŃĐŽĐŸĐŒĐžŃĐž ĐżŃĐŸ ĐżĐŸĐŒĐžĐ»ĐșŃ</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="359"/> + <source>Agora</source> + <translation>Agora</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="360"/> + <source>Octave Forge</source> + <translation>Octave Forge</translation> + </message> + <message> + <location filename="../src/MainWindow.cpp" line="363"/> + <source>About Qt</source> + <translation>ĐŃĐŸ Qt</translation> + </message> +</context> +<context> + <name>SettingsDialog</name> + <message> + <location filename="../src/SettingsDialog.ui" line="29"/> + <source>Settings</source> + <translation>ĐалаŃŃŃĐČĐ°ĐœĐœŃ</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="39"/> + <source>Chat</source> + <translation>ЧаŃ</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="47"/> + <source>Connect to #octave on startup</source> + <translation>Đ'ŃĐŽĐœĐ°ŃĐžŃŃ Đ· #octave ĐżŃĐž Đ·Đ°ĐżŃŃĐșŃ</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="57"/> + <source>Show message of the day</source> + <translation>ĐĐŸĐșĐ°Đ·ŃĐČĐ°ŃĐž ĐżĐŸŃĐ°ĐŽŃ ĐŽĐœŃ</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="64"/> + <source>Show topic</source> + <translation>ĐĐŸĐșĐ°Đ·ŃĐČĐ°ŃĐž ŃĐ”ĐŒŃ ŃĐ°ŃŃ ĐżŃĐž Đ·'ŃĐŽĐœĐ°ĐœĐœŃ</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="71"/> + <source>Automatically identify on NickServ</source> + <translation>ĐĐČŃĐŸĐŒĐ°ŃĐžŃĐœĐŸ ŃĐŽĐ”ĐœŃĐžŃŃĐșŃĐČĐ°ŃĐžŃŃ ĐČ NickServ</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="78"/> + <source>Warning: Your password will be stored in ~/.octavegui in human-readable format. Do not enter your password if you worry about security issues.</source> + <translation>ĐĐŸĐżĐ”ŃĐ”ĐŽĐ¶Đ”ĐœĐœŃ: паŃĐŸĐ»Ń Đ±ŃĐŽĐ” збДŃĐ”Đ¶Đ”ĐœĐŸ ĐČ ~/.octavegui Đ·ĐČĐžŃĐ°ĐčĐœĐžĐŒ ŃĐ”ĐșŃŃĐŸĐŒ. ĐĐ” ĐČĐČĐŸĐŽŃŃĐ” паŃĐŸĐ»Ń, ŃĐșŃĐŸ пДŃĐ”ĐčĐŒĐ°ŃŃĐ”ŃŃ ĐżĐŸŃĐ”ĐœŃŃĐčĐœĐžĐŒĐž ĐżŃĐŸĐ±Đ»Đ”ĐŒĐ°ĐŒĐž ŃĐ· Đ·Đ°Ń ĐžŃŃĐŸĐŒ ĐŽĐ°ĐœĐžŃ ĐČ ĐżŃĐŸĐłŃĐ°ĐŒŃ.</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="103"/> + <location filename="../src/SettingsDialog.ui" line="311"/> + <source>Password:</source> + <translation>ĐĐ°ŃĐŸĐ»Ń:</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="125"/> + <source>Editor</source> + <translation>РДЎаĐșŃĐŸŃ</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="133"/> + <source>Use custom file editor:</source> + <translation>ĐĐžĐșĐŸŃĐžŃŃĐŸĐČŃĐČĐ°ŃĐž ŃĐœŃĐžĐč ŃДЎаĐșŃĐŸŃ:</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="143"/> + <source>emacs</source> + <translation>emacs</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="166"/> + <source>File Browser</source> + <translation>ЀаĐčĐ»ĐŸĐČĐžĐč ĐŒĐ”ĐœĐ”ĐŽĐ¶Đ”Ń</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="172"/> + <source>Show filenames</source> + <translation>ĐĐŸĐșĐ°Đ·ŃĐČĐ°ŃĐž ĐœĐ°Đ·ĐČĐž ŃĐ°ĐčĐ»ŃĐČ</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="179"/> + <source>Show file size</source> + <translation>ĐĐŸĐșĐ°Đ·ŃĐČĐ°ŃĐž ŃĐŸĐ·ĐŒŃŃ ŃĐ°ĐčĐ»ŃĐČ</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="186"/> + <source>Show file type</source> + <translation>ĐĐŸĐșĐ°Đ·ŃĐČĐ°ŃĐž ŃОпО ŃĐ°ĐčĐ»ŃĐČ</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="193"/> + <source>Show date of last modification</source> + <translation>ĐĐŸĐșĐ°Đ·ŃĐČĐ°ŃĐž ĐŽĐ°ŃŃ ĐŸŃŃĐ°ĐœĐœŃĐŸŃ Đ·ĐŒŃĐœĐž</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="200"/> + <source>Show hidden files</source> + <translation>ĐĐŸĐșĐ°Đ·ŃĐČĐ°ŃĐž ĐżŃĐžŃ ĐŸĐČĐ°ĐœŃ ŃĐ°ĐčлО</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="207"/> + <source>Alternating row colors</source> + <translation>ЧДŃĐłŃĐČĐ°ŃĐž ĐșĐŸĐ»ŃŃ ŃŃĐŽĐșŃĐČ</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="215"/> + <source>Network</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="221"/> + <source>Use proxy server</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="233"/> + <source>Proxy Type:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="244"/> + <source>HttpProxy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="249"/> + <source>Socks5Proxy</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="260"/> + <source>Hostname:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="277"/> + <source>Port:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="294"/> + <source>Username:</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="339"/> + <source>Reset to defaults</source> + <translation>ĐŃŃĐ°ĐœĐŸĐČĐžŃĐž ŃŃĐ°ĐœĐŽĐ°ŃŃĐœŃ ĐœĐ°Đ»Đ°ŃŃŃĐČĐ°ĐœĐœŃ</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="362"/> + <source>Export</source> + <translation>ĐĐșŃĐżĐŸŃŃŃĐČĐ°ŃĐž</translation> + </message> + <message> + <location filename="../src/SettingsDialog.ui" line="372"/> + <source>Import</source> + <translation>ĐĐŒĐżĐŸŃŃŃĐČĐ°ŃĐž</translation> + </message> +</context> +<context> + <name>VariablesDockWidget</name> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="36"/> + <source>Workspace</source> + <translation>ĐблаŃŃŃ Đ·ĐŒŃĐœĐœĐžŃ </translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="40"/> + <source>Name</source> + <translation>ĐĐŽĐ”ĐœŃĐžŃŃĐșĐ°ŃĐŸŃ</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="40"/> + <source>Type</source> + <translation>йОп</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="40"/> + <source>Value</source> + <translation>ĐĐœĐ°ŃĐ”ĐœĐœŃ</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="52"/> + <source>Local</source> + <translation>ĐĐŸĐșĐ°Đ»ŃĐœĐ°</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="56"/> + <source>Global</source> + <translation>ĐĐ»ĐŸĐ±Đ°Đ»ŃĐœĐ°</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="60"/> + <source>Persistent</source> + <translation>ĐĄŃĐ°ŃĐžŃĐœĐ°</translation> + </message> + <message> + <location filename="../src/VariablesDockWidget.cpp" line="64"/> + <source>Hidden</source> + <translation>ĐŃĐžŃ ĐŸĐČĐ°ĐœĐ°</translation> + </message> +</context> +</TS>
new file mode 100755 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..40b19cb63b244d6e71de31875904fb934d0498a2 GIT binary patch literal 15258 zc$}4cRZ!gD5ASzbWbs9cI}~>>x=3*=P@paD#fv+OyE_ys#ogWAt+*B`6ff@F-~Ybf zhnty`%;Y7R<eZ#*W|D9<6<JI)5;On+Fy-Z>)&G<5{~ZYOf4oo3Xbb?T0C{N%P5197 z9bfCshFmCaPD-67$u~r9k6LEdEuFzsa&g;0SfJ$RpFeeKX@cqb(&bI(Qu0~HVzS<_ z$)?!I{u@m=W*l)$>yKxZ?NdnEU5X&rz<(P6FySIfz!9eb&+LsOfv(4mtVzv=%ly*G z5~oMLR#HoV&F!q=wCy&lM&-ob&ug*rH<V{5d#!_J;}l^nu}S+Bw8ft41vHQCQ2?io zEhz9d-T#+r%T+JzVC>HjCwvo$6B!1I1Nbx2UXQ!FO}Z{6o?c$xMRoa{qrGs71>UE7 zoX;ZJWZ$V)KRKgNwodmh#`vQ5biO;-@(p^ON<47I-rCNu+Jd0#>WM_0hFier(7UfN z)U*W!ADgPZJ&~Tzo<tmWi@rfowf<~iUUxeQKCMRTc<+CkHYG(-QHi**ESj0H;uGcl zg|9F!V_aN_$2aDoBpKuHLW%LdcH=m3`&!2#cJ}2n<4*m;-<t;LzfoG3sHaRw^fP+% zxfIH`&8i@syPmQzzZ3bbqCeHIYq9ylD-s<lxgQOEqNc0#5bj93N5O)3`!PoMd*aev z&&*g9_fysF9;nZAxbEj=-G5_&IZ?v{qPS<!d6%!id0T$Bg*eFOnGXJn+ieEqAWWD1 zdOcG9yU7o<H}n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930%+ zxXAJ*@STkY2?hboKKkgR&wl39pZ*6zNG{uwh3ENjT^FDP`}ZH1{P@Q|cEj%7yT7;e z0?Pz==R-o}6AS{Fdghs@_k8-(pZbS-tvcDWvImA~V*3+M9RBpDK6%5z7hd>|e2E~$ z@)Gdt0V$=NB7_J4V&A@f<d6R75C8r>SG{-h#Kc75XFq%VF59-Bky8GLddFn~{2D<@ zIYS8H0Q{3fC;gK{Cyya;AW12Ip(f!n0e;OOrJN^(_)t~O4uCViXyi9=)--~a@y^8m Y1F4`rfN3>^-~a#s07*qoM6N<$f@plx0{{R3
new file mode 100644 --- /dev/null +++ b/gui/media/icons_license @@ -0,0 +1,104 @@ +Icons license for: +chat.png +help_index.png +terminal.png +jabber_protocol.png + +by http://www.everaldo.com/ on 17.07.2011: + +The Crystal Project are released under LGPL. +GNU General Public License. + +This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". + +A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. + +The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) + +"Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. + +Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. + +You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. + +You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. + +You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: + +The modified work must itself be a software library. +You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. +You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. +If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. +(For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. + +You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. + +Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. + +This option is useful when you wish to copy part of the code of the Library into a program that is not a library. + +You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. + +If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. + +A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. + +However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. +When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. + +If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) + +Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. + +As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. + +You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: + +Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) . +Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. +Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. +If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. +Verify that the user has already received a copy of these materials or that you have already sent this user a copy. +For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. + +It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. + +You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: + +Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. + +Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. + +You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. + +You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. + +Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. + +If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. + +This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. + +If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. + +The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. + +If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. + +No Warranty + +Because the library is licensed free of charge, there is no warranty for the library, to the extent permitted by applicable law. Except when otherwise stated in writing the copyright holders and/or other parties provide the library "as is" without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. The entire risk as to the quality and performance of the library is with you. Should the library prove defective, you assume the cost of all necessary servicing, repair or correction. + +In no event unless required by applicable law or agreed to in writing will any copyright holder, or any other party who may modify and/or redistribute the library as permitted above, be liable to you for damages, including any general, special, incidental or consequential damages arising out of the use or inability to use the library (including but not limited to loss of data or data being rendered inaccurate or losses sustained by you or third parties or a failure of the library to operate with any other software), even if such holder or other party has been advised of the possibility of such damages.
new file mode 100755 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..e9fc4a5d7c42135d794836c183ac877465c485d7 GIT binary patch literal 11050 zc$@($E7jDAP)<h;3K|Lk000e1NJLTq004jh004jp1^@s6!#-il001BWNkl<Zc%1E> zdAuc8UEsgJQ+1cO^-FiUJ9Ih;Sx6v6*+o$yG9xp<fU*rJs2>NNQQT0O5TXbq0%L-F zl+TA@5D+7yPO~I~ARr*hfDCE~iL6;5AqiPJozCm-_uk#A>ip)9b57N%y0<%>?)$p? zX83j2yH%%7)vbGe`*Kc+s`5Sf{}<BZ{Q%Q~(cekEp*lPX*a@8BKR1hTGOz^1)Ng=+ zD!YOGz;579;3i-dD4=l#5csF_jM-$QhYSIDFu-}h_XAG^o&=l)Ec-15P<x0wRD@%J zHDCp}2e=0KGVl%Ht3Yqs4}UyBW?cmgKP~gX<3)G|@MAav*b(<Bar$6>Y9vq^m#yNY z!oL6?SLIsZ?pc)pGfM!&Ps!N`F94nk{IE2onL5N-bz-^zNChjP0u~v&rvRdgQ71~0 zsBOG=Nf<W)pFnv(a9!u$>0nyF@mRpj5y0@1@+5>`0$u=Y0ne-+(bhtdK%OShITcwr zAG7#ql!D$}e}dW!Bss)4X!#*{LQo~Kkf5ZVK&0Lq9F2Vr<vqaFoqs<YgfKG%F!)<} zGQz9Gar_+MS=^0$o`B9j3^x4`>E<6HUH$>m?%7~E7_$f{`@i|080`KalC}={T{>wm z5QHa&mMW=Qk|MgU5))qp-iGp#?lZN2)IWX$;e;oE!6)Pq2p0iA4J@G`>O^}kP%NB+ z+43}64|_4Kr6-Ygc7n7(M`+PQb%YipL=y7BE$sj1ODP7oBc^?bZ*7|T^+W3$#X5=5 zDU`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%4u3fQPA)AYdSne@PPvd z*t>V{nC0Kx4_h1}9t;L7FE4-31~`!*sDYh3cb1&p>2zuc?sPgOLW3K3Fwr0MeSE&v zYL%YG!oot}{@Kg_Hei+sK!H}8rW`nMfcL-u{k;6;FK64fZLF@YmNr0hGH8}%^!t6b zY}qo=1)MY&u;1^qzP`@d+8PTB3uP3MhX4W0L_x?T*tKhyf_pD<yWQq%U;7$wd)wQ% z`R1GHcDulMEn%D(iqpS`+TzII$tR!8)~#FP$M`#7_c8j(8v-*+006so?Rp3B3Shn4 z?Q;9=xATs7yo2knzrHlmnzMQiRsMajQt&*_nVXwqVPPTG`|k!`bKHLXlwhU_0ASay zUGD^53he20I_%%SpDVAtk}rJW3#4gU3*p8kT?ecBnbh8Hx0#!pi>>~50>27O{cYaI z8fKmV0Cw%#^%3AFfg3xW4tbt))m2yVsZV{XEFp`ha2=}hcha=)G)-gVzXSLUAUj^a zcbf2!AOL`(D85(}#WP2v(HDdM{_JNz%O^hZ35LTVolb{Vt3|8Ts^$1&T_2}_Lw!I4 z-i=HDJ|vJ2v+V`cU}<RyYwdTkEPGB-6z{UuzOdD5aou&-vAVj-x#yl+iwMTczBH?U z@;qlS7?9_AYy`d=$N9(Q{eBw-GqX(G13}0R7Dd6e*IqmSzW2TFt@q!5|1ZzY&5f09 z$G<tY@?$B`Saax4fLC$|<bSUo;5ftl{CwDz3opE|clzn4zvA8Re)p}n+;YohNs@Fz zNmpDdc9`&X9%5oYhKGy<Xn+Ci>gp=5d)@1P^3FT&d{&yK;SJD-O8_n4OTc@n-Ya)d km{kezP$hux!C}Jx18B#A2(P4o<NyEw07*qoM6N<$g75DXS^xk5
new file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..a10cf826f3342dae72ea3cae5496644da33f694a GIT binary patch literal 9205 zc$@+CBMRJ!P)<h;3K|Lk000e1NJLTq0077U0077c0ssI2B04$A00001b5ch_0Itp) z=>Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L07Pj307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relnX@(7k z{rT8cZGmm7!Z^VtHRDthadN?NiyM}*5Z$r$NnO{fF$>3Urn##}C%a1pSZK&e2PZvT zz%h<BUR_(jsb=gA_G!A)Z{}BNyBu&Q?a~&*7_xkt{NmI#y8HS9qp$ut*^s>B06lmh zrV9VBKn^cdm<iwoY?u@Cl*M~ymiD7N?P;Um|1}h+1=%H1fhvqoJls$57pZ@5W0G}O zB~d>9R;B_@{ZHSg5)8?5di{OhiYVW)CxHRt^>>)(u$71=e|)_(EsdeD#*~hZPH^C6 zn$zoH3s*<oqSRp?Fu^`D1fAxf0iv02)<%&IgMe7mh6S=o<fo9synzI$pbg)DYIy)R zTnh`o5AjbG<de1Fe#OL?O-&C~XOUUX(thRwWFoR->r{n%kl2?EILaG9w}oq(p}MP{ zf9{n0AQ{Hm*0wl`GdMF&;u#kVD6_?taReRQmp)3ZF$EdC|Eb9?_gt4@^8+PAig~IW zctHm4RQPLNl9%4P#mT%yHLOG{c3zpA?L{I5eRD^3QIGoUMJB>6Oq?#1La6W)0`?%i zFp38?Y%%rov6{BPu!SYiTNM}Cfn;&~)!$F9aEgEBhIuyrLXEpYsJ2z&;ZBEHfP<zJ z$`Gp=rY5fr(LShT3WuTQV*E1r)Bz;2pg-I`A?h+}>ER*mD+4L!Sl~HO*=0(#P$Zv^ zLcJa<v?2dnc`y+ssRg2z(ZUu<ySNlM3G4lJ?D%m-8nHE0ok<Ehx2NL3pB%FvWdU1K tfrUvmoI{(}-g05(!vDWNssCH(Bn0onhY4i2e*+Mf*4=w*Wh!=I{{!`aj5PoN
new file mode 100644 --- /dev/null +++ b/gui/msvc-debug.pri @@ -0,0 +1,8 @@ +win32-msvc* { + CONFIG += release warn_off + QMAKE_CXXFLAGS += -MP + QMAKE_CXXFLAGS_RELEASE += -Zi + QMAKE_CXXFLAGS_RELEASE -= -O2 + QMAKE_LFLAGS_RELEASE += -debug + QMAKE_CLEAN += $(DESTDIR)$(QMAKE_TARGET).pdb +}
new file mode 100644 --- /dev/null +++ b/gui/octave-gui.pro @@ -0,0 +1,153 @@ +# OctaveGUI - A graphical user interface for Octave +# Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + +# Basic settings: +QT += core gui webkit network # Qt modules +TEMPLATE = app # Build as application +TARGET = octave-gui # Name of the target binary + +DESTDIR = bin # Destination of the output +UI_DIR = ui-files # Folder for ui files +MOC_DIR = moc-files # Folder for moc files +OBJECTS_DIR = object-files # Folder for object files + +TRANSLATIONS += languages/generic.ts \ + languages/de-de.ts \ + languages/pt-br.ts \ + languages/es-es.ts \ + languages/ru-ru.ts \ + languages/uk-ua.ts # Available translations +LIBS += -lqscintilla2 $$system(mkoctfile -p LIBS) $$system(mkoctfile -p OCTAVE_LIBS) + +mac { + CONFIG -= app_bundle +} + +# Includepaths and libraries to link against: +INCLUDEPATH += src src/terminal src/qirc src/backend \ + $$system(mkoctfile -p INCFLAGS) +INCFLAGS += $$system(mkoctfile -p INCFLAGS) +mac { + INCFLAGS += -I/opt/local-native/include +} + +QMAKE_LIBDIR += $$system(octave-config -p OCTLIBDIR) + +mac { + LFLAGS += -L/opt/local-native/lib +} + +unix { + LIBS += -lutil +} + +win32-g++ { + QMAKE_LFLAGS += --enable-auto-import +} + +win32-msvc* { + DEFINES += QSCINTILLA_DLL + #CONFIG += console + include(msvc-debug.pri) +} + +QMAKE_LFLAGS += $$LFLAGS $$system(mkoctfile -p RLD_FLAG) +QMAKE_CXXFLAGS += $$INCFLAGS + +# Files associated with the project: +SOURCES +=\ + src/lexer/lexeroctavegui.cpp \ + src/MainWindow.cpp \ + src/WorkspaceView.cpp \ + src/HistoryDockWidget.cpp \ + src/FilesDockWidget.cpp \ + src/FileEditorMdiSubWindow.cpp \ + src/BrowserWidget.cpp \ + src/ImageViewerMdiSubWindow.cpp \ + src/irc/IRCWidget.cpp \ + src/SettingsDialog.cpp \ + src/OctaveGUI.cpp \ + src/ResourceManager.cpp \ + src/CommandLineParser.cpp \ + src/backend/OctaveCallbackThread.cpp \ + src/backend/OctaveLink.cpp \ + src/backend/OctaveMainThread.cpp \ + src/irc/IRCClientImpl.cpp \ + src/backend/ReadlineAdapter.cpp \ + src/WelcomeWizard.cpp \ + src/AbstractTerminalView.cpp + +unix { +SOURCES +=\ + src/TerminalHighlighter.cpp \ + src/TerminalView.cpp \ + src/terminal/KPty.cpp \ + src/terminal/KPtyDevice.cpp \ + src/terminal/LinuxTerminalEmulation.cpp \ + src/terminal/TerminalEmulation.cpp +} + +win32 { +SOURCES += \ + src/WinTerminalView.cpp \ + src/terminal/win32/QConsole.cpp \ + src/terminal/win32/QConsoleColors.cpp +} + +HEADERS += \ + src/lexer/lexeroctavegui.h \ + src/MainWindow.h \ + src/WorkspaceView.h \ + src/HistoryDockWidget.h \ + src/FilesDockWidget.h \ + src/FileEditorMdiSubWindow.h \ + src/BrowserWidget.h \ + src/ImageViewerMdiSubWindow.h \ + src/irc/IRCWidget.h \ + src/SettingsDialog.h \ + src/ResourceManager.h \ + src/CommandLineParser.h \ + src/backend/OctaveCallbackThread.h \ + src/backend/OctaveLink.h \ + src/backend/OctaveMainThread.h \ + src/irc/IRCClientInterface.h \ + src/irc/IRCClientImpl.h \ + src/backend/ReadlineAdapter.h \ + src/WelcomeWizard.h \ + src/AbstractTerminalView.h + +unix { +HEADERS += \ + src/TerminalHighlighter.h \ + src/TerminalView.h \ + src/terminal/KPtyDevice.h \ + src/terminal/KPty.h \ + src/terminal/LinuxTerminalEmulation.h \ + src/terminal/TerminalEmulation.h +} + +win32 { +HEADERS += \ + src/WinTerminalView.h \ + src/terminal/win32/QConsole.h \ + src/terminal/win32/QConsoleColors.h +INCLUDEPATH += src/terminal/win32 +} + +FORMS += \ + src/SettingsDialog.ui \ + src/WelcomeWizard.ui
new file mode 100644 --- /dev/null +++ b/gui/octave-gui.pro.in @@ -0,0 +1,131 @@ +# OctaveGUI - A graphical user interface for Octave +# Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program 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 Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + + +# Basic settings: +QT += core gui webkit network # Qt modules +TEMPLATE = app # Build as application +TARGET = octave-gui # Name of the target binary + +DESTDIR = bin # Destination of the output +UI_DIR = ui-files # Folder for ui files +MOC_DIR = moc-files # Folder for moc files +OBJECTS_DIR = object-files # Folder for object files + +TRANSLATIONS += languages/generic.ts \ + languages/de-de.ts \ + languages/pt-br.ts \ + languages/es-es.ts \ + languages/ru-ru.ts \ + languages/uk-ua.ts # Available translations +LIBS += -lqscintilla2 $$system(%mkoctfile% -p LIBS) $$system(%mkoctfile% -p OCTAVE_LIBS) + +mac { + CONFIG -= app_bundle +} + +# Includepaths and libraries to link against: +INCLUDEPATH += src src/terminal src/qirc src/backend \ + $$system(%mkoctfile% -p INCFLAGS) +INCFLAGS += $$system(%mkoctfile% -p INCFLAGS) +mac { + INCFLAGS += -I/opt/local-native/include +} + +LFLAGS += $$system(%mkoctfile% -p LFLAGS) \ + $$system(%mkoctfile% -p OCTAVE_LIBS) \ + $$system(%mkoctfile% -p LIBS) +mac { + LFLAGS += -L/opt/local-native/lib +} + +unix { + QMAKE_LFLAGS += -lutil +} + +win32 { + QMAKE_LFLAGS += --enable-auto-import +} + +QMAKE_LFLAGS += $$LFLAGS $$system(%mkoctfile% -p RLD_FLAG) +QMAKE_CXXFLAGS += $$INCFLAGS + +# Files associated with the project: +SOURCES +=\ + src/lexer/lexeroctavegui.cpp \ + src/MainWindow.cpp \ + src/WorkspaceView.cpp \ + src/HistoryDockWidget.cpp \ + src/FilesDockWidget.cpp \ + src/FileEditorMdiSubWindow.cpp \ + src/BrowserWidget.cpp \ + src/ImageViewerMdiSubWindow.cpp \ + src/irc/IRCWidget.cpp \ + src/SettingsDialog.cpp \ + src/OctaveGUI.cpp \ + src/ResourceManager.cpp \ + src/CommandLineParser.cpp \ + src/backend/OctaveCallbackThread.cpp \ + src/backend/OctaveLink.cpp \ + src/backend/OctaveMainThread.cpp \ + src/irc/IRCClientImpl.cpp \ + src/terminal/TerminalEmulation.cpp \ + src/backend/ReadlineAdapter.cpp \ + src/TerminalView.cpp \ + src/TerminalHighlighter.cpp \ + src/WelcomeWizard.cpp + +unix { +SOURCES +=\ + src/terminal/LinuxTerminalEmulation.cpp \ + src/terminal/KPty.cpp \ + src/terminal/KPtyDevice.cpp +} + +HEADERS += \ + src/lexer/lexeroctavegui.h \ + src/MainWindow.h \ + src/WorkspaceView.h \ + src/HistoryDockWidget.h \ + src/FilesDockWidget.h \ + src/FileEditorMdiSubWindow.h \ + src/BrowserWidget.h \ + src/ImageViewerMdiSubWindow.h \ + src/irc/IRCWidget.h \ + src/SettingsDialog.h \ + src/ResourceManager.h \ + src/CommandLineParser.h \ + src/backend/OctaveCallbackThread.h \ + src/backend/OctaveLink.h \ + src/backend/OctaveMainThread.h \ + src/irc/IRCClientInterface.h \ + src/irc/IRCClientImpl.h \ + src/terminal/TerminalEmulation.h \ + src/backend/ReadlineAdapter.h \ + src/TerminalView.h \ + src/TerminalHighlighter.h \ + src/WelcomeWizard.h + +unix { +HEADERS += \ + src/terminal/LinuxTerminalEmulation.h \ + src/terminal/KPtyDevice.h \ + src/terminal/KPty.h +} + +FORMS += \ + src/SettingsDialog.ui \ + src/WelcomeWizard.ui
new file mode 100644 --- /dev/null +++ b/gui/src/AbstractTerminalView.cpp @@ -0,0 +1,35 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Michael Goffioul (michael.goffioul@gmail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "AbstractTerminalView.h" +#if defined (Q_OS_UNIX) +#include "TerminalView.h" +#elif defined (Q_OS_WIN) +#include "WinTerminalView.h" +#endif + +AbstractTerminalView* AbstractTerminalView::create (QWidget* parent) +{ +#if defined (Q_OS_UNIX) + return new TerminalView (parent); +#elif defined (Q_OS_WIN) + return new WinTerminalView (parent); +#else + qFatal ("No terminal widget available for this platform."); + return 0 +#endif +}
new file mode 100644 --- /dev/null +++ b/gui/src/AbstractTerminalView.h @@ -0,0 +1,42 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Michael Goffioul (michael.goffioul@gmail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef ABSTRACTTERMINALVIEW_H +#define ABSTRACTTERMINALVIEW_H + +#include <QString> + +class QWidget; + +/** + * @class AbstractTerminalView + * Abstract class defining the interface for any terminal view widget. + */ +class AbstractTerminalView +{ +public: + /** Sends text to the terminal. */ + virtual void sendText (const QString&) = 0; + + /** Gets the terminal widget. */ + virtual QWidget* widget (void) = 0; + + /** Creates a terminal view for the current platform. */ + static AbstractTerminalView* create (QWidget* parent = 0); +}; + +#endif // ABSTRACTTERMINALVIEW_H
new file mode 100644 --- /dev/null +++ b/gui/src/BrowserWidget.cpp @@ -0,0 +1,105 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "BrowserWidget.h" +#include <QVBoxLayout> +#include <QAction> +#include <QStyle> +#include <QApplication> + +BrowserWidget::BrowserWidget (QWidget * parent):QWidget (parent) +{ + construct (); +} + +void +BrowserWidget::construct () +{ + QStyle *style = QApplication::style (); + m_navigationToolBar = new QToolBar (this); + m_webView = new QWebView (this); + m_urlLineEdit = new QLineEdit (this); + m_statusBar = new QStatusBar (this); + m_progressBar = new QProgressBar (this); + m_progressBar->setMaximumWidth (150); + + m_webView->setSizePolicy (QSizePolicy::Expanding, QSizePolicy::Expanding); + QAction *backAction = + new QAction (style->standardIcon (QStyle::SP_ArrowLeft), + "", m_navigationToolBar); + QAction *forwardAction = + new QAction (style->standardIcon (QStyle::SP_ArrowRight), + "", m_navigationToolBar); + + m_navigationToolBar->addAction (backAction); + m_navigationToolBar->addAction (forwardAction); + m_navigationToolBar->addWidget (m_urlLineEdit); + + QVBoxLayout *layout = new QVBoxLayout (); + layout->addWidget (m_navigationToolBar); + layout->addWidget (m_webView); + + QWidget *bottomWidget = new QWidget (this); + QHBoxLayout *bottomLineLayout = new QHBoxLayout (); + bottomLineLayout->addWidget (m_progressBar); + bottomLineLayout->addWidget (m_statusBar); + bottomLineLayout->setMargin (0); + bottomWidget->setLayout (bottomLineLayout); + + layout->addWidget (bottomWidget); + layout->setMargin (2); + setLayout (layout); + + connect (backAction, SIGNAL (triggered ()), m_webView, SLOT (back ())); + connect (forwardAction, SIGNAL (triggered ()), m_webView, + SLOT (forward ())); + connect (m_webView, SIGNAL (urlChanged (QUrl)), this, SLOT (setUrl (QUrl))); + connect (m_urlLineEdit, SIGNAL (returnPressed ()), this, + SLOT (jumpToWebsite ())); + + connect (m_webView, SIGNAL (statusBarMessage(QString)), + m_statusBar, SLOT (showMessage(QString))); + connect (m_webView, SIGNAL (loadProgress(int)), + m_progressBar, SLOT (setValue(int))); +} + +void +BrowserWidget::setUrl (QUrl url) +{ + m_urlLineEdit->setText (url.toString ()); +} + +void +BrowserWidget::jumpToWebsite () +{ + QString url = m_urlLineEdit->text (); + if (!url.startsWith ("http://") && !url.startsWith ("https://")) + url = "http://" + url; + load (url); +} + +void +BrowserWidget::showStatusMessage (QString message) +{ + m_statusBar->showMessage (message, 1000); +} + +void +BrowserWidget::load (QUrl url) +{ + m_webView->load (url); +}
new file mode 100644 --- /dev/null +++ b/gui/src/BrowserWidget.h @@ -0,0 +1,50 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef BROWSERMDISUBWINDOW_H +#define BROWSERMDISUBWINDOW_H + +#include <QWidget> +#include <QToolBar> +#include <QLineEdit> +#include <QtWebKit/QWebView> +#include <QStatusBar> +#include <QProgressBar> + +class BrowserWidget:public QWidget +{ + Q_OBJECT +public: + BrowserWidget (QWidget * parent = 0); + void load (QUrl url); + +public slots: + void setUrl (QUrl url); + void jumpToWebsite (); + void showStatusMessage (QString message); + +private: + void construct (); + + QLineEdit *m_urlLineEdit; + QToolBar *m_navigationToolBar; + QWebView *m_webView; + QStatusBar *m_statusBar; + QProgressBar *m_progressBar; +}; + +#endif // BROWSERMDISUBWINDOW_H
new file mode 100644 --- /dev/null +++ b/gui/src/CommandLineParser.cpp @@ -0,0 +1,47 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "CommandLineParser.h" + +CommandLineParser::CommandLineParser () +{ +} + +void +CommandLineParser::registerOption (CommandLineOption commandLineOption) +{ + if (m_registeredCommandLineOptions.contains(commandLineOption)) + m_registeredCommandLineOptions.append(commandLineOption); +} + +void +CommandLineParser::registerOption (QString longOption, QString shortOption, QString description, bool withArgument) +{ + CommandLineOption commandLineOption; + commandLineOption.longOption = longOption; + commandLineOption.shortOption = shortOption; + commandLineOption.description = description; + commandLineOption.withArgument = withArgument; + registerOption (commandLineOption); +} + +void +CommandLineParser::parse (int argc, char** argv) +{ + Q_UNUSED(argc); + Q_UNUSED(argv); +}
new file mode 100644 --- /dev/null +++ b/gui/src/CommandLineParser.h @@ -0,0 +1,50 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef COMMANDLINEPARSER_H +#define COMMANDLINEPARSER_H + +#include <QList> +#include <QString> + +class CommandLineParser +{ +public: + struct CommandLineOption + { + QString longOption; + QString shortOption; + QString description; + bool withArgument; + + bool operator== (CommandLineOption other) + { + return longOption == other.longOption + || shortOption == other.shortOption; + } + }; + + CommandLineParser (); + void registerOption (CommandLineOption commandLineOption); + void registerOption (QString longOption, QString shortOption, QString description, bool withArgument); + void parse (int argc, char** argv); + +private: + QList<CommandLineOption> m_registeredCommandLineOptions; +}; + +#endif // COMMANDLINEPARSER_H
new file mode 100644 --- /dev/null +++ b/gui/src/FileEditorMdiSubWindow.cpp @@ -0,0 +1,596 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "FileEditorMdiSubWindow.h" +#include <QVBoxLayout> +#include <QApplication> +#include <QFile> +#include <QFont> +#include <QFileDialog> +#include <QMessageBox> +#include <QStyle> +#include <QTextStream> + +FileEditorMdiSubWindow::FileEditorMdiSubWindow (QWidget * parent):QMdiSubWindow + (parent) +{ + construct (); +} + +FileEditorMdiSubWindow::~FileEditorMdiSubWindow () +{ +} + +void +FileEditorMdiSubWindow::closeEvent(QCloseEvent *event) +{ + if ( m_mainWindow->isCloseApplication() ) + { + // close wohle application: save file or not if modified + checkFileModified ("Close Octave GUI",0); // no cancel possible + } + else + { + // ignore close event if file is not saved and user cancels closing this window + if (checkFileModified ("Close File",QMessageBox::Cancel)==QMessageBox::Cancel) + event->ignore(); + else + event->accept(); + } +} + +void +FileEditorMdiSubWindow::handleMarginClicked(int margin, int line, Qt::KeyboardModifiers state) +{ + Q_UNUSED (state); + if ( margin == 1 ) // marker margin + { + unsigned int mask = m_editor->markersAtLine (line); + if (mask && (1 << MARKER_BOOKMARK)) + m_editor->markerDelete(line,MARKER_BOOKMARK); + else + m_editor->markerAdd(line,MARKER_BOOKMARK); + } +} + +void +FileEditorMdiSubWindow::newWindowTitle(bool modified) +{ + QString title(m_fileName); + if ( !m_longTitle ) + { + QFileInfo file(m_fileName); + title = file.fileName(); + } + if ( modified ) + { + setWindowTitle(title.prepend("* ")); + } + else + setWindowTitle (title); +} + +void +FileEditorMdiSubWindow::handleCopyAvailable(bool enableCopy) +{ + m_copyAction->setEnabled(enableCopy); + m_cutAction->setEnabled(enableCopy); +} + + +void +FileEditorMdiSubWindow::openFile () +{ + if (checkFileModified ("Open File",QMessageBox::Cancel)==QMessageBox::Cancel) + { + return; // existing file not saved and opening another file canceled by user + } + QString openFileName; + QFileDialog dlg(this); + dlg.setNameFilter(SAVE_FILE_FILTER); + dlg.setAcceptMode(QFileDialog::AcceptOpen); + dlg.setViewMode(QFileDialog::Detail); + if ( dlg.exec() ) + { + openFileName = dlg.selectedFiles().at(0); + if (openFileName.isEmpty ()) + return; + loadFile(openFileName); + } +} + +void +FileEditorMdiSubWindow::loadFile (QString fileName) +{ + QFile file (fileName); + if (!file.open (QFile::ReadOnly)) + { + QMessageBox::warning (this, tr ("File Editor"), + tr ("Cannot read file %1:\n%2.").arg (fileName). + arg (file.errorString ())); + return; + } + + QTextStream in (&file); + QApplication::setOverrideCursor (Qt::WaitCursor); + m_editor->setText (in.readAll ()); + QApplication::restoreOverrideCursor (); + + m_fileName = fileName; + newWindowTitle (false); // window title (no modification) + m_statusBar->showMessage (tr ("File loaded."), 2000); + m_editor->setModified (false); // loaded file is not modified yet +} + +void +FileEditorMdiSubWindow::newFile () +{ + if (checkFileModified ("Create New File",QMessageBox::Cancel)==QMessageBox::Cancel) + { + return; // existing file not saved and creating new file canceled by user + } + m_fileName = UNNAMED_FILE; + newWindowTitle (false); // window title (no modification) + m_editor->setText (""); + m_editor->setModified (false); // new file is not modified yet +} + +int +FileEditorMdiSubWindow::checkFileModified (QString msg, int cancelButton) +{ + int decision = QMessageBox::Yes; + if (m_editor->isModified ()) + { + // file is modified but not saved, aks user what to do + decision = QMessageBox::warning (this, + msg, + tr ("The file %1\n" + "has been modified. Do you want to save the changes?"). + arg (m_fileName), + QMessageBox::Save, QMessageBox::Discard, cancelButton ); + if (decision == QMessageBox::Save) + { + saveFile (); + if (m_editor->isModified ()) + { + // If the user attempted to save the file, but it's still + // modified, then probably something went wrong, so return cancel + // for cancel this operation or try to save files as if cancel not + // possible + if ( cancelButton ) + return (QMessageBox::Cancel); + else + saveFileAs (); + } + } + } + return (decision); +} + +void +FileEditorMdiSubWindow::saveFile () +{ + saveFile(m_fileName); +} + +void +FileEditorMdiSubWindow::saveFile (QString saveFileName) +{ + // it is a new file with the name "<unnamed>" -> call saveFielAs + if (saveFileName==UNNAMED_FILE || saveFileName.isEmpty ()) + { + saveFileAs(); + return; + } + + // open the file for writing + QFile file (saveFileName); + if (!file.open (QFile::WriteOnly)) + { + QMessageBox::warning (this, tr ("File Editor"), + tr ("Cannot write file %1:\n%2."). + arg (saveFileName).arg (file.errorString ())); + return; + } + + // save the contents into the file + QTextStream out (&file); + QApplication::setOverrideCursor (Qt::WaitCursor); + out << m_editor->text (); + QApplication::restoreOverrideCursor (); + m_fileName = saveFileName; // save file name for later use + newWindowTitle(false); // set the window title to actual file name (not modified) + m_statusBar->showMessage (tr ("File %1 saved").arg(m_fileName), 2000); + m_editor->setModified (false); // files is save -> not modified +} + +void +FileEditorMdiSubWindow::saveFileAs () +{ + QString saveFileName(m_fileName); + QFileDialog dlg(this); + if (saveFileName==UNNAMED_FILE || saveFileName.isEmpty ()) + { + saveFileName = QDir::homePath(); + dlg.setDirectory(saveFileName); + } + else + { + dlg.selectFile(saveFileName); + } + dlg.setNameFilter(SAVE_FILE_FILTER); + dlg.setDefaultSuffix("m"); + dlg.setAcceptMode(QFileDialog::AcceptSave); + dlg.setViewMode(QFileDialog::Detail); + if ( dlg.exec() ) + { + saveFileName = dlg.selectedFiles().at(0); + if (saveFileName.isEmpty ()) + return; + saveFile(saveFileName); + } +} + +// handle the run command +void +FileEditorMdiSubWindow::runFile () +{ + if (m_editor->isModified ()) + saveFile(m_fileName); + m_terminalView->sendText (QString ("run \'%1\'\n").arg (m_fileName)); + //m_terminalView->widget ()->setFocus (); +} + + +// (un)comment selected text +void +FileEditorMdiSubWindow::commentSelectedText () +{ + doCommentSelectedText (true); +} +void +FileEditorMdiSubWindow::uncommentSelectedText () +{ + doCommentSelectedText (false); +} +void +FileEditorMdiSubWindow::doCommentSelectedText (bool comment) +{ + if ( m_editor->hasSelectedText() ) + { + int lineFrom, lineTo, colFrom, colTo, i; + m_editor->getSelection (&lineFrom,&colFrom,&lineTo,&colTo); + if ( colTo == 0 ) // the beginning of last line is not selected + lineTo--; // stop at line above + m_editor->beginUndoAction (); + for ( i=lineFrom; i<=lineTo; i++ ) + { + if ( comment ) + m_editor->insertAt("%",i,0); + else + { + QString line(m_editor->text(i)); + if ( line.startsWith("%") ) + { + m_editor->setSelection(i,0,i,1); + m_editor->removeSelectedText(); + } + } + } + m_editor->endUndoAction (); + } +} + + +// remove bookmarks +void +FileEditorMdiSubWindow::removeBookmark () +{ + m_editor->markerDeleteAll(MARKER_BOOKMARK); +} +// toggle bookmark +void +FileEditorMdiSubWindow::toggleBookmark () +{ + int line,cur; + m_editor->getCursorPosition(&line,&cur); + if ( m_editor->markersAtLine (line) && (1 << MARKER_BOOKMARK) ) + m_editor->markerDelete(line,MARKER_BOOKMARK); + else + m_editor->markerAdd(line,MARKER_BOOKMARK); +} +// goto next bookmark +void +FileEditorMdiSubWindow::nextBookmark () +{ + int line,cur,nextline; + m_editor->getCursorPosition(&line,&cur); + if ( m_editor->markersAtLine(line) && (1 << MARKER_BOOKMARK) ) + line++; // we have a bookmark here, so start search from next line + nextline = m_editor->markerFindNext(line,(1 << MARKER_BOOKMARK)); + m_editor->setCursorPosition(nextline,0); +} +// goto previous bookmark +void +FileEditorMdiSubWindow::prevBookmark () +{ + int line,cur,prevline; + m_editor->getCursorPosition(&line,&cur); + if ( m_editor->markersAtLine(line) && (1 << MARKER_BOOKMARK) ) + line--; // we have a bookmark here, so start search from prev line + prevline = m_editor->markerFindPrevious(line,(1 << MARKER_BOOKMARK)); + m_editor->setCursorPosition(prevline,0); +} + +// function for setting the already existing lexer from MainWindow +void +FileEditorMdiSubWindow::initEditor (AbstractTerminalView* terminalView, + LexerOctaveGui* lexer, + MainWindow* mainWindow) +{ + m_editor->setLexer(lexer); + m_terminalView = terminalView; // for sending commands to octave + // TODO: make a global commandOctave function? + m_mainWindow = mainWindow; // get the MainWindow for chekcing state at subwindow close +} + +// TODO: Do we still need tool tips in the status bar? Tool tips are now +// shown directly at the theme icons +void +FileEditorMdiSubWindow::showToolTipNew () +{ + m_statusBar->showMessage ("Create a new file", 2000); +} + +void +FileEditorMdiSubWindow::showToolTipOpen () +{ + m_statusBar->showMessage ("Open a file", 2000); +} + +void +FileEditorMdiSubWindow::showToolTipSave () +{ + m_statusBar->showMessage ("Save the file", 2000); +} + +void +FileEditorMdiSubWindow::showToolTipSaveAs () +{ + m_statusBar->showMessage ("Save the file as", 2000); +} + +void +FileEditorMdiSubWindow::showToolTipUndo () +{ + m_statusBar->showMessage ("Revert previous changes", 2000); +} + +void +FileEditorMdiSubWindow::showToolTipRedo () +{ + m_statusBar->showMessage ("Append previous changes", 2000); +} + +void +FileEditorMdiSubWindow::registerModified (bool modified) +{ + m_modified = modified; +} + +void +FileEditorMdiSubWindow::construct () +{ + QSettings *settings = ResourceManager::instance ()->settings (); + QStyle *style = QApplication::style (); + setWidget (new QWidget ()); + + m_menuBar = new QMenuBar (this); + m_toolBar = new QToolBar (this); + m_statusBar = new QStatusBar (this); + m_editor = new QsciScintilla (this); + + // markers + m_editor->setMarginType (1, QsciScintilla::SymbolMargin); + m_editor->setMarginSensitivity(1,true); + m_editor->markerDefine(QsciScintilla::RightTriangle,MARKER_BOOKMARK); + connect(m_editor,SIGNAL(marginClicked(int,int,Qt::KeyboardModifiers)), + this,SLOT(handleMarginClicked(int,int,Qt::KeyboardModifiers))); + + // line numbers + m_editor->setMarginsForegroundColor(QColor(96,96,96)); + m_editor->setMarginsBackgroundColor(QColor(232,232,220)); + if ( settings->value ("editor/showLineNumbers",true).toBool () ) + { + QFont marginFont( settings->value ("editor/fontName","Courier").toString () , + settings->value ("editor/fontSize",10).toInt () ); + m_editor->setMarginsFont( marginFont ); + QFontMetrics metrics(marginFont); + m_editor->setMarginType (2, QsciScintilla::TextMargin); + m_editor->setMarginWidth(2, metrics.width("99999")); + m_editor->setMarginLineNumbers(2, true); + } + // code folding + m_editor->setMarginType (3, QsciScintilla::SymbolMargin); + m_editor->setFolding (QsciScintilla::BoxedTreeFoldStyle , 3); + // other features + if ( settings->value ("editor/highlightActualLine",true).toBool () ) + { + m_editor->setCaretLineVisible(true); + m_editor->setCaretLineBackgroundColor(QColor(255,255,200)); + } + m_editor->setBraceMatching (QsciScintilla::SloppyBraceMatch); + m_editor->setAutoIndent (true); + m_editor->setIndentationWidth (2); + m_editor->setIndentationsUseTabs (false); + if ( settings->value ("editor/codeCompletion",true).toBool () ) + { + m_editor->autoCompleteFromAll(); + m_editor->setAutoCompletionSource(QsciScintilla::AcsAPIs); + m_editor->setAutoCompletionThreshold (3); + } + m_editor->setUtf8 (true); + m_longTitle = settings->value ("editor/longWindowTitle",true).toBool (); + + // The Actions + + // Theme icons with QStyle icons as fallback + QAction *closeAction = new QAction ( + QIcon::fromTheme("window-close",style->standardIcon (QStyle::SP_DialogCloseButton)), + tr("&Close File"), m_toolBar); + QAction *newAction = new QAction ( + QIcon::fromTheme("document-new",style->standardIcon (QStyle::SP_FileIcon)), + tr("&New File"), m_toolBar); + QAction *openAction = new QAction ( + QIcon::fromTheme("document-open",style->standardIcon (QStyle::SP_DirOpenIcon)), + tr("&Open File"), m_toolBar); + QAction *saveAction = new QAction ( + QIcon::fromTheme("document-save",style->standardIcon (QStyle::SP_DriveHDIcon)), + tr("&Save File"), m_toolBar); + QAction *saveAsAction = new QAction ( + QIcon::fromTheme("document-save-as",style->standardIcon (QStyle::SP_DriveFDIcon)), + tr("Save File &As"), m_toolBar); + QAction *undoAction = new QAction ( + QIcon::fromTheme("edit-undo",style->standardIcon (QStyle::SP_ArrowLeft)), + tr("&Undo"), m_toolBar); + QAction *redoAction = new QAction ( + QIcon::fromTheme("edit-redo",style->standardIcon (QStyle::SP_ArrowRight)), + tr("&Redo"), m_toolBar); + m_copyAction = new QAction (QIcon::fromTheme("edit-copy"),tr("&Copy"),m_toolBar); + m_cutAction = new QAction (QIcon::fromTheme("edit-cut"),tr("Cu&t"),m_toolBar); + QAction *pasteAction = new QAction (QIcon::fromTheme("edit-paste"),tr("&Paste"),m_toolBar); + QAction *nextBookmarkAction = new QAction (tr("&Next Bookmark"),m_toolBar); + QAction *prevBookmarkAction = new QAction (tr("Pre&vious Bookmark"),m_toolBar); + QAction *toggleBookmarkAction = new QAction (tr("Toggle &Bookmark"),m_toolBar); + QAction *removeBookmarkAction = new QAction (tr("&Remove All Bookmarks"),m_toolBar); + QAction *commentSelectedAction = new QAction (tr("&Comment Selected Text"),m_toolBar); + QAction *uncommentSelectedAction = new QAction (tr("&Uncomment Selected Text"),m_toolBar); + QAction *runAction = new QAction ( + QIcon::fromTheme("media-play",style->standardIcon (QStyle::SP_MediaPlay)), + tr("&Run File"), m_toolBar); + + // some actions are disabled from the beginning + m_copyAction->setEnabled(false); + m_cutAction->setEnabled(false); + connect(m_editor,SIGNAL(copyAvailable(bool)),this,SLOT(handleCopyAvailable(bool))); + + // short cuts + newAction->setShortcut(QKeySequence::New); + openAction->setShortcut(QKeySequence::Open); + saveAction->setShortcut(QKeySequence::Save); + saveAsAction->setShortcut(QKeySequence::SaveAs); + undoAction->setShortcut(QKeySequence::Undo); + redoAction->setShortcut(QKeySequence::Redo); + m_copyAction->setShortcut(QKeySequence::Copy); + m_cutAction->setShortcut(QKeySequence::Cut); + pasteAction->setShortcut(QKeySequence::Paste); + runAction->setShortcut(Qt::Key_F5); + nextBookmarkAction->setShortcut(Qt::Key_F2); + prevBookmarkAction->setShortcut(Qt::SHIFT + Qt::Key_F2); + toggleBookmarkAction->setShortcut(Qt::Key_F7); + commentSelectedAction->setShortcut(Qt::CTRL + Qt::Key_R); + uncommentSelectedAction->setShortcut(Qt::CTRL + Qt::Key_T); + + // toolbar + m_toolBar->setIconSize(QSize(16,16)); // smaller icons (make configurable in user settings?) + m_toolBar->addAction (closeAction); + m_toolBar->addAction (newAction); + m_toolBar->addAction (openAction); + m_toolBar->addAction (saveAction); + m_toolBar->addAction (saveAsAction); + m_toolBar->addSeparator(); + m_toolBar->addAction (undoAction); + m_toolBar->addAction (redoAction); + m_toolBar->addAction (m_copyAction); + m_toolBar->addAction (m_cutAction); + m_toolBar->addAction (pasteAction); + m_toolBar->addSeparator(); + m_toolBar->addAction (runAction); + + // menu bar + QMenu *fileMenu = new QMenu(tr("&File"),m_menuBar); + fileMenu->addAction(newAction); + fileMenu->addAction(openAction); + fileMenu->addAction(saveAction); + fileMenu->addAction(saveAsAction); + fileMenu->addSeparator(); + fileMenu->addAction (closeAction); + m_menuBar->addMenu(fileMenu); + QMenu *editMenu = new QMenu(tr("&Edit"),m_menuBar); + editMenu->addAction(undoAction); + editMenu->addAction(redoAction); + editMenu->addSeparator(); + editMenu->addAction(m_copyAction); + editMenu->addAction(m_cutAction); + editMenu->addAction(pasteAction); + editMenu->addSeparator(); + editMenu->addAction(commentSelectedAction); + editMenu->addAction(uncommentSelectedAction); + editMenu->addSeparator(); + editMenu->addAction(toggleBookmarkAction); + editMenu->addAction(nextBookmarkAction); + editMenu->addAction(prevBookmarkAction); + editMenu->addAction(removeBookmarkAction); + m_menuBar->addMenu(editMenu); + QMenu *runMenu = new QMenu(tr("&Run"),m_menuBar); + runMenu->addAction(runAction); + m_menuBar->addMenu(runMenu); + + + QVBoxLayout *layout = new QVBoxLayout (); + layout->addWidget (m_menuBar); + layout->addWidget (m_toolBar); + layout->addWidget (m_editor); + layout->addWidget (m_statusBar); + layout->setMargin (2); + widget ()->setLayout (layout); + + connect (closeAction, SIGNAL (triggered()), this, SLOT (close())); + connect (newAction, SIGNAL (triggered ()), this, SLOT (newFile ())); + connect (openAction, SIGNAL (triggered ()), this, SLOT (openFile ())); + connect (undoAction, SIGNAL (triggered ()), m_editor, SLOT (undo ())); + connect (redoAction, SIGNAL (triggered ()), m_editor, SLOT (redo ())); + connect (m_copyAction, SIGNAL (triggered ()), m_editor, SLOT (copy ())); + connect (m_cutAction, SIGNAL (triggered ()), m_editor, SLOT (cut ())); + connect (pasteAction, SIGNAL (triggered ()), m_editor, SLOT (paste ())); + connect (saveAction, SIGNAL (triggered ()), this, SLOT (saveFile ())); + connect (saveAsAction, SIGNAL (triggered ()), this, SLOT (saveFileAs ())); + connect (runAction, SIGNAL (triggered ()), this, SLOT (runFile ())); + connect (toggleBookmarkAction, SIGNAL (triggered ()), this, SLOT (toggleBookmark ())); + connect (nextBookmarkAction, SIGNAL (triggered ()), this, SLOT (nextBookmark ())); + connect (prevBookmarkAction, SIGNAL (triggered ()), this, SLOT (prevBookmark ())); + connect (removeBookmarkAction, SIGNAL (triggered ()), this, SLOT (removeBookmark ())); + connect (commentSelectedAction, SIGNAL (triggered ()), this, SLOT (commentSelectedText ())); + connect (uncommentSelectedAction, SIGNAL (triggered ()), this, SLOT (uncommentSelectedText ())); + + // TODO: Do we still need tool tips in the status bar? Tool tips are now + // shown directly at the theme icons + connect (newAction, SIGNAL (hovered ()), this, SLOT (showToolTipNew ())); + connect (openAction, SIGNAL (hovered ()), this, SLOT (showToolTipOpen ())); + connect (undoAction, SIGNAL (hovered ()), this, SLOT (showToolTipUndo ())); + connect (redoAction, SIGNAL (hovered ()), this, SLOT (showToolTipRedo ())); + connect (saveAction, SIGNAL (hovered ()), this, SLOT (showToolTipSave ())); + connect (saveAsAction, SIGNAL (hovered ()), this,SLOT (showToolTipSaveAs ())); + + // connect modified signal + connect (m_editor, SIGNAL (modificationChanged(bool)), this, SLOT (newWindowTitle(bool)) ); + + m_fileName = ""; + newWindowTitle (false); + setWindowIcon(QIcon::fromTheme("accessories-text-editor",style->standardIcon (QStyle::SP_FileIcon))); + show (); +}
new file mode 100644 --- /dev/null +++ b/gui/src/FileEditorMdiSubWindow.h @@ -0,0 +1,103 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef FILEEDITORMDISUBWINDOW_H +#define FILEEDITORMDISUBWINDOW_H + +#include "MainWindow.h" +#include "AbstractTerminalView.h" +#include <QMdiSubWindow> +#include <QToolBar> +#include <QAction> +#include <QMenuBar> +#include <QStatusBar> +#include <QCloseEvent> +#include <Qsci/qsciscintilla.h> +// Not available in the Debian repos yet! +// #include <Qsci/qscilexeroctave.h> +#include "lexer/lexeroctavegui.h" + +const char UNNAMED_FILE[] = "<unnamed>"; +const char SAVE_FILE_FILTER[] = "Octave Files (*.m);;All Files (*.*)"; +enum MARKER + { + MARKER_BOOKMARK, + MARKER_BREAKPOINT + }; + +class FileEditorMdiSubWindow:public QMdiSubWindow +{ +Q_OBJECT public: + FileEditorMdiSubWindow (QWidget * parent = 0); + ~FileEditorMdiSubWindow (); + void loadFile (QString fileName); + void initEditor (AbstractTerminalView *terminalView, + LexerOctaveGui *lexer, + MainWindow *mainWindow); + +public slots: + + void newFile (); + void openFile (); + void saveFile (); + void saveFile (QString fileName); + void saveFileAs (); + + void showToolTipNew (); + void showToolTipOpen (); + void showToolTipSave (); + void showToolTipSaveAs (); + void showToolTipUndo (); + void showToolTipRedo (); + void registerModified (bool modified); + +protected: + void closeEvent(QCloseEvent *event); + +private: + int checkFileModified (QString msg, int cancelButton); + void construct (); + void doCommentSelectedText (bool comment); + QMenuBar *m_menuBar; + QToolBar *m_toolBar; + QsciScintilla *m_editor; + QStatusBar *m_statusBar; + QString m_fileName; + QString m_fileNameShort; + AbstractTerminalView* m_terminalView; + QAction* m_copyAction; + QAction* m_cutAction; + MainWindow* m_mainWindow; + int m_markerBookmark; + bool m_modified; + bool m_longTitle; + +private slots: + void newWindowTitle(bool modified); + void handleMarginClicked(int line, int margin, Qt::KeyboardModifiers state); + void handleCopyAvailable(bool enableCopy); + void runFile(); + void removeBookmark (); + void toggleBookmark (); + void nextBookmark(); + void prevBookmark(); + void commentSelectedText(); + void uncommentSelectedText(); + +}; + +#endif // FILEEDITORMDISUBWINDOW_H
new file mode 100644 --- /dev/null +++ b/gui/src/FilesDockWidget.cpp @@ -0,0 +1,209 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "ResourceManager.h" +#include "FilesDockWidget.h" + +#include <QApplication> +#include <QFileInfo> +#include <QCompleter> +#include <QSettings> +#include <QProcess> +#include <QDebug> + +FilesDockWidget::FilesDockWidget (QWidget * parent):QDockWidget (parent) +{ + setObjectName ("FilesDockWidget"); + setWindowTitle (tr ("Current Directory")); + setWidget (new QWidget (this)); + + // Create a toolbar + m_navigationToolBar = new QToolBar ("", widget ()); + m_navigationToolBar->setAllowedAreas (Qt::TopToolBarArea); + m_navigationToolBar->setMovable (false); + m_navigationToolBar->setIconSize (QSize (20, 20)); + + // Add a button to the toolbar with the QT standard icon for up-directory + // TODO: Maybe change this to be an up-directory icon that is OS specific??? + QStyle *style = QApplication::style (); + m_directoryIcon = style->standardIcon (QStyle::SP_FileDialogToParent); + m_directoryUpAction = new QAction (m_directoryIcon, "", m_navigationToolBar); + m_directoryUpAction->setStatusTip (tr ("Move up one directory.")); + + m_currentDirectory = new QLineEdit (m_navigationToolBar); + m_currentDirectory->setStatusTip (tr ("Enter the path or filename.")); + + m_navigationToolBar->addAction (m_directoryUpAction); + m_navigationToolBar->addWidget (m_currentDirectory); + connect (m_directoryUpAction, SIGNAL (triggered ()), this, + SLOT (onUpDirectory ())); + + // TODO: Add other buttons for creating directories + + // Create the QFileSystemModel starting in the home directory + QString + homePath = QDir::homePath (); + // TODO: This should occur after Octave has been initialized and the startup directory of Octave is established + + m_fileSystemModel = new QFileSystemModel (this); + m_fileSystemModel->setFilter (QDir::NoDotAndDotDot | QDir::AllEntries); + QModelIndex + rootPathIndex = m_fileSystemModel->setRootPath (homePath); + + // Attach the model to the QTreeView and set the root index + m_fileTreeView = new QTreeView (widget ()); + m_fileTreeView->setModel (m_fileSystemModel); + m_fileTreeView->setRootIndex (rootPathIndex); + m_fileTreeView->setSortingEnabled (true); + m_fileTreeView->setAlternatingRowColors (true); + m_fileTreeView->setAnimated (true); + m_fileTreeView->setColumnHidden (1, true); + m_fileTreeView->setColumnHidden (2, true); + m_fileTreeView->setColumnHidden (3, true); + m_fileTreeView->setStatusTip (tr ("Doubleclick a file to open it.")); + + setCurrentDirectory (m_fileSystemModel->fileInfo (rootPathIndex). + absoluteFilePath ()); + + connect (m_fileTreeView, SIGNAL (doubleClicked (const QModelIndex &)), this, + SLOT (itemDoubleClicked (const QModelIndex &))); + + // Layout the widgets vertically with the toolbar on top + QVBoxLayout * + layout = new QVBoxLayout (); + layout->setSpacing (0); + layout->addWidget (m_navigationToolBar); + layout->addWidget (m_fileTreeView); + layout->setMargin (1); + widget ()->setLayout (layout); + // TODO: Add right-click contextual menus for copying, pasting, deleting files (and others) + + connect (m_currentDirectory, SIGNAL (returnPressed ()), this, + SLOT (currentDirectoryEntered ())); + QCompleter * + completer = new QCompleter (m_fileSystemModel, this); + m_currentDirectory->setCompleter (completer); + + connect (this, SIGNAL (visibilityChanged(bool)), this, SLOT(handleVisibilityChanged(bool))); + + setStyleSheet( + " QDockWidget { " + " border:1px solid rgba(200, 200, 200, 255); " + " background-color: qlineargradient(spread:pad, " + " x1:0.1, y1:0, x2:0.9, y2:1, " + " stop:0.256444 rgba(215, 215, 255, 255), " + " stop:0.550888 rgba(255, 255, 255, 255), " + " stop:0.780424 rgba(215, 215, 255, 255)); " + " } " + ); +} + +void +FilesDockWidget::itemDoubleClicked (const QModelIndex & index) +{ + // Retrieve the file info associated with the model index. + QFileInfo fileInfo = m_fileSystemModel->fileInfo (index); + + // If it is a directory, cd into it. + if (fileInfo.isDir ()) + { + m_fileSystemModel->setRootPath (fileInfo.absolutePath ()); + m_fileTreeView->setRootIndex (index); + setCurrentDirectory (m_fileSystemModel->fileInfo (index). + absoluteFilePath ()); + } + // Otherwise attempt to open it. + else + { + // Check if the user wants to use a custom file editor. + QSettings *settings = ResourceManager::instance ()->settings (); + if (settings->value ("useCustomFileEditor").toBool ()) + { + QString editor = settings->value ("customFileEditor").toString (); + QStringList arguments; + arguments << fileInfo.filePath (); + QProcess::execute (editor, arguments); + } + else + { + emit openFile (fileInfo.filePath ()); + } + } +} + +void +FilesDockWidget::setCurrentDirectory (QString currentDirectory) +{ + m_currentDirectory->setText (currentDirectory); +} + +void +FilesDockWidget::onUpDirectory (void) +{ + QDir dir = + QDir (m_fileSystemModel->filePath (m_fileTreeView->rootIndex ())); + dir.cdUp (); + m_fileSystemModel->setRootPath (dir.absolutePath ()); + m_fileTreeView->setRootIndex (m_fileSystemModel-> + index (dir.absolutePath ())); + setCurrentDirectory (dir.absolutePath ()); +} + +void +FilesDockWidget::currentDirectoryEntered () +{ + QFileInfo fileInfo (m_currentDirectory->text ()); + if (fileInfo.isDir ()) + { + m_fileTreeView->setRootIndex (m_fileSystemModel-> + index (fileInfo.absolutePath ())); + m_fileSystemModel->setRootPath (fileInfo.absolutePath ()); + setCurrentDirectory (fileInfo.absoluteFilePath ()); + } + else + { + if (QFile::exists (fileInfo.absoluteFilePath ())) + emit openFile (fileInfo.absoluteFilePath ()); + } +} + +void +FilesDockWidget::noticeSettings () +{ + QSettings *settings = ResourceManager::instance ()->settings (); + m_fileTreeView->setColumnHidden (0, !settings->value ("showFilenames").toBool ()); + m_fileTreeView->setColumnHidden (1, !settings->value ("showFileSize").toBool ()); + m_fileTreeView->setColumnHidden (2, !settings->value ("showFileType").toBool ()); + m_fileTreeView->setColumnHidden (3, !settings->value ("showLastModified").toBool ()); + m_fileTreeView->setAlternatingRowColors (settings->value ("useAlternatingRowColors").toBool ()); + //if (settings.value ("showHiddenFiles").toBool ()) + // TODO: React on option for hidden files. +} + +void +FilesDockWidget::handleVisibilityChanged (bool visible) +{ + if (visible) + emit activeChanged (true); +} + +void +FilesDockWidget::closeEvent (QCloseEvent *event) +{ + emit activeChanged (false); + QDockWidget::closeEvent (event); +}
new file mode 100644 --- /dev/null +++ b/gui/src/FilesDockWidget.h @@ -0,0 +1,85 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef FILESDOCKWIDGET_H +#define FILESDOCKWIDGET_H + +#include <QListView> +#include <QDate> +#include <QObject> +#include <QWidget> +#include <QListWidget> +#include <QFileSystemModel> +#include <QToolBar> +#include <QToolButton> +#include <QVBoxLayout> +#include <QAction> +#include <QTreeView> + +#include <QDockWidget> +#include <QLineEdit> + +class FilesDockWidget:public QDockWidget +{ + Q_OBJECT +public: + FilesDockWidget (QWidget * parent = 0); + +public slots: + /** Slot for handling a change in directory via double click. */ + void itemDoubleClicked (const QModelIndex & index); + + /** Slot for handling the up-directory button in the toolbar. */ + void onUpDirectory (); + + void setCurrentDirectory (QString currentDirectory); + + void currentDirectoryEntered (); + + /** Tells the widget to notice settings that are probably new. */ + void noticeSettings (); + void handleVisibilityChanged (bool visible); + +signals: + void openFile (QString fileName); + + /** Custom signal that tells if a user has clicke away that dock widget. */ + void activeChanged (bool active); + +protected: + void closeEvent (QCloseEvent *event); + +private: + // TODO: Add toolbar with buttons for navigating the path, creating dirs, etc + + /** Toolbar for file and directory manipulation. */ + QToolBar * m_navigationToolBar; + + /** Variables for the up-directory action. */ + QIcon m_directoryIcon; + QAction *m_directoryUpAction; + QToolButton *upDirectoryButton; + + /** The file system model. */ + QFileSystemModel *m_fileSystemModel; + + /** The file system view. */ + QTreeView *m_fileTreeView; + QLineEdit *m_currentDirectory; +}; + +#endif // FILESDOCKWIDGET_H
new file mode 100644 --- /dev/null +++ b/gui/src/HistoryDockWidget.cpp @@ -0,0 +1,83 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "HistoryDockWidget.h" +#include <QVBoxLayout> + +HistoryDockWidget::HistoryDockWidget (QWidget * parent):QDockWidget (parent) +{ + setObjectName ("HistoryDockWidget"); + construct (); +} + +void +HistoryDockWidget::construct () +{ + m_sortFilterProxyModel.setSourceModel(OctaveLink::instance ()->historyModel()); + m_historyListView = new QListView (this); + m_historyListView->setModel (&m_sortFilterProxyModel); + m_historyListView->setAlternatingRowColors (true); + m_historyListView->setEditTriggers (QAbstractItemView::NoEditTriggers); + m_historyListView->setStatusTip (tr ("Doubleclick a command to transfer it to the terminal.")); + m_filterLineEdit = new QLineEdit (this); + m_filterLineEdit->setStatusTip (tr ("Enter text to filter the command history.")); + QVBoxLayout *layout = new QVBoxLayout (); + + setWindowTitle (tr ("Command History")); + setWidget (new QWidget ()); + + layout->addWidget (m_historyListView); + layout->addWidget (m_filterLineEdit); + layout->setMargin (2); + + widget ()->setLayout (layout); + + connect (m_filterLineEdit, SIGNAL (textEdited (QString)), &m_sortFilterProxyModel, SLOT (setFilterWildcard(QString))); + connect (m_historyListView, SIGNAL (doubleClicked (QModelIndex)), this, SLOT (handleDoubleClick (QModelIndex))); + connect (this, SIGNAL (visibilityChanged(bool)), this, SLOT(handleVisibilityChanged(bool))); + + setStyleSheet( + " QDockWidget { " + " border:1px solid rgba(200, 200, 200, 255); " + " background-color: qlineargradient(spread:pad, " + " x1:0.1, y1:0, x2:0.9, y2:1, " + " stop:0.256444 rgba(215, 255, 215, 255), " + " stop:0.550888 rgba(255, 255, 255, 255), " + " stop:0.780424 rgba(215, 255, 215, 255)); " + " } " + ); +} + +void +HistoryDockWidget::handleDoubleClick (QModelIndex modelIndex) +{ + emit commandDoubleClicked (modelIndex.data().toString()); +} + +void +HistoryDockWidget::handleVisibilityChanged (bool visible) +{ + if (visible) + emit activeChanged (true); +} + +void +HistoryDockWidget::closeEvent (QCloseEvent *event) +{ + emit activeChanged (false); + QDockWidget::closeEvent (event); +}
new file mode 100644 --- /dev/null +++ b/gui/src/HistoryDockWidget.h @@ -0,0 +1,54 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef HISTORYDOCKWIDGET_H +#define HISTORYDOCKWIDGET_H + +#include <QDockWidget> +#include <QLineEdit> +#include <QListView> +#include <QSortFilterProxyModel> +#include "OctaveLink.h" + +class HistoryDockWidget:public QDockWidget +{ +Q_OBJECT +public: + HistoryDockWidget (QWidget *parent = 0); + void updateHistory (QStringList history); + +public slots: + void handleVisibilityChanged (bool visible); + +signals: + void information (QString message); + void commandDoubleClicked (QString command); + /** Custom signal that tells if a user has clicked away that dock widget. */ + void activeChanged (bool active); +protected: + void closeEvent (QCloseEvent *event); +private slots: + void handleDoubleClick (QModelIndex modelIndex); + +private: + void construct (); + QListView *m_historyListView; + QLineEdit *m_filterLineEdit; + QSortFilterProxyModel m_sortFilterProxyModel; +}; + +#endif // HISTORYDOCKWIDGET_H
new file mode 100644 --- /dev/null +++ b/gui/src/ImageViewerMdiSubWindow.cpp @@ -0,0 +1,43 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "ImageViewerMdiSubWindow.h" +#include <QLabel> +#include <QPixmap> +#include <QScrollArea> + +ImageViewerMdiSubWindow::ImageViewerMdiSubWindow (QPixmap pixmap, QWidget * parent):QMdiSubWindow (parent), +m_pixmap +(pixmap) +{ + construct (); +} + +void +ImageViewerMdiSubWindow::construct () +{ + QLabel *label = new QLabel (); + label->setBackgroundRole (QPalette::Base); + label->setSizePolicy (QSizePolicy::Ignored, QSizePolicy::Ignored); + label->setScaledContents (true); + label->setPixmap (m_pixmap); + + QScrollArea *scrollArea = new QScrollArea (this); + scrollArea->setBackgroundRole (QPalette::Dark); + scrollArea->setWidget (label); + setWidget (scrollArea); +}
new file mode 100644 --- /dev/null +++ b/gui/src/ImageViewerMdiSubWindow.h @@ -0,0 +1,33 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef IMAGEVIEWERMDISUBWINDOW_H +#define IMAGEVIEWERMDISUBWINDOW_H + +#include <QMdiSubWindow> + +class ImageViewerMdiSubWindow:public QMdiSubWindow +{ +public: + ImageViewerMdiSubWindow (QPixmap pixmap, QWidget * parent = 0); + +private: + void construct (); + QPixmap m_pixmap; +}; + +#endif // IMAGEVIEWERMDISUBWINDOW_H
new file mode 100644 --- /dev/null +++ b/gui/src/MainWindow.cpp @@ -0,0 +1,409 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include <QMenuBar> +#include <QMenu> +#include <QAction> +#include <QSettings> +#include <QDesktopServices> +#include <QFileDialog> +#include <QMessageBox> +#include "MainWindow.h" +#include "FileEditorMdiSubWindow.h" +#include "ImageViewerMdiSubWindow.h" +#include "SettingsDialog.h" + +#define VERSION_STRING "Octave GUI (0.8.5)" + +MainWindow::MainWindow (QWidget * parent):QMainWindow (parent) +{ + construct (); + OctaveLink::instance ()->launchOctave(); +} + +MainWindow::~MainWindow () +{ +} + +void +MainWindow::handleOpenFileRequest (QString fileName) +{ + reportStatusMessage (tr ("Opening file.")); + QPixmap pixmap; + if (pixmap.load (fileName)) + { +// ImageViewerMdiSubWindow *subWindow = new ImageViewerMdiSubWindow(pixmap, this); +// subWindow->setAttribute(Qt::WA_DeleteOnClose); +// m_centralMdiArea->addSubWindow(subWindow); +// subWindow->setWindowTitle(fileName); + } + else + { + openEditorFile(fileName); + } +} + +void +MainWindow::openEditor () +{ + openEditorFile(QString()); +} +void +MainWindow::openEditorFile (QString fileName) +{ + FileEditorMdiSubWindow *subWindow = new FileEditorMdiSubWindow (m_centralMdiArea); + subWindow->setAttribute (Qt::WA_DeleteOnClose); + // check whether lexer is already prepared and prepare it if not + if ( m_lexer == NULL ) + { + // this has to be done only once, not for each editor + m_lexer = new LexerOctaveGui(); + // Editor font (default or from settings) + QSettings *settings = ResourceManager::instance ()->settings (); + m_lexer->setDefaultFont( QFont( + settings->value ("editor/fontName","Courier").toString (), + settings->value ("editor/fontSize",10).toInt () ) ); + // TODO: Autoindent not working as it should + m_lexer->setAutoIndentStyle(QsciScintilla::AiMaintain || + QsciScintilla::AiOpening || + QsciScintilla::AiClosing); + // The API info that is used for auto completion + // TODO: Where to store a file with API info (raw or prepared?)? + // TODO: Also provide infos on octave-forge functions? + // TODO: Also provide infos on function parameters? + // By now, use the keywords-list from syntax highlighting + m_lexerAPI = new QsciAPIs(m_lexer); + QString keyword; + QStringList keywordList; + keyword = m_lexer->keywords(1); // get whole string with all keywords + keywordList = keyword.split(QRegExp("\\s+")); // split into single strings + int i; + for ( i=0; i<keywordList.size(); i++ ) + { + m_lexerAPI->add(keywordList.at(i)); // add single strings to the API + } + m_lexerAPI->prepare(); // prepare API info ... this make take some time + } + subWindow->initEditor(m_terminalView, m_lexer, this); // init necessary informations for editor + + if ( fileName.isEmpty() ) + subWindow->newFile (); + else + subWindow->loadFile (fileName); +} + + +void +MainWindow::reportStatusMessage (QString statusMessage) +{ + m_statusBar->showMessage (statusMessage, 1000); +} + +void +MainWindow::openWebPage (QString url) +{ + m_documentationWidget->load (QUrl (url)); +} + +void +MainWindow::handleSaveWorkspaceRequest () +{ + QString selectedFile = + QFileDialog::getSaveFileName (this, tr ("Save Workspace"), + ResourceManager::instance ()->homePath ()); + m_terminalView->sendText (QString ("save \'%1\'\n").arg (selectedFile)); + m_terminalView->widget ()->setFocus (); +} + +void +MainWindow::handleLoadWorkspaceRequest () +{ + QString selectedFile = + QFileDialog::getOpenFileName (this, tr ("Load Workspace"), + ResourceManager::instance ()->homePath ()); + m_terminalView->sendText (QString ("load \'%1\'\n").arg (selectedFile)); + m_terminalView->widget ()->setFocus (); +} + +void +MainWindow::handleClearWorkspaceRequest () +{ + m_terminalView->sendText ("clear\n"); + m_terminalView->widget ()->setFocus (); +} + +void +MainWindow::handleCommandDoubleClicked (QString command) +{ + m_terminalView->sendText (command); + m_terminalView->widget ()->setFocus (); +} + +void +MainWindow::handleUnreadMessages (bool yes) +{ + if (yes) + { + m_ircWidgetSubWindow + ->setWindowIcon + (ResourceManager::instance ()->icon (ResourceManager::ChatNewMessage)); + } + else + { + m_ircWidgetSubWindow + ->setWindowIcon + (ResourceManager::instance ()->icon (ResourceManager::Chat)); + } +} + +void +MainWindow::alignMdiWindows () +{ + m_centralMdiArea->tileSubWindows (); +} + +void +MainWindow::openBugTrackerPage () +{ + QDesktopServices::openUrl (QUrl ("http://savannah.gnu.org/bugs/?group=octave")); +} + +void +MainWindow::openAgoraPage () +{ + QDesktopServices::openUrl (QUrl ("http://agora.panocha.org.mx/")); +} + +void +MainWindow::openOctaveForgePage () +{ + QDesktopServices::openUrl (QUrl ("http://octave.sourceforge.net/")); +} + +void +MainWindow::processSettingsDialogRequest () +{ + SettingsDialog settingsDialog (this); + settingsDialog.exec (); + emit settingsChanged (); + ResourceManager::instance ()->updateNetworkSettings (); +} + +void +MainWindow::showAboutOctave () +{ + QString message = + "GNU Octave\n" + "Copyright (C) 2009 John W. Eaton and others.\n" + "This is free software; see the source code for copying conditions." + "There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or" + "FITNESS FOR A PARTICULAR PURPOSE. For details, type `warranty'.\n" + "\n" + "Octave was configured for \"x86_64-pc-linux-gnu\".\n" + "\n" + "Additional information about Octave is available at http://www.octave.org.\n" + "\n" + "Please contribute if you find this software useful." + "For more information, visit http://www.octave.org/help-wanted.html\n" + "\n" + "Report bugs to <bug@octave.org> (but first, please read" + "http://www.octave.org/bugs.html to learn how to write a helpful report).\n" + "\n" + "For information about changes from previous versions, type `news'.\n"; + + QMessageBox::about (this, tr ("About Octave"), message); +} + +void +MainWindow::showAboutQt () +{ + QMessageBox::aboutQt (this); +} + +void +MainWindow::closeEvent (QCloseEvent * closeEvent) +{ + reportStatusMessage (tr ("Saving data and shutting down.")); + writeSettings (); + m_closeApplication = true; // inform editor window that whole application is closed + OctaveLink::instance ()->terminateOctave(); + m_centralMdiArea->closeAllSubWindows(); // send close events to subwindows + // (editor files can be saved!) + QMainWindow::closeEvent (closeEvent); +} + +void +MainWindow::readSettings () +{ + QSettings *settings = ResourceManager::instance ()->settings (); + restoreGeometry (settings->value ("MainWindow/geometry").toByteArray ()); + restoreState (settings->value ("MainWindow/windowState").toByteArray ()); + m_centralMdiArea->restoreGeometry (settings->value ("MdiArea/geometry").toByteArray ()); + emit settingsChanged (); +} + +void +MainWindow::writeSettings () +{ + QSettings *settings = ResourceManager::instance ()->settings (); + settings->setValue ("MainWindow/geometry", saveGeometry ()); + settings->setValue ("MainWindow/windowState", saveState ()); + settings->setValue ("MdiArea/geometry", m_centralMdiArea->saveGeometry ()); +} + +void +MainWindow::construct () +{ + m_closeApplication = false; // flag for editor files when closed + setWindowIcon (ResourceManager::instance ()->icon (ResourceManager::Octave)); + + // Initialize MDI area. + m_centralMdiArea = new QMdiArea (this); + m_centralMdiArea->setObjectName ("CentralMdiArea"); + m_centralMdiArea->setViewMode (QMdiArea::TabbedView); + + // Setup dockable widgets and the status bar. + m_workspaceView = new WorkspaceView (this); + m_workspaceView->setStatusTip (tr ("View the variables in the active workspace.")); + m_historyDockWidget = new HistoryDockWidget (this); + m_historyDockWidget->setStatusTip (tr ("Browse and search the command history.")); + m_filesDockWidget = new FilesDockWidget (this); + m_filesDockWidget->setStatusTip (tr ("Browse your files.")); + m_statusBar = new QStatusBar (this); + + // Setup essential MDI Windows. + m_terminalView = AbstractTerminalView::create (this); + m_documentationWidget = new BrowserWidget (this); + m_ircWidget = new IRCWidget (this); + + // Octave Terminal subwindow. + m_terminalViewSubWindow = new NonClosableMdiSubWindow (this); + m_terminalViewSubWindow->setWidget (m_terminalView->widget ()); + m_centralMdiArea->addSubWindow (m_terminalViewSubWindow, Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint); + + m_terminalViewSubWindow->setObjectName ("OctaveTerminalSubWindow"); + m_terminalViewSubWindow->setWindowTitle (tr ("Terminal")); + m_terminalViewSubWindow + ->setWindowIcon (ResourceManager::instance ()->icon (ResourceManager::Terminal)); + m_terminalViewSubWindow->setFocusProxy (m_terminalView->widget ()); + m_terminalViewSubWindow->setStatusTip (tr ("Enter your commands into the Octave terminal.")); + m_terminalViewSubWindow->setMinimumSize (300, 300); + + // Documentation subwindow. + m_documentationWidgetSubWindow = new NonClosableMdiSubWindow (this); + m_documentationWidgetSubWindow->setWidget (m_documentationWidget); + m_centralMdiArea->addSubWindow (m_documentationWidgetSubWindow, Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint); + + m_documentationWidgetSubWindow->setObjectName ("DocumentationWidgetSubWindow"); + m_documentationWidgetSubWindow->setWindowTitle (tr ("Documentation")); + m_documentationWidgetSubWindow + ->setWindowIcon (ResourceManager::instance ()->icon (ResourceManager::Documentation)); + m_documentationWidgetSubWindow->setFocusProxy (m_documentationWidget); + m_documentationWidgetSubWindow->setStatusTip (tr ("Browse the Octave documentation for help.")); + m_documentationWidgetSubWindow->setMinimumSize (300, 300); + + // Chat subwindow. + m_ircWidgetSubWindow = new NonClosableMdiSubWindow (this); + m_ircWidgetSubWindow->setWidget (m_ircWidget); + m_centralMdiArea->addSubWindow (m_ircWidgetSubWindow, Qt::WindowTitleHint | Qt::WindowMinMaxButtonsHint); + + m_ircWidgetSubWindow->setObjectName ("ChatWidgetSubWindow"); + m_ircWidgetSubWindow->setWindowTitle (tr ("Chat")); + m_ircWidgetSubWindow + ->setWindowIcon (ResourceManager::instance ()->icon (ResourceManager::Chat)); + m_ircWidgetSubWindow->setStatusTip(tr ("Instantly chat with other Octave users for help.")); + m_ircWidgetSubWindow->setFocusProxy (m_ircWidget); + m_ircWidgetSubWindow->setMinimumSize (300, 300); + connect (m_ircWidget, SIGNAL (unreadMessages (bool)), this, SLOT (handleUnreadMessages (bool))); + + m_lexer = NULL; // initialise the empty lexer for the edtiors + + QMenu *controlMenu = menuBar ()->addMenu (tr ("Octave")); + QAction *settingsAction = controlMenu->addAction (tr ("Settings")); + controlMenu->addSeparator (); + QAction *exitAction = controlMenu->addAction (tr ("Exit")); + + QMenu *interfaceMenu = menuBar ()->addMenu (tr ("Interface")); + + QAction *alignWindowsAction = interfaceMenu->addAction (tr ("Align Windows")); + interfaceMenu->addSeparator (); + QAction *showWorkspaceAction = interfaceMenu->addAction (tr ("Workspace")); + showWorkspaceAction->setCheckable (true); + + QAction *showHistoryAction = interfaceMenu->addAction (tr ("History")); + showHistoryAction->setCheckable (true); + + QAction *showFileBrowserAction = interfaceMenu->addAction (tr ("File Browser")); + showFileBrowserAction->setCheckable (true); + + interfaceMenu->addSeparator (); + QAction *openEditorAction = interfaceMenu->addAction (tr ("Open New Editor Window")); + + QMenu *workspaceMenu = menuBar ()->addMenu (tr ("Workspace")); + QAction *loadWorkspaceAction = workspaceMenu->addAction (tr ("Load")); + QAction *saveWorkspaceAction = workspaceMenu->addAction (tr ("Save")); + workspaceMenu->addSeparator (); + QAction *clearWorkspaceAction = workspaceMenu->addAction (tr ("Clear")); + + QMenu *communityMenu = menuBar ()->addMenu (tr ("Community")); + QAction *reportBugAction = communityMenu->addAction (tr ("Report Bug")); + QAction *agoraAction = communityMenu->addAction (tr ("Agora")); + QAction *octaveForgeAction = communityMenu->addAction (tr ("Octave Forge")); + communityMenu->addSeparator (); + QAction *aboutOctaveAction = communityMenu->addAction (tr ("About Octave")); + QAction *aboutQt = communityMenu->addAction (tr ("About Qt")); + + connect (settingsAction, SIGNAL (triggered ()), this, SLOT (processSettingsDialogRequest ())); + connect (exitAction, SIGNAL (triggered ()), this, SLOT (close ())); + connect (alignWindowsAction, SIGNAL (triggered ()), this, SLOT (alignMdiWindows ())); + connect (openEditorAction, SIGNAL (triggered ()), this, SLOT (openEditor ())); + connect (reportBugAction, SIGNAL (triggered ()), this, SLOT (openBugTrackerPage ())); + connect (agoraAction, SIGNAL (triggered ()), this, SLOT (openAgoraPage ())); + connect (octaveForgeAction, SIGNAL (triggered ()), this, SLOT (openOctaveForgePage ())); + connect (aboutOctaveAction, SIGNAL (triggered ()), this, SLOT (showAboutOctave ())); + connect (aboutQt, SIGNAL (triggered ()), this, SLOT (showAboutQt ())); + + connect (showWorkspaceAction, SIGNAL (toggled (bool)), m_workspaceView, SLOT (setShown (bool))); + connect (m_workspaceView, SIGNAL (activeChanged (bool)), showWorkspaceAction, SLOT (setChecked (bool))); + connect (showHistoryAction, SIGNAL (toggled (bool)), m_historyDockWidget, SLOT (setShown (bool))); + connect (m_historyDockWidget, SIGNAL (activeChanged (bool)), showHistoryAction, SLOT (setChecked (bool))); + connect (showFileBrowserAction, SIGNAL (toggled (bool)), m_filesDockWidget, SLOT (setShown (bool))); + connect (m_filesDockWidget, SIGNAL (activeChanged (bool)), showFileBrowserAction, SLOT (setChecked (bool))); + + connect (this, SIGNAL (settingsChanged ()), m_workspaceView, SLOT (noticeSettings ())); + connect (this, SIGNAL (settingsChanged ()), m_historyDockWidget, SLOT (noticeSettings ())); + connect (this, SIGNAL (settingsChanged ()), m_filesDockWidget, SLOT (noticeSettings ())); + + connect (m_filesDockWidget, SIGNAL (openFile (QString)), this, SLOT (handleOpenFileRequest (QString))); + connect (m_historyDockWidget, SIGNAL (information (QString)), this, SLOT (reportStatusMessage (QString))); + connect (m_historyDockWidget, SIGNAL (commandDoubleClicked (QString)), this, SLOT (handleCommandDoubleClicked (QString))); + connect (saveWorkspaceAction, SIGNAL (triggered ()), this, SLOT (handleSaveWorkspaceRequest ())); + connect (loadWorkspaceAction, SIGNAL (triggered ()), this, SLOT (handleLoadWorkspaceRequest ())); + connect (clearWorkspaceAction, SIGNAL (triggered ()), this, SLOT (handleClearWorkspaceRequest ())); + + setWindowTitle (QString (VERSION_STRING)); + + setCentralWidget (m_centralMdiArea); + addDockWidget (Qt::LeftDockWidgetArea, m_workspaceView); + addDockWidget (Qt::LeftDockWidgetArea, m_historyDockWidget); + addDockWidget (Qt::RightDockWidgetArea, m_filesDockWidget); + setStatusBar (m_statusBar); + + readSettings (); + openWebPage ("http://www.gnu.org/software/octave/doc/interpreter/"); +} +
new file mode 100644 --- /dev/null +++ b/gui/src/MainWindow.h @@ -0,0 +1,141 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef MAINWINDOW_H +#define MAINWINDOW_H + +#include <QtGui/QMainWindow> +#include <QThread> +#include <QTabWidget> +#include <QMdiArea> +#include <QStatusBar> +#include <QToolBar> +#include <QQueue> +#include <Qsci/qsciapis.h> +#include <QMdiSubWindow> +#include "ResourceManager.h" +#include "AbstractTerminalView.h" +#include "OctaveLink.h" +#include "WorkspaceView.h" +#include "HistoryDockWidget.h" +#include "FilesDockWidget.h" +#include "BrowserWidget.h" +#include "irc/IRCWidget.h" +#include "lexer/lexeroctavegui.h" + +class NonClosableMdiSubWindow : public QMdiSubWindow +{ + Q_OBJECT +public: + explicit NonClosableMdiSubWindow (QWidget *parent = 0) + : QMdiSubWindow (parent) { } + virtual ~NonClosableMdiSubWindow () { } +protected: + void closeEvent (QCloseEvent *closeEvent) + { + closeEvent->ignore (); + } +}; + +/** + * \class MainWindow + * + * Represents the main window. + */ +class MainWindow:public QMainWindow +{ +Q_OBJECT public: + MainWindow (QWidget * parent = 0); + ~MainWindow (); + + AbstractTerminalView *terminalView () + { + return m_terminalView; + } + + HistoryDockWidget *historyDockWidget () + { + return m_historyDockWidget; + } + FilesDockWidget *filesDockWidget () + { + return m_filesDockWidget; + } + bool isCloseApplication () + { + return m_closeApplication; + } + +signals: + void settingsChanged (); + +public slots: + void handleOpenFileRequest (QString fileName); + void reportStatusMessage (QString statusMessage); + void openWebPage (QString url); + void handleSaveWorkspaceRequest (); + void handleLoadWorkspaceRequest (); + void handleClearWorkspaceRequest (); + void handleCommandDoubleClicked (QString command); + void handleUnreadMessages (bool yes); + void alignMdiWindows (); + void openEditor (); + void openEditorFile (QString fileName); + void openBugTrackerPage (); + void openAgoraPage (); + void openOctaveForgePage (); + void processSettingsDialogRequest (); + void showAboutOctave (); + void showAboutQt (); + +protected: + void closeEvent (QCloseEvent * closeEvent); + void readSettings (); + void writeSettings (); + +private: + void construct (); + void establishOctaveLink (); + QMdiArea *m_centralMdiArea; + + // Mdi sub windows. + AbstractTerminalView *m_terminalView; + BrowserWidget *m_documentationWidget; + IRCWidget *m_ircWidget; + + NonClosableMdiSubWindow *m_terminalViewSubWindow; + NonClosableMdiSubWindow *m_documentationWidgetSubWindow; + NonClosableMdiSubWindow *m_ircWidgetSubWindow; + + // Dock widgets. + WorkspaceView *m_workspaceView; + HistoryDockWidget *m_historyDockWidget; + FilesDockWidget *m_filesDockWidget; + + // Editor's lexer + LexerOctaveGui *m_lexer; + QsciAPIs *m_lexerAPI; + + // Toolbars. + QStatusBar *m_statusBar; + + // Flag for closing whole application + bool m_closeApplication; + +}; + +#endif // MAINWINDOW_H
new file mode 100644 --- /dev/null +++ b/gui/src/OctaveGUI.cpp @@ -0,0 +1,95 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include <QtGui/QApplication> +#include <QTranslator> +#include <QSettings> +#include "CommandLineParser.h" +#include "WelcomeWizard.h" +#include "ResourceManager.h" +#include "MainWindow.h" + +int +main (int argc, char *argv[]) +{ + QApplication application (argc, argv); + while (true) + { + if (ResourceManager::instance ()->isFirstRun ()) + { + WelcomeWizard welcomeWizard; + int returnCode = welcomeWizard.exec (); + + QSettings *settings = ResourceManager::instance ()->settings (); + settings->setValue ("connectOnStartup", true); + settings->setValue ("showMessageOfTheDay", true); + settings->setValue ("showTopic", true); + settings->setValue ("autoIdentification", false); + settings->setValue ("nickServPassword", ""); + settings->setValue ("useCustomFileEditor", false); + settings->setValue ("customFileEditor", "emacs"); + settings->setValue ("editor/showLineNumbers", true); + settings->setValue ("editor/highlightActualLine", true); + settings->setValue ("editor/codeCompletion", true); + settings->setValue ("editor/fontName", "Monospace"); + settings->setValue ("editor/fontSize", 10); + settings->setValue ("editor/shortWindowTitle", true); + settings->setValue ("showFilenames", true); + settings->setValue ("showFileSize", false); + settings->setValue ("showFileType", false); + settings->setValue ("showLastModified", false); + settings->setValue ("showHiddenFiles", false); + settings->setValue ("useAlternatingRowColors", true); + settings->setValue ("useProxyServer", false); + settings->setValue ("proxyType", "Sock5Proxy"); + settings->setValue ("proxyHostName", "none"); + settings->setValue ("proxyPort", 8080); + settings->setValue ("proxyUserName", ""); + settings->setValue ("proxyPassword", ""); + settings->sync (); + ResourceManager::instance ()->reloadSettings (); + + application.quit (); + // We are in an infinite loop, so everything else than a return + // will cause the application to restart from the very beginning. + if (returnCode == QDialog::Rejected) + return 0; + } + else + { + CommandLineParser commandLineParser; + commandLineParser.registerOption ("--config", "-c", "Tells OctaveGUI to use that configuration file.", true); + commandLineParser.parse (argc, argv); + + QSettings *settings = ResourceManager::instance ()->settings (); + QString language = settings->value ("language").toString (); + + QString translatorFile = ResourceManager::instance ()->findTranslatorFile (language); + QTranslator translator; + translator.load (translatorFile); + application.installTranslator (&translator); + + ResourceManager::instance ()->updateNetworkSettings (); + ResourceManager::instance ()->loadIcons (); + + MainWindow w; + w.show (); + w.activateWindow(); + return application.exec (); + } + } +}
new file mode 100644 --- /dev/null +++ b/gui/src/ResourceManager.cpp @@ -0,0 +1,1687 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "ResourceManager.h" +#include <QFile> +#include <QNetworkProxy> + +ResourceManager ResourceManager::m_singleton; + +ResourceManager::ResourceManager () +{ + m_settings = 0; + reloadSettings (); +} + +ResourceManager::~ResourceManager () +{ + delete m_settings; +} + +QSettings * +ResourceManager::settings () +{ + return m_settings; +} + +QString +ResourceManager::homePath () +{ + return m_homePath; +} + +void +ResourceManager::reloadSettings () +{ + QDesktopServices desktopServices; + m_homePath = desktopServices.storageLocation (QDesktopServices::HomeLocation); + setSettings(m_homePath + "/.octave-gui"); +} + +void +ResourceManager::setSettings (QString file) +{ + delete m_settings; + + m_firstRun = false; + if (!QFile::exists (file)) + m_firstRun = true; + + // If the settings file does not exist, QSettings automatically creates it. + // Therefore we have to check if it exists before instantiating the settings object. + // That way we can detect if the user ran this application before. + m_settings = new QSettings (file, QSettings::IniFormat); +} + +QString +ResourceManager::findTranslatorFile (QString language) +{ + // TODO: Quick hack to be able to test language files. + return QString("../languages/%1.qm").arg(language); +} + +QIcon +ResourceManager::icon (Icon icon) +{ + if (m_icons.contains (icon)) + { + return m_icons [icon]; + } + return QIcon (); +} + +bool +ResourceManager::isFirstRun () +{ + return m_firstRun; +} + +void +ResourceManager::updateNetworkSettings () +{ + QNetworkProxy::ProxyType proxyType = QNetworkProxy::NoProxy; + if (m_settings->value ("useProxyServer").toBool ()) + { + QString proxyTypeString = m_settings->value ("proxyType").toString (); + if (proxyTypeString == "Socks5Proxy") + { + proxyType = QNetworkProxy::Socks5Proxy; + } + else if (proxyTypeString == "HttpProxy") + { + proxyType = QNetworkProxy::HttpProxy; + } + } + + QNetworkProxy proxy; + proxy.setType (proxyType); + proxy.setHostName (m_settings->value ("proxyHostName").toString ()); + proxy.setPort (m_settings->value ("proxyPort").toInt ()); + proxy.setUser (m_settings->value ("proxyUserName").toString ()); + proxy.setPassword (m_settings->value ("proxyPassword").toString ()); + QNetworkProxy::setApplicationProxy (proxy); +} + +void +ResourceManager::loadIcons () +{ + m_icons [ResourceManager::Octave] = QIcon ("../media/logo.png"); + m_icons [ResourceManager::Terminal] = QIcon ("../media/terminal.png"); + m_icons [ResourceManager::Documentation] = QIcon ("../media/help_index.png"); + m_icons [ResourceManager::Chat] = QIcon ("../media/chat.png"); + m_icons [ResourceManager::ChatNewMessage] = QIcon ("../media/jabber_protocol.png"); +} + +const char* +ResourceManager::octaveKeywords () +{ + return + ".nargin. " + "EDITOR " + "EXEC_PATH " + "F_DUPFD " + "F_GETFD " + "F_GETFL " + "F_SETFD " + "F_SETFL " + "I " + "IMAGE_PATH " + "Inf " + "J " + "NA " + "NaN " + "OCTAVE_HOME " + "OCTAVE_VERSION " + "O_APPEND " + "O_ASYNC " + "O_CREAT " + "O_EXCL " + "O_NONBLOCK " + "O_RDONLY " + "O_RDWR " + "O_SYNC " + "O_TRUNC " + "O_WRONLY " + "PAGER " + "PAGER_FLAGS " + "PS1 " + "PS2 " + "PS4 " + "P_tmpdir " + "SEEK_CUR " + "SEEK_END " + "SEEK_SET " + "SIG " + "S_ISBLK " + "S_ISCHR " + "S_ISDIR " + "S_ISFIFO " + "S_ISLNK " + "S_ISREG " + "S_ISSOCK " + "WCONTINUE " + "WCOREDUMP " + "WEXITSTATUS " + "WIFCONTINUED " + "WIFEXITED " + "WIFSIGNALED " + "WIFSTOPPED " + "WNOHANG " + "WSTOPSIG " + "WTERMSIG " + "WUNTRACED " + "__accumarray_max__ " + "__accumarray_min__ " + "__accumarray_sum__ " + "__accumdim_sum__ " + "__all_opts__ " + "__builtins__ " + "__calc_dimensions__ " + "__contourc__ " + "__current_scope__ " + "__delaunayn__ " + "__dispatch__ " + "__display_tokens__ " + "__dsearchn__ " + "__dump_symtab_info__ " + "__end__ " + "__error_text__ " + "__finish__ " + "__fltk_ginput__ " + "__fltk_print__ " + "__fltk_uigetfile__ " + "__ftp__ " + "__ftp_ascii__ " + "__ftp_binary__ " + "__ftp_close__ " + "__ftp_cwd__ " + "__ftp_delete__ " + "__ftp_dir__ " + "__ftp_mget__ " + "__ftp_mkdir__ " + "__ftp_mode__ " + "__ftp_mput__ " + "__ftp_pwd__ " + "__ftp_rename__ " + "__ftp_rmdir__ " + "__get__ " + "__glpk__ " + "__gnuplot_drawnow__ " + "__gnuplot_get_var__ " + "__gnuplot_ginput__ " + "__gnuplot_has_feature__ " + "__gnuplot_open_stream__ " + "__gnuplot_print__ " + "__gnuplot_version__ " + "__go_axes__ " + "__go_axes_init__ " + "__go_close_all__ " + "__go_delete__ " + "__go_draw_axes__ " + "__go_draw_figure__ " + "__go_execute_callback__ " + "__go_figure__ " + "__go_figure_handles__ " + "__go_handles__ " + "__go_hggroup__ " + "__go_image__ " + "__go_line__ " + "__go_patch__ " + "__go_surface__ " + "__go_text__ " + "__go_uimenu__ " + "__gud_mode__ " + "__image_pixel_size__ " + "__init_fltk__ " + "__isa_parent__ " + "__keywords__ " + "__lexer_debug_flag__ " + "__lin_interpn__ " + "__list_functions__ " + "__magick_finfo__ " + "__magick_format_list__ " + "__magick_read__ " + "__magick_write__ " + "__makeinfo__ " + "__marching_cube__ " + "__next_line_color__ " + "__next_line_style__ " + "__operators__ " + "__parent_classes__ " + "__parser_debug_flag__ " + "__pathorig__ " + "__pchip_deriv__ " + "__plt_get_axis_arg__ " + "__print_parse_opts__ " + "__qp__ " + "__request_drawnow__ " + "__sort_rows_idx__ " + "__strip_html_tags__ " + "__token_count__ " + "__varval__ " + "__version_info__ " + "__voronoi__ " + "__which__ " + "abs " + "accumarray " + "accumdim " + "acos " + "acosd " + "acosh " + "acot " + "acotd " + "acoth " + "acsc " + "acscd " + "acsch " + "add_input_event_hook " + "addlistener " + "addpath " + "addproperty " + "addtodate " + "airy " + "all " + "allchild " + "allow_noninteger_range_as_index " + "amd " + "ancestor " + "and " + "angle " + "anova " + "ans " + "any " + "arch_fit " + "arch_rnd " + "arch_test " + "area " + "arg " + "argnames " + "argv " + "arma_rnd " + "arrayfun " + "asctime " + "asec " + "asecd " + "asech " + "asin " + "asind " + "asinh " + "assert " + "assignin " + "atan " + "atan2 " + "atand " + "atanh " + "atexit " + "autocor " + "autocov " + "autoload " + "autoreg_matrix " + "autumn " + "available_graphics_toolkits " + "axes " + "axis " + "balance " + "bar " + "barh " + "bartlett " + "bartlett_test " + "base2dec " + "beep " + "beep_on_error " + "bessel " + "besselh " + "besseli " + "besselj " + "besselk " + "bessely " + "beta " + "betacdf " + "betai " + "betainc " + "betainv " + "betaln " + "betapdf " + "betarnd " + "bicgstab " + "bicubic " + "bin2dec " + "bincoeff " + "binocdf " + "binoinv " + "binopdf " + "binornd " + "bitand " + "bitcmp " + "bitget " + "bitmax " + "bitor " + "bitpack " + "bitset " + "bitshift " + "bitunpack " + "bitxor " + "blackman " + "blanks " + "blkdiag " + "blkmm " + "bone " + "box " + "break " + "brighten " + "bsxfun " + "bug_report " + "builtin " + "bunzip2 " + "bzip2 " + "calendar " + "canonicalize_file_name " + "cart2pol " + "cart2sph " + "case " + "cast " + "cat " + "catch " + "cauchy_cdf " + "cauchy_inv " + "cauchy_pdf " + "cauchy_rnd " + "caxis " + "cbrt " + "ccolamd " + "cd " + "ceil " + "cell " + "cell2mat " + "cell2struct " + "celldisp " + "cellfun " + "cellidx " + "cellindexmat " + "cellslices " + "cellstr " + "center " + "cgs " + "char " + "chdir " + "chi2cdf " + "chi2inv " + "chi2pdf " + "chi2rnd " + "chisquare_test_homogeneity " + "chisquare_test_independence " + "chol " + "chol2inv " + "choldelete " + "cholinsert " + "cholinv " + "cholshift " + "cholupdate " + "chop " + "circshift " + "cla " + "clabel " + "class " + "clc " + "clear " + "clf " + "clg " + "clock " + "cloglog " + "close " + "closereq " + "colamd " + "colloc " + "colon " + "colorbar " + "colormap " + "colperm " + "colstyle " + "columns " + "comet " + "comet3 " + "comma " + "command_line_path " + "common_size " + "commutation_matrix " + "compan " + "compare_versions " + "compass " + "complement " + "completion_append_char " + "completion_matches " + "complex " + "computer " + "cond " + "condest " + "confirm_recursive_rmdir " + "conj " + "continue " + "contour " + "contour3 " + "contourc " + "contourf " + "contrast " + "conv " + "conv2 " + "convhull " + "convhulln " + "convn " + "cool " + "copper " + "copyfile " + "cor " + "cor_test " + "corrcoef " + "cos " + "cosd " + "cosh " + "cot " + "cotd " + "coth " + "cov " + "cplxpair " + "cputime " + "cquad " + "crash_dumps_octave_core " + "create_set " + "cross " + "csc " + "cscd " + "csch " + "cstrcat " + "csvread " + "csvwrite " + "csymamd " + "ctime " + "ctranspose " + "cummax " + "cummin " + "cumprod " + "cumsum " + "cumtrapz " + "curl " + "cut " + "cylinder " + "daspect " + "daspk " + "daspk_options " + "dasrt " + "dasrt_options " + "dassl " + "dassl_options " + "date " + "datenum " + "datestr " + "datetick " + "datevec " + "dbclear " + "dbcont " + "dbdown " + "dblquad " + "dbnext " + "dbquit " + "dbstack " + "dbstatus " + "dbstep " + "dbstop " + "dbtype " + "dbup " + "dbwhere " + "deal " + "deblank " + "debug " + "debug_on_error " + "debug_on_interrupt " + "debug_on_warning " + "dec2base " + "dec2bin " + "dec2hex " + "deconv " + "default_save_options " + "del2 " + "delaunay " + "delaunay3 " + "delaunayn " + "delete " + "dellistener " + "demo " + "det " + "detrend " + "diag " + "diary " + "diff " + "diffpara " + "diffuse " + "dir " + "discrete_cdf " + "discrete_inv " + "discrete_pdf " + "discrete_rnd " + "disp " + "dispatch " + "display " + "divergence " + "dlmread " + "dlmwrite " + "dmperm " + "dmult " + "do " + "do_braindead_shortcircuit_evaluation " + "do_string_escapes " + "doc " + "doc_cache_file " + "dos " + "dot " + "double " + "drawnow " + "dsearch " + "dsearchn " + "dump_prefs " + "dup2 " + "duplication_matrix " + "durbinlevinson " + "e " + "echo " + "echo_executing_commands " + "edit " + "edit_history " + "eig " + "eigs " + "ellipsoid " + "else " + "elseif " + "empirical_cdf " + "empirical_inv " + "empirical_pdf " + "empirical_rnd " + "end " + "end_try_catch " + "end_unwind_protect " + "endfor " + "endfunction " + "endgrent " + "endif " + "endpwent " + "endswitch " + "endwhile " + "eomday " + "eps " + "eq " + "erf " + "erfc " + "erfcx " + "erfinv " + "errno " + "errno_list " + "error " + "error_text " + "errorbar " + "etime " + "etree " + "etreeplot " + "eval " + "evalin " + "example " + "exec " + "exist " + "exit " + "exp " + "expcdf " + "expinv " + "expm " + "expm1 " + "exppdf " + "exprnd " + "eye " + "ezcontour " + "ezcontourf " + "ezmesh " + "ezmeshc " + "ezplot " + "ezplot3 " + "ezpolar " + "ezsurf " + "ezsurfc " + "f_test_regression " + "factor " + "factorial " + "fail " + "false " + "fcdf " + "fclear " + "fclose " + "fcntl " + "fdisp " + "feather " + "feof " + "ferror " + "feval " + "fflush " + "fft " + "fft2 " + "fftconv " + "fftfilt " + "fftn " + "fftshift " + "fftw " + "fgetl " + "fgets " + "fieldnames " + "figure " + "file_in_loadpath " + "file_in_path " + "fileattrib " + "filemarker " + "fileparts " + "fileread " + "filesep " + "fill " + "filter " + "filter2 " + "find " + "find_dir_in_path " + "findall " + "findobj " + "findstr " + "finite " + "finv " + "fix " + "fixed_point_format " + "flag " + "flipdim " + "fliplr " + "flipud " + "floor " + "fminbnd " + "fminunc " + "fmod " + "fnmatch " + "fopen " + "for " + "fork " + "format " + "formula " + "fpdf " + "fplot " + "fprintf " + "fputs " + "fractdiff " + "fread " + "freport " + "freqz " + "freqz_plot " + "frewind " + "frnd " + "fscanf " + "fseek " + "fskipl " + "fsolve " + "fstat " + "ftell " + "full " + "fullfile " + "func2str " + "function " + "functions " + "fwrite " + "fzero " + "gamcdf " + "gaminv " + "gamma " + "gammai " + "gammainc " + "gammaln " + "gampdf " + "gamrnd " + "gca " + "gcbf " + "gcbo " + "gcd " + "gcf " + "ge " + "gen_doc_cache " + "genpath " + "genvarname " + "geocdf " + "geoinv " + "geopdf " + "geornd " + "get " + "get_first_help_sentence " + "get_help_text " + "get_help_text_from_file " + "getappdata " + "getegid " + "getenv " + "geteuid " + "getfield " + "getgid " + "getgrent " + "getgrgid " + "getgrnam " + "gethostname " + "getpgrp " + "getpid " + "getppid " + "getpwent " + "getpwnam " + "getpwuid " + "getrusage " + "getuid " + "ginput " + "givens " + "glob " + "global " + "glpk " + "glpkmex " + "gls " + "gmap40 " + "gmres " + "gmtime " + "gnuplot_binary " + "gplot " + "gradient " + "graphics_toolkit " + "gray " + "gray2ind " + "grid " + "griddata " + "griddata3 " + "griddatan " + "gt " + "gtext " + "gunzip " + "gzip " + "hadamard " + "hamming " + "hankel " + "hanning " + "help " + "hess " + "hex2dec " + "hex2num " + "hggroup " + "hidden " + "hilb " + "hist " + "histc " + "history " + "history_control " + "history_file " + "history_size " + "history_timestamp_format_string " + "hold " + "home " + "horzcat " + "hot " + "hotelling_test " + "hotelling_test_2 " + "housh " + "hsv " + "hsv2rgb " + "hurst " + "hygecdf " + "hygeinv " + "hygepdf " + "hygernd " + "hypot " + "i " + "idivide " + "if " + "ifelse " + "ifft " + "ifft2 " + "ifftn " + "ifftshift " + "ignore_function_time_stamp " + "imag " + "image " + "imagesc " + "imfinfo " + "imread " + "imshow " + "imwrite " + "ind2gray " + "ind2rgb " + "ind2sub " + "index " + "inf " + "inferiorto " + "info " + "info_file " + "info_program " + "inline " + "inpolygon " + "input " + "inputname " + "int16 " + "int2str " + "int32 " + "int64 " + "int8 " + "interp1 " + "interp1q " + "interp2 " + "interp3 " + "interpft " + "interpn " + "intersect " + "intmax " + "intmin " + "intwarning " + "inv " + "inverse " + "invhilb " + "ipermute " + "iqr " + "is_absolute_filename " + "is_duplicate_entry " + "is_global " + "is_leap_year " + "is_rooted_relative_filename " + "is_valid_file_id " + "isa " + "isalnum " + "isalpha " + "isappdata " + "isargout " + "isascii " + "isbool " + "iscell " + "iscellstr " + "ischar " + "iscntrl " + "iscolumn " + "iscommand " + "iscomplex " + "isdebugmode " + "isdefinite " + "isdeployed " + "isdigit " + "isdir " + "isempty " + "isequal " + "isequalwithequalnans " + "isfield " + "isfigure " + "isfinite " + "isfloat " + "isglobal " + "isgraph " + "ishandle " + "ishermitian " + "ishghandle " + "ishold " + "isieee " + "isindex " + "isinf " + "isinteger " + "iskeyword " + "isletter " + "islogical " + "islower " + "ismac " + "ismatrix " + "ismember " + "ismethod " + "isna " + "isnan " + "isnull " + "isnumeric " + "isobject " + "isocolors " + "isonormals " + "isosurface " + "ispc " + "isprime " + "isprint " + "isprop " + "ispunct " + "israwcommand " + "isreal " + "isrow " + "isscalar " + "issorted " + "isspace " + "issparse " + "issquare " + "isstr " + "isstrprop " + "isstruct " + "issymmetric " + "isunix " + "isupper " + "isvarname " + "isvector " + "isxdigit " + "j " + "jet " + "kbhit " + "kendall " + "keyboard " + "kill " + "kolmogorov_smirnov_cdf " + "kolmogorov_smirnov_test " + "kolmogorov_smirnov_test_2 " + "kron " + "kruskal_wallis_test " + "krylov " + "krylovb " + "kurtosis " + "laplace_cdf " + "laplace_inv " + "laplace_pdf " + "laplace_rnd " + "lasterr " + "lasterror " + "lastwarn " + "lchol " + "lcm " + "ldivide " + "le " + "legend " + "legendre " + "length " + "lgamma " + "license " + "lin2mu " + "line " + "link " + "linkprop " + "linspace " + "list " + "list_in_columns " + "list_primes " + "load " + "loadaudio " + "loadimage " + "loadobj " + "localtime " + "log " + "log10 " + "log1p " + "log2 " + "logical " + "logistic_cdf " + "logistic_inv " + "logistic_pdf " + "logistic_regression " + "logistic_rnd " + "logit " + "loglog " + "loglogerr " + "logm " + "logncdf " + "logninv " + "lognpdf " + "lognrnd " + "logspace " + "lookfor " + "lookup " + "lower " + "ls " + "ls_command " + "lsode " + "lsode_options " + "lsqnonneg " + "lstat " + "lt " + "lu " + "luinc " + "luupdate " + "magic " + "mahalanobis " + "make_absolute_filename " + "makeinfo_program " + "manova " + "mark_as_command " + "mark_as_rawcommand " + "mat2cell " + "mat2str " + "matlabroot " + "matrix_type " + "max " + "max_recursion_depth " + "mcnemar_test " + "md5sum " + "mean " + "meansq " + "median " + "menu " + "merge " + "mesh " + "meshc " + "meshgrid " + "meshz " + "methods " + "mex " + "mexext " + "mfilename " + "mgorth " + "min " + "minus " + "mislocked " + "missing_function_hook " + "mist " + "mkdir " + "mkfifo " + "mkoctfile " + "mkpp " + "mkstemp " + "mktime " + "mldivide " + "mlock " + "mod " + "mode " + "moment " + "more " + "most " + "movefile " + "mpoles " + "mpower " + "mrdivide " + "mtimes " + "mu2lin " + "munlock " + "namelengthmax " + "nan " + "nargchk " + "nargin " + "nargout " + "nargoutchk " + "native_float_format " + "nbincdf " + "nbininv " + "nbinpdf " + "nbinrnd " + "nchoosek " + "ndgrid " + "ndims " + "ne " + "newplot " + "news " + "nextpow2 " + "nfields " + "nnz " + "nonzeros " + "norm " + "normcdf " + "normest " + "norminv " + "normpdf " + "normrnd " + "not " + "now " + "nproc " + "nth_element " + "nthroot " + "ntsc2rgb " + "null " + "num2cell " + "num2hex " + "num2str " + "numel " + "nzmax " + "ocean " + "octave_config_info " + "octave_core_file_limit " + "octave_core_file_name " + "octave_core_file_options " + "octave_tmp_file_name " + "ols " + "onCleanup " + "onenormest " + "ones " + "optimget " + "optimize_subsasgn_calls " + "optimset " + "or " + "orderfields " + "orient " + "orth " + "otherwise " + "output_max_field_width " + "output_precision " + "pack " + "page_output_immediately " + "page_screen_output " + "paren " + "pareto " + "parseparams " + "pascal " + "patch " + "path " + "pathdef " + "pathsep " + "pause " + "pbaspect " + "pcg " + "pchip " + "pclose " + "pcolor " + "pcr " + "peaks " + "periodogram " + "perl " + "perms " + "permute " + "perror " + "persistent " + "pi " + "pie " + "pie3 " + "pink " + "pinv " + "pipe " + "pkg " + "planerot " + "playaudio " + "plot " + "plot3 " + "plotmatrix " + "plotyy " + "plus " + "poisscdf " + "poissinv " + "poisspdf " + "poissrnd " + "pol2cart " + "polar " + "poly " + "polyaffine " + "polyarea " + "polyder " + "polyderiv " + "polyfit " + "polygcd " + "polyint " + "polyout " + "polyreduce " + "polyval " + "polyvalm " + "popen " + "popen2 " + "postpad " + "pow2 " + "power " + "powerset " + "ppder " + "ppint " + "ppjumps " + "ppplot " + "ppval " + "pqpnonneg " + "prctile " + "prepad " + "primes " + "print " + "print_empty_dimensions " + "print_struct_array_contents " + "print_usage " + "printf " + "prism " + "probit " + "prod " + "program_invocation_name " + "program_name " + "prop_test_2 " + "putenv " + "puts " + "pwd " + "qp " + "qqplot " + "qr " + "qrdelete " + "qrinsert " + "qrshift " + "qrupdate " + "quad " + "quad_options " + "quadcc " + "quadgk " + "quadl " + "quadv " + "quantile " + "quit " + "quiver " + "quiver3 " + "qz " + "qzhess " + "rainbow " + "rand " + "rande " + "randg " + "randi " + "randn " + "randp " + "randperm " + "range " + "rank " + "ranks " + "rat " + "rats " + "rcond " + "rdivide " + "re_read_readline_init_file " + "read_readline_init_file " + "readdir " + "readlink " + "real " + "reallog " + "realmax " + "realmin " + "realpow " + "realsqrt " + "record " + "rectangle " + "rectint " + "refresh " + "refreshdata " + "regexp " + "regexpi " + "regexprep " + "regexptranslate " + "rehash " + "rem " + "remove_input_event_hook " + "rename " + "repelems " + "replot " + "repmat " + "reset " + "reshape " + "residue " + "resize " + "restoredefaultpath " + "rethrow " + "return " + "rgb2hsv " + "rgb2ind " + "rgb2ntsc " + "ribbon " + "rindex " + "rmappdata " + "rmdir " + "rmfield " + "rmpath " + "roots " + "rose " + "rosser " + "rot90 " + "rotdim " + "round " + "roundb " + "rows " + "rref " + "rsf2csf " + "run " + "run_count " + "run_history " + "run_test " + "rundemos " + "runlength " + "runtests " + "save " + "save_header_format_string " + "save_precision " + "saveas " + "saveaudio " + "saveimage " + "saveobj " + "savepath " + "saving_history " + "scanf " + "scatter " + "scatter3 " + "schur " + "sec " + "secd " + "sech " + "semicolon " + "semilogx " + "semilogxerr " + "semilogy " + "semilogyerr " + "set " + "setappdata " + "setaudio " + "setdiff " + "setenv " + "setfield " + "setgrent " + "setpwent " + "setstr " + "setxor " + "shading " + "shell_cmd " + "shg " + "shift " + "shiftdim " + "sighup_dumps_octave_core " + "sign " + "sign_test " + "sigterm_dumps_octave_core " + "silent_functions " + "sin " + "sinc " + "sind " + "sinetone " + "sinewave " + "single " + "sinh " + "size " + "size_equal " + "sizemax " + "sizeof " + "skewness " + "sleep " + "slice " + "sombrero " + "sort " + "sortrows " + "source " + "spalloc " + "sparse " + "sparse_auto_mutate " + "spatan2 " + "spaugment " + "spchol " + "spchol2inv " + "spcholinv " + "spconvert " + "spcumprod " + "spcumsum " + "spdet " + "spdiag " + "spdiags " + "spearman " + "spectral_adf " + "spectral_xdf " + "specular " + "speed " + "spencer " + "speye " + "spfind " + "spfun " + "sph2cart " + "sphcat " + "sphere " + "spinmap " + "spinv " + "spkron " + "splchol " + "spline " + "split " + "split_long_rows " + "splu " + "spmax " + "spmin " + "spones " + "spparms " + "spprod " + "spqr " + "sprand " + "sprandn " + "sprandsym " + "sprank " + "spring " + "sprintf " + "spstats " + "spsum " + "spsumsq " + "spvcat " + "spy " + "sqp " + "sqrt " + "sqrtm " + "squeeze " + "sscanf " + "stairs " + "stat " + "static " + "statistics " + "std " + "stderr " + "stdin " + "stdnormal_cdf " + "stdnormal_inv " + "stdnormal_pdf " + "stdnormal_rnd " + "stdout " + "stem " + "stem3 " + "stft " + "str2double " + "str2func " + "str2mat " + "str2num " + "strcat " + "strchr " + "strcmp " + "strcmpi " + "strerror " + "strfind " + "strftime " + "string_fill_char " + "strjust " + "strmatch " + "strncmp " + "strncmpi " + "strptime " + "strread " + "strrep " + "strsplit " + "strtok " + "strtrim " + "strtrunc " + "struct " + "struct2cell " + "struct_levels_to_print " + "structfun " + "strvcat " + "studentize " + "sub2ind " + "subplot " + "subsasgn " + "subsindex " + "subspace " + "subsref " + "substr " + "substruct " + "sum " + "summer " + "sumsq " + "superiorto " + "suppress_verbose_help_message " + "surf " + "surface " + "surfc " + "surfl " + "surfnorm " + "svd " + "svd_driver " + "svds " + "swapbytes " + "switch " + "syl " + "sylvester_matrix " + "symamd " + "symbfact " + "symlink " + "symrcm " + "symvar " + "synthesis " + "system " + "t_test " + "t_test_2 " + "t_test_regression " + "table " + "tan " + "tand " + "tanh " + "tar " + "tcdf " + "tempdir " + "tempname " + "terminal_size " + "test " + "test2 " + "test3 " + "text " + "textread " + "textscan " + "tic " + "tilde_expand " + "time " + "times " + "tinv " + "title " + "tmpfile " + "tmpnam " + "toascii " + "toc " + "toeplitz " + "tolower " + "toupper " + "tpdf " + "trace " + "transpose " + "trapz " + "treelayout " + "treeplot " + "tril " + "trimesh " + "triplequad " + "triplot " + "trisurf " + "triu " + "trnd " + "true " + "try " + "tsearch " + "tsearchn " + "type " + "typecast " + "typeinfo " + "u_test " + "uigetdir " + "uigetfile " + "uimenu " + "uint16 " + "uint32 " + "uint64 " + "uint8 " + "uiputfile " + "umask " + "uminus " + "uname " + "undo_string_escapes " + "unidcdf " + "unidinv " + "unidpdf " + "unidrnd " + "unifcdf " + "unifinv " + "unifpdf " + "unifrnd " + "unimplemented " + "union " + "unique " + "unix " + "unlink " + "unmark_command " + "unmark_rawcommand " + "unmkpp " + "unpack " + "untabify " + "untar " + "until " + "unwind_protect " + "unwind_protect_cleanup " + "unwrap " + "unzip " + "uplus " + "upper " + "urlread " + "urlwrite " + "usage " + "usleep " + "validatestring " + "values " + "vander " + "var " + "var_test " + "varargin " + "varargout " + "vec " + "vech " + "vectorize " + "ver " + "version " + "vertcat " + "view " + "voronoi " + "voronoin " + "waitforbuttonpress " + "waitpid " + "warning " + "warning_ids " + "warranty " + "wavread " + "wavwrite " + "wblcdf " + "wblinv " + "wblpdf " + "wblrnd " + "weekday " + "weibcdf " + "weibinv " + "weibpdf " + "weibrnd " + "welch_test " + "what " + "which " + "while " + "white " + "whitebg " + "who " + "whos " + "whos_line_format " + "wienrnd " + "wilcoxon_test " + "wilkinson " + "winter " + "xlabel " + "xlim " + "xor " + "yes_or_no " + "ylabel " + "ylim " + "yulewalker " + "z_test " + "z_test_2 " + "zeros " + "zip " + "zlabel " + "zlim "; + /* "break case catch continue do else elseif end end_unwind_protect " + "endfor endfunction endif endswitch endwhile for function " + "global if otherwise persistent return switch try until " + "unwind_protect unwind_protect_cleanup while"; + */ +}
new file mode 100644 --- /dev/null +++ b/gui/src/ResourceManager.h @@ -0,0 +1,67 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef RESOURCEMANAGER_H +#define RESOURCEMANAGER_H + +#include <QSettings> +#include <QDesktopServices> +#include <QMap> +#include <QIcon> + +class ResourceManager +{ +public: + enum Icon + { + Octave, + Terminal, + Documentation, + Chat, + ChatNewMessage + }; + + ~ResourceManager (); + + static ResourceManager * + instance () + { + return &m_singleton; + } + + QSettings *settings (); + QString homePath (); + void reloadSettings (); + void setSettings (QString file); + QString findTranslatorFile (QString language); + void updateNetworkSettings (); + void loadIcons (); + QIcon icon (Icon icon); + bool isFirstRun (); + + const char *octaveKeywords (); +private: + ResourceManager (); + + QSettings *m_settings; + QString m_homePath; + QMap <Icon, QIcon> m_icons; + static ResourceManager m_singleton; + bool m_firstRun; +}; + +#endif // RESOURCEMANAGER_H
new file mode 100644 --- /dev/null +++ b/gui/src/SettingsDialog.cpp @@ -0,0 +1,93 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "ResourceManager.h" +#include "SettingsDialog.h" +#include "ui_SettingsDialog.h" +#include <QSettings> + +SettingsDialog::SettingsDialog (QWidget * parent): +QDialog (parent), ui (new Ui::SettingsDialog) +{ + ui->setupUi (this); + + QSettings *settings = ResourceManager::instance ()->settings (); + ui->connectOnStartup->setChecked (settings->value ("connectOnStartup").toBool ()); + ui->showMessageOfTheDay->setChecked (settings->value ("showMessageOfTheDay").toBool ()); + ui->showTopic->setChecked (settings->value ("showTopic").toBool ()); + ui->autoIdentification->setChecked (settings->value ("autoIdentification").toBool ()); + ui->nickServPassword->setText (settings->value ("nickServPassword").toString ()); + ui->useCustomFileEditor->setChecked (settings->value ("useCustomFileEditor").toBool ()); + ui->customFileEditor->setText (settings->value ("customFileEditor").toString ()); + ui->editor_showLineNumbers->setChecked (settings->value ("editor/showLineNumbers",true).toBool () ); + ui->editor_highlightActualLine->setChecked (settings->value ("editor/highlightActualLine",true).toBool () ); + ui->editor_codeCompletion->setChecked (settings->value ("editor/codeCompletion",true).toBool () ); + ui->editor_fontName->setCurrentFont (QFont (settings->value ("editor/fontName","Courier").toString()) ); + ui->editor_fontSize->setValue (settings->value ("editor/fontSize",10).toInt ()); + ui->editor_longWindowTitle->setChecked (settings->value ("editor/longWindowTitle",true).toBool ()); + ui->showFilenames->setChecked (settings->value ("showFilenames").toBool()); + ui->showFileSize->setChecked (settings->value ("showFileSize").toBool()); + ui->showFileType->setChecked (settings->value ("showFileType").toBool()); + ui->showLastModified->setChecked (settings->value ("showLastModified").toBool()); + ui->showHiddenFiles->setChecked (settings->value ("showHiddenFiles").toBool()); + ui->useAlternatingRowColors->setChecked (settings->value ("useAlternatingRowColors").toBool()); + ui->useProxyServer->setChecked (settings->value ("useProxyServer").toBool ()); + ui->proxyHostName->setText (settings->value ("proxyHostName").toString ()); + + int currentIndex = 0; + QString proxyTypeString = settings->value ("proxyType").toString (); + while ( (currentIndex < ui->proxyType->count ()) && (ui->proxyType->currentText () != proxyTypeString)) + { + currentIndex++; + ui->proxyType->setCurrentIndex (currentIndex); + } + + ui->proxyPort->setText (settings->value ("proxyPort").toString ()); + ui->proxyUserName->setText (settings->value ("proxyUserName").toString ()); + ui->proxyPassword->setText (settings->value ("proxyPassword").toString ()); +} + +SettingsDialog::~SettingsDialog () +{ + QSettings *settings = ResourceManager::instance ()->settings (); + settings->setValue ("connectOnStartup", ui->connectOnStartup->isChecked ()); + settings->setValue ("showMessageOfTheDay", ui->showMessageOfTheDay->isChecked ()); + settings->setValue ("showTopic", ui->showTopic->isChecked ()); + settings->setValue ("autoIdentification", ui->autoIdentification->isChecked ()); + settings->setValue ("nickServPassword", ui->nickServPassword->text ()); + settings->setValue ("useCustomFileEditor", ui->useCustomFileEditor->isChecked ()); + settings->setValue ("customFileEditor", ui->customFileEditor->text ()); + settings->setValue ("editor/showLineNumbers", ui->editor_showLineNumbers->isChecked ()); + settings->setValue ("editor/highlightActualLine", ui->editor_highlightActualLine->isChecked ()); + settings->setValue ("editor/codeCompletion", ui->editor_codeCompletion->isChecked ()); + settings->setValue ("editor/fontName", ui->editor_fontName->currentFont().family()); + settings->setValue ("editor/fontSize", ui->editor_fontSize->value()); + settings->setValue ("editor/longWindowTitle", ui->editor_longWindowTitle->isChecked()); + settings->setValue ("showFilenames", ui->showFilenames->isChecked ()); + settings->setValue ("showFileSize", ui->showFileSize->isChecked ()); + settings->setValue ("showFileType", ui->showFileType->isChecked ()); + settings->setValue ("showLastModified", ui->showLastModified->isChecked ()); + settings->setValue ("showHiddenFiles", ui->showHiddenFiles->isChecked ()); + settings->setValue ("useAlternatingRowColors", ui->useAlternatingRowColors->isChecked ()); + settings->setValue ("useProxyServer", ui->useProxyServer->isChecked ()); + settings->setValue ("proxyType", ui->proxyType->currentText ()); + settings->setValue ("proxyHostName", ui->proxyHostName->text ()); + settings->setValue ("proxyPort", ui->proxyPort->text ()); + settings->setValue ("proxyUserName", ui->proxyUserName->text ()); + settings->setValue ("proxyPassword", ui->proxyPassword->text ()); + delete ui; +}
new file mode 100644 --- /dev/null +++ b/gui/src/SettingsDialog.h @@ -0,0 +1,38 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef SETTINGSDIALOG_H +#define SETTINGSDIALOG_H + +#include <QDialog> + +namespace Ui +{ + class SettingsDialog; +} + +class SettingsDialog:public QDialog +{ +Q_OBJECT public: + explicit SettingsDialog (QWidget * parent); + ~SettingsDialog (); + +private: + Ui::SettingsDialog * ui; +}; + +#endif // SETTINGSDIALOG_H
new file mode 100644 --- /dev/null +++ b/gui/src/SettingsDialog.ui @@ -0,0 +1,680 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>SettingsDialog</class> + <widget class="QDialog" name="SettingsDialog"> + <property name="windowModality"> + <enum>Qt::ApplicationModal</enum> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>500</width> + <height>300</height> + </rect> + </property> + <property name="minimumSize"> + <size> + <width>500</width> + <height>300</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>500</width> + <height>300</height> + </size> + </property> + <property name="windowTitle"> + <string>Settings</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout_2"> + <item> + <widget class="QTabWidget" name="tabWidget"> + <property name="currentIndex"> + <number>0</number> + </property> + <widget class="QWidget" name="chatTab"> + <attribute name="title"> + <string>Chat</string> + </attribute> + <layout class="QGridLayout" name="gridLayout_2"> + <item row="0" column="0"> + <layout class="QVBoxLayout" name="verticalLayout"> + <item> + <widget class="QCheckBox" name="connectOnStartup"> + <property name="text"> + <string>Connect to #octave on startup</string> + </property> + <property name="checked"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="showMessageOfTheDay"> + <property name="text"> + <string>Show message of the day</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="showTopic"> + <property name="text"> + <string>Show topic</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="autoIdentification"> + <property name="text"> + <string>Automatically identify on NickServ</string> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="label_2"> + <property name="text"> + <string>Warning: Your password will be stored in ~/.octavegui in human-readable format. Do not enter your password if you worry about security issues.</string> + </property> + <property name="wordWrap"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <spacer name="horizontalSpacer"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QLabel" name="label"> + <property name="text"> + <string>Password:</string> + </property> + </widget> + </item> + <item> + <widget class="QLineEdit" name="nickServPassword"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="echoMode"> + <enum>QLineEdit::Password</enum> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </item> + </layout> + </widget> + <widget class="QWidget" name="tab"> + <attribute name="title"> + <string>Editor</string> + </attribute> + <layout class="QGridLayout" name="gridLayout"> + <item row="3" column="0"> + <spacer name="verticalSpacer"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>158</height> + </size> + </property> + </spacer> + </item> + <item row="1" column="0"> + <layout class="QVBoxLayout" name="verticalLayout_7"> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_3"> + <item> + <widget class="QCheckBox" name="useCustomFileEditor"> + <property name="enabled"> + <bool>true</bool> + </property> + <property name="text"> + <string>Use custom file editor:</string> + </property> + </widget> + </item> + <item> + <widget class="QLineEdit" name="customFileEditor"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="text"> + <string>emacs</string> + </property> + </widget> + </item> + </layout> + </item> + <item> + <widget class="QCheckBox" name="editor_showLineNumbers"> + <property name="enabled"> + <bool>true</bool> + </property> + <property name="text"> + <string>Show line numbers</string> + </property> + <property name="checked"> + <bool>false</bool> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="editor_highlightActualLine"> + <property name="enabled"> + <bool>true</bool> + </property> + <property name="text"> + <string>Highlight actual line</string> + </property> + <property name="checked"> + <bool>false</bool> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="editor_codeCompletion"> + <property name="enabled"> + <bool>true</bool> + </property> + <property name="text"> + <string>Code completion</string> + </property> + <property name="checked"> + <bool>false</bool> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="editor_longWindowTitle"> + <property name="text"> + <string>Show complete path in window title</string> + </property> + </widget> + </item> + </layout> + </item> + <item row="2" column="0"> + <layout class="QHBoxLayout" name="horizontalLayout_4"> + <item> + <widget class="QLabel" name="label_8"> + <property name="text"> + <string>Font</string> + </property> + </widget> + </item> + <item> + <widget class="QFontComboBox" name="editor_fontName"> + <property name="editable"> + <bool>false</bool> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="label_9"> + <property name="text"> + <string>Font Size</string> + </property> + </widget> + </item> + <item> + <widget class="QSpinBox" name="editor_fontSize"> + <property name="minimum"> + <number>2</number> + </property> + <property name="maximum"> + <number>96</number> + </property> + <property name="value"> + <number>10</number> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_4"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </item> + </layout> + </widget> + <widget class="QWidget" name="tab_2"> + <attribute name="title"> + <string>File Browser</string> + </attribute> + <layout class="QVBoxLayout" name="verticalLayout_3"> + <item> + <widget class="QCheckBox" name="showFilenames"> + <property name="text"> + <string>Show filenames</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="showFileSize"> + <property name="text"> + <string>Show file size</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="showFileType"> + <property name="text"> + <string>Show file type</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="showLastModified"> + <property name="text"> + <string>Show date of last modification</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="showHiddenFiles"> + <property name="text"> + <string>Show hidden files</string> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="useAlternatingRowColors"> + <property name="text"> + <string>Alternating row colors</string> + </property> + </widget> + </item> + </layout> + </widget> + <widget class="QWidget" name="tab_3"> + <attribute name="title"> + <string>Network</string> + </attribute> + <layout class="QVBoxLayout" name="verticalLayout_4"> + <item> + <widget class="QCheckBox" name="useProxyServer"> + <property name="text"> + <string>Use proxy server</string> + </property> + </widget> + </item> + <item> + <layout class="QFormLayout" name="formLayout"> + <item row="0" column="0"> + <widget class="QLabel" name="label_3"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="text"> + <string>Proxy Type:</string> + </property> + </widget> + </item> + <item row="0" column="1"> + <widget class="QComboBox" name="proxyType"> + <property name="enabled"> + <bool>false</bool> + </property> + <item> + <property name="text"> + <string>HttpProxy</string> + </property> + </item> + <item> + <property name="text"> + <string>Socks5Proxy</string> + </property> + </item> + </widget> + </item> + <item row="1" column="0"> + <widget class="QLabel" name="label_4"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="text"> + <string>Hostname:</string> + </property> + </widget> + </item> + <item row="1" column="1"> + <widget class="QLineEdit" name="proxyHostName"> + <property name="enabled"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="2" column="0"> + <widget class="QLabel" name="label_5"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="text"> + <string>Port:</string> + </property> + </widget> + </item> + <item row="2" column="1"> + <widget class="QLineEdit" name="proxyPort"> + <property name="enabled"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="3" column="0"> + <widget class="QLabel" name="label_6"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="text"> + <string>Username:</string> + </property> + </widget> + </item> + <item row="3" column="1"> + <widget class="QLineEdit" name="proxyUserName"> + <property name="enabled"> + <bool>false</bool> + </property> + </widget> + </item> + <item row="4" column="0"> + <widget class="QLabel" name="label_7"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="text"> + <string>Password:</string> + </property> + </widget> + </item> + <item row="4" column="1"> + <widget class="QLineEdit" name="proxyPassword"> + <property name="enabled"> + <bool>false</bool> + </property> + <property name="echoMode"> + <enum>QLineEdit::Password</enum> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + </widget> + </item> + </layout> + </widget> + <resources/> + <connections> + <connection> + <sender>useCustomFileEditor</sender> + <signal>toggled(bool)</signal> + <receiver>customFileEditor</receiver> + <slot>setEnabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>111</x> + <y>62</y> + </hint> + <hint type="destinationlabel"> + <x>343</x> + <y>63</y> + </hint> + </hints> + </connection> + <connection> + <sender>autoIdentification</sender> + <signal>toggled(bool)</signal> + <receiver>nickServPassword</receiver> + <slot>setEnabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>261</x> + <y>139</y> + </hint> + <hint type="destinationlabel"> + <x>384</x> + <y>229</y> + </hint> + </hints> + </connection> + <connection> + <sender>useProxyServer</sender> + <signal>toggled(bool)</signal> + <receiver>proxyType</receiver> + <slot>setEnabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>249</x> + <y>59</y> + </hint> + <hint type="destinationlabel"> + <x>291</x> + <y>91</y> + </hint> + </hints> + </connection> + <connection> + <sender>useProxyServer</sender> + <signal>toggled(bool)</signal> + <receiver>proxyHostName</receiver> + <slot>setEnabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>249</x> + <y>59</y> + </hint> + <hint type="destinationlabel"> + <x>291</x> + <y>124</y> + </hint> + </hints> + </connection> + <connection> + <sender>useProxyServer</sender> + <signal>toggled(bool)</signal> + <receiver>proxyPort</receiver> + <slot>setEnabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>249</x> + <y>59</y> + </hint> + <hint type="destinationlabel"> + <x>364</x> + <y>154</y> + </hint> + </hints> + </connection> + <connection> + <sender>useProxyServer</sender> + <signal>toggled(bool)</signal> + <receiver>label_3</receiver> + <slot>setEnabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>249</x> + <y>59</y> + </hint> + <hint type="destinationlabel"> + <x>59</x> + <y>91</y> + </hint> + </hints> + </connection> + <connection> + <sender>useProxyServer</sender> + <signal>toggled(bool)</signal> + <receiver>label_4</receiver> + <slot>setEnabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>249</x> + <y>59</y> + </hint> + <hint type="destinationlabel"> + <x>69</x> + <y>122</y> + </hint> + </hints> + </connection> + <connection> + <sender>useProxyServer</sender> + <signal>toggled(bool)</signal> + <receiver>label_5</receiver> + <slot>setEnabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>249</x> + <y>59</y> + </hint> + <hint type="destinationlabel"> + <x>44</x> + <y>152</y> + </hint> + </hints> + </connection> + <connection> + <sender>useProxyServer</sender> + <signal>toggled(bool)</signal> + <receiver>proxyUserName</receiver> + <slot>setEnabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>249</x> + <y>59</y> + </hint> + <hint type="destinationlabel"> + <x>364</x> + <y>184</y> + </hint> + </hints> + </connection> + <connection> + <sender>useProxyServer</sender> + <signal>toggled(bool)</signal> + <receiver>proxyPassword</receiver> + <slot>setEnabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>249</x> + <y>59</y> + </hint> + <hint type="destinationlabel"> + <x>364</x> + <y>214</y> + </hint> + </hints> + </connection> + <connection> + <sender>useProxyServer</sender> + <signal>toggled(bool)</signal> + <receiver>label_6</receiver> + <slot>setEnabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>249</x> + <y>59</y> + </hint> + <hint type="destinationlabel"> + <x>68</x> + <y>182</y> + </hint> + </hints> + </connection> + <connection> + <sender>useProxyServer</sender> + <signal>toggled(bool)</signal> + <receiver>label_7</receiver> + <slot>setEnabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>249</x> + <y>59</y> + </hint> + <hint type="destinationlabel"> + <x>67</x> + <y>212</y> + </hint> + </hints> + </connection> + <connection> + <sender>editor_showLineNumbers</sender> + <signal>toggled(bool)</signal> + <receiver>editor_showLineNumbers</receiver> + <slot>setEnabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>249</x> + <y>87</y> + </hint> + <hint type="destinationlabel"> + <x>249</x> + <y>87</y> + </hint> + </hints> + </connection> + <connection> + <sender>editor_highlightActualLine</sender> + <signal>toggled(bool)</signal> + <receiver>editor_highlightActualLine</receiver> + <slot>setEnabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>249</x> + <y>112</y> + </hint> + <hint type="destinationlabel"> + <x>249</x> + <y>112</y> + </hint> + </hints> + </connection> + <connection> + <sender>editor_codeCompletion</sender> + <signal>toggled(bool)</signal> + <receiver>editor_codeCompletion</receiver> + <slot>setEnabled(bool)</slot> + <hints> + <hint type="sourcelabel"> + <x>249</x> + <y>137</y> + </hint> + <hint type="destinationlabel"> + <x>249</x> + <y>137</y> + </hint> + </hints> + </connection> + </connections> +</ui>
new file mode 100644 --- /dev/null +++ b/gui/src/TerminalHighlighter.cpp @@ -0,0 +1,88 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "ResourceManager.h" +#include "TerminalHighlighter.h" + +TerminalHighlighter::TerminalHighlighter(QTextDocument *parent) + : QSyntaxHighlighter(parent) +{ + HighlightingRule rule; + + keywordFormat.setForeground(Qt::darkBlue); + QStringList keywordPatterns + = QString(ResourceManager::instance ()->octaveKeywords ()).split(" ", QString::SkipEmptyParts); + keywordPatterns << "GNU" << "Octave" << "OctaveGUI"; + + for (int i = 0; i < keywordPatterns.size (); i++) + keywordPatterns.replace(i, QString("\\b%1\\b").arg(keywordPatterns.at (i))); + + foreach (const QString &pattern, keywordPatterns) + { + rule.pattern = QRegExp(pattern); + rule.format = keywordFormat; + highlightingRules.append(rule); + } + + numberFormat.setForeground(Qt::darkRed); + rule.pattern = QRegExp("\\b[0-9\\.\\+\\-\\^]+\\b"); + rule.format = numberFormat; + highlightingRules.append(rule); + + doubleQouteFormat.setForeground(Qt::darkGreen); + rule.pattern = QRegExp("\"[^\"]*\""); + rule.format = doubleQouteFormat; + highlightingRules.append(rule); + + functionFormat.setFontItalic(true); + functionFormat.setForeground(Qt::blue); + rule.pattern = QRegExp("\\b[A-Za-z0-9_]+\\s*(?=\\()"); + rule.format = functionFormat; + highlightingRules.append(rule); + + urlFormat.setForeground(Qt::darkYellow); + rule.pattern = QRegExp("((?:https?|ftp)://\\S+)"); + rule.format = urlFormat; + highlightingRules.append(rule); + + subCaptionFormat.setForeground (Qt::black); + subCaptionFormat.setFontItalic (true); + rule.pattern = QRegExp("^\\s+\\*.+$"); + rule.format = subCaptionFormat; + highlightingRules.append(rule); + + captionFormat.setForeground(Qt::black); + captionFormat.setFontWeight(QFont::Bold); + rule.pattern = QRegExp("^\\s+\\*\\*.+$"); + rule.format = captionFormat; + highlightingRules.append(rule); +} + +void TerminalHighlighter::highlightBlock(const QString &text) +{ + foreach (const HighlightingRule &rule, highlightingRules) + { + QRegExp expression(rule.pattern); + int index = expression.indexIn(text); + while (index >= 0) + { + int length = expression.matchedLength(); + setFormat(index, length, rule.format); + index = expression.indexIn(text, index + length); + } + } +}
new file mode 100644 --- /dev/null +++ b/gui/src/TerminalHighlighter.h @@ -0,0 +1,56 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef TERMINALHIGHLIGHTER_H +#define TERMINALHIGHLIGHTER_H + +#include <QSyntaxHighlighter> + +#include <QHash> +#include <QTextCharFormat> + +class QTextDocument; + +class TerminalHighlighter : public QSyntaxHighlighter +{ + Q_OBJECT + +public: + TerminalHighlighter(QTextDocument *parent = 0); + +protected: + void highlightBlock(const QString &text); + +private: + struct HighlightingRule + { + QRegExp pattern; + QTextCharFormat format; + }; + + QVector<HighlightingRule> highlightingRules; + QTextCharFormat keywordFormat; + QTextCharFormat doubleQouteFormat; + QTextCharFormat functionFormat; + QTextCharFormat urlFormat; + QTextCharFormat captionFormat; + QTextCharFormat subCaptionFormat; + QTextCharFormat numberFormat; +}; + + +#endif // TERMINALHIGHLIGHTER_H
new file mode 100644 --- /dev/null +++ b/gui/src/TerminalView.cpp @@ -0,0 +1,84 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "TerminalHighlighter.h" +#include "TerminalView.h" +#include <QHBoxLayout> +#include <QVBoxLayout> +#include <QStringListModel> +#include <QStringList> +#include <QScrollBar> + +TerminalView::TerminalView (QWidget * parent) + : QPlainTextEdit (parent), Terminal () +{ + setFont (QFont ("Monospace", 10)); + setSizePolicy (QSizePolicy::Expanding, QSizePolicy::Expanding); + m_terminalEmulation = TerminalEmulation::newTerminalEmulation (this); + + TerminalHighlighter *terminalHighlighter = new TerminalHighlighter (); + terminalHighlighter->setDocument (document ()); +} + +TerminalView::~TerminalView () +{ +} + +QTextCursor +TerminalView::textCursor () +{ + return QPlainTextEdit::textCursor(); +} + +void +TerminalView::setTextCursor (const QTextCursor &cursor) +{ + QPlainTextEdit::setTextCursor (cursor); +} + +void +TerminalView::bell () +{ +} + +void +TerminalView::keyPressEvent (QKeyEvent * keyEvent) +{ + if(m_terminalEmulation) + m_terminalEmulation->processKeyEvent (keyEvent); +} + +void +TerminalView::mousePressEvent (QMouseEvent *mouseEvent) +{ + // TODO: Pass mouse events to the terminal emulation. + mouseEvent->accept(); +} + +void +TerminalView::mouseDoubleClickEvent (QMouseEvent *mouseEvent) +{ + // TODO: Pass mouse events to the terminal emulation. + mouseEvent->accept(); +} + +void +TerminalView::wheelEvent (QWheelEvent *wheelEvent) +{ + // TODO: Pass mouse events to the terminal emulation. + wheelEvent->accept(); +}
new file mode 100644 --- /dev/null +++ b/gui/src/TerminalView.h @@ -0,0 +1,58 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef OCTAVETERMINAL_H +#define OCTAVETERMINAL_H +#include <QPlainTextEdit> +#include "AbstractTerminalView.h" +#include "TerminalEmulation.h" + +class TerminalView: + public QPlainTextEdit, + public AbstractTerminalView, + Terminal +{ +Q_OBJECT +public: + TerminalView (QWidget * parent = 0); + ~TerminalView (); + + TerminalEmulation *terminalEmulation () + { + return m_terminalEmulation; + } + + // AbstractTerminalView interface + void sendText (const QString& text) + { m_terminalEmulation->transmitText(text); } + QWidget* widget (void) { return this; } + + // Terminal Interface + QTextCursor textCursor(); + void setTextCursor (const QTextCursor &cursor); + void bell (); + +protected: + void keyPressEvent (QKeyEvent *keyEvent); + void mousePressEvent (QMouseEvent *mouseEvent); + void mouseDoubleClickEvent (QMouseEvent *mouseEvent); + void wheelEvent (QWheelEvent *wheelEvent); + +private: + TerminalEmulation *m_terminalEmulation; +}; +#endif // OCTAVETERMINAL_H
new file mode 100644 --- /dev/null +++ b/gui/src/WelcomeWizard.cpp @@ -0,0 +1,53 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "WelcomeWizard.h" +#include "ui_WelcomeWizard.h" + +WelcomeWizard::WelcomeWizard (QWidget *parent) : + QDialog (parent), + ui (new Ui::WelcomeWizard) +{ + ui->setupUi (this); + connect (ui->nextButton1, SIGNAL (clicked ()), this, SLOT (next ())); + connect (ui->nextButton2, SIGNAL (clicked ()), this, SLOT (next ())); + connect (ui->nextButton3, SIGNAL (clicked ()), this, SLOT (next ())); + connect (ui->nextButton4, SIGNAL (clicked ()), this, SLOT (next ())); + + connect (ui->previousButton2, SIGNAL (clicked ()), this, SLOT (previous ())); + connect (ui->previousButton3, SIGNAL (clicked ()), this, SLOT (previous ())); + connect (ui->previousButton4, SIGNAL (clicked ()), this, SLOT (previous ())); + connect (ui->previousButton5, SIGNAL (clicked ()), this, SLOT (previous ())); +} + +WelcomeWizard::~WelcomeWizard() +{ + delete ui; +} + +void +WelcomeWizard::next () +{ + ui->stackedWidget->setCurrentIndex (ui->stackedWidget->currentIndex () + 1); +} + +void +WelcomeWizard::previous () +{ + ui->stackedWidget->setCurrentIndex (ui->stackedWidget->currentIndex () - 1); +} +
new file mode 100644 --- /dev/null +++ b/gui/src/WelcomeWizard.h @@ -0,0 +1,43 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef WELCOMEWIZARD_H +#define WELCOMEWIZARD_H + +#include <QDialog> + +namespace Ui { +class WelcomeWizard; +} + +class WelcomeWizard : public QDialog +{ + Q_OBJECT + +public: + explicit WelcomeWizard(QWidget *parent = 0); + ~WelcomeWizard(); + +public slots: + void next (); + void previous (); + +private: + Ui::WelcomeWizard *ui; +}; + +#endif // WELCOMEWIZARD_H
new file mode 100644 --- /dev/null +++ b/gui/src/WelcomeWizard.ui @@ -0,0 +1,319 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>WelcomeWizard</class> + <widget class="QDialog" name="WelcomeWizard"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>647</width> + <height>400</height> + </rect> + </property> + <property name="minimumSize"> + <size> + <width>647</width> + <height>400</height> + </size> + </property> + <property name="maximumSize"> + <size> + <width>647</width> + <height>400</height> + </size> + </property> + <property name="windowTitle"> + <string>Welcome to GNU Octave</string> + </property> + <layout class="QVBoxLayout" name="verticalLayout_2"> + <item> + <widget class="QStackedWidget" name="stackedWidget"> + <property name="currentIndex"> + <number>4</number> + </property> + <widget class="QWidget" name="page"> + <layout class="QVBoxLayout" name="verticalLayout"> + <item> + <widget class="QLabel" name="label"> + <property name="text"> + <string>It appears that you have launched Octave GUI for the first time on this computer, since no configuration file could be found at '~/.octave-gui'. This wizard will guide you through the essential settings you should make before you can start using Octave GUI. If you want to transfer your settings you have previously made just close this dialog and copy over the settings file to your home folder. The presence of that file will automatically be detected and will skip this wizard. IMPORTANT: This wizard is not fully functional yet. Just click your way to the end and it will create a standard settings file.</string> + </property> + <property name="alignment"> + <set>Qt::AlignJustify|Qt::AlignVCenter</set> + </property> + <property name="wordWrap"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <spacer name="verticalSpacer"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>218</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_2"> + <item> + <spacer name="horizontalSpacer"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="nextButton1"> + <property name="text"> + <string>Next</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </widget> + <widget class="QWidget" name="page_2"> + <layout class="QVBoxLayout" name="verticalLayout_4"> + <item> + <layout class="QVBoxLayout" name="verticalLayout_3"> + <item> + <spacer name="verticalSpacer_2"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout"> + <item> + <widget class="QPushButton" name="previousButton2"> + <property name="text"> + <string>Previous</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_2"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="nextButton2"> + <property name="text"> + <string>Next</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </item> + </layout> + </widget> + <widget class="QWidget" name="page_3"> + <layout class="QHBoxLayout" name="horizontalLayout_4"> + <item> + <layout class="QVBoxLayout" name="verticalLayout_5"> + <item> + <spacer name="verticalSpacer_3"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_3"> + <item> + <widget class="QPushButton" name="previousButton3"> + <property name="text"> + <string>Previous</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_3"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="nextButton3"> + <property name="text"> + <string>Next</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </item> + </layout> + </widget> + <widget class="QWidget" name="page_4"> + <layout class="QHBoxLayout" name="horizontalLayout_6"> + <item> + <layout class="QVBoxLayout" name="verticalLayout_6"> + <item> + <spacer name="verticalSpacer_4"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_5"> + <item> + <widget class="QPushButton" name="previousButton4"> + <property name="text"> + <string>Previous</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_4"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="nextButton4"> + <property name="text"> + <string>Next</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </item> + </layout> + </widget> + <widget class="QWidget" name="page_5"> + <layout class="QHBoxLayout" name="horizontalLayout_8"> + <item> + <layout class="QVBoxLayout" name="verticalLayout_7"> + <item> + <spacer name="verticalSpacer_5"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>40</height> + </size> + </property> + </spacer> + </item> + <item> + <layout class="QHBoxLayout" name="horizontalLayout_7"> + <item> + <widget class="QPushButton" name="previousButton5"> + <property name="text"> + <string>Previous</string> + </property> + </widget> + </item> + <item> + <spacer name="horizontalSpacer_5"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>40</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QPushButton" name="finishButton"> + <property name="text"> + <string>Finish</string> + </property> + </widget> + </item> + </layout> + </item> + </layout> + </item> + </layout> + </widget> + </widget> + </item> + </layout> + </widget> + <resources/> + <connections> + <connection> + <sender>finishButton</sender> + <signal>clicked()</signal> + <receiver>WelcomeWizard</receiver> + <slot>accept()</slot> + <hints> + <hint type="sourcelabel"> + <x>577</x> + <y>372</y> + </hint> + <hint type="destinationlabel"> + <x>323</x> + <y>199</y> + </hint> + </hints> + </connection> + </connections> +</ui>
new file mode 100755 --- /dev/null +++ b/gui/src/WinTerminalView.cpp @@ -0,0 +1,32 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Michael Goffioul (michael.goffioul@gmail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "WinTerminalView.h" + +WinTerminalView::WinTerminalView (QWidget* parent) + : QConsole (parent) +{ +} + +WinTerminalView::~WinTerminalView (void) +{ +} + +void WinTerminalView::sendText (const QString& txt) +{ + QConsole::sendText (txt); +}
new file mode 100644 --- /dev/null +++ b/gui/src/WinTerminalView.h @@ -0,0 +1,39 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Michael Goffioul (michael.goffioul@gmail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef WINTERMINALVIEW_H +#define WINTERMINALVIEW_H + +#include "QConsole.h" +#include "AbstractTerminalView.h" + +/** + * @class WinTerminalView + * A Windows terminal widget, based on QConsole. + */ +class WinTerminalView : public QConsole, public AbstractTerminalView +{ +public: + WinTerminalView (QWidget* parent = 0); + ~WinTerminalView (void); + + // AbstractTerminalView interface + void sendText (const QString&); + QWidget* widget (void) { return this; } +}; + +#endif // WINTERMINALVIEW_H
new file mode 100644 --- /dev/null +++ b/gui/src/WorkspaceView.cpp @@ -0,0 +1,219 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "WorkspaceView.h" +#include <QHBoxLayout> +#include <QVBoxLayout> +#include <QPushButton> + +WorkspaceView::WorkspaceView (QWidget * parent) : QDockWidget + (parent) +{ + setObjectName ("WorkspaceView"); + setWindowTitle (tr ("Workspace")); + + m_updateSemaphore = new QSemaphore (1); + QStringList headerLabels; + headerLabels << tr ("Name") << tr ("Type") << tr ("Value"); + m_variablesTreeWidget = new QTreeWidget (this); + m_variablesTreeWidget->setHeaderHidden (false); + m_variablesTreeWidget->setHeaderLabels (headerLabels); + + setWidget (new QWidget (this)); + QVBoxLayout *layout = new QVBoxLayout (); + layout->addWidget (m_variablesTreeWidget); + layout->setMargin (2); + widget ()->setLayout (layout); + + QTreeWidgetItem *treeWidgetItem = new QTreeWidgetItem (); + treeWidgetItem->setData (0, 0, QString (tr ("Local"))); + m_variablesTreeWidget->insertTopLevelItem (0, treeWidgetItem); + + treeWidgetItem = new QTreeWidgetItem (); + treeWidgetItem->setData (0, 0, QString (tr ("Global"))); + m_variablesTreeWidget->insertTopLevelItem (1, treeWidgetItem); + + treeWidgetItem = new QTreeWidgetItem (); + treeWidgetItem->setData (0, 0, QString (tr ("Persistent"))); + m_variablesTreeWidget->insertTopLevelItem (2, treeWidgetItem); + + treeWidgetItem = new QTreeWidgetItem (); + treeWidgetItem->setData (0, 0, QString (tr ("Hidden"))); + m_variablesTreeWidget->insertTopLevelItem (3, treeWidgetItem); + + m_variablesTreeWidget->expandAll (); + m_variablesTreeWidget->setAlternatingRowColors (true); + m_variablesTreeWidget->setAnimated (true); + + connect (this, SIGNAL (visibilityChanged(bool)), this, SLOT(handleVisibilityChanged(bool))); + + setStyleSheet( + " QDockWidget { " + " border:1px solid rgba(200, 200, 200, 255); " + " background-color: qlineargradient(spread:pad, " + " x1:0.1, y1:0, x2:0.9, y2:1, " + " stop:0.256444 rgba(255, 215, 215, 255), " + " stop:0.550888 rgba(255, 255, 255, 255), " + " stop:0.780424 rgba(255, 215, 215, 255)); " + " } " + ); + + connect (OctaveLink::instance(), SIGNAL (symbolTableChanged()), this, SLOT (fetchSymbolTable())); +} + +void +WorkspaceView::updateTreeEntry (QTreeWidgetItem * treeItem, SymbolRecord symbolRecord) +{ + treeItem->setData (0, 0, QString (symbolRecord.name ().c_str ())); + treeItem->setData (1, 0, + QString (symbolRecord.varval ().type_name ().c_str ())); + treeItem->setData (2, 0, + OctaveLink::octaveValueAsQString (symbolRecord. + varval ())); +} + +void +WorkspaceView::updateFromSymbolTable (QList < SymbolRecord > symbolTable) +{ + m_updateSemaphore->acquire (); + // Split the symbol table into its different scopes. + QList < SymbolRecord > localSymbolTable; + QList < SymbolRecord > globalSymbolTable; + QList < SymbolRecord > persistentSymbolTable; + QList < SymbolRecord > hiddenSymbolTable; + + foreach (SymbolRecord symbolRecord, symbolTable) + { + // It's true that being global or hidden includes it's can mean it's also locally visible, + // but we want to distinguish that here. + if (symbolRecord.is_local () && !symbolRecord.is_global () + && !symbolRecord.is_hidden ()) + { + localSymbolTable.append (symbolRecord); + } + + if (symbolRecord.is_global ()) + { + globalSymbolTable.append (symbolRecord); + } + + if (symbolRecord.is_persistent ()) + { + persistentSymbolTable.append (symbolRecord); + } + + if (symbolRecord.is_hidden ()) + { + hiddenSymbolTable.append (symbolRecord); + } + } + + updateScope (0, localSymbolTable); + updateScope (1, globalSymbolTable); + updateScope (2, persistentSymbolTable); + updateScope (3, hiddenSymbolTable); + m_updateSemaphore->release (); +} + +void +WorkspaceView::updateScope (int topLevelItemIndex, QList < SymbolRecord > symbolTable) +{ + // This method may be a little bit confusing; variablesList is a complete list of all + // variables that are in the workspace currently. + QTreeWidgetItem *topLevelItem = + m_variablesTreeWidget->topLevelItem (topLevelItemIndex); + + // First we check, if any variables that exist in the model tree have to be updated + // or created. So we walk the variablesList check against the tree. + foreach (SymbolRecord symbolRecord, symbolTable) + { + int childCount = topLevelItem->childCount (); + bool alreadyExists = false; + QTreeWidgetItem *child; + + // Search for the corresponding item in the tree. If it has been found, child + // will contain the appropriate QTreeWidgetItem* pointing at it. + for (int i = 0; i < childCount; i++) + { + child = topLevelItem->child (i); + if (child->data (0, 0).toString () == + QString (symbolRecord.name ().c_str ())) + { + alreadyExists = true; + break; + } + } + + // If it already exists, just update it. + if (alreadyExists) + { + updateTreeEntry (child, symbolRecord); + } + else + { + // It does not exist, so create a new one and set the right values. + child = new QTreeWidgetItem (); + updateTreeEntry (child, symbolRecord); + topLevelItem->addChild (child); + } + } + + // Check the tree against the list for deleted variables. + for (int i = 0; i < topLevelItem->childCount (); i++) + { + bool existsInVariableList = false; + QTreeWidgetItem *child = topLevelItem->child (i); + foreach (SymbolRecord symbolRecord, symbolTable) + { + if (QString (symbolRecord.name ().c_str ()) == + child->data (0, 0).toString ()) + { + existsInVariableList = true; + } + } + + if (!existsInVariableList) + { + topLevelItem->removeChild (child); + delete child; + i--; + } + } +} + +void +WorkspaceView::fetchSymbolTable () +{ + OctaveLink::instance ()->acquireSymbolTable(); + QList < SymbolRecord > symbolTable = OctaveLink::instance ()->symbolTable(); + updateFromSymbolTable (symbolTable); + OctaveLink::instance ()->releaseSymbolTable(); +} + +void +WorkspaceView::handleVisibilityChanged (bool visible) +{ + if (visible) + emit activeChanged (true); +} + +void +WorkspaceView::closeEvent (QCloseEvent *event) +{ + emit activeChanged (false); + QDockWidget::closeEvent (event); +}
new file mode 100644 --- /dev/null +++ b/gui/src/WorkspaceView.h @@ -0,0 +1,52 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef WORKSPACEVIEW_H +#define WORKSPACEVIEW_H + +#include <QDockWidget> +#include <QTreeWidget> +#include <QSemaphore> +#include "OctaveLink.h" + +class WorkspaceView:public QDockWidget +{ + Q_OBJECT +public: + WorkspaceView (QWidget * parent = 0); + +public slots: + void fetchSymbolTable (); + void handleVisibilityChanged (bool visible); + +signals: + /** Custom signal that tells if a user has clicke away that dock widget. */ + void activeChanged (bool active); + +protected: + void closeEvent (QCloseEvent *event); + +private: + void updateFromSymbolTable (QList < SymbolRecord > symbolTable); + void updateTreeEntry (QTreeWidgetItem * treeItem, SymbolRecord symbolRecord); + void updateScope (int topLevelItemIndex, QList < SymbolRecord > symbolTable); + + QTreeWidget *m_variablesTreeWidget; + QSemaphore *m_updateSemaphore; +}; + +#endif // WORKSPACEVIEW_H
new file mode 100644 --- /dev/null +++ b/gui/src/backend/OctaveCallbackThread.cpp @@ -0,0 +1,50 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "OctaveCallbackThread.h" +#include "MainWindow.h" + +OctaveCallbackThread::OctaveCallbackThread (QObject * parent) + : QThread (parent) +{ + m_runningSemaphore = new QSemaphore(1); + m_running = true; +} + +void +OctaveCallbackThread::halt () +{ + m_runningSemaphore->acquire (); + m_running = false; + m_runningSemaphore->release (); +} + +void +OctaveCallbackThread::run () +{ + bool running = true; + while (running) + { + OctaveLink::instance ()->emitSymbolTableChanged(); + OctaveLink::instance ()->updateHistoryModel (); + usleep (500000); + + m_runningSemaphore->acquire (); + running = m_running; + m_runningSemaphore->release (); + } +}
new file mode 100644 --- /dev/null +++ b/gui/src/backend/OctaveCallbackThread.h @@ -0,0 +1,37 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef OCTAVECALLBACKTHREAD_H +#define OCTAVECALLBACKTHREAD_H + +#include <QThread> +#include <QSemaphore> + +class OctaveCallbackThread:public QThread +{ + Q_OBJECT +public: + void halt(); + OctaveCallbackThread (QObject * parent); +protected: + void run (); +private: + QSemaphore *m_runningSemaphore; + bool m_running; +}; + +#endif // OCTAVECALLBACKTHREAD_H
new file mode 100644 --- /dev/null +++ b/gui/src/backend/OctaveLink.cpp @@ -0,0 +1,150 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 John P. Swensen, Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "OctaveLink.h" + +OctaveLink OctaveLink::m_singleton; + +OctaveLink::OctaveLink ():QObject () +{ + m_symbolTableSemaphore = new QSemaphore (1); + m_historyModel = new QStringListModel (this); +} + +OctaveLink::~OctaveLink () +{ +} + +QString +OctaveLink::octaveValueAsQString (OctaveValue octaveValue) +{ + // Convert single qouted string. + if (octaveValue.is_sq_string ()) + { + return QString ("\'%1\'").arg (octaveValue.string_value ().c_str ()); + + // Convert double qouted string. + } + else if (octaveValue.is_dq_string ()) + { + return QString ("\"%1\"").arg (octaveValue.string_value ().c_str ()); + + // Convert real scalar. + } + else if (octaveValue.is_real_scalar ()) + { + return QString ("%1").arg (octaveValue.scalar_value ()); + + // Convert complex scalar. + } + else if (octaveValue.is_complex_scalar ()) + { + return QString ("%1 + %2i").arg (octaveValue.scalar_value ()). + arg (octaveValue.complex_value ().imag ()); + + // Convert range. + } + else if (octaveValue.is_range ()) + { + return QString ("%1 : %2 : %3").arg (octaveValue.range_value (). + base ()).arg (octaveValue. + range_value (). + inc ()). + arg (octaveValue.range_value ().limit ()); + + // Convert real matrix. + } + else if (octaveValue.is_real_matrix ()) + { + return QString ("%1x%2 matrix") + .arg (octaveValue.matrix_value ().rows ()) + .arg (octaveValue.matrix_value ().cols ()); + + // Convert complex matrix. + } + else if (octaveValue.is_complex_matrix ()) + { + return QString ("%1x%2 complex matrix") + .arg (octaveValue.matrix_value ().rows ()) + .arg (octaveValue.matrix_value ().cols ()); + + // If everything else does not fit, we could not recognize the type. + } + else + { + return QString ("<Type not recognized>"); + } +} + +void +OctaveLink::launchOctave () +{ + // Create both threads. + m_octaveMainThread = new OctaveMainThread (this); + m_octaveCallbackThread = new OctaveCallbackThread (this); + + // Launch the second as soon as the first ist ready. + connect (m_octaveMainThread, SIGNAL(ready()), m_octaveCallbackThread, SLOT(start())); + + // Start the first one. + m_octaveMainThread->start (); +} + +void +OctaveLink::terminateOctave () +{ + m_octaveCallbackThread->halt(); + m_octaveCallbackThread->wait (); + + m_octaveMainThread->terminate (); + //m_octaveMainThread->wait(); +} + +QList < SymbolRecord > OctaveLink::symbolTable () +{ + m_symbolTableBuffer.clear (); + std::list < SymbolRecord > allVariables = symbol_table::all_variables (); + std::list < SymbolRecord >::iterator iterator; + for (iterator = allVariables.begin (); iterator != allVariables.end (); + iterator++) + m_symbolTableBuffer.append (iterator->dup()); + return m_symbolTableBuffer; +} + +void +OctaveLink::updateHistoryModel () +{ + // Determine the client's (our) history length and the one of the server. + int clientHistoryLength = m_historyModel->rowCount (); + int serverHistoryLength = command_history::length (); + + // If were behind the server, iterate through all new entries and add them to our history. + if (clientHistoryLength < serverHistoryLength) + { + for (int i = clientHistoryLength; i < serverHistoryLength; i++) + { + m_historyModel->insertRow (0); + m_historyModel->setData (m_historyModel->index (0), QString (command_history::get_entry (i).c_str ())); + } + } +} + +QStringListModel * +OctaveLink::historyModel () +{ + return m_historyModel; +}
new file mode 100644 --- /dev/null +++ b/gui/src/backend/OctaveLink.h @@ -0,0 +1,138 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 John P. Swensen, Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef OCTAVELINK_H +#define OCTAVELINK_H + +// Octave includes +#undef PACKAGE_BUGREPORT +#undef PACKAGE_NAME +#undef PACKAGE_STRING +#undef PACKAGE_TARNAME +#undef PACKAGE_VERSION +#undef PACKAGE_URL +#include "octave/config.h" +#include "octave/cmd-edit.h" +#include "octave/error.h" +#include "octave/file-io.h" +#include "octave/input.h" +#include "octave/lex.h" +#include "octave/load-path.h" +#include "octave/octave.h" +#include "octave/oct-hist.h" +#include "octave/oct-map.h" +#include "octave/oct-obj.h" +#include "octave/ops.h" +#include "octave/ov.h" +#include "octave/ov-usr-fcn.h" +#include "octave/symtab.h" +#include "octave/pt.h" +#include "octave/pt-eval.h" +#include "octave/config.h" +#include "octave/Range.h" +#include "octave/toplev.h" +#include "octave/procstream.h" +#include "octave/sighandlers.h" +#include "octave/debug.h" +#include "octave/sysdep.h" +#include "octave/ov.h" +#include "octave/unwind-prot.h" +#include "octave/utils.h" +#include "octave/variables.h" + +// Standard includes +#include <iostream> +#include <string> +#include <vector> +#include <readline/readline.h> + +// Qt includes +#include <QMutexLocker> +#include <QMutex> +#include <QFileInfo> +#include <QList> +#include <QString> +#include <QStringList> +#include <QVector> +#include <QSemaphore> +#include <QObject> +#include <QStringListModel> + +#include "OctaveCallbackThread.h" +#include "OctaveMainThread.h" + +typedef symbol_table::symbol_record SymbolRecord; +typedef octave_value OctaveValue; + +/** + * \class OctaveLink + * Manages a link to an octave instance. + */ +class OctaveLink:public QObject +{ + Q_OBJECT +public: + static OctaveLink * + instance () + { + return &m_singleton; + } + static QString + octaveValueAsQString (OctaveValue octaveValue); + + void launchOctave (); + void terminateOctave (); + void acquireSymbolTable () { m_symbolTableSemaphore->acquire (); } + void releaseSymbolTable () { m_symbolTableSemaphore->release (); } + + /** + * For performance reasons this is not thread safe. Before you use this, + * acquire a lock with acquireSymbolTable and releaseSymbolTable. + */ + QList < SymbolRecord > symbolTable (); + + /** + * Returns a copy of the current symbol table buffer. + * \return Copy of the current symbol table buffer. + */ + QList < SymbolRecord > copyCurrentSymbolTable (); + + void updateHistoryModel (); + QStringListModel *historyModel (); + void emitSymbolTableChanged() { emit symbolTableChanged(); } + +signals: + void symbolTableChanged (); + +private: + OctaveLink (); + ~OctaveLink (); + + /** Variable related member variables. */ + QSemaphore * m_symbolTableSemaphore; + QList < SymbolRecord > m_symbolTableBuffer; + + /** History related member variables. */ + QStringListModel *m_historyModel; + + // Threads for running octave and managing the data interaction. + OctaveMainThread *m_octaveMainThread; + OctaveCallbackThread *m_octaveCallbackThread; + + static OctaveLink m_singleton; +}; +#endif // OCTAVELINK_H
new file mode 100644 --- /dev/null +++ b/gui/src/backend/OctaveMainThread.cpp @@ -0,0 +1,35 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "OctaveMainThread.h" +#include "OctaveLink.h" + +OctaveMainThread::OctaveMainThread (QObject * parent):QThread (parent) +{ +} + +void +OctaveMainThread::run () +{ + int argc = 3; + const char *argv[] = { "OctaveGUI", "--interactive", "--line-editing" }; + octave_main (argc, (char **) argv, 1); + emit ready(); + main_loop (); + // TODO: Close application on quit. + clean_up_and_exit (0); +}
new file mode 100644 --- /dev/null +++ b/gui/src/backend/OctaveMainThread.h @@ -0,0 +1,35 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef OCTAVEMAINTHREAD_H +#define OCTAVEMAINTHREAD_H + +#include <QThread> +class OctaveMainThread:public QThread +{ + Q_OBJECT +public: + OctaveMainThread (QObject * parent); + +signals: + void ready(); + +protected: + void run (); +}; + +#endif // OCTAVEMAINTHREAD_H
new file mode 100644 --- /dev/null +++ b/gui/src/backend/ReadlineAdapter.cpp @@ -0,0 +1,23 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "ReadlineAdapter.h" + +ReadlineAdapter::ReadlineAdapter (QObject *parent) : + QObject (parent), command_editor () +{ +}
new file mode 100644 --- /dev/null +++ b/gui/src/backend/ReadlineAdapter.h @@ -0,0 +1,37 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef READLINEADAPTER_H +#define READLINEADAPTER_H + +#include "octave/config.h" +#include "octave/cmd-edit.h" +#include <QObject> + +class ReadlineAdapter : public QObject, public command_editor +{ + Q_OBJECT +public: + explicit ReadlineAdapter (QObject *parent = 0); + +signals: + +public slots: + +}; + +#endif // READLINEADAPTER_H
new file mode 100644 --- /dev/null +++ b/gui/src/irc/IRCClientImpl.cpp @@ -0,0 +1,513 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "IRCClientImpl.h" + +IRCServerMessage::IRCServerMessage (const QString& serverMessage) +{ + if (serverMessage.isEmpty ()) + return; + + int position = 0; + QString buffer; + + m_nick = ""; + m_user = ""; + m_host = ""; + + // A server message starting with a prefix indicates + // a prefix. A prefix has the format: + // :nick!user@host + // followed by a space character. + if (serverMessage.startsWith (":")) + { + position++; + while ((position < serverMessage.size ()) + &&(serverMessage.at (position) != '!') + && !serverMessage.at (position).isSpace ()) + { + buffer.append (serverMessage.at (position)); + position++; + } + m_nick = buffer, buffer.clear (), position++; + + // If it belongs to the prefix, it must be concatenanted neatlessly without + // any spaces. + if (position < serverMessage.size()) + if (!serverMessage.at (position - 1).isSpace ()) + { + while ((position < serverMessage.size ()) + && serverMessage.at (position) != '@') + { + buffer.append (serverMessage.at (position)); + position++; + } + m_user = buffer, buffer.clear (), position++; + } + + // If it belongs to the prefix, it must be concatenanted neatlessly without + // any spaces. + if (position < serverMessage.size()) + if (!serverMessage.at (position - 1).isSpace ()) + { + while ((position < serverMessage.size ()) + && serverMessage.at (position) != ' ') + { + buffer.append (serverMessage.at (position)); + position++; + } + m_host = buffer, buffer.clear (), position++; + } + } + + // The next part is the command. The command can either be numeric + // or a written command. + while ((position < serverMessage.size ()) + && !serverMessage.at (position).isSpace ()) + { + buffer.append (serverMessage.at (position)); + position++; + } + m_command = buffer.toUpper (), buffer.clear (), position++; + m_codeNumber = m_command.toInt (&m_isNumeric); + + // Next: a list of parameters. If any of these parameters + // starts with a colon, we have to read everything that follows + // as a single parameter. + bool readUntilEnd = false; + while (position < serverMessage.size ()) + { + if (buffer.isEmpty () && !readUntilEnd && (serverMessage.at (position) == ':')) + { + readUntilEnd = true; + } + else + { + if (readUntilEnd) + { + buffer.append (serverMessage.at (position)); + } + else + { + if (serverMessage.at (position).isSpace ()) + { + if (!buffer.isEmpty ()) + { + m_parameters.append (buffer); + buffer.clear (); + } + } + else + { + buffer.append (serverMessage.at (position)); + } + } + } + position++; + } + + if (!buffer.isEmpty ()) + { + // We need to chop off \r\n here. + buffer.chop (2); + m_parameters.append (buffer); + } +} + +int +IRCServerMessage::numericValue () +{ + if (m_isNumeric) + return m_codeNumber; + return -1; +} + +QString +IRCServerMessage::parameter (int index) +{ + if (index >= 0 && index < m_parameters.size ()) + return m_parameters.at (index); + return ""; +} + + +IRCChannelProxyImpl::IRCChannelProxyImpl (IRCClientInterface *clientInterface, const QString& channelName, QObject *parent) + : IRCChannelProxyInterface (clientInterface, channelName, parent), + m_clientInterface (clientInterface) +{ + m_channelName = channelName; + connect (clientInterface, SIGNAL (nicknameChanged (QString,QString)), + this, SLOT (handleNickChange (QString,QString))); +} + +QTextDocument * +IRCChannelProxyImpl::conversationModel () +{ + return &m_conversationModel; +} + +QStringListModel * +IRCChannelProxyImpl::userListModel () +{ + return &m_userListModel; +} + +QString +IRCChannelProxyImpl::channelName () +{ + return m_channelName; +} + +void +IRCChannelProxyImpl::setNickList (const QStringList &nickList) +{ + m_userList = nickList; + m_userListModel.setStringList (nickList); +} + +void +IRCChannelProxyImpl::sendMessage (const QString& message) +{ + QStringList arguments; + arguments << m_channelName; + arguments << message; + m_clientInterface->sendIRCCommand (IRCCommand::PrivateMessage, arguments); +} + +void +IRCChannelProxyImpl::sendJoinRequest () +{ + m_clientInterface->sendIRCCommand (IRCCommand::Join, QStringList (m_channelName)); +} + + +void +IRCChannelProxyImpl::leave (const QString& reason) +{ + Q_UNUSED (reason); +} + +void +IRCChannelProxyImpl::handleNickChange (const QString &oldNick, const QString &newNick) +{ + m_userList = m_userListModel.stringList (); + m_userList.removeAll (oldNick); + m_userList.append (newNick); + m_userListModel.setStringList (m_userList); +} + +void +IRCChannelProxyImpl::handleJoin (const QString &nick) +{ + m_userList = m_userListModel.stringList (); + m_userList.append (nick); + m_userListModel.setStringList (m_userList); +} + +IRCClientImpl::IRCClientImpl (QObject *parent) + : IRCClientInterface (parent) +{ + m_loggedIn = false; + connect (&m_tcpSocket, SIGNAL (connected ()), this, SLOT (handleConnected ())); + connect (&m_tcpSocket, SIGNAL (disconnected ()), this, SLOT (handleDisconnected ())); + connect (&m_tcpSocket, SIGNAL (readyRead ()), this, SLOT (handleReadyRead ())); +} + +IRCClientImpl::~IRCClientImpl () +{ + foreach (IRCChannelProxyInterface *ircChannelProxy, m_channels) + { + delete ircChannelProxy; + } +} + +void +IRCClientImpl::connectToHost (const QHostAddress& host, int port, const QString& initialNick) +{ + m_host = host; + m_nickname = initialNick; + m_tcpSocket.connectToHost(host, port); +} + +void +IRCClientImpl::disconnect () +{ + m_tcpSocket.disconnect (); +} + +void +IRCClientImpl::reconnect () +{ + disconnect (); + connectToHost (m_host, m_port, m_nickname); +} + +bool +IRCClientImpl::isConnected () +{ + return m_connected; +} + +bool +IRCClientImpl::isLoggedIn () +{ + return m_loggedIn; +} + +const QHostAddress& +IRCClientImpl::host() +{ + return m_host; +} + +int +IRCClientImpl::port() +{ + return m_port; +} + +IRCChannelProxyInterface * +IRCClientImpl::ircChannelProxy (const QString &channel) +{ + if (!m_channels.contains (channel)) + m_channels[channel] = new IRCChannelProxyImpl(this, channel); + return m_channels[channel]; +} + +void +IRCClientImpl::sendNicknameChangeRequest (const QString &nickname) +{ + sendIRCCommand (IRCCommand::Nick, QStringList (nickname)); +} + +void +IRCClientImpl::sendPrivateMessage (const QString &recipient, const QString &message) +{ + QStringList arguments; + arguments << recipient; + arguments << message; + sendIRCCommand (IRCCommand::PrivateMessage, arguments); +} + +const QString& +IRCClientImpl::nickname () +{ + return m_nickname; +} + +void +IRCClientImpl::handleConnected () +{ + m_connected = true; + QStringList arguments; + arguments << "na" << "0" << "0" << "na"; + sendIRCCommand (IRCCommand::User, arguments); + sendNicknameChangeRequest (m_nickname); + emit connected (m_host.toString ()); +} + +void +IRCClientImpl::handleDisconnected () +{ + m_connected = false; + emit disconnected (); +} + +void +IRCClientImpl::handleReadyRead () +{ + QByteArray line; + do + { + line = m_tcpSocket.readLine(); + if (line.size ()) + handleIncomingLine(QString::fromUtf8(line.data ())); + else + break; + } + while (true); +} + +void +IRCClientImpl::handleNicknameChanged (const QString &oldNick, const QString &newNick) +{ + // Check if our nickname changed. + if (oldNick == m_nickname) + { + m_nickname = newNick; + emit userNicknameChanged (m_nickname); + } + emit nicknameChanged (oldNick, newNick); +} + +void +IRCClientImpl::handleUserJoined (const QString &nick, const QString &channel) +{ + ircChannelProxy (channel)->handleJoin (nick); + emit userJoined (nick, channel); +} + +void +IRCClientImpl::handleUserQuit (const QString &nick, const QString &reason) +{ + emit userQuit (nick, reason); +} + +void +IRCClientImpl::handleIncomingLine (const QString &line) +{ + if (m_connected && !line.isEmpty()) + { + IRCServerMessage ircServerMessage(line); + if (ircServerMessage.isNumeric () == true) + { + switch (ircServerMessage.numericValue ()) + { + case IRCReply::Welcome: + m_loggedIn = true; + emit userNicknameChanged (nickname ()); + emit loggedIn (nickname ()); + break; + case IRCError::NicknameInUse: + case IRCError::NickCollision: + // If we are already logged in, the user attempted to + // switch to a username that is already existing. + // In that case warn him. + if (isLoggedIn ()) + { + emit error ("The nickname is already in use."); + } + // Otherwise we are attempting to log in to the server. + // Change the nick so that we can at least log in. + else + { + m_nickname += "_"; + sendNicknameChangeRequest (m_nickname); + } + break; + case IRCError::PasswordMismatch: + emit error ("The password you provided is not correct."); + break; + case IRCReply::MessageOfTheDayStart: + case IRCReply::MessageOfTheDay: + case IRCReply::MessageOfTheDayEnd: + case IRCError::NoMessageOfTheDay: + break; + case IRCReply::NoTopic: + case IRCReply::Topic: + break; + case IRCReply::NameReply: + QString channel = ircServerMessage.parameter (2); + QString nickList = ircServerMessage.parameter (3); + emit debugMessage (nickList); + ircChannelProxy (channel)->setNickList (nickList.split (QRegExp ("\\s+"), QString::SkipEmptyParts)); + break; + } + } + else + { + QString command = ircServerMessage.command (); + if (command == IRCCommand::Nick) + { + handleNicknameChanged (ircServerMessage.nick(), ircServerMessage.parameter (0)); + } + else if (command == IRCCommand::Quit) + { + handleUserQuit (ircServerMessage.nick (), ircServerMessage.parameter (0)); + } + else if (command == IRCCommand::Join) + { + handleUserJoined(ircServerMessage.nick (), ircServerMessage.parameter (0)); + } + else if (command == IRCCommand::Part) + { + emit debugMessage ("WRITEME: Received part."); + //emit part (ircEvent.getNick ().toStdString ().c_str (), + // ircEvent.getParam (0).toStdString ().c_str (), + // ircEvent.getParam (1).toStdString ().c_str ()); + } + else if (command == IRCCommand::Mode) + { + emit debugMessage ("WRITEME: Received mode."); + //emit mode (&ircEvent); + } + else if (command == IRCCommand::Topic) + { + emit debugMessage + (QString("WRITEME: Received topic: %1") + .arg (ircServerMessage.parameter (0))); + } + else if (command == IRCCommand::Kick) + { + emit debugMessage ("WRITEME: Received kick command."); + } + else if (command == IRCCommand::Invite) + { + emit debugMessage ("WRITEME: Received invite command."); + + } + else if (command == IRCCommand::PrivateMessage) + { + emit message (ircServerMessage.parameter (0), ircServerMessage.nick (), ircServerMessage.parameter (1)); + } + else if (command == IRCCommand::Notice) + { + emit notification (ircServerMessage.nick ().toStdString ().c_str (), + ircServerMessage.parameter (1).toStdString ().c_str ()); + } + else if (command == IRCCommand::Ping) + { + sendIRCCommand (IRCCommand::Pong, QStringList (m_nickname)); + } + else if (command == IRCCommand::Error) + { + emit error (ircServerMessage.parameter (0)); + } + else + { + emit debugMessage (QString("FIXME: Received unknown reply: %1").arg(command)); + } + } + } +} + +void +IRCClientImpl::sendLine (const QString &line) +{ + if (m_connected) + m_tcpSocket.write ( (line + + "\r\n").toUtf8 ()); +} + +void +IRCClientImpl::sendIRCCommand (const QString &command, const QStringList &arguments) +{ + QString line = command; + for (int i = 0; i < arguments.size (); i++) + { + bool applyColon = false; + // Usually all parameters are separated by spaces. + // The last parameter of the message may contain spaces, it is usually used + // to transmit messages. In order to parse it correctly, if needs to be prefixed + // with a colon, so the server knows to ignore all forthcoming spaces and has to treat + // all remaining characters as a single parameter. If we detect any whitespace in the + // last argument, prefix it with a colon: + if ((i == arguments.size () - 1) && arguments.at (i).contains (QRegExp("\\s"))) + applyColon = true; + line += QString (" %1%2").arg (applyColon ? ":" : "").arg (arguments.at (i)); + } + sendLine (line); +}
new file mode 100644 --- /dev/null +++ b/gui/src/irc/IRCClientImpl.h @@ -0,0 +1,355 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef IRCCLIENTIMPL_H +#define IRCCLIENTIMPL_H + +#include <QTcpSocket> +#include <QHostInfo> +#include <QStringList> +#include <QTextDocument> +#include <QStringListModel> +#include "IRCClientInterface.h" + +/** + * \namespace IRCCommand + * This namespace includes all IRC commands. + */ +namespace IRCCommand +{ + const QString Password = "PASS"; + const QString Nick = "NICK"; + const QString User = "USER"; + const QString Operation = "OPER"; + const QString Service = "SERVICE"; + const QString Quit = "QUIT"; + const QString ServerQuit = "SQUIT"; + + const QString Join = "JOIN"; + const QString Part = "PART"; + const QString Mode = "MODE"; + const QString Topic = "TOPIC"; + const QString Names = "NAMES"; + const QString List = "LIST"; + const QString Invite = "INVITE"; + const QString Kick = "KICK"; + + const QString PrivateMessage = "PRIVMSG"; + const QString Notice = "NOTICE"; + + const QString MessageOfTheDay = "MOTD"; + const QString ListUsers = "LUSERS"; + const QString Version = "VERSION"; + const QString Stats = "STATS"; + const QString Links = "LINKS"; + const QString Time = "TIME"; + const QString Command = "CONNECT"; + const QString Trace = "TRACE"; + const QString Admin = "ADMIN"; + const QString Info = "INFO"; + + const QString ServerList = "SERVLIST"; + const QString ServerQuery = "SQUERY"; + + const QString Who = "WHO"; + const QString WhoIs = "WHOIS"; + const QString WhoWas = "WHOWAS"; + + const QString Kill = "KILL"; + const QString Ping = "PING"; + const QString Pong = "PONG"; + const QString Error = "ERROR"; + + const QString Away = "AWAY"; + const QString Rehash = "REHASH"; + const QString Die = "DIE"; + const QString Restart = "RESTART"; + const QString Summon = "SUMMON"; + const QString Users = "USERS"; + const QString OperatorWall = "OPERWALL"; + const QString UserHost = "USERHOST"; + const QString IsOn = "ISON"; +}; + +/** + * \namespace IRCReply + * This namespace includes all numeric IRC replies. + */ +namespace IRCReply +{ + const int Welcome = 1; + const int YourHost = 2; + const int Created = 3; + const int MyInfo = 4; + const int ReplyBounce = 5; + const int UserHost = 302; + const int IsOn = 303; + const int Away = 301; + const int UnAway = 305; + const int NoAway = 306; + const int WhoIsUser = 311; + const int WhoIsServer = 312; + const int WhoIsOperator = 313; + const int WhoIsIdle = 317; + const int EndOfWhoIs = 318; + const int WhoIsChannels = 319; + const int WhoWasUser = 314; + const int EndOfWhoWas = 369; + const int ListStart = 321; + const int List = 322; + const int ListEnd = 323; + const int UniqueOpIs = 325; + const int ChannelModeIs = 324; + const int NoTopic = 331; + const int Topic = 332; + const int Inviting = 341; + const int Summoning = 342; + const int InviteList = 346; + const int EndOfInviteList = 347; + const int ExceptList = 348; + const int EndOfExceptList = 349; + const int Version = 351; + const int WhoReply = 352; + const int EndOfWho = 315; + const int NameReply = 353; + const int EndOfNames = 366; + const int Links = 364; + const int EndOfLinks = 367; + const int BanList = 368; + const int Info = 371; + const int EndOfInfo = 374; + const int MessageOfTheDayStart = 375; + const int MessageOfTheDay = 372; + const int MessageOfTheDayEnd = 376; + const int YouAreOperator = 381; + const int Rehashing = 382; + const int YouAreService = 383; + const int Time = 391; + const int UserStart = 392; + const int Users = 393; + const int EndOfUsers = 394; + const int NoUsers = 395; + const int TraceLink = 200; + const int TraceConnecting = 201; + const int TraceHandshake = 202; + const int TraceUnknown = 203; + const int TraceOperator = 204; + const int TraceUser = 205; + const int TraceServer = 206; + const int TraceService = 207; + const int TraceNewType = 208; + const int TraceClass = 209; + const int TraceConnect = 210; + const int TraceLog = 261; + const int TraceEnd = 262; + const int StatsLinkInfo = 211; + const int StatsCommands = 212; + const int EndOfStats = 219; + const int StatsUptime = 242; + const int StatsOnline = 243; + const int UModeIs = 221; + const int ServerList = 234; + const int ServerListEnd = 235; + const int ListUserClient = 251; + const int ListUserOperator = 252; + const int ListUserUnknown = 253; + const int ListUserChannels = 254; + const int ListUserMe = 255; + const int AdminMe = 256; + const int AdminLoc1 = 257; + const int AdminLoc2 = 258; + const int AdminEmail = 259; + const int TryAgain = 263; +}; + +/** + * \namespace IRCError + * This namespace includes all numeric IRC errors. + */ +namespace IRCError +{ + const int NoSuchNick = 401; + const int NoSuchServer = 402; + const int NoSuchChannel = 403; + const int CannotSendToChannel = 404; + const int TooManyChannels = 405; + const int WasNoSuchNick = 406; + const int TooManyTargets = 407; + const int NoSuchService = 408; + const int NoOrigin = 409; + const int NoRecipient = 411; + const int NoTextToSend = 412; + const int NoTopLevel = 413; + const int WildTopLevel = 414; + const int BasMask = 415; + const int UnknownCommand = 421; + const int NoMessageOfTheDay = 422; + const int NoAdminInfo = 423; + const int FileError = 424; + const int NoNickNameGiven = 431; + const int ErroneusNick = 432; + const int NicknameInUse = 433; + const int NickCollision = 436; + const int UnavailResource = 437; + const int UserNotInChannel = 441; + const int NotOnChannel = 442; + const int UserOnChannel = 443; + const int NoLogin = 444; + const int SummonDisabled = 445; + const int UsersDisabled = 446; + const int NotRegistered = 451; + const int NeedMoreParams = 461; + const int AlreadyRegistered = 462; + const int NoPermissionForHost = 463; + const int PasswordMismatch = 464; + const int YouAreBannedCreep = 465; + const int YouWillBeBanned = 466; + const int KeySet = 467; + const int ChannelIsFull = 471; + const int UnknownMode = 472; + const int InviteOnlyChannel = 473; + const int BannedFromChannel = 474; + const int BadChannelKey = 475; + const int BadChannelMask = 476; + const int NoChannelModes = 477; + const int BanListFull = 478; + const int NoPrivileges = 481; + const int ChannelOperatorPrivilegesNeeded = 482; + const int CannotKillServer = 483; + const int Restricted = 484; + const int UniqueOperatorPrivilegesNeeded = 485; + const int NoOperatorHost = 491; + const int YourModeListUnknownFlag = 501; + const int UsersDontMatch = 502; +}; + +/** + * \class IRCServerMessage + * The IRCServerMessage class is a wrapper for server messages. + * It parses the server message into its single bits and makes these + * available through Getter-methods. + */ +class IRCServerMessage +{ +public: + IRCServerMessage (const QString& serverMessage); + + bool isNumeric () + { return m_isNumeric; } + + QString nick () + { return m_nick; } + + QString command () + { return m_command; } + + int numericValue (); + QString parameter (int index); + +private: + int m_codeNumber; + bool m_isNumeric; + QString m_nick; + QString m_user; + QString m_host; + QString m_command; + QStringList m_parameters; +}; + +/** + * \class IRCChannelProxyImpl + * Implements a handle to an IRC channel. This is usually provided by the + * the IRC client class. + */ +class IRCChannelProxyImpl : public IRCChannelProxyInterface +{ + Q_OBJECT +public: + IRCChannelProxyImpl (IRCClientInterface *clientInterface, const QString& channelName, QObject *parent = 0); + QTextDocument *conversationModel (); + QStringListModel *userListModel (); + QString channelName (); + + void setNickList (const QStringList &nickList); + void sendMessage (const QString& message); + void sendJoinRequest (); + void leave (const QString &reason); +public slots: + void handleNickChange (const QString& oldNick, const QString& newNick); + void handleJoin (const QString& nick); +private: + QString m_channelName; + QStringList m_userList; + QStringListModel m_userListModel; + QTextDocument m_conversationModel; + IRCClientInterface *m_clientInterface; +}; + +/** + * \class IRCClientImpl + * Implements an IRC client. This class can maintain a connection to one server. + * In order to interface an IRC channel, use the ircChannelProxy-method to retrieve + * a handle. + */ +class IRCClientImpl : public IRCClientInterface +{ + Q_OBJECT +public: + IRCClientImpl (QObject *parent = 0); + ~IRCClientImpl (); + + const QString& nickname (); + bool isConnected (); + bool isLoggedIn (); + const QHostAddress& host(); + int port(); + IRCChannelProxyInterface *ircChannelProxy(const QString& channel); + void sendIRCCommand (const QString& command, const QStringList& arguments); + +public slots: + void connectToHost (const QHostAddress& host, int port, const QString& initialNick); + void disconnect (); + void reconnect (); + + void sendNicknameChangeRequest (const QString &nickname); + void sendPrivateMessage (const QString &recipient, const QString &message); + +signals: + void debugMessage (const QString& message); + +private slots: + void handleConnected (); + void handleDisconnected (); + void handleReadyRead (); + +private: + void handleNicknameChanged (const QString& oldNick, const QString& newNick); + void handleUserJoined (const QString& nick, const QString& channel); + void handleUserQuit (const QString& nick, const QString& reason); + void handleIncomingLine (const QString& line); + void sendLine (const QString& line); + + QHostAddress m_host; + int m_port; + QString m_nickname; + bool m_connected; + bool m_loggedIn; + QTcpSocket m_tcpSocket; + QMap<QString, IRCChannelProxyInterface*> m_channels; +}; + +#endif // IRCCLIENTIMPL_H
new file mode 100644 --- /dev/null +++ b/gui/src/irc/IRCClientInterface.h @@ -0,0 +1,221 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef IRCCLIENTINTERFACE_H +#define IRCCLIENTINTERFACE_H + +#include <QString> +#include <QObject> +#include <QHostAddress> +#include <QTextDocument> +#include <QStringListModel> + +class IRCClientInterface; +/** + * \class IRCChannelProxyInterface + * Interface for a handle to an IRC channel. + */ +class IRCChannelProxyInterface : public QObject +{ + Q_OBJECT +public: + IRCChannelProxyInterface (IRCClientInterface *, const QString&, QObject *parent = 0) : QObject (parent) { } + virtual ~IRCChannelProxyInterface () { } + + /** Returns the conversation model part. */ + virtual QTextDocument *conversationModel () = 0; + + /** Returns a string list model for the user list. */ + virtual QStringListModel *userListModel () = 0; + + /** Returns the name of this channel. */ + virtual QString channelName () = 0; + + /** + * Overwrites the current nick list by settings a new nick list. + * \arg nickList The new nick list to set. + */ + virtual void setNickList (const QStringList& nickList) = 0; + + /** + * Sends a public message onto this channel. + * \arg message The message that should be sent. + */ + virtual void sendMessage (const QString& message) = 0; + + /** Requests to join this channel. */ + virtual void sendJoinRequest () = 0; + + /** + * Requests to leave this channel. + * \arg reason Reason for leaving the channel. + */ + virtual void leave (const QString& reason) = 0; + +public slots: + virtual void handleNickChange (const QString& oldNick, const QString& newNick) = 0; + virtual void handleJoin (const QString& nick) = 0; +}; + +/** + * \class IRCClientInterface + * IRC Clients need to implement this interface. + */ +class IRCClientInterface : public QObject +{ + Q_OBJECT +public: + IRCClientInterface (QObject *parent = 0) : QObject (parent) { } + virtual ~IRCClientInterface () { } + + /** Returns the current nickname of this client. */ + virtual const QString& nickname () = 0; + + /** Returns true if connected to the server. */ + virtual bool isConnected () = 0; + + /** + * Returns true if logged in to the server. + * Note: There is a small difference between isConnected and isLoggedIn. + * isConnected returns true if there is a physical connection to the server. + * isLoggedIn only returns true if the server has already accepted you + * and you are ready to log into channels. + */ + virtual bool isLoggedIn () = 0; + + /** Returns the current host address. */ + virtual const QHostAddress& host() = 0; + + /** Returns the current port. */ + virtual int port() = 0; + + /** + * Returns a handle to an IRC channel. + * Note: Retrieving a handle does not mean you have joined this channel. + * \arg channel The channel to retrieve a handle for. + */ + virtual IRCChannelProxyInterface *ircChannelProxy(const QString& channel) = 0; + + /** + * Send an IRC command to the server. + * \arg command Command to send. + * \arg arguments Arguments to send. + */ + virtual void sendIRCCommand (const QString& command, const QStringList& arguments) = 0; + +public slots: + /** + * Connects to a host. + * \arg host The host to connect tp. + * \arg port The port on which to connect to the host. + * \arg initialNick The initial nick to use when attempting to login. + */ + virtual void connectToHost (const QHostAddress& host, int port, const QString& initialNick) = 0; + + /** Disconnects from the host. */ + virtual void disconnect () = 0; + + /** Reconnects to the host. */ + virtual void reconnect () = 0; + + /** + * Sends a request to change the nickname. + * \arg nickname The new nickname to be requested. + */ + virtual void sendNicknameChangeRequest (const QString& nickname) = 0; + + /** + * Sends a private message. + * \arg recipient The nickname or channel that message should be sent to. + * \arg message The message that should be sent. + */ + virtual void sendPrivateMessage (const QString& recipient, const QString& message) = 0; + +signals: + /** + * Sent upon the arrival of a new message. + * \arg channel The channel this message was sent from. + * \arg sender The nickname of the sender. + * \arg message The message that has been sent. + */ + void newMessage (const QString& channel, const QString& sender, const QString& message); + void message (const QString& channel, const QString& sender, const QString& message); + + /** + * Sent when the connection to a server has been established. + * \arg server The name of the server that the connection has been established to. + */ + void connected (const QString& server); + + /** Sent when the connection to the server has been interrupted. */ + void disconnected (); + + /** + * Sent when an error occurs. + * \arg message A descriptive message of the error that occured. + */ + void error (const QString& message); + + /** + * Sent when a notification arrives. + * \arg sender The source of the notification. + * \arg message The notification. + */ + void notification (const QString& sender, const QString& message); + + /** + * Sent when a nickname changed. + * \arg oldNick The previous nickname. + * \arg newNick The new nickname. + */ + void nicknameChanged (const QString& oldNick, const QString& newNick); + + /** + * Sent when the nickname of this client changed. + * \arg nick The new nickname of this client. + */ + void userNicknameChanged (const QString& nick); + + /** + * Sent when a user has joined a channel. + * \arg nick Nickname of the user that joined the channel. + * \arg channel Channel that this user joined. + */ + void userJoined (const QString& nick, const QString& channel); + + /** + * Sent when a user quits. + * \arg nick Nickname of the user that quit. + * \arg reason Reason of the user to quit. + */ + void userQuit (const QString& nick, const QString& reason); + + /** + * Sent when a user logged in. + * \arg nick The nickname of the user that logged in. + */ + void loggedIn (const QString& nick); + + /** + * Sent when the server provides a userlist for a channel. + * \arg channel The channel that userlist applies to. + * \arg list The actual userlist. + */ + void userList (const QString& channel, const QStringList& list); +}; + +#endif // IRCCLIENTINTERFACE_H
new file mode 100644 --- /dev/null +++ b/gui/src/irc/IRCCodes.h @@ -0,0 +1,223 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid + * jacob.dawid@googlemail.com + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program 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 General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef IRCCODES_H +#define IRCCODES_H +#include <QString> + +namespace IRCCommand +{ + const QString Password = "PASS"; + const QString Nick = "NICK"; + const QString User = "USER"; + const QString Operation = "OPER"; + const QString Service = "SERVICE"; + const QString Quit = "QUIT"; + const QString ServerQuit = "SQUIT"; + + const QString Join = "JOIN"; + const QString Part = "PART"; + const QString Mode = "MODE"; + const QString Topic = "TOPIC"; + const QString Names = "NAMES"; + const QString List = "LIST"; + const QString Invite = "INVITE"; + const QString Kick = "KICK"; + + const QString PrivateMessage = "PRIVMSG"; + const QString Notice = "NOTICE"; + + const QString MessageOfTheDay = "MOTD"; + const QString ListUsers = "LUSERS"; + const QString Version = "VERSION"; + const QString Stats = "STATS"; + const QString Links = "LINKS"; + const QString Time = "TIME"; + const QString Command = "CONNECT"; + const QString Trace = "TRACE"; + const QString Admin = "ADMIN"; + const QString Info = "INFO"; + + const QString ServerList = "SERVLIST"; + const QString ServerQuery = "SQUERY"; + + const QString Who = "WHO"; + const QString WhoIs = "WHOIS"; + const QString WhoWas = "WHOWAS"; + + const QString Kill = "KILL"; + const QString Ping = "PING"; + const QString Pong = "PONG"; + const QString Error = "ERROR"; + + const QString Away = "AWAY"; + const QString Rehash = "REHASH"; + const QString Die = "DIE"; + const QString Restart = "RESTART"; + const QString Summon = "SUMMON"; + const QString Users = "USERS"; + const QString OperatorWall = "OPERWALL"; + const QString UserHost = "USERHOST"; + const QString IsOn = "ISON"; +}; + +namespace IRCReply +{ + const int Welcome = 1; + const int YourHost = 2; + const int Created = 3; + const int MyInfo = 4; + const int ReplyBounce = 5; + const int UserHost = 302; + const int IsOn = 303; + const int Away = 301; + const int UnAway = 305; + const int NoAway = 306; + const int WhoIsUser = 311; + const int WhoIsServer = 312; + const int WhoIsOperator = 313; + const int WhoIsIdle = 317; + const int EndOfWhoIs = 318; + const int WhoIsChannels = 319; + const int WhoWasUser = 314; + const int EndOfWhoWas = 369; + const int ListStart = 321; + const int List = 322; + const int ListEnd = 323; + const int UniqueOpIs = 325; + const int ChannelModeIs = 324; + const int NoTopic = 331; + const int Topic = 332; + const int Inviting = 341; + const int Summoning = 342; + const int InviteList = 346; + const int EndOfInviteList = 347; + const int ExceptList = 348; + const int EndOfExceptList = 349; + const int Version = 351; + const int WhoReply = 352; + const int EndOfWho = 315; + const int NameReply = 353; + const int EndOfNames = 366; + const int Links = 364; + const int EndOfLinks = 367; + const int BanList = 368; + const int Info = 371; + const int EndOfInfo = 374; + const int MessageOfTheDayStart = 375; + const int MessageOfTheDay = 372; + const int MessageOfTheDayEnd = 376; + const int YouAreOperator = 381; + const int Rehashing = 382; + const int YouAreService = 383; + const int Time = 391; + const int UserStart = 392; + const int Users = 393; + const int EndOfUsers = 394; + const int NoUsers = 395; + const int TraceLink = 200; + const int TraceConnecting = 201; + const int TraceHandshake = 202; + const int TraceUnknown = 203; + const int TraceOperator = 204; + const int TraceUser = 205; + const int TraceServer = 206; + const int TraceService = 207; + const int TraceNewType = 208; + const int TraceClass = 209; + const int TraceConnect = 210; + const int TraceLog = 261; + const int TraceEnd = 262; + const int StatsLinkInfo = 211; + const int StatsCommands = 212; + const int EndOfStats = 219; + const int StatsUptime = 242; + const int StatsOnline = 243; + const int UModeIs = 221; + const int ServerList = 234; + const int ServerListEnd = 235; + const int ListUserClient = 251; + const int ListUserOperator = 252; + const int ListUserUnknown = 253; + const int ListUserChannels = 254; + const int ListUserMe = 255; + const int AdminMe = 256; + const int AdminLoc1 = 257; + const int AdminLoc2 = 258; + const int AdminEmail = 259; + const int TryAgain = 263; +}; + +namespace IRCError +{ + const int NoSuchNick = 401; + const int NoSuchServer = 402; + const int NoSuchChannel = 403; + const int CannotSendToChannel = 404; + const int TooManyChannels = 405; + const int WasNoSuchNick = 406; + const int TooManyTargets = 407; + const int NoSuchService = 408; + const int NoOrigin = 409; + const int NoRecipient = 411; + const int NoTextToSend = 412; + const int NoTopLevel = 413; + const int WildTopLevel = 414; + const int BasMask = 415; + const int UnknownCommand = 421; + const int NoMessageOfTheDay = 422; + const int NoAdminInfo = 423; + const int FileError = 424; + const int NoNickNameGiven = 431; + const int ErroneusNick = 432; + const int NicknameInUse = 433; + const int NickCollision = 436; + const int UnavailResource = 437; + const int UserNotInChannel = 441; + const int NotOnChannel = 442; + const int UserOnChannel = 443; + const int NoLogin = 444; + const int SummonDisabled = 445; + const int UsersDisabled = 446; + const int NotRegistered = 451; + const int NeedMoreParams = 461; + const int AlreadyRegistered = 462; + const int NoPermissionForHost = 463; + const int PasswordMismatch = 464; + const int YouAreBannedCreep = 465; + const int YouWillBeBanned = 466; + const int KeySet = 467; + const int ChannelIsFull = 471; + const int UnknownMode = 472; + const int InviteOnlyChannel = 473; + const int BannedFromChannel = 474; + const int BadChannelKey = 475; + const int BadChannelMask = 476; + const int NoChannelModes = 477; + const int BanListFull = 478; + const int NoPrivileges = 481; + const int ChannelOperatorPrivilegesNeeded = 482; + const int CannotKillServer = 483; + const int Restricted = 484; + const int UniqueOperatorPrivilegesNeeded = 485; + const int NoOperatorHost = 491; + const int YourModeListUnknownFlag = 501; + const int UsersDontMatch = 502; +}; + +#endif
new file mode 100644 --- /dev/null +++ b/gui/src/irc/IRCWidget.cpp @@ -0,0 +1,448 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "ResourceManager.h" +#include "IRCWidget.h" +#include <QMessageBox> +#include <QHBoxLayout> +#include <QVBoxLayout> +#include <QLabel> +#include <QSettings> +#include <QInputDialog> +#include <QKeyEvent> +#include <QScrollBar> +#include <QApplication> +#include "IRCClientImpl.h" + +ChatMessageTextEdit::ChatMessageTextEdit (QWidget *parent) + : QPlainTextEdit (parent), m_completer (0) +{ + setMaximumHeight (50); + setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum); +} + +ChatMessageTextEdit::~ChatMessageTextEdit () +{ +} + +void +ChatMessageTextEdit::setCompleter (QCompleter *completer) +{ + if (m_completer) + QObject::disconnect (m_completer, 0, this, 0); + + m_completer = completer; + + if (!m_completer) + return; + + m_completer->setWidget (this); + m_completer->setCompletionMode (QCompleter::PopupCompletion); + m_completer->setCaseSensitivity (Qt::CaseInsensitive); + QObject::connect (m_completer, SIGNAL (activated (QString)), + this, SLOT (insertCompletion (QString))); +} + +QCompleter * +ChatMessageTextEdit::completer () const +{ + return m_completer; +} + +void +ChatMessageTextEdit::insertCompletion(const QString& completion) +{ + + if (m_completer->widget() != this) + return; + QTextCursor tc = textCursor(); + int extra = completion.length() - m_completer->completionPrefix().length(); + tc.movePosition(QTextCursor::Left); + tc.movePosition(QTextCursor::EndOfWord); + tc.insertText(completion.right(extra)); + setTextCursor(tc); +} + +QString +ChatMessageTextEdit::textUnderCursor () const +{ + QTextCursor tc = textCursor (); + tc.select (QTextCursor::WordUnderCursor); + return tc.selectedText (); +} + +void +ChatMessageTextEdit::focusInEvent (QFocusEvent *e) +{ + if (m_completer) + m_completer->setWidget (this); + QPlainTextEdit::focusInEvent (e); +} + +void +ChatMessageTextEdit::keyPressEvent (QKeyEvent *keyPressEvent) +{ + if (m_completer) { + switch (keyPressEvent->key ()) { + case Qt::Key_Enter: + case Qt::Key_Return: + if (! (keyPressEvent->modifiers () & Qt::ShiftModifier)) + { + emit sendMessage (document ()->toPlainText ()); + document ()->setPlainText (""); + } + else + { + QPlainTextEdit::keyPressEvent (keyPressEvent); + } + break; + case Qt::Key_Escape: + case Qt::Key_Tab: + case Qt::Key_Backtab: + keyPressEvent->ignore (); + return; + default: + QPlainTextEdit::keyPressEvent(keyPressEvent); + break; + } + + QString completionPrefix = textUnderCursor (); + if (completionPrefix != m_completer->completionPrefix ()) + { + m_completer->setCompletionPrefix(completionPrefix); + } + + if (completionPrefix.length() > 2) + { + m_completer->popup ()->setCurrentIndex (m_completer->completionModel ()->index (0, 0)); + m_completer->complete (); + } + else + { + m_completer->popup ()->hide (); + } + } +} + +IRCWidget::IRCWidget (QWidget * parent): +QWidget (parent) +{ + QSettings *settings = ResourceManager::instance ()->settings (); + bool connectOnStartup = settings->value ("connectOnStartup").toBool (); + m_autoIdentification = settings->value ("autoIdentification").toBool (); + m_nickServPassword = settings->value ("nickServPassword").toString (); + + m_initialNick = settings->value ("IRCNick").toString (); + + if (m_initialNick.isEmpty ()) + m_initialNick = "OctaveGUI-User"; + + QVBoxLayout *layout = new QVBoxLayout (); + + m_chatWindow = new QTextEdit (this); + m_chatWindow->setReadOnly (true); + m_chatWindow->setEnabled (false); + QWidget *bottomWidget = new QWidget (this); + + layout->addWidget (m_chatWindow); + layout->addWidget (bottomWidget); + layout->setMargin (0); + setLayout (layout); + + QHBoxLayout *bottomLayout = new QHBoxLayout (); + m_nickButton = new QPushButton (bottomWidget); + m_nickButton->setStatusTip (tr ((char *) "Click here to change your nick.")); + m_nickButton->setText (m_initialNick); + m_chatMessageTextEdit = new ChatMessageTextEdit (bottomWidget); + m_chatMessageTextEdit->setStatusTip (tr ((char *) "Enter your message here.")); + + bottomLayout->addWidget (m_nickButton); + bottomLayout->addWidget (new QLabel (":", this)); + bottomLayout->addWidget (m_chatMessageTextEdit); + bottomLayout->setMargin (0); + bottomWidget->setLayout (bottomLayout); + + m_nickButton->setEnabled (false); + m_chatMessageTextEdit->setEnabled (false); + + //setFocusProxy (m_chatMessageTextEdit); + m_nickButton->setFocusProxy (m_chatMessageTextEdit); + + QFont font; + font.setFamily ("Courier"); + font.setPointSize (11); + m_chatWindow->setFont (font); + m_ircClientInterface = new IRCClientImpl (this); + m_octaveChannel = m_ircClientInterface->ircChannelProxy ("#octave"); + + connect (m_ircClientInterface, SIGNAL (connected (QString)), + this, SLOT (handleConnected (QString))); + connect (m_ircClientInterface, SIGNAL(loggedIn(QString)), + this, SLOT (joinOctaveChannel (QString))); + connect (m_ircClientInterface, SIGNAL (error (QString)), + this, SLOT (showErrorMessage (QString))); + connect (m_ircClientInterface, SIGNAL (debugMessage (QString)), + this, SLOT (showStatusMessage (QString))); + connect (m_ircClientInterface, SIGNAL (message (QString, QString, QString)), + this, SLOT (showMessage (QString, QString, QString ))); + connect (m_ircClientInterface, SIGNAL (nicknameChanged (QString,QString)), + this, SLOT (handleNickChange (QString,QString))); + connect (m_ircClientInterface, SIGNAL (notification (QString,QString)), + this, SLOT (showNotification (QString,QString))); + connect (m_ircClientInterface, SIGNAL (loggedIn (QString)), + this, SLOT (handleLoggedIn(QString))); + connect (m_ircClientInterface, SIGNAL (userNicknameChanged (QString)), + this, SLOT (handleUserNicknameChanged (QString))); + + connect (m_nickButton, SIGNAL (clicked ()), this, SLOT (showChangeUserNickPopup ())); + connect (m_chatMessageTextEdit, SIGNAL (sendMessage (QString)), + this, SLOT (sendMessage (QString))); + + m_chatMessageTextEdit->setCompleter + (new QCompleter (m_ircClientInterface->ircChannelProxy ("#octave")->userListModel (), this)); + m_chatWindow->setDocument (m_octaveChannel->conversationModel ()); + + if (connectOnStartup) + connectToServer (); +} + +void +IRCWidget::connectToServer () +{ + showStatusMessage ("Looking up irc.freenode.net."); + QHostInfo hostInfo = QHostInfo::fromName ("irc.freenode.net"); + QList<QHostAddress> hostAddresses = hostInfo.addresses(); + if (hostAddresses.isEmpty ()) + { + showStatusMessage ("Failed to lookup irc.freenode.net."); + } + else + { + showStatusMessage (QString ("Attempting to connect to %1.") + .arg (hostAddresses.at (0).toString ())); + m_ircClientInterface->connectToHost(hostAddresses.at (0), 6667, m_initialNick); + } +} + +void +IRCWidget::showStatusMessage (const QString& message) +{ + m_chatWindow->append (QString ("<i>%1</i>").arg (message)); +} + +void +IRCWidget::showErrorMessage (const QString& message) +{ + m_chatWindow->append (QString ("<i>Error: %1</i>").arg (message)); +} + +void +IRCWidget::handleConnected (const QString &host) +{ + showStatusMessage (QString ("Connected to server %1.").arg (host)); +} + +void +IRCWidget::joinOctaveChannel (const QString& nick) +{ + Q_UNUSED (nick); + showStatusMessage (QString ("Joining channel #octave.")); + m_octaveChannel->sendJoinRequest (); +} + +void +IRCWidget::showMessage (const QString& channel, const QString& sender, const QString& message) +{ + Q_UNUSED (channel); + + // TODO: This doesn't work properly! + // Every message makes it emit unreadMessage (true), + // though it should inly be emitted when this window + // does not have focus, ie. is not the active window. + if (!(hasFocus() + || m_chatMessageTextEdit->hasFocus () + || m_nickButton->hasFocus () + || m_chatWindow->hasFocus () )) + { + emit unreadMessages (true); + } + + QString output; + QString htmlMessage = message; + htmlMessage.replace ("<", "<"); + htmlMessage.replace (">", ">"); + htmlMessage.replace ("\n", "<br>"); + if (message.contains (m_ircClientInterface->nickname ())) + { + output = + QString ("<font color=\"#990000\"><b>%1:</b> %2</font>").arg (sender). + arg (htmlMessage); + + QApplication::alert (this); + } + else + { + output = + QString ("<b>%1:</b> %2").arg (sender). + arg (htmlMessage); + } + m_chatWindow->append (output); + scrollToBottom (); +} + +void +IRCWidget::showNotification (const QString& sender, const QString& message) +{ + Q_UNUSED (sender); + m_chatWindow->append (QString ("<font color=\"#007700\">%1</font>").arg (message)); + scrollToBottom (); +} + +void +IRCWidget::showChangeUserNickPopup () +{ + bool ok; + QString newNick = + QInputDialog::getText (this, QString ("Nickname"), + QString ("Type in your nickname:"), + QLineEdit::Normal, m_ircClientInterface->nickname (), &ok); + if (ok) + { + m_ircClientInterface->sendNicknameChangeRequest (newNick); + } +} + +void +IRCWidget::sendMessage (QString message) +{ + // Do not send empty messages. + if (message.isEmpty ()) + return; + + // Remove trailing spaces. + while (message.at (0).isSpace ()) + message.remove (0, 1); + if (message.startsWith ("/")) + { + QStringList line = + message.split (QRegExp ("\\s+"), QString::SkipEmptyParts); + if (line.at (0) == "/join") + { + IRCChannelProxyInterface *ircChannel = m_ircClientInterface->ircChannelProxy (line.at (1)); + ircChannel->sendJoinRequest (); + } + else if (line.at (0) == "/nick") + { + m_ircClientInterface->sendNicknameChangeRequest (line.at (1)); + } + else if (line.at (0) == "/msg") + { + QString recipient = line.at (1); + // Since we splitted the message before, we have to glue it together again. + QString pmsg = ""; + for (int i = 2; i < line.length (); i++) + { + pmsg += line.at (i); + pmsg += " "; + } + m_ircClientInterface->sendPrivateMessage(recipient, pmsg); + } + } + else + { + m_octaveChannel->sendMessage (message); + message.replace ("<", "<"); + message.replace (">", ">"); + message.replace ("\n", "<br>"); + m_chatWindow->append (QString ("<b>%1:</b> %2"). + arg (m_ircClientInterface->nickname ()).arg (message)); + } + + scrollToBottom (); +} + +void +IRCWidget::maybeIdentifyOnNickServ () +{ + if (m_autoIdentification) + { + m_ircClientInterface->sendPrivateMessage("NickServ", QString ("identify %1"). + arg (m_nickServPassword)); + } +} + +void +IRCWidget::scrollToBottom () +{ + if (m_chatWindow->verticalScrollBar ()) + { + m_chatWindow->verticalScrollBar ()->setValue (m_chatWindow->verticalScrollBar ()->maximum ()); + } +} + +void +IRCWidget::focusInEvent (QFocusEvent *focusEvent) +{ + Q_UNUSED (focusEvent); + emit unreadMessages (false); + QWidget::focusInEvent (focusEvent); + + m_chatMessageTextEdit->setFocus (); +} + +void +IRCWidget::handleLoggedIn (const QString &nick) +{ + m_chatWindow-> + append (QString + ("<i><font color=\"#00AA00\"><b>Successfully logged in as %1.</b></font></i>"). + arg (nick)); + m_nickButton->setEnabled (true); + m_chatMessageTextEdit->setEnabled (true); + m_chatWindow->setEnabled (true); + m_chatMessageTextEdit->setFocus (); +} + +void +IRCWidget::handleNickChange (const QString &oldNick, const QString &newNick) +{ + m_chatWindow->append (QString ("%1 is now known as %2.").arg (oldNick).arg (newNick)); + scrollToBottom (); +} + +void +IRCWidget::handleUserJoined (const QString &nick, const QString &channel) +{ + m_chatWindow->append (QString ("<i>%1 has joined %2.</i>").arg (nick).arg (channel)); + scrollToBottom (); +} + +void +IRCWidget::handleUserQuit (const QString &nick, const QString &reason) +{ + m_chatWindow->append (QString ("<i>%1 has quit.(%2).</i>").arg (nick).arg (reason)); + scrollToBottom (); +} + +void +IRCWidget::handleUserNicknameChanged (const QString &nick) +{ + m_nickButton->setText (nick); + QSettings *settings = ResourceManager::instance ()->settings (); + settings->setValue ("IRCNick", nick); + maybeIdentifyOnNickServ (); +}
new file mode 100644 --- /dev/null +++ b/gui/src/irc/IRCWidget.h @@ -0,0 +1,101 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef IRCWIDGET_H +#define IRCWIDGET_H + +#include <QWidget> +#include <QPlainTextEdit> +#include <QPushButton> +#include <QLineEdit> +#include <QCompleter> +#include "IRCClientInterface.h" + +class ChatMessageTextEdit : public QPlainTextEdit +{ + Q_OBJECT +public: + explicit ChatMessageTextEdit(QWidget *parent = 0); + ~ChatMessageTextEdit(); + + void setCompleter(QCompleter *m_completer); + QCompleter *completer() const; + +signals: + void sendMessage (const QString& message); + +protected: + void keyPressEvent(QKeyEvent *e); + void focusInEvent(QFocusEvent *e); + +private slots: + void insertCompletion(const QString &completion); + +private: + QString textUnderCursor() const; + +private: + QCompleter *m_completer; +}; + +class IRCWidget : public QWidget +{ +Q_OBJECT public: + explicit IRCWidget (QWidget * parent); + void connectToServer (); + +public slots: + void showStatusMessage (const QString&); + void showErrorMessage (const QString&); + void showMessage (const QString& channel, const QString& sender, const QString& message); + void showNotification (const QString& sender, const QString& message); + + void handleConnected (const QString& host); + void joinOctaveChannel (const QString& nick); + + void handleLoggedIn (const QString& nick); + void handleNickChange (const QString& oldNick, const QString& newNick); + void handleUserJoined (const QString& nick, const QString& channel); + void handleUserQuit (const QString& nick, const QString& reason); + void handleUserNicknameChanged (const QString& nick); + + void showChangeUserNickPopup (); + void sendMessage (QString); + + void maybeIdentifyOnNickServ (); + void scrollToBottom (); + +signals: + void unreadMessages (bool yes); + +protected: + void focusInEvent (QFocusEvent *focusEvent); + +private: + IRCClientInterface *m_ircClientInterface; + IRCChannelProxyInterface *m_octaveChannel; + QTextEdit *m_chatWindow; + QPushButton *m_nickButton; + ChatMessageTextEdit *m_chatMessageTextEdit; + + QString m_initialNick; + bool m_autoIdentification; + QString m_nickServPassword; + QString m_settingsFile; +}; + +#endif // IRCWIDGET_H
new file mode 100644 --- /dev/null +++ b/gui/src/irc/Makefile.am @@ -0,0 +1,34 @@ +####### kdevelop will overwrite this part!!! (begin)########## +bin_PROGRAMS = qirc + qirc_SOURCES = + programcommand.cpp newtab.cpp MainTab.cpp notifyshowcase.cpp channellist. + cpp dccget.cpp dccsend.cpp IServerSocket.cpp general.cpp listanicks. + cpp qirc.cpp ventanas.cpp inputBox.cpp cuadroListaNicks. + cpp cuadroConfiguracion.cpp cuadroConectarCon.cpp colamensajes. + cpp IRCClient.cpp IClientSocket.cpp Config.cpp ChatView.cpp main. + cpp qirc_LDADD = -lqt - lXext - lX11 $ (LIBSOCKET) SUBDIRS = + docs EXTRA_DIST = + main.cpp qirc.h ChatView.cpp ChatView.h Config.cpp Config.h IClientSocket. + cpp IClientSocket.h IRCClient.cpp IRCClient.h IRCCodes.h colamensajes. + cpp colamensajes.h cuadroConectarCon.cpp cuadroConectarCon. + h cuadroConfiguracion.cpp cuadroConfiguracion.h cuadroListaNicks. + cpp cuadroListaNicks.h inputBox.cpp inputBox.h ventanas.cpp ventanas.h qirc. + cpp resource.h qirc16x16.xpm qirc32x32.xpm qirc64x64.xpm listanicks. + cpp listanicks.h general.h general.cpp IServerSocket.cpp IServerSocket. + h dccsend.cpp dccsend.h dccget.cpp dccget.h connect.xpm dccsend.xpm help. + xpm connectto.xpm disconnect.xpm join.xpm part.xpm list.xpm channellist. + cpp channellist.h notifyshowcase.cpp notifyshowcase.h offline.xpm online. + xpm operator.xpm justconn.xpm MainTab.cpp MainTab.h newtab.cpp newtab. + h leftArrowDisabled.xpm leftArrowEnabled.xpm rightArrowDisabled. + xpm rightArrowEnabled.xpm tabLeft.xpm tabMiddle.xpm tabRight.xpm tabClose. + xpm programcommand.cpp programcommand.h +####### kdevelop will overwrite this part!!! (end)############ +#set the include path for X, qt and KDE + INCLUDES = $ (all_includes) +#claim, which subdirectories you want to install +#you can add here more. This one gets installed + bin_PROGRAMS = qirc qirc_METASOURCES = USE_AUTOMOC +#the library search path. + qirc_LDFLAGS = $ (all_libraries) +#them while "make clean", use CLEANFILES + DISTCLEANFILES = $ (qirc_METASOURCES)
new file mode 100644 --- /dev/null +++ b/gui/src/lexer/lexeroctavegui.cpp @@ -0,0 +1,141 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "lexeroctavegui.h" +#include <qcolor.h> +#include <qfont.h> + +// ----------------------------------------------------- +// Some basic functions +// ----------------------------------------------------- +LexerOctaveGui::LexerOctaveGui(QObject *parent) + : QsciLexer(parent) // inherit from base lexer +{ +} + +LexerOctaveGui::~LexerOctaveGui() +{ +} + +const char *LexerOctaveGui::language() const +{ + return "Octave"; // return the name of the language +} + +const char *LexerOctaveGui::lexer() const +{ + return "octave"; // return the name of the lexer +} + +// ----------------------------------------------------- +// The colors for syntax highlighting +// ----------------------------------------------------- +QColor LexerOctaveGui::defaultColor(int style) const +{ + switch (style) + { + case Default: // black + return QColor(0x00,0x00,0x00); + case Operator: // red + return QColor(0xef,0x00,0x00); + case Comment: // gray + return QColor(0x7f,0x7f,0x7f); + case Command: // blue-green + return QColor(0x00,0x7f,0x7f); + case Number: // orange + return QColor(0x7f,0x7f,0x00); + case Keyword: // blue + return QColor(0x00,0x00,0xbf); + case SingleQuotedString: // green + return QColor(0x00,0x7f,0x00); + case DoubleQuotedString: // green-yellow + return QColor(0x4f,0x7f,0x00); + } + return QsciLexer::defaultColor(style); +} + + +// ----------------------------------------------------- +// The font decorations for highlighting +// ----------------------------------------------------- +QFont LexerOctaveGui::defaultFont(int style) const +{ + QFont f; + + switch (style) + { + case Comment: // default but italic + f = QsciLexer::defaultFont(style); + f.setItalic(true); + break; + case Keyword: // default + f = QsciLexer::defaultFont(style); + break; + case Operator: // default + f = QsciLexer::defaultFont(style); + break; + default: // default + f = QsciLexer::defaultFont(style); + break; + } + return f; // return the selected font +} + + +// ----------------------------------------------------- +// Style names +// ----------------------------------------------------- +QString LexerOctaveGui::description(int style) const +{ + switch (style) + { + case Default: + return tr("Default"); + case Comment: + return tr("Comment"); + case Command: + return tr("Command"); + case Number: + return tr("Number"); + case Keyword: + return tr("Keyword"); + case SingleQuotedString: + return tr("Single-quoted string"); + case Operator: + return tr("Operator"); + case Identifier: + return tr("Identifier"); + case DoubleQuotedString: + return tr("Double-quoted string"); + } + return QString(); +} + + +// ----------------------------------------------------- +// The set of keywords for highlighting +// TODO: How to define a second set? +// ----------------------------------------------------- +const char *LexerOctaveGui::keywords(int set) const +{ + if (set == 1) + { + return ResourceManager::instance ()->octaveKeywords (); + } + return 0; +} +
new file mode 100644 --- /dev/null +++ b/gui/src/lexer/lexeroctavegui.h @@ -0,0 +1,61 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef LEXEROCTAVE_H +#define LEXEROCTAVE_H + +#include "ResourceManager.h" +#include <QObject> + +#include <Qsci/qsciglobal.h> +#include <Qsci/qscilexer.h> + + +class LexerOctaveGui : public QsciLexer +{ + Q_OBJECT + +public: + // the used styles + enum + { + Default = 0, + Comment = 1, + Command = 2, + Number = 3, + Keyword = 4, + SingleQuotedString = 5, + Operator = 6, + Identifier = 7, + DoubleQuotedString = 8 + }; + + LexerOctaveGui(QObject *parent = 0); + virtual ~LexerOctaveGui(); + const char *language() const; + const char *lexer() const; + QColor defaultColor(int style) const; + QFont defaultFont(int style) const; + const char *keywords(int set) const; + QString description(int style) const; + +private: + LexerOctaveGui(const LexerOctaveGui &); + LexerOctaveGui &operator=(const LexerOctaveGui &); +}; + +#endif
new file mode 100644 --- /dev/null +++ b/gui/src/terminal/KPty.cpp @@ -0,0 +1,657 @@ +/* + + This file is part of the KDE libraries + Copyright (C) 2002 Waldo Bastian <bastian@kde.org> + Copyright (C) 2002-2003,2007-2008 Oswald Buddenhagen <ossi@kde.org> + Copyright (C) 2010 KDE e.V. <kde-ev-board@kde.org> + Author Adriaan de Groot <groot@kde.org> + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + + +#include "KPty.h" + +#include <QtCore/Q_PID> + +#define TTY_GROUP "tty" + +#ifndef PATH_MAX +#ifdef MAXPATHLEN +#define PATH_MAX MAXPATHLEN +#else +#define PATH_MAX 1024 +#endif +#endif + +/////////////////////// +// private functions // +/////////////////////// + +////////////////// +// private data // +////////////////// + +KPtyPrivate::KPtyPrivate (KPty * parent): +masterFd (-1), +slaveFd (-1), +ownMaster (true), +q_ptr (parent) +{ +} + +KPtyPrivate::~KPtyPrivate () +{ +} + +#ifndef HAVE_OPENPTY +bool +KPtyPrivate::chownpty (bool grant) +{ + return !QProcess::execute (KStandardDirs::findExe ("kgrantpty"), + QStringList () << (grant ? "--grant" : + "--revoke") << QString:: + number (masterFd)); +} +#endif + +///////////////////////////// +// public member functions // +///////////////////////////// + +KPty::KPty (): +d_ptr (new KPtyPrivate (this)) +{ +} + +KPty::KPty (KPtyPrivate * d): +d_ptr (d) +{ + d_ptr->q_ptr = this; +} + +KPty::~KPty () +{ + close (); + delete d_ptr; +} + +bool +KPty::open () +{ + Q_D (KPty); + + if (d->masterFd >= 0) + return true; + + d->ownMaster = true; + + QByteArray ptyName; + + // Find a master pty that we can open //////////////////////////////// + + // Because not all the pty animals are created equal, they want to + // be opened by several different methods. + + // We try, as we know them, one by one. + +#ifdef HAVE_OPENPTY + + char ptsn[PATH_MAX]; + if (::openpty (&d->masterFd, &d->slaveFd, ptsn, 0, 0)) + { + d->masterFd = -1; + d->slaveFd = -1; + //kWarning(175) << "Can't open a pseudo teletype"; + return false; + } + d->ttyName = ptsn; + +#else + +#ifdef HAVE__GETPTY // irix + + char *ptsn = + _getpty (&d->masterFd, O_RDWR | O_NOCTTY, S_IRUSR | S_IWUSR, 0); + if (ptsn) + { + d->ttyName = ptsn; + goto grantedpt; + } + +#elif defined(HAVE_PTSNAME) || defined(TIOCGPTN) + +#ifdef HAVE_POSIX_OPENPT + d->masterFd =::posix_openpt (O_RDWR | O_NOCTTY); +#elif defined(HAVE_GETPT) + d->masterFd =::getpt (); +#elif defined(PTM_DEVICE) + //d->masterFd = KDE_open(PTM_DEVICE, O_RDWR|O_NOCTTY); + d->masterFd =::open (PTM_DEVICE, O_RDWR | O_NOCTTY); +#else +#error No method to open a PTY master detected. +#endif + if (d->masterFd >= 0) + { +#ifdef HAVE_PTSNAME + char *ptsn = ptsname (d->masterFd); + if (ptsn) + { + d->ttyName = ptsn; +#else + int ptyno; + if (!ioctl (d->masterFd, TIOCGPTN, &ptyno)) + { + char buf[32]; + sprintf (buf, "/dev/pts/%d", ptyno); + d->ttyName = buf; +#endif +#ifdef HAVE_GRANTPT + if (!grantpt (d->masterFd)) + goto grantedpt; +#else + goto gotpty; +#endif + } + ::close (d->masterFd); + d->masterFd = -1; + } +#endif // HAVE_PTSNAME || TIOCGPTN + + // Linux device names, FIXME: Trouble on other systems? + for (const char *s3 = "pqrstuvwxyzabcde"; *s3; s3++) + { + for (const char *s4 = "0123456789abcdef"; *s4; s4++) + { + ptyName = QString ().sprintf ("/dev/pty%c%c", *s3, *s4).toAscii (); + d->ttyName = + QString ().sprintf ("/dev/tty%c%c", *s3, *s4).toAscii (); + + d->masterFd =::open (ptyName.data (), O_RDWR); + if (d->masterFd >= 0) + { +#ifdef Q_OS_SOLARIS + /* Need to check the process group of the pty. + * If it exists, then the slave pty is in use, + * and we need to get another one. + */ + int pgrp_rtn; + if (ioctl (d->masterFd, TIOCGPGRP, &pgrp_rtn) == 0 + || errno != EIO) + { + ::close (d->masterFd); + d->masterFd = -1; + continue; + } +#endif /* Q_OS_SOLARIS */ + if (!access (d->ttyName.data (), R_OK | W_OK)) // checks availability based on permission bits + { + if (!geteuid ()) + { + struct group *p = getgrnam (TTY_GROUP); + if (!p) + p = getgrnam ("wheel"); + gid_t gid = p ? p->gr_gid : getgid (); + + chown (d->ttyName.data (), getuid (), gid); + chmod (d->ttyName.data (), S_IRUSR | S_IWUSR | S_IWGRP); + } + goto gotpty; + } + ::close (d->masterFd); + d->masterFd = -1; + } + } + } + + //kWarning(175) << "Can't open a pseudo teletype"; + return false; + +gotpty: + KDE_struct_stat st; + if (KDE_stat (d->ttyName.data (), &st)) + return false; // this just cannot happen ... *cough* Yeah right, I just + // had it happen when pty #349 was allocated. I guess + // there was some sort of leak? I only had a few open. + if (((st.st_uid != getuid ()) || + (st.st_mode & (S_IRGRP | S_IXGRP | S_IROTH | S_IWOTH | S_IXOTH))) && + !d->chownpty (true)) + { + + /*kWarning(175) + << "chownpty failed for device " << ptyName << "::" << d->ttyName + << "\nThis means the communication can be eavesdropped." << endl; + */ + } + +grantedpt: + +#ifdef HAVE_REVOKE + revoke (d->ttyName.data ()); +#endif + +#ifdef HAVE_UNLOCKPT + unlockpt (d->masterFd); +#elif defined(TIOCSPTLCK) + int flag = 0; + ioctl (d->masterFd, TIOCSPTLCK, &flag); +#endif + + d->slaveFd =::open (d->ttyName.data (), O_RDWR | O_NOCTTY); + if (d->slaveFd < 0) + { + //kWarning(175) << "Can't open slave pseudo teletype"; + ::close (d->masterFd); + d->masterFd = -1; + return false; + } + +#if (defined(__svr4__) || defined(__sgi__) || defined(Q_OS_SOLARIS)) + // Solaris uses STREAMS for terminal handling. It is possible + // for the pty handling modules to be left off the stream; in that + // case push them on. ioctl(fd, I_FIND, ...) is documented to return + // 1 if the module is on the stream already. + { + static const char *pt = "ptem"; + static const char *ld = "ldterm"; + if (ioctl (d->slaveFd, I_FIND, pt) == 0) + ioctl (d->slaveFd, I_PUSH, pt); + if (ioctl (d->slaveFd, I_FIND, ld) == 0) + ioctl (d->slaveFd, I_PUSH, ld); + } +#endif + +#endif /* HAVE_OPENPTY */ + + fcntl (d->masterFd, F_SETFD, FD_CLOEXEC); + fcntl (d->slaveFd, F_SETFD, FD_CLOEXEC); + + return true; +} + +bool +KPty::open (int fd) +{ +#if !defined(HAVE_PTSNAME) && !defined(TIOCGPTN) + //kWarning(175) << "Unsupported attempt to open pty with fd" << fd; + return false; +#else + Q_D (KPty); + + if (d->masterFd >= 0) + { + //kWarning(175) << "Attempting to open an already open pty"; + return false; + } + + d->ownMaster = false; + +#ifdef HAVE_PTSNAME + char *ptsn = ptsname (fd); + if (ptsn) + { + d->ttyName = ptsn; +#else + int ptyno; + if (!ioctl (fd, TIOCGPTN, &ptyno)) + { + char buf[32]; + sprintf (buf, "/dev/pts/%d", ptyno); + d->ttyName = buf; +#endif + } + else + { + //kWarning(175) << "Failed to determine pty slave device for fd" << fd; + return false; + } + + d->masterFd = fd; + if (!openSlave ()) + { + d->masterFd = -1; + return false; + } + + return true; +#endif +} + +void +KPty::closeSlave () +{ + Q_D (KPty); + + if (d->slaveFd < 0) + return; + ::close (d->slaveFd); + d->slaveFd = -1; +} + +bool +KPty::openSlave () +{ + Q_D (KPty); + + if (d->slaveFd >= 0) + return true; + if (d->masterFd < 0) + { + //kWarning(175) << "Attempting to open pty slave while master is closed"; + return false; + } + d->slaveFd =::open (d->ttyName.data (), O_RDWR | O_NOCTTY); + if (d->slaveFd < 0) + { + //kWarning(175) << "Can't open slave pseudo teletype"; + return false; + } + fcntl (d->slaveFd, F_SETFD, FD_CLOEXEC); + return true; +} + +void +KPty::close () +{ + Q_D (KPty); + + if (d->masterFd < 0) + return; + closeSlave (); + if (d->ownMaster) + { +#ifndef HAVE_OPENPTY + // don't bother resetting unix98 pty, it will go away after closing master anyway. + if (memcmp (d->ttyName.data (), "/dev/pts/", 9)) + { + if (!geteuid ()) + { + struct stat st; + if (!stat (d->ttyName.data (), &st)) + { + chown (d->ttyName.data (), 0, + st.st_gid == getgid ()? 0 : -1); + chmod (d->ttyName.data (), + S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | + S_IWOTH); + } + } + else + { + fcntl (d->masterFd, F_SETFD, 0); + d->chownpty (false); + } + } +#endif + ::close (d->masterFd); + } + d->masterFd = -1; +} + +void +KPty::setCTty () +{ + Q_D (KPty); + + // Setup job control ////////////////////////////////// + + // Become session leader, process group leader, + // and get rid of the old controlling terminal. + setsid (); + + // make our slave pty the new controlling terminal. +#ifdef TIOCSCTTY + ioctl (d->slaveFd, TIOCSCTTY, 0); +#else + // __svr4__ hack: the first tty opened after setsid() becomes controlling tty + ::close (open (d->ttyName, O_WRONLY, 0)); +#endif + + // make our new process group the foreground group on the pty + int pgrp = getpid (); +#if defined(_POSIX_VERSION) || defined(__svr4__) + tcsetpgrp (d->slaveFd, pgrp); +#elif defined(TIOCSPGRP) + ioctl (d->slaveFd, TIOCSPGRP, (char *) &pgrp); +#endif +} + +void +KPty::login (const char *user, const char *remotehost) +{ +#ifdef HAVE_UTEMPTER + Q_D (KPty); + + addToUtmp (d->ttyName, remotehost, d->masterFd); + Q_UNUSED (user); +#else +#ifdef HAVE_UTMPX + struct utmpx l_struct; +#else + struct utmp l_struct; +#endif + memset (&l_struct, 0, sizeof (l_struct)); + // note: strncpy without terminators _is_ correct here. man 4 utmp + + if (user) + strncpy (l_struct.ut_name, user, sizeof (l_struct.ut_name)); + + if (remotehost) + { + strncpy (l_struct.ut_host, remotehost, sizeof (l_struct.ut_host)); +#ifdef HAVE_STRUCT_UTMP_UT_SYSLEN + l_struct.ut_syslen = + qMin (strlen (remotehost), sizeof (l_struct.ut_host)); +#endif + } + +#ifndef __GLIBC__ + Q_D (KPty); + const char *str_ptr = d->ttyName.data (); + if (!memcmp (str_ptr, "/dev/", 5)) + str_ptr += 5; + strncpy (l_struct.ut_line, str_ptr, sizeof (l_struct.ut_line)); +#ifdef HAVE_STRUCT_UTMP_UT_ID + strncpy (l_struct.ut_id, + str_ptr + strlen (str_ptr) - sizeof (l_struct.ut_id), + sizeof (l_struct.ut_id)); +#endif +#endif + +#ifdef HAVE_UTMPX + //gettimeofday(&l_struct.ut_tv, 0); + gettimeofday ((struct timeval *) &l_struct.ut_tv, 0); +#else + l_struct.ut_time = time (0); +#endif + +#ifdef HAVE_LOGIN +#ifdef HAVE_LOGINX + ::loginx (&l_struct); +#else + ::login (&l_struct); +#endif +#else +#ifdef HAVE_STRUCT_UTMP_UT_TYPE + l_struct.ut_type = USER_PROCESS; +#endif +#ifdef HAVE_STRUCT_UTMP_UT_PID + l_struct.ut_pid = getpid (); +#ifdef HAVE_STRUCT_UTMP_UT_SESSION + l_struct.ut_session = getsid (0); +#endif +#endif +#ifdef HAVE_UTMPX + utmpxname (_PATH_UTMPX); + setutxent (); + pututxline (&l_struct); + endutxent (); + //updwtmpx(_PATH_WTMPX, &l_struct); +#else + utmpname (_PATH_UTMP); + setutent (); + pututline (&l_struct); + endutent (); + updwtmp (_PATH_WTMP, &l_struct); +#endif +#endif +#endif +} + +void +KPty::logout () +{ +#ifdef HAVE_UTEMPTER + Q_D (KPty); + + removeLineFromUtmp (d->ttyName, d->masterFd); +#else + Q_D (KPty); + + const char *str_ptr = d->ttyName.data (); + if (!memcmp (str_ptr, "/dev/", 5)) + str_ptr += 5; +#ifdef __GLIBC__ + else + { + const char *sl_ptr = strrchr (str_ptr, '/'); + if (sl_ptr) + str_ptr = sl_ptr + 1; + } +#endif +#ifdef HAVE_LOGIN +#ifdef HAVE_LOGINX + ::logoutx (str_ptr, 0, DEAD_PROCESS); +#else + ::logout (str_ptr); +#endif +#else +#ifdef HAVE_UTMPX + struct utmpx l_struct, *ut; +#else + struct utmp l_struct, *ut; +#endif + memset (&l_struct, 0, sizeof (l_struct)); + + strncpy (l_struct.ut_line, str_ptr, sizeof (l_struct.ut_line)); + +#ifdef HAVE_UTMPX + utmpxname (_PATH_UTMPX); + setutxent (); + if ((ut = getutxline (&l_struct))) + { +#else + utmpname (_PATH_UTMP); + setutent (); + if ((ut = getutline (&l_struct))) + { +#endif + memset (ut->ut_name, 0, sizeof (*ut->ut_name)); + memset (ut->ut_host, 0, sizeof (*ut->ut_host)); +#ifdef HAVE_STRUCT_UTMP_UT_SYSLEN + ut->ut_syslen = 0; +#endif +#ifdef HAVE_STRUCT_UTMP_UT_TYPE + ut->ut_type = DEAD_PROCESS; +#endif +#ifdef HAVE_UTMPX + //gettimeofday(&(ut->ut_tv), 0); + gettimeofday ((struct timeval *) &(ut->ut_tv), 0); + pututxline (ut); + } + endutxent (); +#else + ut->ut_time = time (0); + pututline (ut); + } + endutent (); +#endif +#endif +#endif +} + +bool +KPty::tcGetAttr (struct::termios * ttmode) const +{ + Q_D (const KPty); + +#ifdef Q_OS_SOLARIS + if (_tcgetattr (d->slaveFd, ttmode) == 0) + return true; +#endif + return _tcgetattr (d->masterFd, ttmode) == 0; +} + +bool +KPty::tcSetAttr (struct::termios * ttmode) +{ + Q_D (KPty); + +#ifdef Q_OS_SOLARIS + if (_tcsetattr (d->slaveFd, ttmode) == 0) + return true; +#endif + return _tcsetattr (d->masterFd, ttmode) == 0; +} + +bool +KPty::setWinSize (int lines, int columns) +{ + Q_D (KPty); + + struct winsize winSize; + memset (&winSize, 0, sizeof (winSize)); + winSize.ws_row = (unsigned short) lines; + winSize.ws_col = (unsigned short) columns; + return ioctl (d->masterFd, TIOCSWINSZ, (char *) &winSize) == 0; +} + +bool +KPty::setEcho (bool echo) +{ + struct::termios ttmode; + if (!tcGetAttr (&ttmode)) + return false; + if (!echo) + ttmode.c_lflag &= ~ECHO; + else + ttmode.c_lflag |= ECHO; + return tcSetAttr (&ttmode); +} + +const char * +KPty::ttyName () const +{ + Q_D (const KPty); + + return d->ttyName.data (); +} + +int +KPty::masterFd () const +{ + Q_D (const KPty); + + return d->masterFd; +} + +int +KPty::slaveFd () const +{ + Q_D (const KPty); + + return d->slaveFd; +}
new file mode 100644 --- /dev/null +++ b/gui/src/terminal/KPty.h @@ -0,0 +1,347 @@ +/* This file is part of the KDE libraries + + Copyright (C) 2003,2007 Oswald Buddenhagen <ossi@kde.org> + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef kpty_h +#define kpty_h + +#ifdef __APPLE__ +#ifndef Q_OS_MAC +#define Q_OS_MAC +#endif +#endif + +#if defined(Q_OS_MAC) +#define HAVE_UTIL_H +#define HAVE_UTMPX +#define _UTMPX_COMPAT +#define HAVE_PTSNAME +#define HAVE_SYS_TIME_H +#else +#define HAVE_PTY_H +#endif + +#define HAVE_OPENPTY + +#include <QtCore/QByteArray> + +#ifdef __sgi +#define __svr4__ +#endif + +#ifdef __osf__ +#define _OSF_SOURCE +#include <float.h> +#endif + +#ifdef _AIX +#define _ALL_SOURCE +#endif + +// __USE_XOPEN isn't defined by default in ICC +// (needed for ptsname(), grantpt() and unlockpt()) +#ifdef __INTEL_COMPILER +#ifndef __USE_XOPEN +#define __USE_XOPEN +#endif +#endif + +#include <sys/types.h> +#include <sys/ioctl.h> +#include <sys/time.h> +#include <sys/resource.h> +#include <sys/stat.h> +#include <sys/param.h> + +#include <errno.h> +#include <fcntl.h> +#include <time.h> +#include <stdlib.h> +#include <stdio.h> +#include <string.h> +#include <unistd.h> +#include <grp.h> + +#if defined(HAVE_PTY_H) +#include <pty.h> +#endif + +#ifdef HAVE_LIBUTIL_H +#include <libutil.h> +#elif defined(HAVE_UTIL_H) +#include <util.h> +#endif + +#define HAVE_UTMPX +#define _UTMPX_COMPAT + +#ifdef HAVE_UTEMPTER +extern "C" +{ +#include <utempter.h> +} +#else +#include <utmp.h> +#ifdef HAVE_UTMPX +#include <utmpx.h> +#endif +#if !defined(_PATH_UTMPX) && defined(_UTMPX_FILE) +#define _PATH_UTMPX _UTMPX_FILE +#endif +#if !defined(_PATH_WTMPX) && defined(_WTMPX_FILE) +#define _PATH_WTMPX _WTMPX_FILE +#endif +#endif + +/* for HP-UX (some versions) the extern C is needed, and for other + platforms it doesn't hurt */ +extern "C" +{ +#include <termios.h> +#if defined(HAVE_TERMIO_H) +#include <termio.h> // struct winsize on some systems +#endif +} + +#if defined (_HPUX_SOURCE) +#define _TERMIOS_INCLUDED +#include <bsdtty.h> +#endif + +#ifdef HAVE_SYS_STROPTS_H +#include <sys/stropts.h> // Defines I_PUSH +#define _NEW_TTY_CTRL +#endif + +#if defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__bsdi__) || defined(__APPLE__) || defined (__DragonFly__) +#define _tcgetattr(fd, ttmode) ioctl(fd, TIOCGETA, (char *)ttmode) +#else +#if defined(_HPUX_SOURCE) || defined(__Lynx__) || defined (__CYGWIN__) || defined(__sun) +#define _tcgetattr(fd, ttmode) tcgetattr(fd, ttmode) +#else +#define _tcgetattr(fd, ttmode) ioctl(fd, TCGETS, (char *)ttmode) +#endif +#endif + +#if defined (__FreeBSD__) || defined (__NetBSD__) || defined (__OpenBSD__) || defined (__bsdi__) || defined(__APPLE__) || defined (__DragonFly__) +#define _tcsetattr(fd, ttmode) ioctl(fd, TIOCSETA, (char *)ttmode) +#else +#if defined(_HPUX_SOURCE) || defined(__CYGWIN__) || defined(__sun) +#define _tcsetattr(fd, ttmode) tcsetattr(fd, TCSANOW, ttmode) +#else +#define _tcsetattr(fd, ttmode) ioctl(fd, TCSETS, (char *)ttmode) +#endif +#endif + +#include <QtCore/qglobal.h> +#include <QByteArray> + +class KPty; +struct KPtyPrivate +{ + Q_DECLARE_PUBLIC (KPty) KPtyPrivate (KPty * parent); + virtual ~ KPtyPrivate (); + bool chownpty (bool grant); + + int masterFd; + int slaveFd; + bool ownMaster:1; + + QByteArray ttyName; + + KPty *q_ptr; +}; + +struct termios; + +/** + * Provides primitives for opening & closing a pseudo TTY pair, assigning the + * controlling TTY, utmp registration and setting various terminal attributes. + */ +class KPty +{ +Q_DECLARE_PRIVATE (KPty) public: + + /** + * Constructor + */ + KPty (); + + /** + * Destructor: + * + * If the pty is still open, it will be closed. Note, however, that + * an utmp registration is @em not undone. + */ + ~KPty (); + + /** + * Create a pty master/slave pair. + * + * @return true if a pty pair was successfully opened + */ + bool open (); + + /** + * Open using an existing pty master. + * + * @param fd an open pty master file descriptor. + * The ownership of the fd remains with the caller; + * it will not be automatically closed at any point. + * @return true if a pty pair was successfully opened + */ + bool open (int fd); + + /** + * Close the pty master/slave pair. + */ + void close (); + + /** + * Close the pty slave descriptor. + * + * When creating the pty, KPty also opens the slave and keeps it open. + * Consequently the master will never receive an EOF notification. + * Usually this is the desired behavior, as a closed pty slave can be + * reopened any time - unlike a pipe or socket. However, in some cases + * pipe-alike behavior might be desired. + * + * After this function was called, slaveFd() and setCTty() cannot be + * used. + */ + void closeSlave (); + + /** + * Open the pty slave descriptor. + * + * This undoes the effect of closeSlave(). + * + * @return true if the pty slave was successfully opened + */ + bool openSlave (); + + /** + * Creates a new session and process group and makes this pty the + * controlling tty. + */ + void setCTty (); + + /** + * Creates an utmp entry for the tty. + * This function must be called after calling setCTty and + * making this pty the stdin. + * @param user the user to be logged on + * @param remotehost the host from which the login is coming. This is + * @em not the local host. For remote logins it should be the hostname + * of the client. For local logins from inside an X session it should + * be the name of the X display. Otherwise it should be empty. + */ + void login (const char *user = 0, const char *remotehost = 0); + + /** + * Removes the utmp entry for this tty. + */ + void logout (); + + /** + * Wrapper around tcgetattr(3). + * + * This function can be used only while the PTY is open. + * You will need an #include <termios.h> to do anything useful + * with it. + * + * @param ttmode a pointer to a termios structure. + * Note: when declaring ttmode, @c struct @c ::termios must be used - + * without the '::' some version of HP-UX thinks, this declares + * the struct in your class, in your method. + * @return @c true on success, false otherwise + */ + bool tcGetAttr (struct::termios * ttmode) const; + + /** + * Wrapper around tcsetattr(3) with mode TCSANOW. + * + * This function can be used only while the PTY is open. + * + * @param ttmode a pointer to a termios structure. + * @return @c true on success, false otherwise. Note that success means + * that @em at @em least @em one attribute could be set. + */ + bool tcSetAttr (struct::termios * ttmode); + + /** + * Change the logical (screen) size of the pty. + * The default is 24 lines by 80 columns. + * + * This function can be used only while the PTY is open. + * + * @param lines the number of rows + * @param columns the number of columns + * @return @c true on success, false otherwise + */ + bool setWinSize (int lines, int columns); + + /** + * Set whether the pty should echo input. + * + * Echo is on by default. + * If the output of automatically fed (non-interactive) PTY clients + * needs to be parsed, disabling echo often makes it much simpler. + * + * This function can be used only while the PTY is open. + * + * @param echo true if input should be echoed. + * @return @c true on success, false otherwise + */ + bool setEcho (bool echo); + + /** + * @return the name of the slave pty device. + * + * This function should be called only while the pty is open. + */ + const char *ttyName () const; + + /** + * @return the file descriptor of the master pty + * + * This function should be called only while the pty is open. + */ + int masterFd () const; + + /** + * @return the file descriptor of the slave pty + * + * This function should be called only while the pty slave is open. + */ + int slaveFd () const; + +protected: + /** + * @internal + */ + KPty (KPtyPrivate * d); + + /** + * @internal + */ + KPtyPrivate *const d_ptr; +}; + +#endif
new file mode 100644 --- /dev/null +++ b/gui/src/terminal/KPtyDevice.cpp @@ -0,0 +1,456 @@ +/* + + This file is part of the KDE libraries + Copyright (C) 2007 Oswald Buddenhagen <ossi@kde.org> + Copyright (C) 2010 KDE e.V. <kde-ev-board@kde.org> + Author Adriaan de Groot <groot@kde.org> + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + + +#include "KPtyDevice.h" +#define i18n + +#include <QtCore/QSocketNotifier> + +#include <unistd.h> +#include <errno.h> +#include <signal.h> +#include <termios.h> +#include <fcntl.h> +#include <sys/ioctl.h> +#ifdef HAVE_SYS_FILIO_H +#include <sys/filio.h> +#endif +#ifdef HAVE_SYS_TIME_H +#include <sys/time.h> +#endif + +#if defined(Q_OS_FREEBSD) || defined(Q_OS_MAC) + // "the other end's output queue size" - kinda braindead, huh? +#define PTY_BYTES_AVAILABLE TIOCOUTQ +#elif defined(TIOCINQ) + // "our end's input queue size" +#define PTY_BYTES_AVAILABLE TIOCINQ +#else + // likewise. more generic ioctl (theoretically) +#define PTY_BYTES_AVAILABLE FIONREAD +#endif + +////////////////// +// private data // +////////////////// + +// Lifted from Qt. I don't think they would mind. ;) +// Re-lift again from Qt whenever a proper replacement for pthread_once appears +static void +qt_ignore_sigpipe () +{ + static QBasicAtomicInt atom = Q_BASIC_ATOMIC_INITIALIZER (0); + if (atom.testAndSetRelaxed (0, 1)) + { + struct sigaction noaction; + memset (&noaction, 0, sizeof (noaction)); + noaction.sa_handler = SIG_IGN; + sigaction (SIGPIPE, &noaction, 0); + } +} + +#define NO_INTR(ret,func) do { ret = func; } while (ret < 0 && errno == EINTR) + +bool +KPtyDevicePrivate::_k_canRead () +{ + Q_Q (KPtyDevice); + qint64 readBytes = 0; + +#ifdef Q_OS_IRIX // this should use a config define, but how to check it? + size_t available; +#else + int available; +#endif + if (!::ioctl (q->masterFd (), PTY_BYTES_AVAILABLE, (char *) &available)) + { +#ifdef Q_OS_SOLARIS + // A Pty is a STREAMS module, and those can be activated + // with 0 bytes available. This happens either when ^C is + // pressed, or when an application does an explicit write(a,b,0) + // which happens in experiments fairly often. When 0 bytes are + // available, you must read those 0 bytes to clear the STREAMS + // module, but we don't want to hit the !readBytes case further down. + if (!available) + { + char c; + // Read the 0-byte STREAMS message + NO_INTR (readBytes, read (q->masterFd (), &c, 0)); + // Should return 0 bytes read; -1 is error + if (readBytes < 0) + { + readNotifier->setEnabled (false); + emit q->readEof (); + return false; + } + return true; + } +#endif + + char *ptr = readBuffer.reserve (available); +#ifdef Q_OS_SOLARIS + // Even if available > 0, it is possible for read() + // to return 0 on Solaris, due to 0-byte writes in the stream. + // Ignore them and keep reading until we hit *some* data. + // In Solaris it is possible to have 15 bytes available + // and to (say) get 0, 0, 6, 0 and 9 bytes in subsequent reads. + // Because the stream is set to O_NONBLOCK in finishOpen(), + // an EOF read will return -1. + readBytes = 0; + while (!readBytes) +#endif + // Useless block braces except in Solaris + { + NO_INTR (readBytes, read (q->masterFd (), ptr, available)); + } + if (readBytes < 0) + { + readBuffer.unreserve (available); + q->setErrorString (i18n ("Error reading from PTY")); + return false; + } + readBuffer.unreserve (available - readBytes); // *should* be a no-op + } + + if (!readBytes) + { + readNotifier->setEnabled (false); + emit q->readEof (); + return false; + } + else + { + if (!emittedReadyRead) + { + emittedReadyRead = true; + emit q->readyRead (); + emittedReadyRead = false; + } + return true; + } +} + +bool +KPtyDevicePrivate::_k_canWrite () +{ + Q_Q (KPtyDevice); + + writeNotifier->setEnabled (false); + if (writeBuffer.isEmpty ()) + return false; + + qt_ignore_sigpipe (); + int wroteBytes; + NO_INTR (wroteBytes, + write (q->masterFd (), + writeBuffer.readPointer (), writeBuffer.readSize ())); + if (wroteBytes < 0) + { + q->setErrorString (i18n ("Error writing to PTY")); + return false; + } + writeBuffer.free (wroteBytes); + + if (!emittedBytesWritten) + { + emittedBytesWritten = true; + emit q->bytesWritten (wroteBytes); + emittedBytesWritten = false; + } + + if (!writeBuffer.isEmpty ()) + writeNotifier->setEnabled (true); + return true; +} + +#ifndef timeradd +// Lifted from GLIBC +#define timeradd(a, b, result) \ + do { \ + (result)->tv_sec = (a)->tv_sec + (b)->tv_sec; \ + (result)->tv_usec = (a)->tv_usec + (b)->tv_usec; \ + if ((result)->tv_usec >= 1000000) { \ + ++(result)->tv_sec; \ + (result)->tv_usec -= 1000000; \ + } \ + } while (0) +#define timersub(a, b, result) \ + do { \ + (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ + (result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \ + if ((result)->tv_usec < 0) { \ + --(result)->tv_sec; \ + (result)->tv_usec += 1000000; \ + } \ + } while (0) +#endif + +bool +KPtyDevicePrivate::doWait (int msecs, bool reading) +{ + Q_Q (KPtyDevice); +#ifndef __linux__ + struct timeval etv; +#endif + struct timeval tv, *tvp; + + if (msecs < 0) + tvp = 0; + else + { + tv.tv_sec = msecs / 1000; + tv.tv_usec = (msecs % 1000) * 1000; +#ifndef __linux__ + gettimeofday (&etv, 0); + timeradd (&tv, &etv, &etv); +#endif + tvp = &tv; + } + + while (reading ? readNotifier->isEnabled () : !writeBuffer.isEmpty ()) + { + fd_set rfds; + fd_set wfds; + + FD_ZERO (&rfds); + FD_ZERO (&wfds); + + if (readNotifier->isEnabled ()) + FD_SET (q->masterFd (), &rfds); + if (!writeBuffer.isEmpty ()) + FD_SET (q->masterFd (), &wfds); + +#ifndef __linux__ + if (tvp) + { + gettimeofday (&tv, 0); + timersub (&etv, &tv, &tv); + if (tv.tv_sec < 0) + tv.tv_sec = tv.tv_usec = 0; + } +#endif + + switch (select (q->masterFd () + 1, &rfds, &wfds, 0, tvp)) + { + case -1: + if (errno == EINTR) + break; + return false; + case 0: + q->setErrorString (i18n ("PTY operation timed out")); + return false; + default: + if (FD_ISSET (q->masterFd (), &rfds)) + { + bool canRead = _k_canRead (); + if (reading && canRead) + return true; + } + if (FD_ISSET (q->masterFd (), &wfds)) + { + bool canWrite = _k_canWrite (); + if (!reading) + return canWrite; + } + break; + } + } + return false; +} + +void +KPtyDevicePrivate::finishOpen (QIODevice::OpenMode mode) +{ + Q_Q (KPtyDevice); + + q->QIODevice::open (mode); + fcntl (q->masterFd (), F_SETFL, O_NONBLOCK); + readBuffer.clear (); + readNotifier = + new QSocketNotifier (q->masterFd (), QSocketNotifier::Read, q); + writeNotifier = + new QSocketNotifier (q->masterFd (), QSocketNotifier::Write, q); + QObject::connect (readNotifier, SIGNAL (activated (int)), q, + SLOT (_k_canRead ())); + QObject::connect (writeNotifier, SIGNAL (activated (int)), q, + SLOT (_k_canWrite ())); + readNotifier->setEnabled (true); +} + +///////////////////////////// +// public member functions // +///////////////////////////// + +KPtyDevice::KPtyDevice (QObject * parent): +QIODevice (parent), KPty (new KPtyDevicePrivate (this)) +{ +} + +KPtyDevice::~KPtyDevice () +{ + close (); +} + +bool +KPtyDevice::open (OpenMode mode) +{ + Q_D (KPtyDevice); + + if (masterFd () >= 0) + return true; + + if (!KPty::open ()) + { + setErrorString (i18n ("Error opening PTY")); + return false; + } + + d->finishOpen (mode); + + return true; +} + +bool +KPtyDevice::open (int fd, OpenMode mode) +{ + Q_D (KPtyDevice); + + if (!KPty::open (fd)) + { + setErrorString (i18n ("Error opening PTY")); + return false; + } + + d->finishOpen (mode); + + return true; +} + +void +KPtyDevice::close () +{ + Q_D (KPtyDevice); + + if (masterFd () < 0) + return; + + delete d->readNotifier; + delete d->writeNotifier; + + QIODevice::close (); + + KPty::close (); +} + +bool +KPtyDevice::isSequential () const +{ + return true; +} + +bool +KPtyDevice::canReadLine () const +{ + Q_D (const KPtyDevice); + return QIODevice::canReadLine () || d->readBuffer.canReadLine (); +} + +bool +KPtyDevice::atEnd () const +{ + Q_D (const KPtyDevice); + return QIODevice::atEnd () && d->readBuffer.isEmpty (); +} + +qint64 +KPtyDevice::bytesAvailable () const +{ + Q_D (const KPtyDevice); + return QIODevice::bytesAvailable () + d->readBuffer.size (); +} + +qint64 +KPtyDevice::bytesToWrite () const +{ + Q_D (const KPtyDevice); + return d->writeBuffer.size (); +} + +bool +KPtyDevice::waitForReadyRead (int msecs) +{ + Q_D (KPtyDevice); + return d->doWait (msecs, true); +} + +bool +KPtyDevice::waitForBytesWritten (int msecs) +{ + Q_D (KPtyDevice); + return d->doWait (msecs, false); +} + +void +KPtyDevice::setSuspended (bool suspended) +{ + Q_D (KPtyDevice); + d->readNotifier->setEnabled (!suspended); +} + +bool +KPtyDevice::isSuspended () const +{ + Q_D (const KPtyDevice); + return !d->readNotifier->isEnabled (); +} + +// protected +qint64 +KPtyDevice::readData (char *data, qint64 maxlen) +{ + Q_D (KPtyDevice); + return d->readBuffer.read (data, (int) qMin < qint64 > (maxlen, KMAXINT)); +} + +// protected +qint64 +KPtyDevice::readLineData (char *data, qint64 maxlen) +{ + Q_D (KPtyDevice); + return d->readBuffer.readLine (data, + (int) qMin < qint64 > (maxlen, KMAXINT)); +} + +// protected +qint64 +KPtyDevice::writeData (const char *data, qint64 len) +{ + Q_D (KPtyDevice); + Q_ASSERT (len <= KMAXINT); + + d->writeBuffer.write (data, len); + d->writeNotifier->setEnabled (true); + return len; +} +
new file mode 100644 --- /dev/null +++ b/gui/src/terminal/KPtyDevice.h @@ -0,0 +1,356 @@ +/* This file is part of the KDE libraries + + Copyright (C) 2007 Oswald Buddenhagen <ossi@kde.org> + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef kptydev_h +#define kptydev_h + +struct KPtyPrivate; +struct KPtyDevicePrivate; + +#include "KPty.h" +#include <QtCore/QIODevice> +#include <QSocketNotifier> + +#define Q_DECLARE_PRIVATE_MI(Class, SuperClass) \ + inline Class##Private* d_func() { return reinterpret_cast<Class##Private *>(SuperClass::d_ptr); } \ + inline const Class##Private* d_func() const { return reinterpret_cast<const Class##Private *>(SuperClass::d_ptr); } \ + friend class Class##Private; + +/** + * Encapsulates KPty into a QIODevice, so it can be used with Q*Stream, etc. + */ +class KPtyDevice:public QIODevice, public KPty +{ //krazy:exclude=dpointer (via macro) +Q_OBJECT Q_DECLARE_PRIVATE_MI (KPtyDevice, KPty) public: + + /** + * Constructor + */ + KPtyDevice (QObject * parent = 0); + + /** + * Destructor: + * + * If the pty is still open, it will be closed. Note, however, that + * an utmp registration is @em not undone. + */ + virtual ~ KPtyDevice (); + + /** + * Create a pty master/slave pair. + * + * @return true if a pty pair was successfully opened + */ + virtual bool open (OpenMode mode = ReadWrite | Unbuffered); + + /** + * Open using an existing pty master. The ownership of the fd + * remains with the caller, i.e., close() will not close the fd. + * + * This is useful if you wish to attach a secondary "controller" to an + * existing pty device such as a terminal widget. + * Note that you will need to use setSuspended() on both devices to + * control which one gets the incoming data from the pty. + * + * @param fd an open pty master file descriptor. + * @param mode the device mode to open the pty with. + * @return true if a pty pair was successfully opened + */ + bool open (int fd, OpenMode mode = ReadWrite | Unbuffered); + + /** + * Close the pty master/slave pair. + */ + virtual void close (); + + /** + * Sets whether the KPtyDevice monitors the pty for incoming data. + * + * When the KPtyDevice is suspended, it will no longer attempt to buffer + * data that becomes available from the pty and it will not emit any + * signals. + * + * Do not use on closed ptys. + * After a call to open(), the pty is not suspended. If you need to + * ensure that no data is read, call this function before the main loop + * is entered again (i.e., immediately after opening the pty). + */ + void setSuspended (bool suspended); + + /** + * Returns true if the KPtyDevice is not monitoring the pty for incoming + * data. + * + * Do not use on closed ptys. + * + * See setSuspended() + */ + bool isSuspended () const; + + /** + * @return always true + */ + virtual bool isSequential () const; + + /** + * @reimp + */ + bool canReadLine () const; + + /** + * @reimp + */ + bool atEnd () const; + + /** + * @reimp + */ + qint64 bytesAvailable () const; + + /** + * @reimp + */ + qint64 bytesToWrite () const; + + bool waitForBytesWritten (int msecs = -1); + bool waitForReadyRead (int msecs = -1); + + + Q_SIGNALS: + /** + * Emitted when EOF is read from the PTY. + * + * Data may still remain in the buffers. + */ + void readEof (); + +protected: + virtual qint64 readData (char *data, qint64 maxSize); + virtual qint64 readLineData (char *data, qint64 maxSize); + virtual qint64 writeData (const char *data, qint64 maxSize); + +private: + Q_PRIVATE_SLOT (d_func (), bool _k_canRead ()) + Q_PRIVATE_SLOT (d_func (), bool _k_canWrite ())}; + +#define KMAXINT ((int)(~0U >> 1)) + +///////////////////////////////////////////////////// +// Helper. Remove when QRingBuffer becomes public. // +///////////////////////////////////////////////////// + +#include <QtCore/qbytearray.h> +#include <QtCore/qlinkedlist.h> + +#define CHUNKSIZE 4096 + +class KRingBuffer +{ +public: + KRingBuffer () + { + clear (); + } + + void clear () + { + buffers.clear (); + QByteArray tmp; + tmp.resize (CHUNKSIZE); + buffers << tmp; + head = tail = 0; + totalSize = 0; + } + + inline bool isEmpty () const + { + return buffers.count () == 1 && !tail; + } + + inline int size () const + { + return totalSize; + } + + inline int readSize () const + { + return (buffers.count () == 1 ? tail : buffers.first ().size ()) - head; + } + + inline const char *readPointer () const + { + Q_ASSERT (totalSize > 0); + return buffers.first ().constData () + head; + } + + void free (int bytes) + { + totalSize -= bytes; + Q_ASSERT (totalSize >= 0); + + forever + { + int nbs = readSize (); + + if (bytes < nbs) + { + head += bytes; + if (head == tail && buffers.count () == 1) + { + buffers.first ().resize (CHUNKSIZE); + head = tail = 0; + } + break; + } + + bytes -= nbs; + if (buffers.count () == 1) + { + buffers.first ().resize (CHUNKSIZE); + head = tail = 0; + break; + } + + buffers.removeFirst (); + head = 0; + } + } + + char *reserve (int bytes) + { + totalSize += bytes; + + char *ptr; + if (tail + bytes <= buffers.last ().size ()) + { + ptr = buffers.last ().data () + tail; + tail += bytes; + } + else + { + buffers.last ().resize (tail); + QByteArray tmp; + tmp.resize (qMax (CHUNKSIZE, bytes)); + ptr = tmp.data (); + buffers << tmp; + tail = bytes; + } + return ptr; + } + + // release a trailing part of the last reservation + inline void unreserve (int bytes) + { + totalSize -= bytes; + tail -= bytes; + } + + inline void write (const char *data, int len) + { + memcpy (reserve (len), data, len); + } + + // Find the first occurrence of c and return the index after it. + // If c is not found until maxLength, maxLength is returned, provided + // it is smaller than the buffer size. Otherwise -1 is returned. + int indexAfter (char c, int maxLength = KMAXINT) const + { + int index = 0; + int start = head; + QLinkedList < QByteArray >::ConstIterator it = buffers.begin (); + forever + { + if (!maxLength) + return index; + if (index == size ()) + return -1; + const QByteArray & buf = *it; + ++it; + int len = qMin ((it == buffers.end ()? tail : buf.size ()) - start, + maxLength); + const char *ptr = buf.data () + start; + if (const char *rptr = (const char *)memchr (ptr, c, len)) + return index + (rptr - ptr) + 1; + index += len; + maxLength -= len; + start = 0; + } + } + + inline int lineSize (int maxLength = KMAXINT) const + { + return indexAfter ('\n', maxLength); + } + + inline bool canReadLine () const + { + return lineSize () != -1; + } + + int read (char *data, int maxLength) + { + int bytesToRead = qMin (size (), maxLength); + int readSoFar = 0; + while (readSoFar < bytesToRead) + { + const char *ptr = readPointer (); + int bs = qMin (bytesToRead - readSoFar, readSize ()); + memcpy (data + readSoFar, ptr, bs); + readSoFar += bs; + free (bs); + } + return readSoFar; + } + + int readLine (char *data, int maxLength) + { + return read (data, lineSize (qMin (maxLength, size ()))); + } + +private: + QLinkedList < QByteArray > buffers; + int head, tail; + int totalSize; +}; + +struct KPtyDevicePrivate:public KPtyPrivate +{ + Q_DECLARE_PUBLIC (KPtyDevice) + KPtyDevicePrivate (KPty * parent):KPtyPrivate (parent), + emittedReadyRead (false), emittedBytesWritten (false), + readNotifier (0), writeNotifier (0) + { + } + + bool _k_canRead (); + bool _k_canWrite (); + + bool doWait (int msecs, bool reading); + void finishOpen (QIODevice::OpenMode mode); + + bool emittedReadyRead; + bool emittedBytesWritten; + QSocketNotifier *readNotifier; + QSocketNotifier *writeNotifier; + KRingBuffer readBuffer; + KRingBuffer writeBuffer; +}; + +#endif
new file mode 100644 --- /dev/null +++ b/gui/src/terminal/LinuxTerminalEmulation.cpp @@ -0,0 +1,253 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + + +#include "LinuxTerminalEmulation.h" + +LinuxTerminalEmulation::LinuxTerminalEmulation () + : TerminalEmulation () +{ + int fdm, fds; + openpty (&fdm, &fds, 0, 0, 0); + + dup2 (fds, STDIN_FILENO); + dup2 (fds, STDOUT_FILENO); + dup2 (fds, STDERR_FILENO); + + m_pty = new KPtyDevice (); + m_pty->open (fdm); + connect (m_pty, SIGNAL(readyRead ()), + this, SLOT (handleReadyRead ())); +} + +LinuxTerminalEmulation::~LinuxTerminalEmulation () +{ + m_pty->close (); +} + +void LinuxTerminalEmulation::processKeyEvent (QKeyEvent *keyEvent) +{ + switch (keyEvent->key ()) + { + case Qt::Key_PageUp: + //if (verticalScrollBar ()) + // verticalScrollBar ()->setValue (verticalScrollBar ()->value () - 10); + return; + case Qt::Key_PageDown: + //if (verticalScrollBar ()) + // verticalScrollBar ()->setValue (verticalScrollBar ()->value () + 10); + return; + + case Qt::Key_Up: + m_pty->write ("\033OA"); + break; + + case Qt::Key_Down: + m_pty->write ("\033OB"); + break; + + case Qt::Key_Right: + m_pty->write ("\033OC"); + break; + + case Qt::Key_Left: + m_pty->write ("\033OF"); + break; + + case Qt::Key_C: + if (keyEvent->modifiers() & Qt::ControlModifier) + { + // TODO: Lookup and implement Control + C. + } + else + { + m_pty->write (keyEvent->text ().toAscii ()); + } + break; + + case Qt::Key_V: + if (keyEvent->modifiers() & Qt::ControlModifier) + { + // TODO: Lookup and implement Control + V. + } + else + { + m_pty->write (keyEvent->text ().toAscii ()); + } + break; + + case Qt::Key_D: + if (keyEvent->modifiers() & Qt::ControlModifier) + { + // Do not send EOT, because this will crash + // the program. + } + else + { + m_pty->write (keyEvent->text ().toAscii ()); + } + break; + + default: + m_pty->write (keyEvent->text ().toAscii ()); + break; + } + keyEvent->accept (); +} + +void +LinuxTerminalEmulation::transmitText (const QString &text) +{ + m_pty->write (text.toLocal8Bit ()); +} + +void +LinuxTerminalEmulation::handleReadyRead () +{ + QByteArray data = m_pty->readAll (); + + data.replace("\033[K", ""); + data.replace("\033[9", ""); + data.replace("\033[A", ""); + data.replace("\033[B", ""); + data.replace("\033[C", ""); + data.replace("\033[D", ""); + data.replace("\033[1", ""); + data.replace("\033[H", ""); + data.replace("\033[2J", ""); + int position; + QTextCursor tc = m_terminal->textCursor (); + tc.beginEditBlock (); + + // Decode data into cursor actions. + foreach(QChar character, data) + { + unsigned short unicode = character.unicode (); + switch (unicode) + { + case 0: // Null (NUL) + qDebug ("NUL"); + break; + case 1: // Start Of Heading (SOH) + qDebug ("SOH"); + break; + case 2: // Start Of Text (STX) + qDebug ("STX"); + break; + case 3: // End Of Text (ETX) + qDebug ("ETX"); + break; + case 4: // End Of Transmission (EOT) + qDebug ("EOT"); + break; + case 5: // Enquiry (ENQ) + qDebug ("ENQ"); + break; + case 6: // Acknowledgement (ACK) + qDebug ("ACK"); + break; + case 7: // Bell (BEL) + m_terminal->bell (); + break; + case 8: // Backspace (BS) + tc.deletePreviousChar (); + break; + case 9: // Horizontal Tab (HT) + qDebug ("HT"); + break; + case 10: // Line Feed (LF) + position = tc.position (); + tc.movePosition (QTextCursor::EndOfLine); + tc.insertText ("\n"); + tc.setPosition (position); + tc.movePosition (QTextCursor::Down); + break; + case 11: // Vertical Tab (VT) + qDebug ("VT"); + break; + case 12: // Form Feed (FF) + qDebug ("FF"); + break; + case 13: // Carriage Return (CR) + tc.movePosition (QTextCursor::StartOfLine, QTextCursor::KeepAnchor); + break; + case 14: // Shift Out (SO) + qDebug ("SO"); + break; + case 15: // Shift In (SI) + qDebug ("SI"); + break; + case 16: // Data Link Escape (DLE) + qDebug ("DLE"); + break; + case 17: // Device Control 1 (DC1, XON) + qDebug ("DC1"); + break; + case 18: // Device Control 2 (DC2) + qDebug ("DC2"); + break; + case 19: // Device Control 3 (DC3, XOFF) + qDebug ("DC3"); + break; + case 20: // Device Control 4 (DC4) + qDebug ("DC4"); + break; + case 21: // Negative Acknowledgement (NAK) + qDebug ("NAK"); + break; + case 22: // Synchronous Idle (SYN) + qDebug ("SYN"); + break; + case 23: // End Of Transmission Block (ETB) + qDebug ("ETB"); + break; + case 24: // Cancel (CAN) + qDebug ("CAN"); + break; + case 25: // End of Medium (EM) + qDebug ("EM"); + break; + case 26: // Substitute (SUB) + qDebug ("SUB"); + break; + case 27: // Escape (ESC) + qDebug ("ESC"); + break; + case 28: // File Separator (FS) + qDebug ("FS"); + break; + case 29: // Group Separator (GS) + qDebug ("GS"); + break; + case 30: // Record Separator (RS) + qDebug ("RS"); + break; + case 31: // Unit Separator (US) + qDebug ("US"); + break; + case 127: // Delete (DEL) + qDebug ("DEL"); + break; + default: + tc.insertText (character); + break; + } + } + + tc.endEditBlock (); + m_terminal->setTextCursor (tc); +}
new file mode 100644 --- /dev/null +++ b/gui/src/terminal/LinuxTerminalEmulation.h @@ -0,0 +1,50 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef LINUXTERMINALEMULATION_H +#define LINUXTERMINALEMULATION_H + +#include "TerminalEmulation.h" +#include "KPtyDevice.h" + +/** + * @class LinuxTerminalEmulation + * Implements the terminal emulation on Linux and Unix as well as Unix-like + * systems, like MacOSX. + */ +class LinuxTerminalEmulation : public TerminalEmulation +{ + Q_OBJECT +public: + LinuxTerminalEmulation (); + ~LinuxTerminalEmulation (); + + /** @reimp */ + void processKeyEvent (QKeyEvent *keyEvent); + + /** @reimp */ + void transmitText (const QString &text); + +private slots: + void handleReadyRead (); + +private: + /** KPtyDevice from the Konsole sources. */ + KPtyDevice *m_pty; +}; + +#endif // LINUXTERMINALEMULATION_H
new file mode 100644 --- /dev/null +++ b/gui/src/terminal/TerminalEmulation.cpp @@ -0,0 +1,40 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#include "TerminalEmulation.h" + +#ifdef Q_OS_UNIX + #include "LinuxTerminalEmulation.h" +#endif + +TerminalEmulation *TerminalEmulation::newTerminalEmulation (Terminal *terminal) +{ +#ifdef Q_OS_UNIX + TerminalEmulation *terminalEmulation = new LinuxTerminalEmulation (); + terminalEmulation->m_terminal = terminal; + return terminalEmulation; +#endif +#ifdef Q_OS_WIN + // TODO: Implement on Windows. + return 0; +#endif +} + +TerminalEmulation::TerminalEmulation () + : QObject () +{ +}
new file mode 100644 --- /dev/null +++ b/gui/src/terminal/TerminalEmulation.h @@ -0,0 +1,75 @@ +/* OctaveGUI - A graphical user interface for Octave + * Copyright (C) 2011 Jacob Dawid (jacob.dawid@googlemail.com) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program 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 Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef TERMINALEMULATION_H +#define TERMINALEMULATION_H + +#include <QObject> +#include <QKeyEvent> +#include <QMouseEvent> +#include <QTextCursor> + +/** + * @class Terminal + * Interface for a terminal. This is the counterpart for the terminal + * emulation and must be implemented by the view part. It defines a basic set + * of actions that must be supported by the view part. + */ +class Terminal +{ + public: + /** Queries the current text cursor. + * @return The current text cursor. */ + virtual QTextCursor textCursor () = 0; + + /** Sets the given text cursor. + * @param cursor New text cursor to set. */ + virtual void setTextCursor (const QTextCursor& cursor) = 0; + + /** Called whenever the bell has been activated. */ + virtual void bell () = 0; +}; + +/** + * @class TerminalEmulation + * Interface for any terminal emulation. It's the counterpart to the Terminal. + */ +class TerminalEmulation : public QObject +{ + Q_OBJECT +public: + /** Produces a new terminal emulation for a specific terminal. + * @param terminal The terminal associated with the emulation + * @return Terminal emulation. */ + static TerminalEmulation *newTerminalEmulation (Terminal *terminal); + + TerminalEmulation (); + virtual ~TerminalEmulation () {} + + /** Processes an incoming key event. + * @param keyEvent Key event to process. */ + virtual void processKeyEvent (QKeyEvent *keyEvent) = 0; + + /** Transmit a block of text straight to the terminal emulation. + * @param text Text to be transmitted. */ + virtual void transmitText (const QString& text) = 0; +protected: + /** The terminal this terminal emulation is connected to. */ + Terminal *m_terminal; +}; + +#endif // TERMINALEMULATION_H
new file mode 100644 --- /dev/null +++ b/gui/src/terminal/win32/QConsole @@ -0,0 +1,1 @@ +#include "QConsole.h"
new file mode 100755 --- /dev/null +++ b/gui/src/terminal/win32/QConsole.cpp @@ -0,0 +1,873 @@ +/* + +Copyright (C) 2011 Michael Goffioul. + +This file is part of QConsole. + +Foobar is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +QConsole 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 General Public License for more details. + +You should have received a copy of the GNU General Public License +along with Foobar. If not, see <http://www.gnu.org/licenses/>. + +*/ + +#include <QApplication> +#include <QColor> +#include <QFont> +#include <QHBoxLayout> +#include <QPaintEvent> +#include <QPainter> +#include <QResizeEvent> +#include <QScrollBar> +#include <QtDebug> +#include <QThread> +#include <QTimer> + +#include <fcntl.h> +#include <io.h> +#include <stdio.h> +#include <stdarg.h> +#define WIN32_LEAN_AND_MEAN +#include <windows.h> +#include <cstring> + +#include "QConsole.h" +#include "QConsoleColors.h" + +// Uncomment to log activity to LOGFILENAME +// #define DEBUG_QCONSOLE +#define LOGFILENAME "QConsole.log" +// Uncomment to create hidden console window +#define HIDDEN_CONSOLE + +////////////////////////////////////////////////////////////////////////////// + +class QConsoleView : public QWidget +{ +public: + QConsoleView (QConsole* parent = 0) : QWidget (parent), q (parent) { } + ~QConsoleView (void) { } + +protected: + void paintEvent (QPaintEvent* event) { q->viewPaintEvent (this, event); } + void resizeEvent (QResizeEvent* event) { q->viewResizeEvent (this, event); } + +private: + QConsole* q; +}; + +////////////////////////////////////////////////////////////////////////////// + +class QConsoleThread : public QThread +{ +public: + QConsoleThread (QConsole* console) : QThread (console), q (console) { } + +protected: + void run (void) + { q->start (); } + +private: + QConsole* q; +}; + +////////////////////////////////////////////////////////////////////////////// + +class QConsolePrivate +{ + friend class QConsole; + +public: + QConsolePrivate (QConsole* parent, const QString& cmd = QString ()); + ~QConsolePrivate (void); + + void updateConsoleSize (bool sync = false); + void syncConsoleParameters (void); + void grabConsoleBuffer (CHAR_INFO* buf = 0); + void updateScrollBar (void); + void setScrollValue (int value); + void updateConsoleView (bool grab = true); + void monitorConsole (void); + void startCommand (void); + void sendConsoleText (const QString& s); + + void log (const char* fmt, ...); + + void closeStandardIO (int fd, DWORD stdHandleId, const char* name); + void setupStandardIO (DWORD stdHandleId, int fd, const char* name, + const char* devName); + +private: + QConsole* q; + +private: + QFont m_font; + QColor m_backgroundColor; + QString m_command; + QConsoleColors m_colors; + bool m_inWheelEvent; + QString m_title; + + QSize m_charSize; + QSize m_bufferSize; + QRect m_consoleRect; + QPoint m_cursorPos; + + HANDLE m_stdOut; + HWND m_consoleWindow; + CHAR_INFO* m_buffer; + CHAR_INFO* m_tmpBuffer; + HANDLE m_process; + + QConsoleView* m_consoleView; + QScrollBar* m_scrollBar; + QTimer* m_consoleWatcher; + QConsoleThread *m_consoleThread; +}; + +////////////////////////////////////////////////////////////////////////////// + +QConsolePrivate::QConsolePrivate (QConsole* parent, const QString& cmd) + : q (parent), m_command (cmd), m_process (NULL), m_inWheelEvent (false) +{ + log (NULL); + + // Possibly detach from any existing console + log ("Detaching from existing console (if any)...\n"); + FreeConsole (); + log ("Closing standard IO...\n"); + closeStandardIO (0, STD_INPUT_HANDLE, "STDIN"); + closeStandardIO (1, STD_OUTPUT_HANDLE, "STDOUT"); + closeStandardIO (2, STD_ERROR_HANDLE, "STDERR"); + +#ifdef HIDDEN_CONSOLE + HWINSTA hOrigSta, hNewSta; + + // Create new (hidden) console + hOrigSta = GetProcessWindowStation (); + hNewSta = CreateWindowStation (NULL, 0, GENERIC_ALL, NULL); + log ("Current Windows station: %p.\nNew Windows station: %p.\n", hOrigSta, + hNewSta); + if (! SetProcessWindowStation (hNewSta)) + log ("Failed to switch to new Windows station.\n"); +#endif + if (! AllocConsole ()) + log ("Failed to create new console.\n"); +#ifdef HIDDEN_CONSOLE + if (! SetProcessWindowStation (hOrigSta)) + log ("Failed to restore original Windows station.\n"); + if (! CloseWindowStation (hNewSta)) + log ("Failed to close new Windows station.\n"); +#endif + + log ("New (hidden) console created.\n"); + + setupStandardIO (STD_INPUT_HANDLE, 0, "STDIN", "CONIN$"); + setupStandardIO (STD_OUTPUT_HANDLE, 1, "STDOUT", "CONOUT$"); + setupStandardIO (STD_ERROR_HANDLE, 2, "STDERR", "CONOUT$"); + + log ("Standard input/output/error set up.\n"); + + *stdin = *(fdopen (0, "rb")); + *stdout = *(fdopen (1, "wb")); + *stderr = *(fdopen (2, "wb")); + + log ("POSIX standard streams created.\n"); + + setvbuf (stdin, NULL, _IONBF, 0); + setvbuf (stdout, NULL, _IONBF, 0); + setvbuf (stderr, NULL, _IONBF, 0); + + log ("POSIX standard stream buffers adjusted.\n"); + + HANDLE hStdOut = GetStdHandle (STD_OUTPUT_HANDLE); + + log ("Console allocated: hStdOut: %p\n", hStdOut); + + m_stdOut = hStdOut; + m_consoleWindow = GetConsoleWindow (); + + // In case the console window hasn't been created hidden... + ShowWindow (m_consoleWindow, SW_HIDE); + + CONSOLE_SCREEN_BUFFER_INFO sbi; + + GetConsoleScreenBufferInfo (hStdOut, &sbi); + m_bufferSize = QSize (sbi.dwSize.X, qMax (sbi.dwSize.Y, (SHORT)500)); + m_consoleRect = QRect (sbi.srWindow.Left, sbi.srWindow.Top, + sbi.srWindow.Right - sbi.srWindow.Left + 1, + sbi.srWindow.Bottom - sbi.srWindow.Top + 1); + m_cursorPos = QPoint (sbi.dwCursorPosition.X, sbi.dwCursorPosition.Y); + + log ("Initial console parameters:\n"); + log (" buffer size: %d x %d\n", m_bufferSize.width (), + m_bufferSize.height ()); + log (" window: (%d, %d) -> (%d, %d) [%d x %d]\n", + m_consoleRect.left (), m_consoleRect.top (), + m_consoleRect.right (), m_consoleRect.bottom (), + m_consoleRect.width (), m_consoleRect.height ()); + + wchar_t titleBuf[260]; + GetConsoleTitleW (titleBuf, sizeof (titleBuf)); + q->setWindowTitle (QString::fromWCharArray (titleBuf)); + + m_font.setFamily ("Lucida Console"); + m_font.setPointSize (9); + m_font.setStyleHint (QFont::TypeWriter); + m_backgroundColor = Qt::black; + + m_buffer = m_tmpBuffer = 0; + + m_consoleView = new QConsoleView (parent); + m_scrollBar = new QScrollBar (Qt::Vertical, parent); + + QHBoxLayout* l = new QHBoxLayout (parent); + l->setContentsMargins (0, 0, 0, 0); + l->setSpacing (0); + l->addWidget (m_consoleView, 1); + l->addWidget (m_scrollBar, 0); + + m_consoleView->setPalette (QPalette (m_backgroundColor)); + m_consoleView->setAutoFillBackground (true); + m_consoleView->setFont (m_font); + parent->setFocusPolicy (Qt::StrongFocus); + parent->winId (); + + updateScrollBar (); + + m_consoleWatcher = new QTimer (parent); + m_consoleWatcher->setInterval (10); + m_consoleWatcher->setSingleShot (false); + + QObject::connect (m_scrollBar, SIGNAL (valueChanged (int)), + q, SLOT (scrollValueChanged (int))); + QObject::connect (m_consoleWatcher, SIGNAL (timeout (void)), + q, SLOT (monitorConsole (void))); + + m_consoleWatcher->start (); + + if (m_command.isEmpty ()) + m_consoleThread = 0; + else + { + m_consoleThread = new QConsoleThread (q); + QObject::connect (m_consoleThread, SIGNAL (finished (void)), + q, SIGNAL (terminated (void))); + m_consoleThread->start (); + } +} + +////////////////////////////////////////////////////////////////////////////// + +QConsolePrivate::~QConsolePrivate (void) +{ + if (m_consoleThread && m_consoleThread->isRunning () && m_process) + { + TerminateProcess (m_process, (UINT)-1); + m_consoleThread->wait (); + } + if (m_buffer) + delete [] m_buffer; + if (m_tmpBuffer) + delete [] m_tmpBuffer; +} + +////////////////////////////////////////////////////////////////////////////// + +void QConsolePrivate::setupStandardIO (DWORD stdHandleId, int targetFd, + const char* name, const char* devName) +{ + log ("Opening %s...\n", devName); + + int fd = open (devName, _O_RDWR | _O_BINARY); + + if (fd != -1) + { + if (fd != targetFd) + { + log ("Opened %s is not at target file descriptor %d, " + "duplicating...\n", name, targetFd); + if (dup2 (fd, targetFd) == -1) + log ("Failed to duplicate file descriptor: errno=%d.\n", errno); + if (close (fd) == -1) + log ("Failed to close original file descriptor: errno=%d.\n", + errno); + } + else + log ("%s opened and assigned to file descriptor %d.\n", devName, fd); + if (! SetStdHandle (stdHandleId, (HANDLE) _get_osfhandle (targetFd))) + log ("Failed to re-assign %s: error=%08x.\n", name, GetLastError ()); + } + else + log ("Failed to open %s: errno=%d.\n", devName, errno); +} + +////////////////////////////////////////////////////////////////////////////// + +void QConsolePrivate::closeStandardIO (int fd, DWORD stdHandleId, + const char* name) +{ + if (close (fd) == -1) + log ("Failed to close file descriptor %d: errno=%d.\n", fd, errno); + if (! CloseHandle (GetStdHandle (stdHandleId))) + log ("Failed to close Win32 %s: error=%08x.\n", name, GetLastError ()); +} + +////////////////////////////////////////////////////////////////////////////// + +void QConsolePrivate::log (const char* fmt, ...) +{ +#ifdef DEBUG_QCONSOLE + if (fmt) + { + va_list l; + FILE* flog = fopen (LOGFILENAME, "ab"); + + va_start (l, fmt); + vfprintf (flog, fmt, l); + va_end (l); + fclose (flog); + } + else + { + // Special case to re-initialize the log file + FILE* flog = fopen (LOGFILENAME, "w"); + fclose (flog); + } +#endif +} + +////////////////////////////////////////////////////////////////////////////// + +void QConsolePrivate::updateConsoleSize (bool sync) +{ + QFontMetrics fm (m_font); + QSize winSize = m_consoleView->size (); + + m_charSize.rwidth () = fm.maxWidth (); + m_charSize.rheight () = fm.lineSpacing (); + + m_consoleRect.setWidth (winSize.width () / fm.maxWidth ()); + m_consoleRect.setHeight (winSize.height () / fm.lineSpacing ()); + + m_bufferSize.rwidth () = m_consoleRect.width (); + m_bufferSize.rheight () = qMax (m_bufferSize.height (), + m_consoleRect.height ()); + + m_consoleRect.moveLeft (0); + if (m_consoleRect.bottom () >= m_bufferSize.height ()) + m_consoleRect.moveTop (m_bufferSize.height () - m_consoleRect.height ()); + + log ("Console resized:\n"); + log (" widget size: %d x %d\n", winSize.width (), winSize.height ()); + log (" buffer size: %d x %d\n", m_bufferSize.width (), + m_bufferSize.height ()); + log (" window: (%d, %d) -> (%d, %d) [%d x %d]\n", + m_consoleRect.left (), m_consoleRect.top (), + m_consoleRect.right (), m_consoleRect.bottom (), + m_consoleRect.width (), m_consoleRect.height ()); + + if (sync) + syncConsoleParameters (); + + updateScrollBar (); +} + +////////////////////////////////////////////////////////////////////////////// + +void QConsolePrivate::syncConsoleParameters (void) +{ + CONSOLE_SCREEN_BUFFER_INFO sbi; + HANDLE hStdOut = m_stdOut; + + GetConsoleScreenBufferInfo (hStdOut, &sbi); + + COORD bs; + SMALL_RECT sr; + + bs.X = sbi.dwSize.X; + bs.Y = m_bufferSize.height (); + sr.Left = sbi.srWindow.Left; + sr.Right = sbi.srWindow.Right; + sr.Top = m_consoleRect.top (); + sr.Bottom = m_consoleRect.bottom (); + + if (bs.Y > sbi.dwSize.Y) + { + SetConsoleScreenBufferSize (hStdOut, bs); + SetConsoleWindowInfo (hStdOut, TRUE, &sr); + } + else + { + SetConsoleWindowInfo (hStdOut, TRUE, &sr); + SetConsoleScreenBufferSize (hStdOut, bs); + } + + bs.X = m_bufferSize.width (); + sr.Left = m_consoleRect.left (); + sr.Right = m_consoleRect.right (); + + if (bs.X > sbi.dwSize.X) + { + SetConsoleScreenBufferSize (hStdOut, bs); + SetConsoleWindowInfo (hStdOut, TRUE, &sr); + } + else + { + SetConsoleWindowInfo (hStdOut, TRUE, &sr); + SetConsoleScreenBufferSize (hStdOut, bs); + } + + log ("Sync'ing console parameters:\n"); + log (" buffer size: %d x %d\n", bs.X, bs.Y); + log (" window: (%d, %d) -> (%d, %d)\n", + sr.Left, sr.Top, sr.Right, sr.Bottom); + + if (m_buffer) + delete [] m_buffer; + if (m_tmpBuffer) + delete [] m_tmpBuffer; + + int bufSize = m_consoleRect.width () * m_consoleRect.height (); + + m_buffer = new CHAR_INFO[bufSize]; + m_tmpBuffer = new CHAR_INFO[bufSize]; +} + +////////////////////////////////////////////////////////////////////////////// + +void QConsolePrivate::grabConsoleBuffer (CHAR_INFO* buf) +{ + COORD bs, bc; + SMALL_RECT r; + + bs.X = m_consoleRect.width (); + bs.Y = m_consoleRect.height (); + bc.X = 0; + bc.Y = 0; + + r.Left = m_consoleRect.left (); + r.Top = m_consoleRect.top (); + r.Right = m_consoleRect.right (); + r.Bottom = m_consoleRect.bottom (); + + if (! ReadConsoleOutput (m_stdOut, (buf ? buf : m_buffer), bs, bc, &r)) + qCritical ("cannot read console output"); +} + +////////////////////////////////////////////////////////////////////////////// + +void QConsolePrivate::updateScrollBar (void) +{ + m_scrollBar->setMinimum (0); + if (m_bufferSize.height () > m_consoleRect.height ()) + m_scrollBar->setMaximum (m_bufferSize.height () - m_consoleRect.height ()); + else + m_scrollBar->setMaximum (0); + m_scrollBar->setSingleStep (1); + m_scrollBar->setPageStep (m_consoleRect.height ()); + m_scrollBar->setValue (m_consoleRect.top ()); + + log ("Scrollbar parameters updated: %d/%d/%d/%d\n", + m_scrollBar->minimum (), m_scrollBar->maximum (), + m_scrollBar->singleStep (), m_scrollBar->pageStep ()); +} + +////////////////////////////////////////////////////////////////////////////// + +void QConsolePrivate::setScrollValue (int value) +{ + if (value == m_consoleRect.top ()) + return; + + SMALL_RECT r; + HANDLE hStdOut = m_stdOut; + + if (value + m_consoleRect.height () > m_bufferSize.height ()) + value = m_bufferSize.height () - m_consoleRect.height (); + + r.Left = m_consoleRect.left (); + r.Top = value; + r.Right = m_consoleRect.right (); + r.Bottom = value + m_consoleRect.height () - 1; + + log ("Scrolling window: (%d, %d) -> (%d, %d) [%d x %d]\n", + r.Left, r.Top, r.Right, r.Bottom, + r.Right - r.Left + 1, r.Bottom - r.Top + 1); + + if (SetConsoleWindowInfo (hStdOut, TRUE, &r)) + { + m_consoleRect.moveTop (value); + updateConsoleView (); + } +} + +////////////////////////////////////////////////////////////////////////////// + +void QConsolePrivate::updateConsoleView (bool grab) +{ + if (grab) + grabConsoleBuffer (); + m_consoleView->update (); + m_consoleWatcher->start (); +} + +////////////////////////////////////////////////////////////////////////////// + +void QConsolePrivate::monitorConsole (void) +{ + CONSOLE_SCREEN_BUFFER_INFO sbi; + HANDLE hStdOut = GetStdHandle (STD_OUTPUT_HANDLE); + + static wchar_t titleBuf[260]; + + GetConsoleTitleW (titleBuf, sizeof (titleBuf)); + QString title = QString::fromWCharArray (titleBuf); + + if (title != m_title) + { + q->setWindowTitle (title); + emit q->titleChanged (title); + } + + if (GetConsoleScreenBufferInfo (hStdOut, &sbi)) + { + if (m_bufferSize.width () != sbi.dwSize.X + || m_bufferSize.height () != sbi.dwSize.Y) + { + // Buffer size changed + m_bufferSize.rwidth () = sbi.dwSize.X; + m_bufferSize.rheight () = sbi.dwSize.Y; + updateScrollBar (); + } + + if (m_cursorPos.x () != sbi.dwCursorPosition.X + || m_cursorPos.y () != sbi.dwCursorPosition.Y) + { + // Cursor position changed + m_consoleView->update + ((m_cursorPos.x () - sbi.srWindow.Left) * m_charSize.width (), + (m_cursorPos.y () - sbi.srWindow.Top) * m_charSize.height (), + m_charSize.width (), m_charSize.height ()); + m_cursorPos.rx () = sbi.dwCursorPosition.X; + m_cursorPos.ry () = sbi.dwCursorPosition.Y; + m_consoleView->update + ((m_cursorPos.x () - sbi.srWindow.Left) * m_charSize.width (), + (m_cursorPos.y () - sbi.srWindow.Top) * m_charSize.height (), + m_charSize.width (), m_charSize.height ()); + } + + if (m_consoleRect.left () != sbi.srWindow.Left + || m_consoleRect.right () != sbi.srWindow.Right + || m_consoleRect.top () != sbi.srWindow.Top + || m_consoleRect.bottom () != sbi.srWindow.Bottom) + { + // Console window changed + m_consoleRect = QRect (sbi.srWindow.Left, sbi.srWindow.Top, + sbi.srWindow.Right - sbi.srWindow.Left + 1, + sbi.srWindow.Bottom - sbi.srWindow.Top + 1); + updateScrollBar (); + updateConsoleView (); + return; + } + + if (m_tmpBuffer && m_buffer) + { + grabConsoleBuffer (m_tmpBuffer); + if (memcmp (m_tmpBuffer, m_buffer, + sizeof (CHAR_INFO) * m_consoleRect.width () * + m_consoleRect.height ())) + { + // FIXME: compute the area to update based on the + // difference between the 2 buffers. + qSwap (m_buffer, m_tmpBuffer); + updateConsoleView (false); + } + } + } +} + +////////////////////////////////////////////////////////////////////////////// + +void QConsolePrivate::startCommand (void) +{ + if (! m_command.isEmpty ()) + { + STARTUPINFO si; + PROCESS_INFORMATION pi; + + ZeroMemory (&si, sizeof (si)); + si.cb = sizeof (si); + ZeroMemory (&pi, sizeof (pi)); + + if (CreateProcessW (NULL, + (LPWSTR)m_command.unicode (), + NULL, + NULL, + TRUE, + 0, + NULL, + NULL, + &si, + &pi)) + { + CloseHandle (pi.hThread); + m_process = pi.hProcess; + WaitForSingleObject (m_process, INFINITE); + CloseHandle (m_process); + m_process = NULL; + } + } +} + +////////////////////////////////////////////////////////////////////////////// + +void QConsolePrivate::sendConsoleText (const QString& s) +{ + // Send the string in chunks of 512 characters. Each character is + // translated into an equivalent keypress event. + +#define TEXT_CHUNK_SIZE 512 + + int len = s.length (); + INPUT_RECORD events[TEXT_CHUNK_SIZE]; + DWORD nEvents = 0, written; + HANDLE hStdIn = GetStdHandle (STD_INPUT_HANDLE); + + ZeroMemory (events, sizeof (events)); + + for (int i = 0; i < len; i++) + { + QChar c = s.at (i); + + if (c == L'\r' || c == L'\n') + { + if (c == L'\r' && i < (len - 1) && s.at (i+1) == L'\n') + i++; + if (nEvents) + { + WriteConsoleInput (hStdIn, events, nEvents, &written); + nEvents = 0; + ZeroMemory (events, sizeof (events)); + } + PostMessage (m_consoleWindow, WM_KEYDOWN, VK_RETURN, 0x001C0001); + PostMessage (m_consoleWindow, WM_KEYDOWN, VK_RETURN, 0xC01C0001); + } + else + { + events[nEvents].EventType = KEY_EVENT; + events[nEvents].Event.KeyEvent.bKeyDown = TRUE; + events[nEvents].Event.KeyEvent.wRepeatCount = 1; + events[nEvents].Event.KeyEvent.wVirtualKeyCode = + LOBYTE (VkKeyScan (c.unicode ())); + events[nEvents].Event.KeyEvent.wVirtualScanCode = 0; + events[nEvents].Event.KeyEvent.uChar.UnicodeChar = c.unicode (); + events[nEvents].Event.KeyEvent.dwControlKeyState = 0; + nEvents++; + } + + if (nEvents == TEXT_CHUNK_SIZE + || (nEvents > 0 && i == (len - 1))) + { + WriteConsoleInput (hStdIn, events, nEvents, &written); + nEvents = 0; + ZeroMemory (events, sizeof (events)); + } + } +} + +////////////////////////////////////////////////////////////////////////////// + +QConsole::QConsole (QWidget* parent) + : d (new QConsolePrivate (this)) +{ +} + +////////////////////////////////////////////////////////////////////////////// + +QConsole::QConsole (const QString& cmd, QWidget* parent) + : d (new QConsolePrivate (this, cmd)) +{ +} + +////////////////////////////////////////////////////////////////////////////// + +QConsole::~QConsole (void) +{ + delete d; +} + +////////////////////////////////////////////////////////////////////////////// + +void QConsole::viewResizeEvent (QConsoleView*, QResizeEvent*) +{ + d->updateConsoleSize (true); + d->grabConsoleBuffer (); +} + +////////////////////////////////////////////////////////////////////////////// + +void QConsole::viewPaintEvent (QConsoleView* w, QPaintEvent* event) +{ + QPainter p (w); + int cw = d->m_charSize.width (), ch = d->m_charSize.height (); + int ascent, stride, cx1, cy1, cx2, cy2, x, y; + WORD attr = 0; + QString s; + bool hasChar = false; + + QRect updateRect = event->rect (); + + cx1 = updateRect.left () / cw; + cy1 = updateRect.top () / ch; + cx2 = qMin (d->m_consoleRect.width () - 1, updateRect.right () / cw); + cy2 = qMin (d->m_consoleRect.height () - 1, updateRect.bottom () / ch); + + if (cx1 > d->m_consoleRect.width () - 1 + || cy1 > d->m_consoleRect.height () - 1) + return; + + p.setFont (d->m_font); + p.setPen (Qt::black); + + ascent = p.fontMetrics ().ascent (); + stride = d->m_consoleRect.width (); + + s.reserve (cx2 - cx1 + 1); + y = ascent + cy1 * ch;; + + for (int j = cy1; j <= cy2; j++, y += ch) + { + // Reset string buffer and starting X coordinate + s.clear (); + hasChar = false; + x = cx1 * cw; + + for (int i = cx1; i <= cx2; i++) + { + CHAR_INFO* ci = &(d->m_buffer[stride*j+i]); + + if ((ci->Attributes & 0x00ff) != attr) + { + // Character attributes changed + if (! s.isEmpty ()) + { + // String buffer not empty -> draw it + if (hasChar || (attr & 0x00f0)) + { + if (attr & 0x00f0) + p.fillRect (x, y-ascent, s.length () * cw, ch, + p.brush ()); + p.drawText (x, y, s); + } + x += (s.length () * cw); + s.clear (); + hasChar = false; + } + // Update current pen and store current attributes + // FIXME: what about background? + attr = (ci->Attributes & 0x00ff); + p.setPen (d->m_colors[attr & 0x000f]); + p.setBrush (d->m_colors[(attr >> 4) & 0x000f]); + } + + // Append current character to the string buffer + s.append (ci->Char.UnicodeChar); + if (ci->Char.UnicodeChar != L' ') + hasChar = true; + } + + if (! s.isEmpty () && (hasChar || (attr & 0x00f0))) + { + // Line end reached, but string buffer not empty -> draw it + // No need to update s or x, they will be reset on the next + // for-loop iteration + if (attr & 0x00f0) + p.fillRect (x, y-ascent, s.length () * cw, ch, p.brush ()); + p.drawText (x, y, s); + } + } + + // Draw cursor + p.setCompositionMode (QPainter::RasterOp_SourceXorDestination); + p.fillRect ((d->m_cursorPos.x () - d->m_consoleRect.x ()) * cw, + (d->m_cursorPos.y () - d->m_consoleRect.y ()) * ch, + cw, ch, d->m_colors[7]); +} + +////////////////////////////////////////////////////////////////////////////// + +void QConsole::wheelEvent (QWheelEvent* event) +{ + if (! d->m_inWheelEvent) + { + // Forward to the scrollbar (avoid recursion) + d->m_inWheelEvent = true; + QApplication::sendEvent (d->m_scrollBar, event); + d->m_inWheelEvent = false; + } +} + +////////////////////////////////////////////////////////////////////////////// + +bool QConsole::winEvent (MSG* msg, long* result) +{ + switch (msg->message) + { + case WM_KEYDOWN: + case WM_KEYUP: + //case WM_CHAR: + // Forward Win32 message to the console window + PostMessage (d->m_consoleWindow, + msg->message, + msg->wParam, + msg->lParam); + result = 0; + return true; + default: + return false; + } +} + +////////////////////////////////////////////////////////////////////////////// + +void QConsole::scrollValueChanged (int value) +{ + d->setScrollValue (value); +} + +////////////////////////////////////////////////////////////////////////////// + +void QConsole::monitorConsole (void) +{ + d->monitorConsole (); +} + +////////////////////////////////////////////////////////////////////////////// + +void QConsole::focusInEvent (QFocusEvent* event) +{ + QWidget::focusInEvent (event); +} + +////////////////////////////////////////////////////////////////////////////// + +void QConsole::start (void) +{ + d->startCommand (); +} + +////////////////////////////////////////////////////////////////////////////// + +void QConsole::sendText (const QString& s) +{ + d->sendConsoleText (s); +}
new file mode 100755 --- /dev/null +++ b/gui/src/terminal/win32/QConsole.h @@ -0,0 +1,75 @@ +/* + +Copyright (C) 2011 Michael Goffioul. + +This file is part of QConsole. + +Foobar is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +QConsole 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 General Public License for more details. + +You should have received a copy of the GNU General Public License +along with Foobar. If not, see <http://www.gnu.org/licenses/>. + +*/ + +#ifndef __QConsole_h__ +#define __QConsole_h__ 1 + +#include <QWidget> + +class QFocusEvent; +class QKeyEvent; +class QPaintEvent; +class QResizeEvent; +class QWheelEvent; + +class QConsolePrivate; +class QConsoleThread; +class QConsoleView; + +////////////////////////////////////////////////////////////////////////////// + +class QConsole : public QWidget +{ + Q_OBJECT + friend class QConsolePrivate; + friend class QConsoleThread; + friend class QConsoleView; + +public: + QConsole (QWidget* parent = 0); + QConsole (const QString& cmd, QWidget* parent = 0); + ~QConsole (void); + + void sendText (const QString& s); + +signals: + void terminated (void); + void titleChanged (const QString&); + +protected: + void viewPaintEvent (QConsoleView*, QPaintEvent*); + void viewResizeEvent (QConsoleView*, QResizeEvent*); + void wheelEvent (QWheelEvent*); + void focusInEvent (QFocusEvent*); + bool winEvent (MSG*, long*); + virtual void start (void); + +private slots: + void scrollValueChanged (int value); + void monitorConsole (void); + +private: + QConsolePrivate* d; +}; + +////////////////////////////////////////////////////////////////////////////// + +#endif // __QConsole_h__
new file mode 100644 --- /dev/null +++ b/gui/src/terminal/win32/QConsoleColors.cpp @@ -0,0 +1,48 @@ +/* + +Copyright (C) 2011 Michael Goffioul. + +This file is part of QConsole. + +Foobar is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +QConsole 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 General Public License for more details. + +You should have received a copy of the GNU General Public License +along with Foobar. If not, see <http://www.gnu.org/licenses/>. + +*/ + +#define WIN32_LEAN_AND_MEAN +#include <windows.h> + +#include "QConsoleColors.h" + +////////////////////////////////////////////////////////////////////////////// + +QConsoleColors::QConsoleColors (void) + : QMap<int, QColor> () +{ + (*this)[0] = Qt::black; + (*this)[1] = Qt::darkBlue; + (*this)[2] = Qt::darkGreen; + (*this)[3] = Qt::darkCyan; + (*this)[4] = Qt::darkRed; + (*this)[5] = Qt::darkMagenta; + (*this)[6] = Qt::darkYellow; + (*this)[7] = Qt::lightGray; + (*this)[8] = Qt::darkGray; + (*this)[9] = Qt::blue; + (*this)[10] = Qt::green; + (*this)[11] = Qt::cyan; + (*this)[12] = Qt::red; + (*this)[13] = Qt::magenta; + (*this)[14] = Qt::yellow; + (*this)[15] = Qt::white; +}
new file mode 100644 --- /dev/null +++ b/gui/src/terminal/win32/QConsoleColors.h @@ -0,0 +1,38 @@ +/* + +Copyright (C) 2011 Michael Goffioul. + +This file is part of QConsole. + +Foobar is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. + +QConsole 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 General Public License for more details. + +You should have received a copy of the GNU General Public License +along with Foobar. If not, see <http://www.gnu.org/licenses/>. + +*/ + +#ifndef __QConsoleColors_h__ +#define __QConsoleColors_h__ 1 + +#include <QColor> +#include <QMap> + +////////////////////////////////////////////////////////////////////////////// + +class QConsoleColors : public QMap<int, QColor> +{ +public: + QConsoleColors (void); +}; + +////////////////////////////////////////////////////////////////////////////// + +#endif // __QConsoleColors_h__
new file mode 100755 --- /dev/null +++ b/gui/start.sh @@ -0,0 +1,20 @@ +# Quint - A graphical user interface for Octave +# Copyright (C) 2011 Jacob Dawid +# jacob.dawid@googlemail.com +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program 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 General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +LANG=en_US.UTF-8 +cd bin +./octave-gui
new file mode 100644 --- /dev/null +++ b/gui/translators @@ -0,0 +1,8 @@ +# Below Octave GUI translators are listed with their e-mails +# to be able inform them about generic translation file changes +en-en Jacob Dawid <jacob.dawid@googlemail.com> +es-es Valentin Ortega-Clavero <arcanos3030@gmail.com> +de-de Jacob Dawid <jacob.dawid@googlemail.com> +pt-br JĂșlio Hoffimann Mendes <julio.hoffimann@gmail.com> +ru-ru Andriy Shinkarchuck <adriano32.gnu@gmail.com> +uk-ua Andriy Shinkarchuck <adriano32.gnu@gmail.com>