From 886b09e5d997af17d1b0a9c7fad6e952a94bed45 Mon Sep 17 00:00:00 2001 From: Rahul Date: Fri, 13 Mar 2009 21:09:38 -0400 Subject: proverb --- doc/chillu-presentation/chillu.html | 0 fortune-ml/install.sh | 4 +- proverb/.directory | 5 + proverb/INSTALL | 6 + proverb/README | 0 proverb/about.png | Bin 0 -> 2919 bytes proverb/bin/proverb_ml.qm | Bin 0 -> 9647 bytes proverb/build/about.h | 8 + proverb/build/mainwindow.cpp | 10 + proverb/build/mainwindow.h | 8 + proverb/icon.png | Bin 0 -> 5256 bytes proverb/icons.qrc | 6 + proverb/install | 7 + proverb/proverb.pro | 22 ++ proverb/proverb.pro.user | 330 +++++++++++++++++ proverb/proverb_ml.qm | Bin 0 -> 9647 bytes proverb/proverb_ml.ts | 122 +++++++ proverb/src/main.cpp | 18 + proverb/src/main.cpp~ | 18 + proverb/src/mainwindow.cpp | 100 +++++ proverb/src/mainwindow.h | 26 ++ proverb/src/tabdialog.cpp | 8 + proverb/src/tabdialog.h | 14 + proverb/ui/about.ui | 405 +++++++++++++++++++++ proverb/ui/mainwindow.ui | 130 +++++++ proverb/uninstall | 7 + ...62\340\265\215\340\264\262\340\265\215.desktop" | 22 ++ 27 files changed, 1274 insertions(+), 2 deletions(-) mode change 100755 => 100644 doc/chillu-presentation/chillu.html create mode 100644 proverb/.directory create mode 100644 proverb/INSTALL create mode 100644 proverb/README create mode 100644 proverb/about.png create mode 100644 proverb/bin/proverb_ml.qm create mode 100644 proverb/build/about.h create mode 100644 proverb/build/mainwindow.cpp create mode 100644 proverb/build/mainwindow.h create mode 100644 proverb/icon.png create mode 100644 proverb/icons.qrc create mode 100755 proverb/install create mode 100644 proverb/proverb.pro create mode 100644 proverb/proverb.pro.user create mode 100644 proverb/proverb_ml.qm create mode 100644 proverb/proverb_ml.ts create mode 100644 proverb/src/main.cpp create mode 100644 proverb/src/main.cpp~ create mode 100644 proverb/src/mainwindow.cpp create mode 100644 proverb/src/mainwindow.h create mode 100644 proverb/src/tabdialog.cpp create mode 100644 proverb/src/tabdialog.h create mode 100644 proverb/ui/about.ui create mode 100644 proverb/ui/mainwindow.ui create mode 100755 proverb/uninstall create mode 100644 "proverb/\340\264\252\340\264\264\340\264\236\340\265\215\340\264\232\340\265\212\340\264\262\340\265\215\340\264\262\340\265\215.desktop" diff --git a/doc/chillu-presentation/chillu.html b/doc/chillu-presentation/chillu.html old mode 100755 new mode 100644 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 diff --git a/proverb/about.png b/proverb/about.png new file mode 100644 index 0000000..bb21b03 Binary files /dev/null and b/proverb/about.png differ diff --git a/proverb/bin/proverb_ml.qm b/proverb/bin/proverb_ml.qm new file mode 100644 index 0000000..f79db7a Binary files /dev/null and b/proverb/bin/proverb_ml.qm differ 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 new file mode 100644 index 0000000..e8e3ac5 Binary files /dev/null and b/proverb/icon.png differ 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 @@ + + + about.png + icon.png + + 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 @@ + + + + RunConfiguration0-CommandLineArguments + + + + RunConfiguration0-ProFile + /home/rahul/Programming/chollu/proverb.pro + + + RunConfiguration0-RunConfiguration.name + proverb + + + RunConfiguration0-UserSetName + false + + + RunConfiguration0-type + Qt4ProjectManager.Qt4RunConfiguration + + + activeRunConfiguration + 0 + + + activebuildconfiguration + Debug + + + buildConfiguration-Debug + + Debug + 0 + + /home/rahul/Programming/chollu + + + + buildconfiguration-Debug-buildstep0 + + Debug + + + + buildconfiguration-Debug-buildstep1 + + Debug + + CVS_RSH=ssh + DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-RAM9mXCDvk,guid=4527dab5ad93bbffb83f768f49af1962 + DESKTOP_SESSION=kde + DESKTOP_STARTUP_ID= + DISABLE_IMSETTINGS=1 + DISPLAY=:0.0 + DM_CONTROL=/var/run/xdmctl + DRY_RUN=1 + GNOME_KEYRING_PID=2248 + GNOME_KEYRING_SOCKET=/tmp/keyring-ImWb2g/socket + GPG_AGENT_INFO=/tmp/gpg-TLKsJh/S.gpg-agent:2483:1 + GS_LIB= + GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/rahul/.gtkrc-2.0::/home/rahul/.kde/share/config/gtkrc-2.0 + GTK_IM_MODULE=scim-bridge + GTK_RC_FILES=/etc/gtk/gtkrc:/home/rahul/.gtkrc::/home/rahul/.kde/share/config/gtkrc + G_BROKEN_FILENAMES=1 + HISTSIZE=1000 + HOME=/home/rahul + HOSTNAME=tiger.in + INPUTRC=/etc/inputrc + KDEDIRS=/usr + KDE_FULL_SESSION=true + KDE_IS_PRELINKED=1 + KDE_MULTIHEAD=false + KDE_SESSION_UID=500 + KDE_SESSION_VERSION=4 + LANG=ml_IN.UTF-8 + LANGUAGE= + LESSOPEN=|/usr/bin/lesspipe.sh %s + LOGNAME=rahul + MAIL=/var/spool/mail/rahul + MALLOC_CHECK_=2 + NXDIR=/usr/NX + 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 + PWD=/home/rahul + QTDIR=/usr + QTINC=/usr/lib/qt-3.3/include + QTLIB=/usr/lib/qt-3.3/lib + QT_IM_MODULE=scim-bridge + QT_PLUGIN_PATH=/home/rahul/.kde/lib/kde4/plugins/:/usr/lib/kde4/plugins/:/home/rahul/.kde/lib/kde4/plugins/:/usr/lib/kde4/plugins/ + SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/2561,unix/unix:/tmp/.ICE-unix/2561 + SHELL=/bin/bash + SHLVL=2 + SSH_AGENT_PID=2422 + SSH_ASKPASS=/usr/bin/ksshaskpass + SSH_AUTH_SOCK=/tmp/ssh-hrGejR2250/agent.2250 + TERM=dumb + USER=rahul + WINDOWPATH=1 + XCURSOR_THEME=default + XDG_DATA_DIRS=/usr/share/kde-settings/kde-profile/default/share:/usr/local/share:/usr/share + XDG_MENU_PREFIX=kde4- + XDG_SESSION_COOKIE=c7c0a3de41d115126a62467e492a5f0f-1236212065.498694-1435713794 + XDM_MANAGED=method=classic + XMODIFIERS=@im=SCIM + _=/usr/bin/kdeinit4 + + + /home/rahul/Programming/chollu/proverb.pro + -spec + /usr/lib/qt4/mkspecs/linux-g++ + -r + CONFIG+=debug + + /usr/bin/qmake-qt4 + true + /home/rahul/Programming/chollu + 2 + + + + buildconfiguration-Debug-buildstep2 + + Debug + + CVS_RSH=ssh + DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-RAM9mXCDvk,guid=4527dab5ad93bbffb83f768f49af1962 + DESKTOP_SESSION=kde + DESKTOP_STARTUP_ID= + DISABLE_IMSETTINGS=1 + DISPLAY=:0.0 + DM_CONTROL=/var/run/xdmctl + DRY_RUN=1 + GNOME_KEYRING_PID=2248 + GNOME_KEYRING_SOCKET=/tmp/keyring-ImWb2g/socket + GPG_AGENT_INFO=/tmp/gpg-TLKsJh/S.gpg-agent:2483:1 + GS_LIB= + GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/rahul/.gtkrc-2.0::/home/rahul/.kde/share/config/gtkrc-2.0 + GTK_IM_MODULE=scim-bridge + GTK_RC_FILES=/etc/gtk/gtkrc:/home/rahul/.gtkrc::/home/rahul/.kde/share/config/gtkrc + G_BROKEN_FILENAMES=1 + HISTSIZE=1000 + HOME=/home/rahul + HOSTNAME=tiger.in + INPUTRC=/etc/inputrc + KDEDIRS=/usr + KDE_FULL_SESSION=true + KDE_IS_PRELINKED=1 + KDE_MULTIHEAD=false + KDE_SESSION_UID=500 + KDE_SESSION_VERSION=4 + LANG=ml_IN.UTF-8 + LANGUAGE= + LESSOPEN=|/usr/bin/lesspipe.sh %s + LOGNAME=rahul + MAIL=/var/spool/mail/rahul + MALLOC_CHECK_=2 + NXDIR=/usr/NX + 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 + PWD=/home/rahul + QTDIR=/usr + QTINC=/usr/lib/qt-3.3/include + QTLIB=/usr/lib/qt-3.3/lib + QT_IM_MODULE=scim-bridge + QT_PLUGIN_PATH=/home/rahul/.kde/lib/kde4/plugins/:/usr/lib/kde4/plugins/:/home/rahul/.kde/lib/kde4/plugins/:/usr/lib/kde4/plugins/ + SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/2561,unix/unix:/tmp/.ICE-unix/2561 + SHELL=/bin/bash + SHLVL=2 + SSH_AGENT_PID=2422 + SSH_ASKPASS=/usr/bin/ksshaskpass + SSH_AUTH_SOCK=/tmp/ssh-hrGejR2250/agent.2250 + TERM=dumb + USER=rahul + WINDOWPATH=1 + XCURSOR_THEME=default + XDG_DATA_DIRS=/usr/share/kde-settings/kde-profile/default/share:/usr/local/share:/usr/share + XDG_MENU_PREFIX=kde4- + XDG_SESSION_COOKIE=c7c0a3de41d115126a62467e492a5f0f-1236212065.498694-1435713794 + XDM_MANAGED=method=classic + XMODIFIERS=@im=SCIM + _=/usr/bin/kdeinit4 + + + -w + + /usr/bin/make + true + /home/rahul/Programming/chollu + + + + buildconfiguration-Debug-cleanstep0 + + Debug + + + + buildconfiguration-Debug-cleanstep1 + + Debug + + CVS_RSH=ssh + DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-RAM9mXCDvk,guid=4527dab5ad93bbffb83f768f49af1962 + DESKTOP_SESSION=kde + DESKTOP_STARTUP_ID= + DISABLE_IMSETTINGS=1 + DISPLAY=:0.0 + DM_CONTROL=/var/run/xdmctl + DRY_RUN=1 + GNOME_KEYRING_PID=2248 + GNOME_KEYRING_SOCKET=/tmp/keyring-ImWb2g/socket + GPG_AGENT_INFO=/tmp/gpg-TLKsJh/S.gpg-agent:2483:1 + GS_LIB= + GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/rahul/.gtkrc-2.0::/home/rahul/.kde/share/config/gtkrc-2.0 + GTK_IM_MODULE=scim-bridge + GTK_RC_FILES=/etc/gtk/gtkrc:/home/rahul/.gtkrc::/home/rahul/.kde/share/config/gtkrc + G_BROKEN_FILENAMES=1 + HISTSIZE=1000 + HOME=/home/rahul + HOSTNAME=tiger.in + INPUTRC=/etc/inputrc + KDEDIRS=/usr + KDE_FULL_SESSION=true + KDE_IS_PRELINKED=1 + KDE_MULTIHEAD=false + KDE_SESSION_UID=500 + KDE_SESSION_VERSION=4 + LANG=ml_IN.UTF-8 + LANGUAGE= + LESSOPEN=|/usr/bin/lesspipe.sh %s + LOGNAME=rahul + MAIL=/var/spool/mail/rahul + MALLOC_CHECK_=2 + NXDIR=/usr/NX + 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 + PWD=/home/rahul + QTDIR=/usr + QTINC=/usr/lib/qt-3.3/include + QTLIB=/usr/lib/qt-3.3/lib + QT_IM_MODULE=scim-bridge + QT_PLUGIN_PATH=/home/rahul/.kde/lib/kde4/plugins/:/usr/lib/kde4/plugins/:/home/rahul/.kde/lib/kde4/plugins/:/usr/lib/kde4/plugins/ + SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/2561,unix/unix:/tmp/.ICE-unix/2561 + SHELL=/bin/bash + SHLVL=2 + SSH_AGENT_PID=2422 + SSH_ASKPASS=/usr/bin/ksshaskpass + SSH_AUTH_SOCK=/tmp/ssh-hrGejR2250/agent.2250 + TERM=dumb + USER=rahul + WINDOWPATH=1 + XCURSOR_THEME=default + XDG_DATA_DIRS=/usr/share/kde-settings/kde-profile/default/share:/usr/local/share:/usr/share + XDG_MENU_PREFIX=kde4- + XDG_SESSION_COOKIE=c7c0a3de41d115126a62467e492a5f0f-1236212065.498694-1435713794 + XDM_MANAGED=method=classic + XMODIFIERS=@im=SCIM + _=/usr/bin/kdeinit4 + + + clean + -w + + /usr/bin/make + true + /home/rahul/Programming/chollu + + + + buildconfigurations + + Debug + + + + buildstep0 + + + + + + buildstep1 + + + + + + + buildstep2 + + + + + + buildsteps + + trolltech.qt4projectmanager.gdbmaros + trolltech.qt4projectmanager.qmake + trolltech.qt4projectmanager.make + + + + cleanstep0 + + + true + + + + cleanstep1 + + + true + + + + cleansteps + + trolltech.qt4projectmanager.gdbmaros + trolltech.qt4projectmanager.make + + + + defaultFileEncoding + UTF-8 + + + project + + + diff --git a/proverb/proverb_ml.qm b/proverb/proverb_ml.qm new file mode 100644 index 0000000..f79db7a Binary files /dev/null and b/proverb/proverb_ml.qm differ 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 @@ + + + + + MainWindow + + + Proverb + പഴഞ്ചൊല്ലില്‍ പതിരില്ല + + + + Get + കണ്ടുപിടിക്കുക + + + + About + വിവരണം + + + + aboutDialog + + + Proverb + പഴഞ്ചൊല്ലില്‍ പതിരില്ല + + + + background-color: rgb(176, 176, 176); + background-color: rgb(176, 176, 176); + + + + About + വിവരണം + + + + GUI for fortune-ml + മലയാളം പഴഞ്ചൊല്ലുകള്‍ കാണിക്കാനുള്ള ഒരു ഉപാധി + + + + Rahul + രാഹുല്‍ + + + + Credits + ബഹുമതികള്‍ + + + + <!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> + <!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> + + + + Options + ഐഛികങ്ങള്‍ + + + + Hilight Search terms + അന്വേഷിച്ച വാക്ക് എടുത്ത് കാണിക്കുക + + + + Confirm quit action + പുറത്ത് കടക്കല്‍ ഉറപ്പ് വരുത്തുക + + + + Apply + അംഗീകരിക്കുക + + + + Help + സഹായം + + + + <!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> + <!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> + + + + <!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> + <!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> + + + 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 +#include +#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 +#include +#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 +#include +#include +#include +#include +#include +#include +// +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" <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<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("

Proverb

GUI for fortune-ml

"));*/ +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 +#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 +#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 +#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 @@ + + + aboutDialog + + + Qt::NonModal + + + + 0 + 0 + 350 + 281 + + + + Proverb + + + background-color: rgb(176, 176, 176); + + + + + + background-color: rgb(176, 176, 176); + + + 0 + + + + About + + + + + + Qt::Vertical + + + + 20 + 13 + + + + + + + + Qt::Horizontal + + + + 25 + 20 + + + + + + + + + + + + + :/icons/icon.png + + + Qt::AlignCenter + + + + + + + + 26 + 75 + false + true + false + false + PreferDefault + true + + + + Proverb + + + Qt::AlignCenter + + + + + + + GUI for fortune-ml + + + Qt::AlignCenter + + + + + + + + + Qt::Horizontal + + + + 28 + 20 + + + + + + + + Qt::Vertical + + + + 20 + 100 + + + + + + + + Qt::Horizontal + + + + 60 + 20 + + + + + + + + Rahul + + + Qt::AlignCenter + + + + + + + Qt::Horizontal + + + + 63 + 20 + + + + + + + + + Credits + + + + + + <!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> + + + + + + + + Options + + + + + + Qt::Vertical + + + + 20 + 66 + + + + + + + + Qt::Horizontal + + + + 7 + 20 + + + + + + + + + + Hilight Search terms + + + true + + + + + + + Confirm quit action + + + + + + + + + Qt::Horizontal + + + + 8 + 17 + + + + + + + + Qt::Vertical + + + + 20 + 65 + + + + + + + + Qt::Horizontal + + + + 57 + 20 + + + + + + + + +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); +} + + + Apply + + + + + + + Qt::Horizontal + + + + 56 + 20 + + + + + + + + + Help + + + + + + + + Qt::Vertical + + + + 20 + 34 + + + + + + + + <!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> + + + Qt::AlignCenter + + + true + + + + + + + + + Qt::Vertical + + + + 20 + 34 + + + + + + + + + + + + + + + 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 @@ + + + MainWindow + + + + 0 + 0 + 598 + 388 + + + + Proverb + + + + :/icons/icon.png:/icons/icon.png + + + .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)); +} + + + + + + + + + + + + + +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); +} + + + Get + + + + + + + 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); +} + + + About + + + + :/icons/about.png:/icons/about.png + + + + 20 + 20 + + + + Qt::ToolButtonIconOnly + + + + + + + + + lineEdit + textEdit + + + + + + 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/\340\264\252\340\264\264\340\264\236\340\265\215\340\264\232\340\265\212\340\264\262\340\265\215\340\264\262\340\265\215.desktop" "b/proverb/\340\264\252\340\264\264\340\264\236\340\265\215\340\264\232\340\265\212\340\264\262\340\265\215\340\264\262\340\265\215.desktop" new file mode 100644 index 0000000..ba566dc --- /dev/null +++ "b/proverb/\340\264\252\340\264\264\340\264\236\340\265\215\340\264\232\340\265\212\340\264\262\340\265\215\340\264\262\340\265\215.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 -- cgit