Rename KCmdLineArgs to TDECmdLineArgs to avoid conflicts with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent f22c05e926
commit 58646ccdcd

@ -932,15 +932,15 @@ int main(int argc, char **argv)
aboutData.addCredit("Hans Meine", 0, "hans_meine@gmx.net");
aboutData.addCredit("Jeff Tranter", 0, "tranter@pobox.com");
KCmdLineArgs::init(argc, argv, &aboutData);
KCmdLineArgs::addCmdLineOptions(options);
TDECmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::addCmdLineOptions(options);
Arts::QIOManager iomanager;
Arts::Dispatcher dispatcher(&iomanager);
Arts::ObjectManager::the()->provideCapability("kdegui");
// check for one optional filename argument
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
if(args->count() > 1) {
args->usage("");
}

@ -30,7 +30,7 @@ int main( int argc, char* argv[] ) {
"0.1", "", KAboutData::License_GPL,
"(c) 2002, Arnold Krille" );
aboutData.addAuthor( "Arnold Krille", I18N_NOOP( "Creator" ), "arnold@arnoldarts.de");
KCmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::init( argc, argv, &aboutData );
KApplication app;

@ -195,7 +195,7 @@ int main(int argc, char **argv) {
aboutData.addAuthor( "Stefan Westerfeld", I18N_NOOP( "Author and aRts maintainer" ), "stefan@space.twc.de" );
aboutData.addAuthor( "Arnold Krille", I18N_NOOP( "Some improvements" ), "arnold@arnoldarts.de" );
KCmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::init( argc, argv, &aboutData );
KApplication app(argc, argv);

@ -246,7 +246,7 @@ void JuK::setupGlobalAccels()
void JuK::slotProcessArgs()
{
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
TQStringList files;
for(int i = 0; i < args->count(); i++)

@ -70,8 +70,8 @@ int main(int argc, char *argv[])
aboutData.addCredit("Nathan Toone", nathan, "nathan@toonetown.com");
aboutData.addCredit("Pascal Klein", pascal, "4pascal@tpg.com.au");
KCmdLineArgs::init(argc, argv, &aboutData);
KCmdLineArgs::addCmdLineOptions(options);
TDECmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::addCmdLineOptions(options);
KUniqueApplication::addCmdLineOptions();

@ -65,7 +65,7 @@ void check( const TQString &filename, const TQString &title,
int main( int argc, char **argv )
{
KAboutData aboutData("tagguessertest", "tagguessertest", "0.1");
KCmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::init(argc, argv, &aboutData);
KApplication app;
check( "/home/frerich/Chemical Brothers - (01) - Block rockin' beats [Live].mp3",
"Block Rockin' Beats", "Chemical Brothers", "01", "Live" );

@ -32,7 +32,7 @@ Kaboodle::KaboodleApp::KaboodleApp()
{
disableSessionManagement();
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
KURL openURL;
if(args->count() > 0)
{

@ -44,11 +44,11 @@ static KCmdLineOptions options[] =
int main(int argc, char **argv)
{
KCmdLineArgs::init(argc, argv, Kaboodle::KaboodleFactory::aboutData());
KCmdLineArgs::addCmdLineOptions(options);
TDECmdLineArgs::init(argc, argv, Kaboodle::KaboodleFactory::aboutData());
TDECmdLineArgs::addCmdLineOptions(options);
#ifndef NDEBUG
if(!KCmdLineArgs::parsedArgs()->isSet("qdebug"))
if(!TDECmdLineArgs::parsedArgs()->isSet("qdebug"))
tqInstallMsgHandler(noMessageOutput);
#endif

@ -37,8 +37,8 @@ int main(int argc, char *argv[]){
aboutData.addAuthor("Benjamin Meyer", I18N_NOOP("Original author"), "ben+kaudiocreator@meyerhome.net", "http://www.icefox.net/");
// command line
KCmdLineArgs::init(argc, argv, &aboutData);
KCmdLineArgs::addCmdLineOptions( options );
TDECmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::addCmdLineOptions( options );
KApplication a(argc, argv);
KAudioCreator *app = new KAudioCreator(0, "MainWindow");
@ -47,7 +47,7 @@ int main(int argc, char *argv[]){
a.setMainWidget(app);
KCmdLineArgs* args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs();
if ( args->count()>0 ) app->setDevice( args->arg( 0 ) );
args->clear();
app->show();

@ -80,13 +80,13 @@ int kdemain(int argc, char ** argv)
// with the user
putenv(strdup("SESSION_MANAGER="));
KApplication::disableAutoDcopRegistration();
KCmdLineArgs::init(argc, argv, "kio_audiocd", 0, 0, 0, 0);
KCmdLineArgs::addCmdLineOptions(options);
TDECmdLineArgs::init(argc, argv, "kio_audiocd", 0, 0, 0, 0);
TDECmdLineArgs::addCmdLineOptions(options);
KApplication app(false, true);
kdDebug(7117) << "Starting " << getpid() << endl;
KCmdLineArgs* args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs();
AudioCDProtocol slave(args->arg(0), args->arg(1), args->arg(2));
slave.dispatchLoop();

@ -221,7 +221,7 @@ kmidFrame::kmidFrame(const char *name)
// connect( kmidclient, TQT_SIGNAL( channelView_Destroyed() ),
// this, TQT_SLOT( channelViewDestroyed() ) );
KCmdLineArgs * args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs * args = TDECmdLineArgs::parsedArgs();
if ( args->count() > 0 )
{

@ -56,14 +56,14 @@ int main(int argc, char **argv)
sigaction(SIGTERM, &act, NULL);
*/
KCmdLineArgs::init(argc, argv, KMidFactory::aboutData() );
TDECmdLineArgs::init(argc, argv, KMidFactory::aboutData() );
static KCmdLineOptions options[] =
{
{ "+file", I18N_NOOP("File to open"), 0 },
KCmdLineLastOption
};
KCmdLineArgs::addCmdLineOptions(options);
TDECmdLineArgs::addCmdLineOptions(options);
KApplication app;

@ -55,9 +55,9 @@ extern "C" KDE_EXPORT int kdemain(int argc, char *argv[])
aboutData.addAuthor("Stefan Schimanski", 0, "1Stein@gmx.de");
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options ); // Add our own options.
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
KApplication app( false, false );
// get maximum values

@ -56,8 +56,8 @@ extern "C" KDE_EXPORT int kdemain(int argc, char *argv[])
aboutData.addAuthor("Jean Labrousse", I18N_NOOP("NAS port"), "jean.labrousse@alcatel.com" );
aboutData.addCredit("Nadeem Hasan", I18N_NOOP("Mute and volume preview, other fixes"), "nhasan@kde.org");
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options ); // Add our own options.
if (!KMixApp::start())
return 0;

@ -51,8 +51,8 @@ extern "C" KDE_EXPORT int kdemain( int argc, char* argv[] )
aboutData.addCredit( "Matthias Kretz", I18N_NOOP( "Helped where he was asked" ), "kretz@kde.org" );
aboutData.addCredit( "Stefan Asserhaell", I18N_NOOP( "Made some minor improvements" ) );
aboutData.addCredit( "Stefan Asserhaell & Nikolas Zimmermann", I18N_NOOP( "They indirectly wrote the exports. At least I learned from their files and patches." ) );
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions( options ); // Add our own options.
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions( options ); // Add our own options.
KApplication app;
KRecord *w = new KRecord();

@ -1005,7 +1005,7 @@ void KSCD::discChanged(unsigned discId)
//totaltimelabel->clear();
totaltimelabel->lower();
if ((Prefs::autoplay() || KCmdLineArgs::parsedArgs()->isSet("start"))
if ((Prefs::autoplay() || TDECmdLineArgs::parsedArgs()->isSet("start"))
&& !m_cd->isPlaying())
{
playClicked();
@ -1618,11 +1618,11 @@ int main( int argc, char *argv[] )
aboutData.addCredit("Sven Lueppken", I18N_NOOP("UI Work"));
aboutData.addCredit("freedb.org", I18N_NOOP("Special thanks to freedb.org for providing a free CDDB-like CD database"), 0, "http://freedb.org");
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions(options);
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions(options);
KUniqueApplication::addCmdLineOptions();
KCmdLineArgs* args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs* args = TDECmdLineArgs::parsedArgs();
if (!KUniqueApplication::start())
{
fprintf(stderr, "kscd is already running\n");

@ -195,7 +195,7 @@ main(int argc, char **argv)
aboutData.addAuthor("Paul Harrison",0, "pfh@yoyo.cc.monash.edu.au");
aboutData.addAuthor("Dirk Försterling",0, "milliByte@gmx.net");
KCmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::init( argc, argv, &aboutData );
KApplication magicApp;
*/

@ -101,7 +101,7 @@ AsyncCDDBLookupTest::slotFinished(CDDB::Result r)
int main(int argc, char ** argv)
{
KCmdLineArgs::init(argc, argv, "libkcddb_test", "", "", "");
TDECmdLineArgs::init(argc, argv, "libkcddb_test", "", "", "");
KApplication app(false /* No styles */, false /* No GUI */);

@ -99,7 +99,7 @@ AsyncHTTPLookupTest::slotFinished(CDDB::Result r)
int main(int argc, char ** argv)
{
KCmdLineArgs::init(argc, argv, "libkcddb_test", "", "", "");
TDECmdLineArgs::init(argc, argv, "libkcddb_test", "", "", "");
KApplication app(false /* No styles */, false /* No GUI */);

@ -68,7 +68,7 @@ AsyncHTTPSubmitTest::slotFinished(CDDB::Result r)
int main(int argc, char ** argv)
{
KCmdLineArgs::init(argc, argv, "libkcddb_test", "", "", "");
TDECmdLineArgs::init(argc, argv, "libkcddb_test", "", "", "");
KApplication app(false /* No styles */, false /* No GUI */);

@ -69,7 +69,7 @@ AsyncSMTPSubmitTest::slotFinished(CDDB::Result r)
int main(int argc, char ** argv)
{
KCmdLineArgs::init(argc, argv, "libkcddb_test", "", "", "");
TDECmdLineArgs::init(argc, argv, "libkcddb_test", "", "", "");
KApplication app(false /* No styles */, false /* No GUI */);

@ -26,7 +26,7 @@
int
main(int argc, char ** argv)
{
KCmdLineArgs::init(argc, argv, "libkcddb_test", "", "", "");
TDECmdLineArgs::init(argc, argv, "libkcddb_test", "", "", "");
KApplication app(false /* No styles */);

@ -10,7 +10,7 @@
int
main(int argc, char ** argv)
{
KCmdLineArgs::init(argc, argv, "libkcddb_test", "", "", "");
TDECmdLineArgs::init(argc, argv, "libkcddb_test", "", "", "");
KApplication app(false /* No styles */, false /* No GUI */);

@ -9,7 +9,7 @@
int
main(int argc, char ** argv)
{
KCmdLineArgs::init(argc, argv, "libkcddb_test", "", "", "");
TDECmdLineArgs::init(argc, argv, "libkcddb_test", "", "", "");
KApplication app(false /* No styles */);

@ -28,7 +28,7 @@
int
main(int argc, char ** argv)
{
KCmdLineArgs::init(argc, argv, "libkcddb_test", "", "", "");
TDECmdLineArgs::init(argc, argv, "libkcddb_test", "", "", "");
KApplication app(false /* No styles */);

@ -28,7 +28,7 @@
int
main(int argc, char ** argv)
{
KCmdLineArgs::init(argc, argv, "libkcddb_test", "", "", "");
TDECmdLineArgs::init(argc, argv, "libkcddb_test", "", "", "");
KApplication app(false /* No styles */);

@ -9,7 +9,7 @@
int
main(int argc, char ** argv)
{
KCmdLineArgs::init(argc, argv, "libkcddb_test", "", "", "");
TDECmdLineArgs::init(argc, argv, "libkcddb_test", "", "", "");
KApplication app;

@ -37,8 +37,8 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv)
aboutData.addCredit("Bill Huey", I18N_NOOP("Special help with the equalizer"));
KCmdLineArgs::init( argc, argv, &aboutData );
KCmdLineArgs::addCmdLineOptions(options);
TDECmdLineArgs::init( argc, argv, &aboutData );
TDECmdLineArgs::addCmdLineOptions(options);
NoatunApp::addCmdLineOptions();
NoatunApp app;

@ -377,7 +377,7 @@ KPopupMenu *NoatunApp::pluginMenu()
int NoatunApp::newInstance()
{
// TODO, this should call playlist()->handleArguments();
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
bool clear = clearOnOpen();
bool playme=true;

@ -405,7 +405,7 @@ public:
virtual bool listVisible() const =0;
/**
* do the KCmdLineArgs stuff
* do the TDECmdLineArgs stuff
**/
int handleArguments();

@ -301,7 +301,7 @@ void Playlist::toggleList()
int Playlist::handleArguments()
{
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
int i;
bool play= napp->autoPlay();

Loading…
Cancel
Save