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

List:       kde-commits
Subject:    kdebase/kate/app
From:       Christoph Cullmann <cullmann () kde ! org>
Date:       2005-04-27 20:03:09
Message-ID: 20050427200309.36BB0630 () office ! kde ! org
[Download RAW message or body]

CVS commit by cullmann: 

update args, shorter


  M +2 -4      kateapp.cpp   1.120
  M +2 -2      kateappIface.cpp   1.10
  M +1 -0      kateappIface.h   1.13
  M +8 -8      katemain.cpp   1.63


--- kdebase/kate/app/kateapp.cpp  #1.119:1.120
@@ -152,7 +152,7 @@ bool KateApp::startupKate ()
 {
   // user specified session to open
-  if (m_args->isSet ("start-session"))
+  if (m_args->isSet ("start"))
   {
-    sessionManager()->activateSession (sessionManager()->giveSession \
(m_args->getOption("start-session")), false, false); +    \
sessionManager()->activateSession (sessionManager()->giveSession \
(m_args->getOption("start")), false, false);  }
   else if (!m_args->isSet( "stdin" ) && (m_args->count() == 0)) // only start \
session if no files specified @@ -312,6 +312,4 @@ bool KateApp::openURL (const KURL \
&url,   bool KateApp::setCursor (int line, int column)
 {
-  kdDebug () << "SET CURSOR" << endl;
-
   KateMainWindow *mainWindow = activeMainWindow ();
 

--- kdebase/kate/app/kateappIface.cpp  #1.9:1.10
@@ -24,6 +24,4 @@
 #include "katemainwindow.h"
 
-#include <kdebug.h>
-
 KateAppDCOPIface::KateAppDCOPIface (KateApp *app) : DCOPObject ("KateApplication")
      , m_app (app)
@@ -93,2 +91,4 @@ bool KateAppDCOPIface::activateSession (
   return true;
 }
+
+// kate: space-indent on; indent-width 2; replace-tabs on;

--- kdebase/kate/app/katemain.cpp  #1.62:1.63
@@ -36,15 +36,15 @@ static KCmdLineOptions options[] =
 {
     { "s", 0 , 0 },
-    { "start-session <arg>",      I18N_NOOP("Start Kate with a given session"), 0 },
+    { "start <name>", I18N_NOOP("Start Kate with a given session"), 0 },
     { "u", 0, 0 },
     { "use", I18N_NOOP("Use a already running kate instance (if possible)"), 0 },
     { "p", 0, 0 },
-    { "pid <arg>", I18N_NOOP("Only try to reuse kate instance with this pid"), 0 },
+    { "pid <pid>", I18N_NOOP("Only try to reuse kate instance with this pid"), 0 },
     { "e", 0, 0 },
-    { "encoding <arg>", I18N_NOOP("Set encoding for the file to open"), 0 },
+    { "encoding <name>", I18N_NOOP("Set encoding for the file to open"), 0 },
     { "l", 0, 0 },
-    { "line <arg>", I18N_NOOP("Navigate to this line"), 0 },
+    { "line <line>", I18N_NOOP("Navigate to this line"), 0 },
     { "c", 0, 0 },
-    { "column <arg>", I18N_NOOP("Navigate to this column"), 0 },
+    { "column <column>", I18N_NOOP("Navigate to this column"), 0 },
     { "i", 0, 0 },
     { "stdin",    I18N_NOOP("Read the contents of stdin"), 0 },
@@ -138,6 +138,6 @@ extern "C" KDE_EXPORT int kdemain( int a
       DCOPRef kRef (kateApp, "KateApplication");
 
-      if (args->isSet ("start-session"))
-        kRef.call( "activateSession", QString (args->getOption("start-session")) );
+      if (args->isSet ("start"))
+        kRef.call( "activateSession", QString (args->getOption("start")) );
 
       QString enc = args->isSet("encoding") ? args->getOption("encoding") : "";


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

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