Rename KCmd to avoid conflicts with KDE4

pull/2/head
Timothy Pearson 11 年前
父節點 98eb308fc1
當前提交 5e664c2e4a

@ -6,10 +6,10 @@
#include <stdio.h>
#include <assert.h>
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "+crash|malloc|div0|assert", "Type of crash.", 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
enum CrashType { Crash, Malloc, Div0, Assert };

@ -42,7 +42,7 @@
static const char version[] = "1.0";
static const char description[] = I18N_NOOP( "TDE crash handler gives the user feedback if a program crashed" );
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{"signal <number>", I18N_NOOP("The signal number that was caught"), 0},
{"appname <name>", I18N_NOOP("Name of the program"), 0},
@ -54,7 +54,7 @@ static const KCmdLineOptions options[] =
{"startupid <id>", I18N_NOOP("Startup ID of the program"), 0},
{"tdeinit", I18N_NOOP("The program was started by tdeinit"), 0},
{"safer", I18N_NOOP("Disable arbitrary disk access"), 0},
KCmdLineLastOption
TDECmdLineLastOption
};
int main( int argc, char* argv[] )

@ -26,9 +26,9 @@
static const char description[] = I18N_NOOP( "TDE's application finder" );
static KCmdLineOptions options[] = {
static TDECmdLineOptions options[] = {
{ "dir <dir>", I18N_NOOP( "Install .desktop files into directory <dir>" ), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main( int argc, char *argv[] )

@ -35,7 +35,7 @@
#include <stdlib.h>
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "s", 0 , 0 },
{ "start <name>", I18N_NOOP("Start Kate with a given session"), 0 },
@ -52,7 +52,7 @@ static KCmdLineOptions options[] =
{ "i", 0, 0 },
{ "stdin", I18N_NOOP("Read the contents of stdin"), 0 },
{ "+[URL]", I18N_NOOP("Document to open"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
extern "C" KDE_EXPORT int kdemain( int argc, char **argv )

@ -526,14 +526,14 @@ void KWrite::restore()
}
}
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "stdin", I18N_NOOP("Read the contents of stdin"), 0},
{ "encoding <argument>", I18N_NOOP("Set encoding for the file to open"), 0 },
{ "line <argument>", I18N_NOOP("Navigate to this line"), 0 },
{ "column <argument>", I18N_NOOP("Navigate to this column"), 0 },
{ "+[URL]", I18N_NOOP("Document to open"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
extern "C" KDE_EXPORT int kdemain(int argc, char **argv)

@ -37,11 +37,11 @@
#include <X11/Xlib.h>
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "list", I18N_NOOP("List modules that are run at startup"), 0 },
{ "+module", I18N_NOOP("Configuration module to run"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
static int ready[ 2 ];

@ -101,11 +101,11 @@ void FileTypeDialog::slotDatabaseChanged()
#include "keditfiletype.moc"
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "parent <winid>", I18N_NOOP("Makes the dialog transient for the window specified by winid"), 0 },
{ "+mimetype", I18N_NOOP("File type to edit (e.g. text/html)"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main(int argc, char ** argv)

@ -27,10 +27,10 @@
#include "tderandrapp.h"
static const char tderandrtrayVersion[] = "0.5";
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "login", I18N_NOOP("Application is being auto-started at TDE session start"), 0L },
KCmdLineLastOption
TDECmdLineLastOption
};
int main(int argc, char **argv)

@ -106,10 +106,10 @@ CFontViewerApp::CFontViewerApp()
}
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "+[URL]", I18N_NOOP("URL to open"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
static TDEAboutData aboutData("tdefontview", I18N_NOOP("Font Viewer"), 0, I18N_NOOP("Simple font viewer"),

@ -10,9 +10,9 @@
#include "kdcopwindow.h"
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
KCmdLineLastOption
TDECmdLineLastOption
};
int main( int argc, char ** argv )

@ -67,12 +67,12 @@ TQStringList readAreaList()
return lst;
}
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "fullmode", I18N_NOOP("Show the fully-fledged dialog instead of the default list dialog"), 0 },
{ "on <area>", /*I18N_NOOP TODO*/ "Turn area on", 0 },
{ "off <area>", /*I18N_NOOP TODO*/ "Turn area off", 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main(int argc, char ** argv)

@ -19,10 +19,10 @@
#include "passwd.h"
#include "passwddlg.h"
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "+[user]", I18N_NOOP("Change password of this user"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};

@ -38,13 +38,13 @@
#include "kwebdesktop.moc"
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "+width", I18N_NOOP("Width of the image to create"), 0 },
{ "+height", I18N_NOOP("Height of the image to create"), 0 },
{ "+file", I18N_NOOP("File sname where to dump the output in png format"), 0 },
{ "+[URL]", I18N_NOOP("URL to open (if not specified, it is read from kwebdesktoprc)"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
KWebDesktopRun::KWebDesktopRun( KWebDesktop* webDesktop, const KURL & url )

@ -81,11 +81,11 @@ TQString getDocumentPath()
return s_documentPath;
}
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "xdgname <argument>", I18N_NOOP("XDG variable name to open"), 0 },
{ "getpath", I18N_NOOP("Do not launch Konqueror; instead print path to directory if it exists)"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main( int argc, char **argv)

@ -153,14 +153,14 @@ bool MyApp::x11EventFilter( XEvent *ev )
}
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "forcelock", I18N_NOOP("Force session locking"), 0 },
{ "dontlock", I18N_NOOP("Only start screensaver"), 0 },
{ "securedialog", I18N_NOOP("Launch the secure dialog"), 0 },
{ "blank", I18N_NOOP("Only use the blank screensaver"), 0 },
{ "internal <pid>", I18N_NOOP("TDE internal command for background process loading"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
void restore_hidden_override_redirect_windows() {

@ -59,7 +59,7 @@ static const char description[] =
static const char version[] = VERSION;
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "x-root", I18N_NOOP("Use this if the desktop window appears as a real window"), 0 },
{ "noautostart", I18N_NOOP("Obsolete"), 0 },
@ -67,7 +67,7 @@ static KCmdLineOptions options[] =
#ifdef COMPOSITE
{ "bg-transparency", I18N_NOOP("Enable background transparency"), 0 },
#endif
KCmdLineLastOption
TDECmdLineLastOption
};
bool argb_visual = false;

@ -60,7 +60,7 @@ using namespace std;
extern "C" { int XSetTransientForHint( Display *, unsigned long, unsigned long ); }
#endif // Q_WS_X11
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "yesno <text>", I18N_NOOP("Question message box with yes/no buttons"), 0 },
{ "yesnocancel <text>", I18N_NOOP("Question message box with yes/no/cancel buttons"), 0 },
@ -98,7 +98,7 @@ static KCmdLineOptions options[] =
{ "dontagain <file:entry>", I18N_NOOP("Config file and option name for saving the \"dont-show/ask-again\" state"), 0 },
{ "+[arg]", I18N_NOOP("Arguments - depending on main option"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
// this class hooks into the eventloop and outputs the id

@ -13,10 +13,10 @@
static const char description[] =
I18N_NOOP("TDE file find utility");
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "+[searchpath]", I18N_NOOP("Path(s) to search"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main( int argc, char ** argv )

@ -52,10 +52,10 @@ int Application::newInstance()
return KUniqueApplication::newInstance();
}
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "+[url]", I18N_NOOP("URL to display"), "" },
KCmdLineLastOption
TDECmdLineLastOption
};
extern "C" int KDE_EXPORT kdemain( int argc, char **argv )

@ -6,10 +6,10 @@
#include "htmlsearch.h"
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "lang <lang>", I18N_NOOP("The language to index"), "en" },
KCmdLineLastOption // End of options.
TDECmdLineLastOption // End of options.
};

@ -161,11 +161,11 @@ void IndexBuilder::quit()
}
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "+cmdfile", I18N_NOOP("Document to be indexed"), 0 },
{ "+indexdir", I18N_NOOP("Index directory"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main( int argc, char **argv )

@ -25,11 +25,11 @@
using namespace KHotKeys;
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
// no need for I18N_NOOP(), this is not supposed to be used directly
{ "id <id>", "Id of the script to add to khotkeysrc.", 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main( int argc, char* argv[] )

@ -67,10 +67,10 @@
#include "version.h"
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "test", "Test the basic kasbar code", 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main( int argc, char **argv )

@ -60,12 +60,12 @@ KPanelApplet::Position directionToPosition( int d )
}
}
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "+desktopfile", I18N_NOOP("The applet's desktop file"), 0 },
{ "configfile <file>", I18N_NOOP("The config file to be used"), 0 },
{ "callbackid <id>", I18N_NOOP("DCOP callback id of the applet container"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
extern "C" KDE_EXPORT int kdemain( int argc, char ** argv )

@ -42,10 +42,10 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "+desktopfile", I18N_NOOP("The extensions desktop file"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
KPanelExtension* loadExtension(const AppletInfo& info)

@ -46,12 +46,12 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <X11/Xlib.h>
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "+desktopfile", I18N_NOOP("The extension's desktop file"), 0 },
{ "configfile <file>", I18N_NOOP("The config file to be used"), 0 },
{ "callbackid <id>", I18N_NOOP("DCOP callback id of the extension container"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
extern "C" KDE_EXPORT int kdemain( int argc, char ** argv )

@ -31,11 +31,11 @@
static const char description[] = I18N_NOOP("TDE menu editor");
static const char version[] = "0.7";
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "+[menu]", I18N_NOOP("Sub menu to pre-select"), 0 },
{ "+[menu-id]", I18N_NOOP("Menu entry to pre-select"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
static KMenuEdit *menuEdit = 0;

@ -59,13 +59,13 @@ TQCString clientApp::startup_id_str;
bool clientApp::m_ok = true;
bool s_interactive = true;
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "noninteractive", I18N_NOOP("Non interactive use: no message boxes"), 0},
{ "commands", I18N_NOOP("Show available commands"), 0},
{ "+command", I18N_NOOP("Command (see --commands)"), 0},
{ "+[URL(s)]", I18N_NOOP("Arguments for command"), 0},
KCmdLineLastOption
TDECmdLineLastOption
};
extern "C" KDE_EXPORT int kdemain( int argc, char **argv )

@ -37,10 +37,10 @@
#include <X11/Xlib.h>
static const KCmdLineOptions cmdLineOptions[] =
static const TDECmdLineOptions cmdLineOptions[] =
{
{ "+directory", I18N_NOOP( "Directory to scan for extra bookmarks" ), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
// The code for this function was taken from kdesktop/kcheckrunning.cpp

@ -40,7 +40,7 @@
#include <kbookmarkmanager.h>
#include <kbookmarkexporter.h>
static KCmdLineOptions options[] = {
static TDECmdLineOptions options[] = {
{"importmoz <filename>", I18N_NOOP("Import bookmarks from a file in Mozilla format"), 0},
{"importns <filename>", I18N_NOOP("Import bookmarks from a file in Netscape (4.x and earlier) format"), 0},
{"importie <filename>", I18N_NOOP("Import bookmarks from a file in Internet Explorer's Favorites format"), 0},
@ -56,7 +56,7 @@ static KCmdLineOptions options[] = {
{"customcaption <caption>", I18N_NOOP("Set the user readable caption for example \"Konsole\""), 0},
{"nobrowser", I18N_NOOP("Hide all browser related functions"), 0},
{"+[file]", I18N_NOOP("File to edit"), 0},
KCmdLineLastOption
TDECmdLineLastOption
};
static void continueInWindow(TQString _wname) {

@ -36,7 +36,7 @@
#include <tqwidgetlist.h>
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "silent", I18N_NOOP("Start without a default window"), 0 },
{ "preload", I18N_NOOP("Preload for later use"), 0 },
@ -45,7 +45,7 @@ static const KCmdLineOptions options[] =
{ "mimetype <mimetype>", I18N_NOOP("Mimetype to use for this URL (e.g. text/html or inode/directory)"), 0 },
{ "select", I18N_NOOP("For URLs that point to files, opens the directory and selects the file, instead of opening the actual file"), 0 },
{ "+[URL]", I18N_NOOP("Location to open"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
extern "C" KDE_EXPORT int kdemain( int argc, char **argv )

@ -61,7 +61,7 @@ static const char description[] =
I18N_NOOP("X terminal for use with TDE.");
// { "T <title>", 0, 0 },
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "name <name>", I18N_NOOP("Set window class"), 0 },
{ "ls", I18N_NOOP("Start login shell"), 0 },
@ -91,7 +91,7 @@ static KCmdLineOptions options[] =
{ "!e <command>", I18N_NOOP("Execute 'command' instead of shell"), 0 },
// WABA: All options after -e are treated as arguments.
{ "+[args]", I18N_NOOP("Arguments for 'command'"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
static bool has_noxft = false;

@ -32,10 +32,10 @@
#include "kpager.h"
static KCmdLineOptions pagerOpts[] =
static TDECmdLineOptions pagerOpts[] =
{
{ "hidden", I18N_NOOP("Create pager but keep the window hidden"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
bool closed_by_sm = false;

@ -26,11 +26,11 @@
static const char description[] = I18N_NOOP("KPersonalizer");
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "r", I18N_NOOP("Personalizer is restarted by itself"), 0 },
{ "before-session", I18N_NOOP("Personalizer is running before Trinity session"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main(int argc, char *argv[])

@ -32,14 +32,14 @@
#include <kaboutdata.h>
#include <stdio.h>
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "file <file>", I18N_NOOP("Use <file> instead of global config"), 0 },
{ "group <group>", I18N_NOOP("Group to look in"), "TDE" },
{ "key <key>", I18N_NOOP("Key to look for"), 0 },
{ "default <default>", I18N_NOOP("Default value"), 0 },
{ "type <type>", I18N_NOOP("Type of variable"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main(int argc, char **argv)
{

@ -14,14 +14,14 @@
#include <kaboutdata.h>
#include <stdio.h>
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "file <file>", I18N_NOOP("Use <file> instead of global config"), 0 },
{ "group <group>", I18N_NOOP("Group to look in"), "TDE" },
{ "key <key>", I18N_NOOP("Key to look for"), 0 },
{ "type <type>", I18N_NOOP("Type of variable. Use \"bool\" for a boolean, otherwise it is treated as a string"), 0 },
{ "+value", I18N_NOOP( "The value to write. Mandatory, on a shell use '' for empty" ), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main(int argc, char **argv)
{

@ -39,9 +39,9 @@ static const char description[] =
static const char version[] = "0.1";
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
KCmdLineLastOption
TDECmdLineLastOption
};
int main(int argc, char **argv)

@ -29,7 +29,7 @@ Copyright (C) 2000 Matthias Ettrich <ettrich@kde.org>
static const char version[] = "0.4";
static const char description[] = I18N_NOOP( "The reliable TDE session manager that talks the standard X11R6 \nsession management protocol (XSMP)." );
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "r", 0, 0 },
{ "restore", I18N_NOOP("Restores the saved user session if available"), 0},
@ -37,7 +37,7 @@ static const KCmdLineOptions options[] =
{ "windowmanager <wm>", I18N_NOOP("Starts 'wm' in case no other window manager is \nparticipating in the session. Default is 'twin'"), 0},
{ "windowmanageraddargs <wm>", I18N_NOOP("Pass additional arguments to the window manager. Default is ''"), 0},
{ "nolocal", I18N_NOOP("Also allow remote connections"), 0},
KCmdLineLastOption
TDECmdLineLastOption
};
extern KSMServer* the_server;

@ -27,14 +27,14 @@
#include "wndmain.h"
static KCmdLineOptions options[] = {
static TDECmdLineOptions options[] = {
{ "managed", I18N_NOOP("Execute KSplash in MANAGED mode"),0 },
{ "test", I18N_NOOP("Run in test mode"), 0 },
{ "nofork", I18N_NOOP("Do not fork into the background"), 0 },
{ "theme <argument>", I18N_NOOP("Override theme"), "" },
{ "nodcop", I18N_NOOP("Do not attempt to start DCOP server"),0 },
{ "steps <number>", I18N_NOOP("Number of steps"), "7" },
KCmdLineLastOption
TDECmdLineLastOption
};
int main( int argc, char **argv )

@ -250,7 +250,7 @@ void KStart::applyStyle(WId w ) {
}
// David, 05/03/2000
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "!+command", I18N_NOOP("Command to execute"), 0 },
// "!" means: all options after command are treated as arguments to the command
@ -280,7 +280,7 @@ static KCmdLineOptions options[] =
{ "skiptaskbar", I18N_NOOP("The window does not get an entry in the taskbar"), 0 },
{ "skippager", I18N_NOOP("The window does not get an entry on the pager"), 0 },
{ "tosystray", I18N_NOOP("The window is sent to the system tray in Kicker"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main( int argc, char *argv[] )

@ -511,10 +511,10 @@ void TopLevel::setSwapInfo( long used, long free, const TQString &unit )
statusBar()->changeItem( msg, 2 );
}
static const KCmdLineOptions options[] = {
static const TDECmdLineOptions options[] = {
{ "showprocesses", I18N_NOOP( "Show only process list of local host" ), 0 },
{ "+[worksheet]", I18N_NOOP( "Optional worksheet files to load" ), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
/*

@ -20,7 +20,7 @@ const int XFocusIn = FocusIn;
#undef KeyRelease
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "!+command", I18N_NOOP("Command to execute"), 0 },
// "!" means: all options after command are treated as arguments to the command
@ -43,7 +43,7 @@ static KCmdLineOptions options[] =
"This has no effect unless startonshow is specified and implies keeprunning." ), 0 },
/* { "menuitem <item>", I18N_NOOP( "Adds a custom entry to the tray icon menu\n"
"The item should have the form text:command." ), 0 },*/
KCmdLineLastOption
TDECmdLineLastOption
};
int main( int argc, char *argv[] )

@ -516,10 +516,10 @@ void sigChildHandler(int)
errno = saved_errno;
}
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "verbose", I18N_NOOP("Show progress output for GUI"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};

@ -42,9 +42,9 @@ static const char description[] = I18N_NOOP("TDE Initialization Display Configur
static const char version[] = "0.1";
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
KCmdLineLastOption
TDECmdLineLastOption
};
int main(int argc, char **argv)

@ -38,9 +38,9 @@ static const char description[] = I18N_NOOP("TDE Initialization Phase 1");
static const char version[] = "0.1";
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
KCmdLineLastOption
TDECmdLineLastOption
};
int main(int argc, char **argv)

@ -29,12 +29,12 @@
#include "tdeio_home.h"
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "+protocol", I18N_NOOP( "Protocol name" ), 0 },
{ "+pool", I18N_NOOP( "Socket name" ), 0 },
{ "+app", I18N_NOOP( "Socket name" ), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
extern "C" {

@ -249,7 +249,7 @@ void MountHelper::slotCancel()
exit(0);
}
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "d", I18N_NOOP("Decrypt given URL"), 0 },
{ "u", I18N_NOOP("Unmount given URL"), 0 },
@ -257,7 +257,7 @@ static KCmdLineOptions options[] =
{ "e", I18N_NOOP("Eject given URL via kdeeject"), 0},
{ "s", I18N_NOOP("Unmount and Eject given URL (necessary for some USB devices)"), 0},
{"!+URL", I18N_NOOP("media:/ URL to mount/unmount/eject/remove"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};

@ -31,12 +31,12 @@
#include "tdeio_media.h"
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "+protocol", I18N_NOOP( "Protocol name" ), 0 },
{ "+pool", I18N_NOOP( "Socket name" ), 0 },
{ "+app", I18N_NOOP( "Socket name" ), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
extern "C" {

@ -29,12 +29,12 @@
#include "tdeio_remote.h"
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "+protocol", I18N_NOOP( "Protocol name" ), 0 },
{ "+pool", I18N_NOOP( "Socket name" ), 0 },
{ "+app", I18N_NOOP( "Socket name" ), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
extern "C" {

@ -30,12 +30,12 @@
#include "tdeio_system.h"
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "+protocol", I18N_NOOP( "Protocol name" ), 0 },
{ "+pool", I18N_NOOP( "Socket name" ), 0 },
{ "+app", I18N_NOOP( "Socket name" ), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
extern "C" {

@ -25,14 +25,14 @@
#include <kdirnotify_stub.h>
#include <kdebug.h>
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "empty", I18N_NOOP( "Empty the contents of the trash" ), 0 },
//{ "migrate", I18N_NOOP( "Migrate contents of old trash" ), 0 },
{ "restore <file>", I18N_NOOP( "Restore a trashed file to its original location" ), 0 },
// This hack is for the servicemenu on trash.desktop which uses Exec=ktrash -empty. %f is implied...
{ "+[ignored]", I18N_NOOP( "Ignored" ), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main(int argc, char *argv[])

@ -41,12 +41,12 @@
#include <sys/stat.h>
#include <stdlib.h>
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "+protocol", I18N_NOOP( "Protocol name" ), 0 },
{ "+pool", I18N_NOOP( "Socket name" ), 0 },
{ "+app", I18N_NOOP( "Socket name" ), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
extern "C" {

@ -25,11 +25,11 @@
#include <klocale.h>
#include <stdlib.h>
static KCmdLineOptions options[] = {
static TDECmdLineOptions options[] = {
{ "d <printer-name>", I18N_NOOP("The printer for which jobs are requested"), 0 },
{ "noshow", I18N_NOOP("Show job viewer at startup"), 0},
{ "all", I18N_NOOP("Show jobs for all printers"), 0},
KCmdLineLastOption
TDECmdLineLastOption
};

@ -24,7 +24,7 @@
#include <kcmdlineargs.h>
#include <klocale.h>
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "c", I18N_NOOP("Make an internal copy of the files to print"), 0},
{ "P", 0, 0 },
@ -39,7 +39,7 @@ static KCmdLineOptions options[] =
{ "stdin", I18N_NOOP("Allow printing from STDIN" ), 0},
{ "nodialog", I18N_NOOP("Do not show the print dialog (print directly)"), 0},
{ "+file(s)", I18N_NOOP("Files to load" ), 0},
KCmdLineLastOption
TDECmdLineLastOption
};
extern "C" int KDE_EXPORT kdemain(int argc, char *argv[])

@ -34,13 +34,13 @@ static const char description[] =
// INSERT A DESCRIPTION FOR YOUR APPLICATION HERE
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "phone ", I18N_NOOP("Phone number to fax to"), 0 },
{ "immediate", I18N_NOOP("Send fax immediately"), 0 },
{ "batch", I18N_NOOP("Exit after sending"), 0 },
{ "+[file]", I18N_NOOP("File to fax (added to the file list)"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
// INSERT YOUR COMMANDLINE OPTIONS HERE
};

@ -50,13 +50,13 @@ static const char description[] = I18N_NOOP("Start a random TDE screen saver");
static const char version[] = "2.0.0";
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
{ "setup", I18N_NOOP("Setup screen saver"), 0 },
{ "window-id wid", I18N_NOOP("Run in the specified XWindow"), 0 },
{ "root", I18N_NOOP("Run in the root XWindow"), 0 },
// { "+-- [options]", I18N_NOOP("Options to pass to the screen saver"), 0 }
KCmdLineLastOption
TDECmdLineLastOption
};
//----------------------------------------------------------------------------

@ -52,7 +52,7 @@ const char *Version = "1.0";
// NOTE: if you change the position of the -u switch, be sure to adjust it
// at the beginning of main()
static KCmdLineOptions options[] = {
static TDECmdLineOptions options[] = {
{ "+command", I18N_NOOP("Specifies the command to run"), 0 },
{ "c <command>", I18N_NOOP("Specifies the command to run"), "" },
{ "f <file>", I18N_NOOP("Run command under target uid if <file> is not writable"), "" },
@ -67,7 +67,7 @@ static KCmdLineOptions options[] = {
{ "noignorebutton", I18N_NOOP("Do not display ignore button"), 0 },
{ "i <icon name>", I18N_NOOP("Specify icon to use in the password dialog"), 0},
{ "d", I18N_NOOP("Do not show the command to be run in the dialog"), 0},
KCmdLineLastOption
TDECmdLineLastOption
};

@ -39,9 +39,9 @@ static const char description[] =
static const char version[] = "v2.0";
static KCmdLineOptions options[] = {
static TDECmdLineOptions options[] = {
{ "+config", I18N_NOOP( "Name of the configuration file" ), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
static Atom prop_root;

@ -11,10 +11,10 @@
static const char description[] =
I18N_NOOP("Installs a KWM theme");
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "+[file]", I18N_NOOP("Path to a theme config file"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
void copy(const TQString &src, const TQString &dest)

@ -264,12 +264,12 @@ static int edit( Window wid, bool whole_app )
} // namespace
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
// no need for I18N_NOOP(), this is not supposed to be used directly
{ "wid <wid>", "WId of the window for special window settings.", 0 },
{ "whole-app", "Whether the settings should affect all windows of the application.", 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
extern "C"

@ -31,7 +31,7 @@ DEALINGS IN THE SOFTWARE.
#include <twin.h>
#include <X11/Xlib.h>
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
// no need for I18N_NOOP(), this is not supposed to be used directly
{ "pid <pid>", "PID of the application to terminate.", 0 },
@ -40,7 +40,7 @@ static const KCmdLineOptions options[] =
{ "applicationname <name>", "Name of the application to be terminated.", 0 },
{ "wid <id>", "ID of resource belonging to the application.", 0 },
{ "timestamp <time>", "Time of user action causing killing.", 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main( int argc, char* argv[] )

@ -230,11 +230,11 @@ static void sighandler(int)
static const char version[] = "3.0";
static const char description[] = I18N_NOOP( "TDE window manager" );
static KCmdLineOptions args[] =
static TDECmdLineOptions args[] =
{
{ "lock", I18N_NOOP("Disable configuration options"), 0 },
{ "replace", I18N_NOOP("Replace already-running ICCCM2.0-compliant window manager"), 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
extern "C"

@ -31,7 +31,7 @@ DEALINGS IN THE SOFTWARE.
#include <twin.h>
#include <X11/Xlib.h>
static const KCmdLineOptions options[] =
static const TDECmdLineOptions options[] =
{
// no need for I18N_NOOP(), this is not supposed to be used directly
{ "pid <pid>", "PID of the application to resume.", 0 },
@ -39,7 +39,7 @@ static const KCmdLineOptions options[] =
{ "windowname <caption>", "Caption of the window to be resumed.", 0 },
{ "applicationname <name>", "Name of the application to be resumed.", 0 },
{ "wid <id>", "ID of resource belonging to the application.", 0 },
KCmdLineLastOption
TDECmdLineLastOption
};
int main( int argc, char* argv[] )

@ -37,7 +37,7 @@
#include "preview.h"
#include "main.h"
static KCmdLineOptions options[] =
static TDECmdLineOptions options[] =
{
{ "+decoration", "Decoration library to use, such as twin3_plastik.", 0 },
{ "+tests", "Which test should be executed ('all', 'repaint', 'caption', 'resize', 'recreation')", 0 },

載入中…
取消
儲存