added for plugins own dir

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1850 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2009-11-28 14:21:11 +00:00
parent 97d8640f3a
commit 87344de7d4
809 changed files with 790 additions and 722 deletions

View file

@ -0,0 +1,57 @@
TEMPLATE = lib
LANGUAGE = c++
CONFIG += qt warn_on release staticlib
INCLUDEPATH = ..
DEPENDOATH = ..
DEFINES += MINILIB NO_USE_INI_FILES
HEADERS += ../config.h \
../constants.h \
../global.h \
../helper.h \
../subtracks.h \
../audiotracks.h \
../titletracks.h \
../mediadata.h \
../mediasettings.h \
../preferences.h \
../myprocess.h \
../mplayerversion.h \
../mplayerprocess.h \
../infoprovider.h \
../desktopinfo.h \
../mplayerwindow.h \
../core.h \
smplayercorelib.h
SOURCES += ../global.cpp \
../helper.cpp \
../subtracks.cpp \
../audiotracks.cpp \
../titletracks.cpp \
../mediadata.cpp \
../mediasettings.cpp \
../preferences.cpp \
../myprocess.cpp \
../mplayerversion.cpp \
../mplayerprocess.cpp \
../infoprovider.cpp \
../desktopinfo.cpp \
../mplayerwindow.cpp \
../core.cpp \
smplayercorelib.cpp
unix {
UI_DIR = .ui
MOC_DIR = .moc
OBJECTS_DIR = .obj
}
win32 {
HEADERS += ../screensaver.h
SOURCES += ../screensaver.cpp
}

View file

@ -0,0 +1,43 @@
/* smplayer, GUI front-end for mplayer.
Copyright (C) 2006-2008 Ricardo Villalba <rvm@escomposlinux.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "smplayercorelib.h"
#include "global.h"
#include "preferences.h"
#include "helper.h"
#include <QApplication>
SmplayerCoreLib::SmplayerCoreLib( QWidget * parent )
: QObject(parent)
{
if (Global::pref == 0) {
qWarning("Global::global_init() hasn't been called. Crash comming.");
}
_mpw = new MplayerWindow(parent);
_core = new Core(_mpw, parent);
_mpw->setColorKey( Global::pref->color_key );
Global::pref->fast_audio_change = Preferences::Enabled;
}
SmplayerCoreLib::~SmplayerCoreLib() {
};
#include "moc_smplayercorelib.cpp"

View file

@ -0,0 +1,43 @@
/* smplayer, GUI front-end for mplayer.
Copyright (C) 2006-2008 Ricardo Villalba <rvm@escomposlinux.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _SMPLAYERCORELIB_H_
#define _SMPLAYERCORELIB_H_
#include <QWidget>
#include "core.h"
#include "mplayerwindow.h"
class SmplayerCoreLib : public QObject
{
Q_OBJECT
public:
SmplayerCoreLib( QWidget * parent = 0 );
~SmplayerCoreLib();
Core * core() { return _core; };
MplayerWindow * mplayerWindow() { return _mpw; };
private:
Core * _core;
MplayerWindow * _mpw;
};
#endif