team4alfanous team mailing list archive
-
team4alfanous team
-
Mailing list archive
-
Message #00237
[Branch ~team4alfanous/alfanous/alfanous-git] Rev 423: add send_feedback button to alfanousDesktop main menu
------------------------------------------------------------
revno: 423
committer: Assem Chelli <assem.ch@xxxxxxxxx>
timestamp: Mon 2012-11-05 01:11:52 +0100
message:
add send_feedback button to alfanousDesktop main menu
modified:
src/alfanous-desktop/Gui.py
src/alfanous-desktop/UI/mainform.ui
--
lp:alfanous
https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git
Your team Alfanous team is subscribed to branch lp:alfanous.
To unsubscribe from this branch go to https://code.launchpad.net/~team4alfanous/alfanous/alfanous-git/+edit-subscription
=== modified file 'src/alfanous-desktop/Gui.py'
--- src/alfanous-desktop/Gui.py 2012-11-04 16:05:31 +0000
+++ src/alfanous-desktop/Gui.py 2012-11-05 00:11:52 +0000
@@ -16,12 +16,10 @@
## along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
-TODO use Alfanous.outputs.Json to request different info the first time
TODO use Table grid for view , use CSS good schema instead
TODO complete all new Ui features
-TODO relate to AboutDlg / PreferenceDlg / Hints dialog
+TODO relate to PreferenceDlg / Hints dialog
TODO use css and simplify texts to make a good localization
-TODO clean Code
TODO sura's name also in English
TODO fields name in english and arabic / explication (id)
TODO add qurany project for Subjects in english
@@ -70,6 +68,7 @@
+
CSS = """
<style type="text/css">
#TODO : new simple&clean style
@@ -192,6 +191,8 @@
QtCore.QObject.connect( self.m_exit, QtCore.SIGNAL( "clicked()" ), self.exit )
QtCore.QObject.connect( self.m_help, QtCore.SIGNAL( "clicked()" ), self.help )
QtCore.QObject.connect( self.m_about, QtCore.SIGNAL( "triggered(bool)" ), self.about )
+ QtCore.QObject.connect( self.action_Send_Feedback, QtCore.SIGNAL( "triggered(bool)" ), self.send_feedback )
+
QtCore.QObject.connect( self.a_save, QtCore.SIGNAL( "clicked()" ), self.save_results )
QtCore.QObject.connect( self.a_print, QtCore.SIGNAL( "clicked()" ), self.print_results )
@@ -617,14 +618,16 @@
painter.end()
+ def send_feedback( self , state ):
+ """ Open feedback url in an external browser """
+ #QtGui.QDesktopServices.openUrl() ## How to specify the URL , feedback.alfanous.org
+
def about( self , state ):
""" Show about-dialog """
-
AboutDialog = QtGui.QDialog()
dlg=Ui_aboutDlg()
dlg.setupUi(AboutDialog)
- AboutDialog.exec_()
-
+ AboutDialog.exec_()
def help( self ):
""" deprecated """
=== modified file 'src/alfanous-desktop/UI/mainform.ui'
--- src/alfanous-desktop/UI/mainform.ui 2012-08-15 12:16:03 +0000
+++ src/alfanous-desktop/UI/mainform.ui 2012-11-05 00:11:52 +0000
@@ -447,12 +447,12 @@
</property>
<addaction name="m_help"/>
<addaction name="separator"/>
+ <addaction name="action_Send_Feedback"/>
<addaction name="actionDeclare_a_bug"/>
<addaction name="actionTranslate"/>
<addaction name="actionFunds"/>
<addaction name="separator"/>
<addaction name="m_about"/>
- <addaction name="m_abou_project"/>
</widget>
<widget class="QMenu" name="menu_4">
<property name="title">
@@ -3244,7 +3244,10 @@
<normaloff>:/resources/document_properties.png</normaloff>:/resources/document_properties.png</iconset>
</property>
<property name="text">
- <string>About interface</string>
+ <string>&About</string>
+ </property>
+ <property name="toolTip">
+ <string>About AlfanousDesktop</string>
</property>
<property name="menuRole">
<enum>QAction::AboutRole</enum>
@@ -3319,7 +3322,7 @@
<normaloff>:/resources/contents.png</normaloff>:/resources/contents.png</iconset>
</property>
<property name="text">
- <string>Help</string>
+ <string>&Help</string>
</property>
</action>
<action name="m_features_show">
@@ -3710,11 +3713,14 @@
</action>
<action name="actionChange_Index_Path">
<property name="enabled">
- <bool>true</bool>
+ <bool>false</bool>
</property>
<property name="text">
<string>Change Path</string>
</property>
+ <property name="visible">
+ <bool>true</bool>
+ </property>
</action>
<action name="actionAdd_Recitation">
<property name="icon">
@@ -3783,6 +3789,14 @@
<string>About project</string>
</property>
</action>
+ <action name="action_Send_Feedback">
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>&Send Feedback</string>
+ </property>
+ </action>
</widget>
<tabstops>
<tabstop>o_search</tabstop>