diff options
author | Rahul <rahulrs@gmx.com> | 2009-03-13 21:09:38 -0400 |
---|---|---|
committer | Rahul <rahulrs@gmx.com> | 2009-03-13 21:09:38 -0400 |
commit | 886b09e5d997af17d1b0a9c7fad6e952a94bed45 (patch) | |
tree | 3deedb4643dd0a225830150ecec257d20c218194 | |
parent | 2cea4faae67f7ec777bd781b0f77bac0abc527a9 (diff) | |
download | AnjaliOldLipi.git-886b09e5d997af17d1b0a9c7fad6e952a94bed45.tar.gz AnjaliOldLipi.git-886b09e5d997af17d1b0a9c7fad6e952a94bed45.tar.xz AnjaliOldLipi.git-886b09e5d997af17d1b0a9c7fad6e952a94bed45.zip |
proverb
-rw-r--r--[-rwxr-xr-x] | doc/chillu-presentation/chillu.html | 0 | ||||
-rwxr-xr-x | fortune-ml/install.sh | 4 | ||||
-rw-r--r-- | proverb/.directory | 5 | ||||
-rw-r--r-- | proverb/INSTALL | 6 | ||||
-rw-r--r-- | proverb/README | 0 | ||||
-rw-r--r-- | proverb/about.png | bin | 0 -> 2919 bytes | |||
-rw-r--r-- | proverb/bin/proverb_ml.qm | bin | 0 -> 9647 bytes | |||
-rw-r--r-- | proverb/build/about.h | 8 | ||||
-rw-r--r-- | proverb/build/mainwindow.cpp | 10 | ||||
-rw-r--r-- | proverb/build/mainwindow.h | 8 | ||||
-rw-r--r-- | proverb/icon.png | bin | 0 -> 5256 bytes | |||
-rw-r--r-- | proverb/icons.qrc | 6 | ||||
-rwxr-xr-x | proverb/install | 7 | ||||
-rw-r--r-- | proverb/proverb.pro | 22 | ||||
-rw-r--r-- | proverb/proverb.pro.user | 330 | ||||
-rw-r--r-- | proverb/proverb_ml.qm | bin | 0 -> 9647 bytes | |||
-rw-r--r-- | proverb/proverb_ml.ts | 122 | ||||
-rw-r--r-- | proverb/src/main.cpp | 18 | ||||
-rw-r--r-- | proverb/src/main.cpp~ | 18 | ||||
-rw-r--r-- | proverb/src/mainwindow.cpp | 100 | ||||
-rw-r--r-- | proverb/src/mainwindow.h | 26 | ||||
-rw-r--r-- | proverb/src/tabdialog.cpp | 8 | ||||
-rw-r--r-- | proverb/src/tabdialog.h | 14 | ||||
-rw-r--r-- | proverb/ui/about.ui | 405 | ||||
-rw-r--r-- | proverb/ui/mainwindow.ui | 130 | ||||
-rwxr-xr-x | proverb/uninstall | 7 | ||||
-rw-r--r-- | proverb/പഴഞ്ചൊല്ല്.desktop | 22 |
27 files changed, 1274 insertions, 2 deletions
diff --git a/doc/chillu-presentation/chillu.html b/doc/chillu-presentation/chillu.html index 1ed7db3..1ed7db3 100755..100644 --- a/doc/chillu-presentation/chillu.html +++ b/doc/chillu-presentation/chillu.html diff --git a/fortune-ml/install.sh b/fortune-ml/install.sh index 9bd8e00..14d116b 100755 --- a/fortune-ml/install.sh +++ b/fortune-ml/install.sh @@ -3,6 +3,6 @@ echo "Compiling...." strfile fortune-ml fortune-ml.dat echo "Installing..." -cp fortune-ml.dat /usr/share/games/fortunes/ -cp fortune-ml /usr/share/games/fortunes/ +cp fortune-ml.dat /usr/share/games/fortune/ +cp fortune-ml /usr/share/games/fortune/ echo "Done...!" diff --git a/proverb/.directory b/proverb/.directory new file mode 100644 index 0000000..75e14d2 --- /dev/null +++ b/proverb/.directory @@ -0,0 +1,5 @@ +[Dolphin] +Timestamp=2009,3,12,14,4,38 + +[Settings] +ShowDotFiles=true diff --git a/proverb/INSTALL b/proverb/INSTALL new file mode 100644 index 0000000..465acf6 --- /dev/null +++ b/proverb/INSTALL @@ -0,0 +1,6 @@ + +$ qmake-qt4 +$ make +$ su +$ ./install +$ proverb diff --git a/proverb/README b/proverb/README new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/proverb/README diff --git a/proverb/about.png b/proverb/about.png Binary files differnew file mode 100644 index 0000000..bb21b03 --- /dev/null +++ b/proverb/about.png diff --git a/proverb/bin/proverb_ml.qm b/proverb/bin/proverb_ml.qm Binary files differnew file mode 100644 index 0000000..f79db7a --- /dev/null +++ b/proverb/bin/proverb_ml.qm diff --git a/proverb/build/about.h b/proverb/build/about.h new file mode 100644 index 0000000..f883d4f --- /dev/null +++ b/proverb/build/about.h @@ -0,0 +1,8 @@ +/**************************************************************************** +** Form interface generated from reading ui file 'ui/about.ui' +** +** Created by User Interface Compiler +** +** WARNING! All changes made in this file will be lost! +****************************************************************************/ + diff --git a/proverb/build/mainwindow.cpp b/proverb/build/mainwindow.cpp new file mode 100644 index 0000000..2c12dc5 --- /dev/null +++ b/proverb/build/mainwindow.cpp @@ -0,0 +1,10 @@ +/**************************************************************************** +** Form implementation generated from reading ui file 'ui/mainwindow.ui' +** +** Created by User Interface Compiler +** +** WARNING! All changes made in this file will be lost! +****************************************************************************/ + +#include "mainwindow.h" + diff --git a/proverb/build/mainwindow.h b/proverb/build/mainwindow.h new file mode 100644 index 0000000..cb15573 --- /dev/null +++ b/proverb/build/mainwindow.h @@ -0,0 +1,8 @@ +/**************************************************************************** +** Form interface generated from reading ui file 'ui/mainwindow.ui' +** +** Created by User Interface Compiler +** +** WARNING! All changes made in this file will be lost! +****************************************************************************/ + diff --git a/proverb/icon.png b/proverb/icon.png Binary files differnew file mode 100644 index 0000000..e8e3ac5 --- /dev/null +++ b/proverb/icon.png diff --git a/proverb/icons.qrc b/proverb/icons.qrc new file mode 100644 index 0000000..5a5bdb5 --- /dev/null +++ b/proverb/icons.qrc @@ -0,0 +1,6 @@ +<RCC> + <qresource prefix="/icons" > + <file>about.png</file> + <file>icon.png</file> + </qresource> +</RCC> diff --git a/proverb/install b/proverb/install new file mode 100755 index 0000000..d09740b --- /dev/null +++ b/proverb/install @@ -0,0 +1,7 @@ +#!/bin/sh + +echo Installing... +cp bin/proverb /usr/bin +cp proverb_ml.qm /usr/bin +desktop-file-install പഴഞ്ചൊല്ല്.desktop +echo done
\ No newline at end of file diff --git a/proverb/proverb.pro b/proverb/proverb.pro new file mode 100644 index 0000000..0778e10 --- /dev/null +++ b/proverb/proverb.pro @@ -0,0 +1,22 @@ +TEMPLATE = app +QT = gui \ + core +CONFIG += qt \ + release \ + warn_on \ + console +DESTDIR = bin +OBJECTS_DIR = build +MOC_DIR = build +UI_DIR = build +FORMS = ui/mainwindow.ui \ + ui/about.ui +HEADERS = src/mainwindow.h \ + src/tabdialog.h +SOURCES = src/mainwindow.cpp \ + src/main.cpp \ + src/tabdialog.cpp +RESOURCES += icons.qrc +TRANSLATIONS += proverb_ml.ts +OTHER_FILES += +#QMAKE_LFLAGS += -static
\ No newline at end of file diff --git a/proverb/proverb.pro.user b/proverb/proverb.pro.user new file mode 100644 index 0000000..a13d7f6 --- /dev/null +++ b/proverb/proverb.pro.user @@ -0,0 +1,330 @@ +<!DOCTYPE QtCreatorProject> +<qtcreator> + <data> + <variable>RunConfiguration0-CommandLineArguments</variable> + <valuelist type="QVariantList" /> + </data> + <data> + <variable>RunConfiguration0-ProFile</variable> + <value type="QString" >/home/rahul/Programming/chollu/proverb.pro</value> + </data> + <data> + <variable>RunConfiguration0-RunConfiguration.name</variable> + <value type="QString" >proverb</value> + </data> + <data> + <variable>RunConfiguration0-UserSetName</variable> + <value type="bool" >false</value> + </data> + <data> + <variable>RunConfiguration0-type</variable> + <value type="QString" >Qt4ProjectManager.Qt4RunConfiguration</value> + </data> + <data> + <variable>activeRunConfiguration</variable> + <value type="int" >0</value> + </data> + <data> + <variable>activebuildconfiguration</variable> + <value type="QString" >Debug</value> + </data> + <data> + <variable>buildConfiguration-Debug</variable> + <valuemap type="QVariantMap" > + <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" >Debug</value> + <value key="QtVersionId" type="int" >0</value> + <value key="addQDumper" type="" ></value> + <value key="buildDirectory" type="QString" >/home/rahul/Programming/chollu</value> + </valuemap> + </data> + <data> + <variable>buildconfiguration-Debug-buildstep0</variable> + <valuemap type="QVariantMap" > + <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" >Debug</value> + </valuemap> + </data> + <data> + <variable>buildconfiguration-Debug-buildstep1</variable> + <valuemap type="QVariantMap" > + <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" >Debug</value> + <valuelist key="abstractProcess.Environment" type="QVariantList" > + <value type="QString" >CVS_RSH=ssh</value> + <value type="QString" >DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-RAM9mXCDvk,guid=4527dab5ad93bbffb83f768f49af1962</value> + <value type="QString" >DESKTOP_SESSION=kde</value> + <value type="QString" >DESKTOP_STARTUP_ID=</value> + <value type="QString" >DISABLE_IMSETTINGS=1</value> + <value type="QString" >DISPLAY=:0.0</value> + <value type="QString" >DM_CONTROL=/var/run/xdmctl</value> + <value type="QString" >DRY_RUN=1</value> + <value type="QString" >GNOME_KEYRING_PID=2248</value> + <value type="QString" >GNOME_KEYRING_SOCKET=/tmp/keyring-ImWb2g/socket</value> + <value type="QString" >GPG_AGENT_INFO=/tmp/gpg-TLKsJh/S.gpg-agent:2483:1</value> + <value type="QString" >GS_LIB=</value> + <value type="QString" >GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/rahul/.gtkrc-2.0::/home/rahul/.kde/share/config/gtkrc-2.0</value> + <value type="QString" >GTK_IM_MODULE=scim-bridge</value> + <value type="QString" >GTK_RC_FILES=/etc/gtk/gtkrc:/home/rahul/.gtkrc::/home/rahul/.kde/share/config/gtkrc</value> + <value type="QString" >G_BROKEN_FILENAMES=1</value> + <value type="QString" >HISTSIZE=1000</value> + <value type="QString" >HOME=/home/rahul</value> + <value type="QString" >HOSTNAME=tiger.in</value> + <value type="QString" >INPUTRC=/etc/inputrc</value> + <value type="QString" >KDEDIRS=/usr</value> + <value type="QString" >KDE_FULL_SESSION=true</value> + <value type="QString" >KDE_IS_PRELINKED=1</value> + <value type="QString" >KDE_MULTIHEAD=false</value> + <value type="QString" >KDE_SESSION_UID=500</value> + <value type="QString" >KDE_SESSION_VERSION=4</value> + <value type="QString" >LANG=ml_IN.UTF-8</value> + <value type="QString" >LANGUAGE=</value> + <value type="QString" >LESSOPEN=|/usr/bin/lesspipe.sh %s</value> + <value type="QString" >LOGNAME=rahul</value> + <value type="QString" >MAIL=/var/spool/mail/rahul</value> + <value type="QString" >MALLOC_CHECK_=2</value> + <value type="QString" >NXDIR=/usr/NX</value> + <value type="QString" >PATH=/usr/lib/qt4/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/local/sbin:/usr/sbin:/sbin:/usr/NX/bin:/opt/real/RealPlayer:/home/rahul/bin</value> + <value type="QString" >PWD=/home/rahul</value> + <value type="QString" >QTDIR=/usr</value> + <value type="QString" >QTINC=/usr/lib/qt-3.3/include</value> + <value type="QString" >QTLIB=/usr/lib/qt-3.3/lib</value> + <value type="QString" >QT_IM_MODULE=scim-bridge</value> + <value type="QString" >QT_PLUGIN_PATH=/home/rahul/.kde/lib/kde4/plugins/:/usr/lib/kde4/plugins/:/home/rahul/.kde/lib/kde4/plugins/:/usr/lib/kde4/plugins/</value> + <value type="QString" >SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/2561,unix/unix:/tmp/.ICE-unix/2561</value> + <value type="QString" >SHELL=/bin/bash</value> + <value type="QString" >SHLVL=2</value> + <value type="QString" >SSH_AGENT_PID=2422</value> + <value type="QString" >SSH_ASKPASS=/usr/bin/ksshaskpass</value> + <value type="QString" >SSH_AUTH_SOCK=/tmp/ssh-hrGejR2250/agent.2250</value> + <value type="QString" >TERM=dumb</value> + <value type="QString" >USER=rahul</value> + <value type="QString" >WINDOWPATH=1</value> + <value type="QString" >XCURSOR_THEME=default</value> + <value type="QString" >XDG_DATA_DIRS=/usr/share/kde-settings/kde-profile/default/share:/usr/local/share:/usr/share</value> + <value type="QString" >XDG_MENU_PREFIX=kde4-</value> + <value type="QString" >XDG_SESSION_COOKIE=c7c0a3de41d115126a62467e492a5f0f-1236212065.498694-1435713794</value> + <value type="QString" >XDM_MANAGED=method=classic</value> + <value type="QString" >XMODIFIERS=@im=SCIM</value> + <value type="QString" >_=/usr/bin/kdeinit4</value> + </valuelist> + <valuelist key="abstractProcess.arguments" type="QVariantList" > + <value type="QString" >/home/rahul/Programming/chollu/proverb.pro</value> + <value type="QString" >-spec</value> + <value type="QString" >/usr/lib/qt4/mkspecs/linux-g++</value> + <value type="QString" >-r</value> + <value type="QString" >CONFIG+=debug</value> + </valuelist> + <value key="abstractProcess.command" type="QString" >/usr/bin/qmake-qt4</value> + <value key="abstractProcess.enabled" type="bool" >true</value> + <value key="abstractProcess.workingDirectory" type="QString" >/home/rahul/Programming/chollu</value> + <value key="buildConfiguration" type="int" >2</value> + </valuemap> + </data> + <data> + <variable>buildconfiguration-Debug-buildstep2</variable> + <valuemap type="QVariantMap" > + <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" >Debug</value> + <valuelist key="abstractProcess.Environment" type="QVariantList" > + <value type="QString" >CVS_RSH=ssh</value> + <value type="QString" >DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-RAM9mXCDvk,guid=4527dab5ad93bbffb83f768f49af1962</value> + <value type="QString" >DESKTOP_SESSION=kde</value> + <value type="QString" >DESKTOP_STARTUP_ID=</value> + <value type="QString" >DISABLE_IMSETTINGS=1</value> + <value type="QString" >DISPLAY=:0.0</value> + <value type="QString" >DM_CONTROL=/var/run/xdmctl</value> + <value type="QString" >DRY_RUN=1</value> + <value type="QString" >GNOME_KEYRING_PID=2248</value> + <value type="QString" >GNOME_KEYRING_SOCKET=/tmp/keyring-ImWb2g/socket</value> + <value type="QString" >GPG_AGENT_INFO=/tmp/gpg-TLKsJh/S.gpg-agent:2483:1</value> + <value type="QString" >GS_LIB=</value> + <value type="QString" >GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/rahul/.gtkrc-2.0::/home/rahul/.kde/share/config/gtkrc-2.0</value> + <value type="QString" >GTK_IM_MODULE=scim-bridge</value> + <value type="QString" >GTK_RC_FILES=/etc/gtk/gtkrc:/home/rahul/.gtkrc::/home/rahul/.kde/share/config/gtkrc</value> + <value type="QString" >G_BROKEN_FILENAMES=1</value> + <value type="QString" >HISTSIZE=1000</value> + <value type="QString" >HOME=/home/rahul</value> + <value type="QString" >HOSTNAME=tiger.in</value> + <value type="QString" >INPUTRC=/etc/inputrc</value> + <value type="QString" >KDEDIRS=/usr</value> + <value type="QString" >KDE_FULL_SESSION=true</value> + <value type="QString" >KDE_IS_PRELINKED=1</value> + <value type="QString" >KDE_MULTIHEAD=false</value> + <value type="QString" >KDE_SESSION_UID=500</value> + <value type="QString" >KDE_SESSION_VERSION=4</value> + <value type="QString" >LANG=ml_IN.UTF-8</value> + <value type="QString" >LANGUAGE=</value> + <value type="QString" >LESSOPEN=|/usr/bin/lesspipe.sh %s</value> + <value type="QString" >LOGNAME=rahul</value> + <value type="QString" >MAIL=/var/spool/mail/rahul</value> + <value type="QString" >MALLOC_CHECK_=2</value> + <value type="QString" >NXDIR=/usr/NX</value> + <value type="QString" >PATH=/usr/lib/qt4/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/local/sbin:/usr/sbin:/sbin:/usr/NX/bin:/opt/real/RealPlayer:/home/rahul/bin</value> + <value type="QString" >PWD=/home/rahul</value> + <value type="QString" >QTDIR=/usr</value> + <value type="QString" >QTINC=/usr/lib/qt-3.3/include</value> + <value type="QString" >QTLIB=/usr/lib/qt-3.3/lib</value> + <value type="QString" >QT_IM_MODULE=scim-bridge</value> + <value type="QString" >QT_PLUGIN_PATH=/home/rahul/.kde/lib/kde4/plugins/:/usr/lib/kde4/plugins/:/home/rahul/.kde/lib/kde4/plugins/:/usr/lib/kde4/plugins/</value> + <value type="QString" >SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/2561,unix/unix:/tmp/.ICE-unix/2561</value> + <value type="QString" >SHELL=/bin/bash</value> + <value type="QString" >SHLVL=2</value> + <value type="QString" >SSH_AGENT_PID=2422</value> + <value type="QString" >SSH_ASKPASS=/usr/bin/ksshaskpass</value> + <value type="QString" >SSH_AUTH_SOCK=/tmp/ssh-hrGejR2250/agent.2250</value> + <value type="QString" >TERM=dumb</value> + <value type="QString" >USER=rahul</value> + <value type="QString" >WINDOWPATH=1</value> + <value type="QString" >XCURSOR_THEME=default</value> + <value type="QString" >XDG_DATA_DIRS=/usr/share/kde-settings/kde-profile/default/share:/usr/local/share:/usr/share</value> + <value type="QString" >XDG_MENU_PREFIX=kde4-</value> + <value type="QString" >XDG_SESSION_COOKIE=c7c0a3de41d115126a62467e492a5f0f-1236212065.498694-1435713794</value> + <value type="QString" >XDM_MANAGED=method=classic</value> + <value type="QString" >XMODIFIERS=@im=SCIM</value> + <value type="QString" >_=/usr/bin/kdeinit4</value> + </valuelist> + <valuelist key="abstractProcess.arguments" type="QVariantList" > + <value type="QString" >-w</value> + </valuelist> + <value key="abstractProcess.command" type="QString" >/usr/bin/make</value> + <value key="abstractProcess.enabled" type="bool" >true</value> + <value key="abstractProcess.workingDirectory" type="QString" >/home/rahul/Programming/chollu</value> + </valuemap> + </data> + <data> + <variable>buildconfiguration-Debug-cleanstep0</variable> + <valuemap type="QVariantMap" > + <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" >Debug</value> + </valuemap> + </data> + <data> + <variable>buildconfiguration-Debug-cleanstep1</variable> + <valuemap type="QVariantMap" > + <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" >Debug</value> + <valuelist key="abstractProcess.Environment" type="QVariantList" > + <value type="QString" >CVS_RSH=ssh</value> + <value type="QString" >DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-RAM9mXCDvk,guid=4527dab5ad93bbffb83f768f49af1962</value> + <value type="QString" >DESKTOP_SESSION=kde</value> + <value type="QString" >DESKTOP_STARTUP_ID=</value> + <value type="QString" >DISABLE_IMSETTINGS=1</value> + <value type="QString" >DISPLAY=:0.0</value> + <value type="QString" >DM_CONTROL=/var/run/xdmctl</value> + <value type="QString" >DRY_RUN=1</value> + <value type="QString" >GNOME_KEYRING_PID=2248</value> + <value type="QString" >GNOME_KEYRING_SOCKET=/tmp/keyring-ImWb2g/socket</value> + <value type="QString" >GPG_AGENT_INFO=/tmp/gpg-TLKsJh/S.gpg-agent:2483:1</value> + <value type="QString" >GS_LIB=</value> + <value type="QString" >GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/rahul/.gtkrc-2.0::/home/rahul/.kde/share/config/gtkrc-2.0</value> + <value type="QString" >GTK_IM_MODULE=scim-bridge</value> + <value type="QString" >GTK_RC_FILES=/etc/gtk/gtkrc:/home/rahul/.gtkrc::/home/rahul/.kde/share/config/gtkrc</value> + <value type="QString" >G_BROKEN_FILENAMES=1</value> + <value type="QString" >HISTSIZE=1000</value> + <value type="QString" >HOME=/home/rahul</value> + <value type="QString" >HOSTNAME=tiger.in</value> + <value type="QString" >INPUTRC=/etc/inputrc</value> + <value type="QString" >KDEDIRS=/usr</value> + <value type="QString" >KDE_FULL_SESSION=true</value> + <value type="QString" >KDE_IS_PRELINKED=1</value> + <value type="QString" >KDE_MULTIHEAD=false</value> + <value type="QString" >KDE_SESSION_UID=500</value> + <value type="QString" >KDE_SESSION_VERSION=4</value> + <value type="QString" >LANG=ml_IN.UTF-8</value> + <value type="QString" >LANGUAGE=</value> + <value type="QString" >LESSOPEN=|/usr/bin/lesspipe.sh %s</value> + <value type="QString" >LOGNAME=rahul</value> + <value type="QString" >MAIL=/var/spool/mail/rahul</value> + <value type="QString" >MALLOC_CHECK_=2</value> + <value type="QString" >NXDIR=/usr/NX</value> + <value type="QString" >PATH=/usr/lib/qt4/bin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/local/sbin:/usr/sbin:/sbin:/usr/NX/bin:/opt/real/RealPlayer:/home/rahul/bin</value> + <value type="QString" >PWD=/home/rahul</value> + <value type="QString" >QTDIR=/usr</value> + <value type="QString" >QTINC=/usr/lib/qt-3.3/include</value> + <value type="QString" >QTLIB=/usr/lib/qt-3.3/lib</value> + <value type="QString" >QT_IM_MODULE=scim-bridge</value> + <value type="QString" >QT_PLUGIN_PATH=/home/rahul/.kde/lib/kde4/plugins/:/usr/lib/kde4/plugins/:/home/rahul/.kde/lib/kde4/plugins/:/usr/lib/kde4/plugins/</value> + <value type="QString" >SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/2561,unix/unix:/tmp/.ICE-unix/2561</value> + <value type="QString" >SHELL=/bin/bash</value> + <value type="QString" >SHLVL=2</value> + <value type="QString" >SSH_AGENT_PID=2422</value> + <value type="QString" >SSH_ASKPASS=/usr/bin/ksshaskpass</value> + <value type="QString" >SSH_AUTH_SOCK=/tmp/ssh-hrGejR2250/agent.2250</value> + <value type="QString" >TERM=dumb</value> + <value type="QString" >USER=rahul</value> + <value type="QString" >WINDOWPATH=1</value> + <value type="QString" >XCURSOR_THEME=default</value> + <value type="QString" >XDG_DATA_DIRS=/usr/share/kde-settings/kde-profile/default/share:/usr/local/share:/usr/share</value> + <value type="QString" >XDG_MENU_PREFIX=kde4-</value> + <value type="QString" >XDG_SESSION_COOKIE=c7c0a3de41d115126a62467e492a5f0f-1236212065.498694-1435713794</value> + <value type="QString" >XDM_MANAGED=method=classic</value> + <value type="QString" >XMODIFIERS=@im=SCIM</value> + <value type="QString" >_=/usr/bin/kdeinit4</value> + </valuelist> + <valuelist key="abstractProcess.arguments" type="QVariantList" > + <value type="QString" >clean</value> + <value type="QString" >-w</value> + </valuelist> + <value key="abstractProcess.command" type="QString" >/usr/bin/make</value> + <value key="abstractProcess.enabled" type="bool" >true</value> + <value key="abstractProcess.workingDirectory" type="QString" >/home/rahul/Programming/chollu</value> + </valuemap> + </data> + <data> + <variable>buildconfigurations</variable> + <valuelist type="QVariantList" > + <value type="QString" >Debug</value> + </valuelist> + </data> + <data> + <variable>buildstep0</variable> + <valuemap type="QVariantMap" > + <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" ></value> + </valuemap> + </data> + <data> + <variable>buildstep1</variable> + <valuemap type="QVariantMap" > + <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" ></value> + <value key="mkspec" type="QString" ></value> + </valuemap> + </data> + <data> + <variable>buildstep2</variable> + <valuemap type="QVariantMap" > + <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" ></value> + </valuemap> + </data> + <data> + <variable>buildsteps</variable> + <valuelist type="QVariantList" > + <value type="QString" >trolltech.qt4projectmanager.gdbmaros</value> + <value type="QString" >trolltech.qt4projectmanager.qmake</value> + <value type="QString" >trolltech.qt4projectmanager.make</value> + </valuelist> + </data> + <data> + <variable>cleanstep0</variable> + <valuemap type="QVariantMap" > + <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" ></value> + <value key="clean" type="bool" >true</value> + </valuemap> + </data> + <data> + <variable>cleanstep1</variable> + <valuemap type="QVariantMap" > + <value key="ProjectExplorer.BuildConfiguration.DisplayName" type="QString" ></value> + <value key="clean" type="bool" >true</value> + </valuemap> + </data> + <data> + <variable>cleansteps</variable> + <valuelist type="QVariantList" > + <value type="QString" >trolltech.qt4projectmanager.gdbmaros</value> + <value type="QString" >trolltech.qt4projectmanager.make</value> + </valuelist> + </data> + <data> + <variable>defaultFileEncoding</variable> + <value type="QByteArray" >UTF-8</value> + </data> + <data> + <variable>project</variable> + <valuemap type="QVariantMap" /> + </data> +</qtcreator> diff --git a/proverb/proverb_ml.qm b/proverb/proverb_ml.qm Binary files differnew file mode 100644 index 0000000..f79db7a --- /dev/null +++ b/proverb/proverb_ml.qm diff --git a/proverb/proverb_ml.ts b/proverb/proverb_ml.ts new file mode 100644 index 0000000..543be79 --- /dev/null +++ b/proverb/proverb_ml.ts @@ -0,0 +1,122 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS><TS version="1.1" language="ml"> +<defaultcodec></defaultcodec> +<context> + <name>MainWindow</name> + <message> + <location filename="ui/mainwindow.ui" line="13"/> + <source>Proverb</source> + <translation>പഴഞ്ചൊല്ലില് പതിരില്ല</translation> + </message> + <message> + <location filename="ui/mainwindow.ui" line="64"/> + <source>Get</source> + <translation>കണ്ടുപിടിക്കുക</translation> + </message> + <message> + <location filename="ui/mainwindow.ui" line="96"/> + <source>About</source> + <translation>വിവരണം</translation> + </message> +</context> +<context> + <name>aboutDialog</name> + <message> + <location filename="ui/about.ui" line="79"/> + <source>Proverb</source> + <translation>പഴഞ്ചൊല്ലില് പതിരില്ല</translation> + </message> + <message> + <location filename="ui/about.ui" line="26"/> + <source>background-color: rgb(176, 176, 176);</source> + <translation>background-color: rgb(176, 176, 176);</translation> + </message> + <message> + <location filename="ui/about.ui" line="33"/> + <source>About</source> + <translation>വിവരണം</translation> + </message> + <message> + <location filename="ui/about.ui" line="89"/> + <source>GUI for fortune-ml</source> + <translation>മലയാളം പഴഞ്ചൊല്ലുകള് കാണിക്കാനുള്ള ഒരു ഉപാധി</translation> + </message> + <message> + <location filename="ui/about.ui" line="140"/> + <source>Rahul</source> + <translation>രാഹുല്</translation> + </message> + <message> + <location filename="ui/about.ui" line="164"/> + <source>Credits</source> + <translation>ബഹുമതികള്</translation> + </message> + <message> + <location filename="ui/about.ui" line="170"/> + <source><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Sans Serif'; font-size:14pt; font-weight:400; font-style:normal;"> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:20pt; font-weight:600;">Fortune Malayalam</span></p> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#0a2651;">Santhosh Thottingal </span></p> +<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;"></p> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:20pt; font-weight:600;">Gui Frontend</span></p> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#1b2d7a;">Rahul</span></p></body></html></source> + <translation type="unfinished"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Sans Serif'; font-size:14pt; font-weight:400; font-style:normal;"><p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:20pt; font-weight:600;">ഫോര്ച്യൂണ് മലയാളം</span></p><p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#0a2651;">സന്തോഷ് തോട്ടിങ്ങല് </span></p><p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;"></p><p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:20pt; font-weight:600;">Gui </span></p><p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#1b2d7a;">രാഹുല്</span></p></body></html></translation> + </message> + <message> + <location filename="ui/about.ui" line="186"/> + <source>Options</source> + <translation>ഐഛികങ്ങള്</translation> + </message> + <message> + <location filename="ui/about.ui" line="220"/> + <source>Hilight Search terms</source> + <translation>അന്വേഷിച്ച വാക്ക് എടുത്ത് കാണിക്കുക</translation> + </message> + <message> + <location filename="ui/about.ui" line="230"/> + <source>Confirm quit action</source> + <translation>പുറത്ത് കടക്കല് ഉറപ്പ് വരുത്തുക</translation> + </message> + <message> + <location filename="ui/about.ui" line="306"/> + <source>Apply</source> + <translation>അംഗീകരിക്കുക</translation> + </message> + <message> + <location filename="ui/about.ui" line="327"/> + <source>Help</source> + <translation>സഹായം</translation> + </message> + <message> + <location filename="ui/about.ui" line="339"/> + <source><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Sans Serif'; font-size:14pt; font-weight:400; font-style:normal;"> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#0f1455;">Enter the word in the bottom </span></p> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#0f1455;">entry field and click 'Get' to get</span></p> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#0f1455;">proverbs containing that word</span></p> +<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; color:#0f1455;"></p> +<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; color:#0f1455;"></p> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#0f1455;">To get a random proverb leave the </span></p> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#0f1455;">text entry field blank and click 'Get'</span></p></body></html></source> + <translation type="obsolete"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Sans Serif'; font-size:14pt; font-weight:400; font-style:normal;"><p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#0f1455;">ഒരു വാക്ക് ഉള്ക്കൊള്ളുന്ന പഴഞ്ചൊല്ല് കണ്ടുപിടിക്കാന്</span></p><p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;"></p> താഴെയുള്ള കള്ളിയില് അന്വേഷിക്കേണ്ട വാക്ക് ടൈപ്പ് ചെയ്ത് കണ്ടുപിടിക്കുക അമര്ത്തുക </span></p><p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; color:#0f1455;"></p><p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; color:#0f1455;"></p><p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#0f1455;">ഏതെങ്കിലും ഒരു പഴഞ്ചൊല്ല് മതിയെങ്കില് </span></p><p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;"></p>താഴെയുള്ള കള്ളിയില് ഒന്നും ടൈപ്പ് ചെയ്യാതെ കണ്ടുപിടിക്കുക അമര്ത്തുക </span></p></body></html></translation> + </message> + <message> + <location filename="ui/about.ui" line="348"/> + <source><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Sans Serif'; font-size:14pt; font-weight:400; font-style:normal;"> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#0f1455;">Enter the word in the bottom </span></p> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#0f1455;">entry field and click 'Get' to get</span></p> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#0f1455;">proverbs containing that word</span></p> +<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; color:#0f1455;"></p> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#0f1455;">To get a random proverb leave the </span></p> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#0f1455;">text entry field blank and click 'Get'</span></p></body></html></source> + <translation type="unfinished"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Sans Serif'; font-size:14pt; font-weight:400; font-style:normal;"><p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#0f1455;">ഒരു വാക്ക് ഉള്ക്കൊള്ളുന്ന പഴഞ്ചൊല്ല് കണ്ടുപിടിക്കാന്</span></p><p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#0f1455;">താഴെയുള്ള കള്ളിയില് അന്വേഷിക്കേണ്ട വാക്ക് ടൈപ്പ് ചെയ്ത് കണ്ടുപിടിക്കുക അമര്ത്തുക</span></p><p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; color:#0f1455;"></p><p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#0f1455;">ഏതെങ്കിലും ഒരു പഴഞ്ചൊല്ല് മതിയെങ്കില് </span></p><p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#0f1455;">താഴെയുള്ള കള്ളിയില് ഒന്നും ടൈപ്പ് ചെയ്യാതെ കണ്ടുപിടിക്കുക അമര്ത്തുക</span></p></body></html></translation> + </message> +</context> +</TS> diff --git a/proverb/src/main.cpp b/proverb/src/main.cpp new file mode 100644 index 0000000..33a960e --- /dev/null +++ b/proverb/src/main.cpp @@ -0,0 +1,18 @@ +#include <QApplication> +#include <QTranslator> +#include "mainwindow.h" +#include "tabdialog.h" +// +int main(int argc, char ** argv) +{ + QApplication app( argc, argv ); + + QTranslator translator; + translator.load("/usr/bin/proverb_ml"); + app.installTranslator(&translator); + + MainWindow win; + win.show(); + app.connect( &app, SIGNAL( lastWindowClosed() ), &app, SLOT( quit() ) ); + return app.exec(); +} diff --git a/proverb/src/main.cpp~ b/proverb/src/main.cpp~ new file mode 100644 index 0000000..dd32b85 --- /dev/null +++ b/proverb/src/main.cpp~ @@ -0,0 +1,18 @@ +#include <QApplication> +#include <QTranslator> +#include "mainwindow.h" +#include "tabdialog.h" +// +int main(int argc, char ** argv) +{ + QApplication app( argc, argv ); + + QTranslator translator; + translator.load("proverb_ml"); + app.installTranslator(&translator); + + MainWindow win; + win.show(); + app.connect( &app, SIGNAL( lastWindowClosed() ), &app, SLOT( quit() ) ); + return app.exec(); +} diff --git a/proverb/src/mainwindow.cpp b/proverb/src/mainwindow.cpp new file mode 100644 index 0000000..e98f65c --- /dev/null +++ b/proverb/src/mainwindow.cpp @@ -0,0 +1,100 @@ +#include "mainwindow.h" +#include <QProcess> +#include <iostream> +#include <QTemporaryFile> +#include <QTranslator> +#include <QtDebug> +#include <QString> +#include <QMessageBox> +// +QString tempFileName; +MainWindow::MainWindow( QWidget * parent, Qt::WFlags f) : QMainWindow(parent, f) +{ + setupUi(this); + connect(getButton, SIGNAL(clicked()), this, SLOT(getProverb())); + //connect(getButton, SIGNAL(returnPressed()), this, SLOT(getProverb())); + connect(aboutButton, SIGNAL(clicked()), this, SLOT(about())); + QTemporaryFile tempFile; + if (tempFile.open()) + { + tempFileName = tempFile.fileName(); + qDebug()<<"Temp file name" <<tempFileName; + } + else + qDebug()<<"Cannot open/create temporary file"; +} +// + +void MainWindow::getProverb(void) +{ + const char* systemCommand; + std::string command; + command = lineEdit->text().toUtf8().data(); + if (command == "") + command = "fortune fortune-ml"+command+" >"+tempFileName.toUtf8().data(); // തിരയാന് ഒരു വാക്കും തന്നില്ലെങ്കില് ഏതെങ്കിലും പഴഞ്ചൊല്ല് കാണിക്കാനുള്ള വിദ്യ + else + command = "fortune fortune-ml -m "+command+" >"+tempFileName.toUtf8().data(); + //std::cout<<command<<"\n"; + systemCommand = command.c_str(); + system(systemCommand); + loadFile(tempFileName); +} + +void MainWindow::loadFile(const QString &fileName) +{ + QFile file(fileName); + + if (!file.open(QFile::ReadOnly | QFile::Text)) + { + qDebug()<<"Cannot open temporary file"; + return; + } + QTextStream in(&file); + QApplication::setOverrideCursor(Qt::WaitCursor); + textEdit->setPlainText(in.readAll()); + QApplication::restoreOverrideCursor(); + + QTextDocument *document = textEdit->document(); + QTextCursor highlightCursor(document); + QTextCursor cursor(document); + QTextCursor startOfLine(document); + QTextCursor deletePercentage(document); + cursor.beginEditBlock(); + QTextCharFormat plainFormat(highlightCursor.charFormat()); + QTextCharFormat colorFormat = plainFormat; + colorFormat.setFontItalic(true); + colorFormat.setForeground(Qt::darkBlue); + while (!deletePercentage.isNull() && !deletePercentage.atEnd()) // % ചിഹ്നം നീക്കാന് + { + deletePercentage = document->find("%", deletePercentage, QTextDocument::FindWholeWords); + if (!deletePercentage.isNull()) + { + deletePercentage.movePosition(QTextCursor::WordRight, QTextCursor::KeepAnchor); + deletePercentage.removeSelectedText(); + } + } + while (!startOfLine.isNull() && !startOfLine.atEnd()) // എല്ലാ വരിയുടെയും തുടക്കത്തില് '* ' ചേര്ക്കാന് + { + startOfLine.movePosition(QTextCursor::StartOfLine); + startOfLine.insertText("* "); + startOfLine.movePosition(QTextCursor::Down); + } + while (!highlightCursor.isNull() && !highlightCursor.atEnd()) // ആവശ്യപ്പെട്ട വാക്ക് നീലനിരത്തില് ചരിച്ചെഴുതാന് + { + highlightCursor = document->find(lineEdit->text(), highlightCursor); + if (!highlightCursor.isNull()) + { + highlightCursor.movePosition(QTextCursor::WordRight, QTextCursor::KeepAnchor); + highlightCursor.mergeCharFormat(colorFormat); + } + } + cursor.endEditBlock(); +} + +void MainWindow::about(void) +{ + /* QMessageBox::about(this, tr("About Kuttans"), + tr("<h2 align=\"center\"><b>Proverb</h2><p><h4 align=\"center\">GUI for fortune-ml<p><h4 align=\"center\">"));*/ +About tabdialog("."); +tabdialog.exec(); +} diff --git a/proverb/src/mainwindow.h b/proverb/src/mainwindow.h new file mode 100644 index 0000000..a4fa977 --- /dev/null +++ b/proverb/src/mainwindow.h @@ -0,0 +1,26 @@ +#ifndef MAINWINDOW_H +#define MAINWINDOW_H +// +#include <QMainWindow> +#include "ui_mainwindow.h" +#include "tabdialog.h" +// +class MainWindow : public QMainWindow, public Ui::MainWindow +{ +Q_OBJECT +public: + MainWindow( QWidget * parent = 0, Qt::WFlags f = 0 ); + +private slots: + void getProverb(void); + void about(void); + +private: + void loadFile(const QString &fileName); + +}; +#endif + + + + diff --git a/proverb/src/tabdialog.cpp b/proverb/src/tabdialog.cpp new file mode 100644 index 0000000..b8254b3 --- /dev/null +++ b/proverb/src/tabdialog.cpp @@ -0,0 +1,8 @@ +#include <QtGui> +#include "tabdialog.h" + +About::About(const QString &fileName, QWidget *parent): QDialog(parent) +{ + setupUi(this); +} + diff --git a/proverb/src/tabdialog.h b/proverb/src/tabdialog.h new file mode 100644 index 0000000..0e1fb60 --- /dev/null +++ b/proverb/src/tabdialog.h @@ -0,0 +1,14 @@ +#ifndef TABDIALOG_H +#define TABDIALOG_H +#include <QDialog> +#include "ui_about.h" + +class About : public QDialog, private Ui::aboutDialog +{ + Q_OBJECT +public: + About(const QString &fileName, QWidget *parent = 0); +private: +}; + +#endif diff --git a/proverb/ui/about.ui b/proverb/ui/about.ui new file mode 100644 index 0000000..7c5cec3 --- /dev/null +++ b/proverb/ui/about.ui @@ -0,0 +1,405 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>aboutDialog</class> + <widget class="QDialog" name="aboutDialog"> + <property name="windowModality"> + <enum>Qt::NonModal</enum> + </property> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>350</width> + <height>281</height> + </rect> + </property> + <property name="windowTitle"> + <string>Proverb</string> + </property> + <property name="styleSheet"> + <string>background-color: rgb(176, 176, 176);</string> + </property> + <layout class="QGridLayout" name="gridLayout"> + <item row="0" column="0"> + <widget class="QTabWidget" name="tabWidget"> + <property name="styleSheet"> + <string>background-color: rgb(176, 176, 176);</string> + </property> + <property name="currentIndex"> + <number>0</number> + </property> + <widget class="QWidget" name="tab"> + <attribute name="title"> + <string>About</string> + </attribute> + <layout class="QGridLayout" name="gridLayout_2"> + <item row="0" column="2"> + <spacer name="verticalSpacer_4"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>13</height> + </size> + </property> + </spacer> + </item> + <item row="1" column="0"> + <spacer name="horizontalSpacer"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>25</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item row="1" column="1" colspan="3"> + <layout class="QVBoxLayout" name="verticalLayout_2"> + <item> + <widget class="QLabel" name="label_6"> + <property name="text"> + <string/> + </property> + <property name="pixmap"> + <pixmap resource="../icons.qrc">:/icons/icon.png</pixmap> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="label"> + <property name="font"> + <font> + <pointsize>26</pointsize> + <weight>75</weight> + <italic>false</italic> + <bold>true</bold> + <underline>false</underline> + <strikeout>false</strikeout> + <stylestrategy>PreferDefault</stylestrategy> + <kerning>true</kerning> + </font> + </property> + <property name="text"> + <string>Proverb</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="label_2"> + <property name="text"> + <string>GUI for fortune-ml</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + </layout> + </item> + <item row="1" column="4"> + <spacer name="horizontalSpacer_2"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>28</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item row="2" column="2"> + <spacer name="verticalSpacer_3"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>100</height> + </size> + </property> + </spacer> + </item> + <item row="3" column="0" colspan="2"> + <spacer name="horizontalSpacer_5"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>60</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item row="3" column="2"> + <widget class="QLabel" name="label_3"> + <property name="text"> + <string>Rahul</string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + </widget> + </item> + <item row="3" column="3" colspan="2"> + <spacer name="horizontalSpacer_6"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>63</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </widget> + <widget class="QWidget" name="tab_2"> + <attribute name="title"> + <string>Credits</string> + </attribute> + <layout class="QGridLayout" name="gridLayout_4"> + <item row="0" column="0"> + <widget class="QLabel" name="label_4"> + <property name="text"> + <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Sans Serif'; font-size:14pt; font-weight:400; font-style:normal;"> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:20pt; font-weight:600;">Fortune Malayalam</span></p> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#0a2651;">Santhosh Thottingal </span></p> +<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;"></p> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:20pt; font-weight:600;">Gui Frontend</span></p> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#1b2d7a;">Rahul</span></p></body></html></string> + </property> + </widget> + </item> + </layout> + </widget> + <widget class="QWidget" name="tab_3"> + <attribute name="title"> + <string>Options</string> + </attribute> + <layout class="QGridLayout" name="gridLayout_3"> + <item row="0" column="1" colspan="3"> + <spacer name="verticalSpacer_2"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>66</height> + </size> + </property> + </spacer> + </item> + <item row="1" column="0"> + <spacer name="horizontalSpacer_3"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>7</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item row="1" column="1" colspan="3"> + <layout class="QVBoxLayout" name="verticalLayout"> + <item> + <widget class="QCheckBox" name="checkBox"> + <property name="text"> + <string>Hilight Search terms</string> + </property> + <property name="checked"> + <bool>true</bool> + </property> + </widget> + </item> + <item> + <widget class="QCheckBox" name="checkBox_2"> + <property name="text"> + <string>Confirm quit action</string> + </property> + </widget> + </item> + </layout> + </item> + <item row="1" column="4"> + <spacer name="horizontalSpacer_4"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>8</width> + <height>17</height> + </size> + </property> + </spacer> + </item> + <item row="2" column="2"> + <spacer name="verticalSpacer"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>65</height> + </size> + </property> + </spacer> + </item> + <item row="3" column="0" colspan="2"> + <spacer name="horizontalSpacer_7"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>57</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + <item row="3" column="2"> + <widget class="QPushButton" name="applyButton"> + <property name="styleSheet"> + <string notr="true"> +QPushButton +{ + background-color: qlineargradient(spread:reflect, x1:1, y1:0.085, x2:1, y2:0.511, stop:0.158192 rgba(177, 177, 177, 255), stop:1 rgba(255, 255, 255, 255)); + border-width: 2px; + border-color: rgb(148, 148, 148); + border-style: solid; + border-radius: 5; + padding: 3px; + min-width: 9ex; + min-height: 2.5ex; +} +QPushButton:hover +{ + border-width: 2px; + border-color: rgb(45, 45, 45); + border-style: solid; + border-radius: 5; +} +QPushButton:pressed +{ + padding-left: 5px; + padding-top: 5px; + background-color: qlineargradient(spread:reflect, x1:1, y1:0.085, x2:1, y2:0.511, stop:0.158192 rgba(177, 177, 177, 255), stop:1 rgba(255, 255, 255, 255)); + border-color: rgb(22, 17, 159); +}</string> + </property> + <property name="text"> + <string>Apply</string> + </property> + </widget> + </item> + <item row="3" column="3" colspan="2"> + <spacer name="horizontalSpacer_8"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>56</width> + <height>20</height> + </size> + </property> + </spacer> + </item> + </layout> + </widget> + <widget class="QWidget" name="tab_4"> + <attribute name="title"> + <string>Help</string> + </attribute> + <layout class="QGridLayout" name="gridLayout_5"> + <item row="0" column="0"> + <layout class="QVBoxLayout" name="verticalLayout_3"> + <item> + <spacer name="verticalSpacer_6"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>34</height> + </size> + </property> + </spacer> + </item> + <item> + <widget class="QLabel" name="label_5"> + <property name="text"> + <string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'Sans Serif'; font-size:14pt; font-weight:400; font-style:normal;"> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#0f1455;">Enter the word in the bottom </span></p> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#0f1455;">entry field and click 'Get' to get</span></p> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#0f1455;">proverbs containing that word</span></p> +<p align="center" style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; color:#0f1455;"></p> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#0f1455;">To get a random proverb leave the </span></p> +<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#0f1455;">text entry field blank and click 'Get'</span></p></body></html></string> + </property> + <property name="alignment"> + <set>Qt::AlignCenter</set> + </property> + <property name="wordWrap"> + <bool>true</bool> + </property> + </widget> + </item> + </layout> + </item> + <item row="1" column="0"> + <spacer name="verticalSpacer_5"> + <property name="orientation"> + <enum>Qt::Vertical</enum> + </property> + <property name="sizeHint" stdset="0"> + <size> + <width>20</width> + <height>34</height> + </size> + </property> + </spacer> + </item> + </layout> + </widget> + </widget> + </item> + </layout> + </widget> + <resources> + <include location="../icons.qrc"/> + </resources> + <connections/> +</ui> diff --git a/proverb/ui/mainwindow.ui b/proverb/ui/mainwindow.ui new file mode 100644 index 0000000..160d6ae --- /dev/null +++ b/proverb/ui/mainwindow.ui @@ -0,0 +1,130 @@ +<?xml version="1.0" encoding="UTF-8"?> +<ui version="4.0"> + <class>MainWindow</class> + <widget class="QMainWindow" name="MainWindow"> + <property name="geometry"> + <rect> + <x>0</x> + <y>0</y> + <width>598</width> + <height>388</height> + </rect> + </property> + <property name="windowTitle"> + <string>Proverb</string> + </property> + <property name="windowIcon"> + <iconset resource="../icons.qrc"> + <normaloff>:/icons/icon.png</normaloff>:/icons/icon.png</iconset> + </property> + <property name="styleSheet"> + <string notr="true">.QWidget +{ + background-color: rgb(152, 152, 152); +} +QStatusBar +{ + background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:0.557, stop:0 rgba(143, 143, 143, 255), stop:1 rgba(55, 53, 53, 255)); +}</string> + </property> + <widget class="QWidget" name="centralwidget"> + <layout class="QGridLayout" name="gridLayout"> + <item row="0" column="0" colspan="3"> + <widget class="QTextEdit" name="textEdit"/> + </item> + <item row="1" column="0"> + <widget class="QLineEdit" name="lineEdit"/> + </item> + <item row="1" column="1"> + <widget class="QPushButton" name="getButton"> + <property name="styleSheet"> + <string notr="true"> +QPushButton +{ + background-color: qlineargradient(spread:reflect, x1:1, y1:0.085, x2:1, y2:0.511, stop:0.158192 rgba(177, 177, 177, 255), stop:1 rgba(255, 255, 255, 255)); + border-width: 2px; + border-color: rgb(148, 148, 148); + border-style: solid; + border-radius: 5; + padding: 3px; + min-width: 9ex; + min-height: 2.5ex; +} +QPushButton:hover +{ + border-width: 2px; + border-color: rgb(45, 45, 45); + border-style: solid; + border-radius: 5; +} +QPushButton:pressed +{ + padding-left: 5px; + padding-top: 5px; + background-color: qlineargradient(spread:reflect, x1:1, y1:0.085, x2:1, y2:0.511, stop:0.158192 rgba(177, 177, 177, 255), stop:1 rgba(255, 255, 255, 255)); + border-color: rgb(22, 17, 159); +}</string> + </property> + <property name="text"> + <string>Get</string> + </property> + </widget> + </item> + <item row="1" column="2"> + <widget class="QToolButton" name="aboutButton"> + <property name="styleSheet"> + <string notr="true">QToolButton +{ + background-color: qlineargradient(spread:reflect, x1:1, y1:0.085, x2:1, y2:0.511, stop:0.158192 rgba(177, 177, 177, 255), stop:1 rgba(255, 255, 255, 255)); + border-width: 2px; + border-color: rgb(148, 148, 148); + border-style: solid; + border-radius: 5; + padding: 3px; +} +QToolButton:hover +{ + border-width: 2px; + border-color: rgb(45, 45, 45); + border-style: solid; + border-radius: 5; +} +QToolButton:pressed +{ + padding-left: 5px; + padding-top: 5px; + background-color: qlineargradient(spread:reflect, x1:1, y1:0.085, x2:1, y2:0.511, stop:0.158192 rgba(177, 177, 177, 255), stop:1 rgba(255, 255, 255, 255)); + border-color: rgb(22, 17, 159); +}</string> + </property> + <property name="text"> + <string>About</string> + </property> + <property name="icon"> + <iconset resource="../icons.qrc"> + <normaloff>:/icons/about.png</normaloff>:/icons/about.png</iconset> + </property> + <property name="iconSize"> + <size> + <width>20</width> + <height>20</height> + </size> + </property> + <property name="toolButtonStyle"> + <enum>Qt::ToolButtonIconOnly</enum> + </property> + </widget> + </item> + </layout> + </widget> + <widget class="QStatusBar" name="statusbar"/> + </widget> + <tabstops> + <tabstop>lineEdit</tabstop> + <tabstop>textEdit</tabstop> + </tabstops> + <resources> + <include location="../icons.qrc"/> + </resources> + <connections/> +</ui> diff --git a/proverb/uninstall b/proverb/uninstall new file mode 100755 index 0000000..b06742f --- /dev/null +++ b/proverb/uninstall @@ -0,0 +1,7 @@ +#!/bin/sh + +echo Uninstalling... +rm -f /usr/bin/proverb +rm -f /usr/bin/proverb_ml.qm +rm -f /usr/share/applications/പഴഞ്ചൊല്ല്.desktop +echo done
\ No newline at end of file diff --git a/proverb/പഴഞ്ചൊല്ല്.desktop b/proverb/പഴഞ്ചൊല്ല്.desktop new file mode 100644 index 0000000..ba566dc --- /dev/null +++ b/proverb/പഴഞ്ചൊല്ല്.desktop @@ -0,0 +1,22 @@ + +[Desktop Entry] +Comment[ml]= +Comment= +Exec=/usr/bin/proverb +GenericName[ml]=പഴഞ്ചൊല്ലുകള് തിരയാനുള്ള ഉപാധി +GenericName=പഴഞ്ചൊല്ലുകള് തിരയാനുള്ള ഉപാധി +Icon=view-media-artist +MimeType= +Name[ml]=പഴഞ്ചൊല്ല് +Name=Proverb +Path= +StartupNotify=true +Terminal=false +TerminalOptions= +Type=Application +Categories=Applications;Utility; +X-DBUS-ServiceName= +X-DBUS-StartupType= +X-KDE-SubstituteUID=false +X-KDE-Username= +X-Desktop-File-Install-Version=0.15 |