[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 91041] triple-click should select trailing newline
From:       Anders Lund <anders () alweb ! dk>
Date:       2004-10-15 10:54:46
Message-ID: 20041015105446.27894.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
        
http://bugs.kde.org/show_bug.cgi?id=91041        
anders alweb dk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From anders alweb dk  2004-10-15 12:54 -------
CVS commit by alund: 

Make tripleclick select the bol of the below line.
Investigation shows that this was the original behavior of the feature, changed by me \
to fix #49999 in november 2002. Later changes to kateview means that the behavior \
described by #49999 will not appear again, so here you go :) Can someone fix this in \
                HEAD, as I have changes in katedocument.cpp that are not ready for \
                comitting?
CCMAIL: 91041-done bugs kde org


  M +44 -21    katedocument.cpp   1.734.2.9


--- kdelibs/kate/part/katedocument.cpp  #1.734.2.8:1.734.2.9
 @ -3277,5 +3277,5  @ void KateDocument::selectLine( const Kat
     clearSelection ();
 
-  setSelection (cursor.line(), 0, cursor.line()/*+1, 0*/, \
m_buffer->plainLine(cursor.line())->length() ); +  setSelection (cursor.line(), 0, \
cursor.line()+1, 0 );  }
 
 @ -4343,6 +4343,28  @ void KateDocument::slotModifiedOnDisk( K
     m_isasking = 1;
 
-    int exitval = ( v && v->hasFocus() ? 0 : -1 );
+    if ( m_modOnHdReason == 3 ) // deleted
+    {
+      switch ( KMessageBox::warningYesNoCancel( widget(),
+               reasonedMOHString() + "\n\n" + i18n("What do you want to do?"),
+               i18n("File Was Deleted on Disk"),
+               i18n("&Save As..."), i18n("&Ignore Changes")) )
+      {
+        case KMessageBox::Yes: // "save file"
+          m_modOnHd = false; // trick save() to not ask again
+          emit modifiedOnDisc( this, false, 0 );
+          saveAs();
+          m_isasking = 0;
+          break;
 
+          case KMessageBox::No:  // "ignore changes"
+            m_modOnHd = false;
+            emit modifiedOnDisc( this, false, 0 );
+            m_isasking = 0;
+            break;
+
+            default:               // cancel: ignore next focus event
+              m_isasking = -1;
+      }
+    } else {
     switch ( KMessageBox::warningYesNoCancel( widget(),
                 reasonedMOHString() + "\n\n" + i18n("What do you want to do?"),
 @ -4367,4 +4389,5  @ void KateDocument::slotModifiedOnDisk( K
     }
   }
+  }
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic