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

List:       kde-commits
Subject:    kdenonbeta/kturtle
From:       Anne-Marie Mahfouf <annma () kde ! org>
Date:       2004-01-23 3:56:11
Message-ID: 20040123035611.176291911 () office ! kde ! org
[Download RAW message or body]

CVS commit by annma: 

Toggle Insert is now working :) either from the Menu item or from the key


  M +6 -6      TODO   1.36
  M +9 -8      src/kturtle.cpp   1.47
  M +2 -0      src/kturtleui.rc   1.14


--- kdenonbeta/kturtle/TODO  #1.35:1.36
@@ -46,11 +46,11 @@
 cies: Implement either a Kate-part or a KTextEditor as editor widget. ANNMA DID \
IT!!!  Now the minor issues regarding the intergretion should be looked at
-- editor-kaction-connections
-- on save the title does not appear in the titlebar
-- save as does not open in the logo dir
-- Qfile->KURL migration
+- editor-kaction-connections                                     //done
+- on save the title does not appear in the titlebar  //done
+- save as does not open in the logo dir                 //done
+- Qfile->KURL migration                                        //done as far as I \
                can go at the moment
 - CLI-file-selection (for mimetype eaz)
-- recentfileshistory (action added, have to get it working)
-- linenumbers (what di we need more than the View->Show Line numbers or F11 menu?)
+- recentfileshistory (action added, have to get it working)     //done
+- linenumbers (what di we need more than the View->Show Line numbers or F11 menu?)  \
//done  
 - highlighting (a kturtle language sensitive highlight script)

--- kdenonbeta/kturtle/src/kturtle.cpp  #1.46:1.47
@@ -41,5 +41,4 @@
 
 // StatusBar field IDs
-#define KTURTLE_ID_GEN 1
 
 
@@ -120,6 +119,5 @@ void MainWindow::setupActions() {
     KStdAction::selectAll(this, SLOT(slotSelectAll()), ac);
     KStdAction::deselect(this, SLOT(slotClearSelection()), ac);
-    new KToggleAction(i18n("Toggle Insert"), Key_Insert, this, \
                SLOT(slotToggleInsert()), ac, "insert");
-    // ^ not working!!!
+    new KToggleAction(i18n("Toggle Insert"), Key_Insert, this, \
SLOT(slotToggleInsert()), ac, "set_insert");  KStdAction::find(this, \
SLOT(slotFind()), ac);  KStdAction::findNext(this, SLOT(slotFindNext()), ac);
@@ -128,5 +126,5 @@ void MainWindow::setupActions() {
     
     // setup view actions
-    new KToggleAction(i18n("Show &Line Numbers"), 0, Qt::Key_F11, this, \
SLOT(slotToggleLineNumbers()), ac, "line_numbers"); +    //new \
KToggleAction(i18n("Show &Line Numbers"), 0, Qt::Key_F11, this, \
                SLOT(slotToggleLineNumbers()), ac, "line_numbers");
     m_fullscreen = KStdAction::fullScreen(this, SLOT( slotToggleFullscreen() ), ac, \
this, "full_screen");  m_fullscreen->setChecked(b_fullscreen);
@@ -184,5 +182,5 @@ void MainWindow::setupStatusBar() {
 
     // fill the statusbar
-    slotStatusBar(i18n("v0.1"), 0); // the version part
+    slotStatusBar(i18n("INS"), 0); 
     slotStatusBar(i18n("Welcome to KTurtle..."), 1); // the message part
 }
@@ -497,7 +495,10 @@ void MainWindow::slotClearSelection() {
 
 void MainWindow::slotToggleInsert() {
-    KToggleAction *a = dynamic_cast<KToggleAction*>( \
editor->actionCollection()->action("set_insert") ); +      KToggleAction *a = \
dynamic_cast<KToggleAction*>(editor->actionCollection()->action("set_insert"));  \
                a->activate();
-    slotStatusBar(a->isChecked() ? i18n(" OVR ") : i18n(" INS "), 0);
+     if (a)
+      {
+        statusBar()->changeItem(a->isChecked() ? i18n(" OVR ") : i18n(" INS "),0); 
+     } 
 }
 

--- kdenonbeta/kturtle/src/kturtleui.rc  #1.13:1.14
@@ -26,4 +26,6 @@
       <Action name="edit_paste" />
       <Separator />
+      <Action name="set_insert"/>
+      <Separator />
       <Action name="edit_find" />
       <Action name="edit_find_next" />


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

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