From 381f4fed30fe4e5408cddf7e540ce2deca1b3baf Mon Sep 17 00:00:00 2001 From: vovanec Date: Thu, 27 Sep 2007 21:24:44 +0000 Subject: redesigned command line interface git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@162 90c681e8-e032-0410-971d-27865f9a5e38 --- src/mainwindow.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 36d672175..1e8280875 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -39,7 +39,6 @@ #include "eqwidget.h" #include "mainvisual.h" #include "playlistformat.h" -#include "tcpserver.h" #include "jumptotrackdialog.h" #include "aboutdialog.h" #include @@ -138,10 +137,6 @@ MainWindow::MainWindow(const QStringList& args, QWidget *parent) updateEQ(); updateSkin(); - // Starting the TcpServer - - new TcpServer(this); - FileDialog::registerBuiltinFactories(); FileDialog::registerExternalFactories(); @@ -764,9 +759,17 @@ bool MainWindow::processCommandArgs(const QStringList &slist,const QString& cwd) else if (str == "--pause") pause(); else if (str == "--next") + { next(); + if(!m_core->isInitialized()) + play(); + } else if (str == "--previous") + { previous(); + if(!m_core->isInitialized()) + play(); + } else if (str == "--play-pause") playPause(); else @@ -781,8 +784,6 @@ bool MainWindow::processCommandArgs(const QStringList &slist,const QString& cwd) full_path_list << s; else full_path_list << cwd + "/" + s; - //qWarning("Current working dir: %s",qPrintable(workingDir)); - //qWarning("Full path to play: %s",qPrintable(workingDir + "/" + s)); } setFileList(full_path_list); } -- cgit v1.2.3-13-gbd6f