Fixed an issue in the Chat log by removing the 'Cut' action. That doesn't work because the log is read only. 5_3_x

Thu, 28 Feb 2013 16:59:30 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 28 Feb 2013 16:59:30 +0100
branch
5_3_x
changeset 2437
478409839f62
parent 2435
6b155392518d
child 2441
e5221566de3a

Fixed an issue in the Chat log by removing the 'Cut' action. That doesn't work because the log is read only.

Cooperation/ChatWidget.py file | annotate | diff | comparison | revisions
Documentation/Help/source.qch file | annotate | diff | comparison | revisions
Documentation/Help/source.qhp file | annotate | diff | comparison | revisions
Documentation/Source/eric5.Cooperation.ChatWidget.html file | annotate | diff | comparison | revisions
--- a/Cooperation/ChatWidget.py	Tue Feb 26 19:33:22 2013 +0100
+++ b/Cooperation/ChatWidget.py	Thu Feb 28 16:59:30 2013 +0100
@@ -477,10 +477,6 @@
         Private slot to initialize the chat edit context menu.
         """
         self.__chatMenu = QMenu(self)
-        self.__cutChatAct = \
-            self.__chatMenu.addAction(
-                UI.PixmapCache.getIcon("editCut.png"),
-                self.trUtf8("Cut"), self.__cutChat)
         self.__copyChatAct = \
             self.__chatMenu.addAction(
                 UI.PixmapCache.getIcon("editCopy.png"),
@@ -515,7 +511,6 @@
         @param yes flag signaling the availability of selected text (boolean)
         """
         self.__copyChatAct.setEnabled(yes)
-        self.__cutChatAct.setEnabled(yes)
     
     @pyqtSlot(QPoint)
     def on_chatEdit_customContextMenuRequested(self, pos):
@@ -582,12 +577,6 @@
         """
         self.chatEdit.copy()
     
-    def __cutChat(self):
-        """
-        Private slot to cut the contents of the chat display to the clipboard.
-        """
-        self.chatEdit.cut()
-    
     def __copyAllChat(self):
         """
         Private slot to copy the contents of the chat display to the clipboard.
Binary file Documentation/Help/source.qch has changed
--- a/Documentation/Help/source.qhp	Tue Feb 26 19:33:22 2013 +0100
+++ b/Documentation/Help/source.qhp	Thu Feb 28 16:59:30 2013 +0100
@@ -1882,7 +1882,6 @@
       <keyword name="ChatWidget.__copyAllChat" id="ChatWidget.__copyAllChat" ref="eric5.Cooperation.ChatWidget.html#ChatWidget.__copyAllChat" />
       <keyword name="ChatWidget.__copyChat" id="ChatWidget.__copyChat" ref="eric5.Cooperation.ChatWidget.html#ChatWidget.__copyChat" />
       <keyword name="ChatWidget.__cutAllChat" id="ChatWidget.__cutAllChat" ref="eric5.Cooperation.ChatWidget.html#ChatWidget.__cutAllChat" />
-      <keyword name="ChatWidget.__cutChat" id="ChatWidget.__cutChat" ref="eric5.Cooperation.ChatWidget.html#ChatWidget.__cutChat" />
       <keyword name="ChatWidget.__editorCommandMessage" id="ChatWidget.__editorCommandMessage" ref="eric5.Cooperation.ChatWidget.html#ChatWidget.__editorCommandMessage" />
       <keyword name="ChatWidget.__getConnectionParameters" id="ChatWidget.__getConnectionParameters" ref="eric5.Cooperation.ChatWidget.html#ChatWidget.__getConnectionParameters" />
       <keyword name="ChatWidget.__handleMessage" id="ChatWidget.__handleMessage" ref="eric5.Cooperation.ChatWidget.html#ChatWidget.__handleMessage" />
--- a/Documentation/Source/eric5.Cooperation.ChatWidget.html	Tue Feb 26 19:33:22 2013 +0100
+++ b/Documentation/Source/eric5.Cooperation.ChatWidget.html	Thu Feb 28 16:59:30 2013 +0100
@@ -104,9 +104,6 @@
 <td><a href="#ChatWidget.__cutAllChat">__cutAllChat</a></td>
 <td>Private slot to cut the contents of the chat display to the clipboard.</td>
 </tr><tr>
-<td><a href="#ChatWidget.__cutChat">__cutChat</a></td>
-<td>Private slot to cut the contents of the chat display to the clipboard.</td>
-</tr><tr>
 <td><a href="#ChatWidget.__editorCommandMessage">__editorCommandMessage</a></td>
 <td>Private slot to handle editor command messages from the client.</td>
 </tr><tr>
@@ -256,11 +253,6 @@
 <b>__cutAllChat</b>(<i></i>)
 <p>
         Private slot to cut the contents of the chat display to the clipboard.
-</p><a NAME="ChatWidget.__cutChat" ID="ChatWidget.__cutChat"></a>
-<h4>ChatWidget.__cutChat</h4>
-<b>__cutChat</b>(<i></i>)
-<p>
-        Private slot to cut the contents of the chat display to the clipboard.
 </p><a NAME="ChatWidget.__editorCommandMessage" ID="ChatWidget.__editorCommandMessage"></a>
 <h4>ChatWidget.__editorCommandMessage</h4>
 <b>__editorCommandMessage</b>(<i>hash, fileName, message</i>)

eric ide

mercurial