export more symbols in order to build all plugins

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1046 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-06-02 15:53:45 +00:00
parent 6b7d69c7cf
commit 2ccab064cb
31 changed files with 102 additions and 66 deletions

View File

@@ -38,7 +38,7 @@ class track;
class automationPattern : public QObject, public journallingObject
class EXPORT automationPattern : public QObject, public journallingObject
{
Q_OBJECT
public:

View File

@@ -103,7 +103,7 @@ private:
class bbTrack : public track
class EXPORT bbTrack : public track
{
Q_OBJECT
public:

View File

@@ -30,7 +30,7 @@
#include "combobox.h"
class bbTrackContainer : public trackContainer
class EXPORT bbTrackContainer : public trackContainer
{
Q_OBJECT
mapPropertyFromModel(int,currentBB,setCurrentBB,m_bbComboBoxModel);

View File

@@ -1,7 +1,7 @@
/*
* caption_menu.h - context menu with a caption
*
* Copyright (c) 2007 Javier Serrano Polo <jasp00/at/users.sourceforge.net>
* Copyright (c) 2007-2008 Javier Serrano Polo <jasp00/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -26,11 +26,12 @@
#ifndef _CAPTION_MENU_H
#define _CAPTION_MENU_H
#include <QtGui/QMenu>
#include "export.h"
class captionMenu : public QMenu
class EXPORT captionMenu : public QMenu
{
Q_OBJECT
public:

View File

@@ -35,7 +35,7 @@
#include <QtCore/QVector>
#include <QtCore/QPair>
#include "types.h"
#include "export.h"
class engine;

View File

@@ -45,7 +45,7 @@ class effectControls;
class track;
class effect : public plugin
class EXPORT effect : public plugin
{
public:
effect( const plugin::descriptor * _desc,

View File

@@ -34,7 +34,7 @@
class effectControls;
class effectControlDialog : public QWidget, public modelView
class EXPORT effectControlDialog : public QWidget, public modelView
{
Q_OBJECT
public:

View File

@@ -30,7 +30,7 @@
#include <QtCore/QString>
#include "types.h"
#include "export.h"
#define STRINGIFY_PLUGIN_NAME(s) STR(s)

View File

@@ -32,7 +32,7 @@
#include <QtCore/QMap>
#include "types.h"
#include "export.h"
class automationEditor;
class bbEditor;

View File

@@ -39,7 +39,7 @@ class track;
class envelopeAndLFOParameters : public model, public journallingObject
class EXPORT envelopeAndLFOParameters : public model, public journallingObject
{
Q_OBJECT
public:

50
include/export.h Normal file
View File

@@ -0,0 +1,50 @@
/*
* export.h - macros for export-declarations
*
* Copyright (c) 2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
* 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 (see COPYING); if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA.
*
*/
#ifndef _EXPORT_H
#define _EXPORT_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef BUILD_WIN32
#ifdef PLUGIN_NAME
#define EXPORT __declspec(dllimport)
#define PLUGIN_EXPORT __declspec(dllexport)
#else
#define EXPORT __declspec(dllexport)
#endif
#else
#define EXPORT
#define PLUGIN_EXPORT
#endif
#endif

View File

@@ -37,7 +37,7 @@
class graphModel;
class track;
class graph : public QWidget, public modelView
class EXPORT graph : public QWidget, public modelView
{
Q_OBJECT
public:
@@ -45,9 +45,9 @@ public:
virtual ~graph();
void setForeground( const QPixmap & _pixmap );
// void loadSampleFromFile( const QString & _filename );
virtual inline graphModel * model( void ) {
inline graphModel * model( void )
{
return castModel<graphModel>();
}
@@ -62,7 +62,7 @@ protected:
protected slots:
void updateGraph( Uint32 _startPos, Uint32 _endPos );
void updateGraph( void );
void updateGraph( void );
private:
virtual void modelChanged( void );
@@ -80,7 +80,7 @@ private:
} ;
class graphModel : public model
class EXPORT graphModel : public model
{
Q_OBJECT
public:

View File

@@ -2,7 +2,7 @@
* import_filter.h - declaration of class importFilter, the base-class for all
* file import filters
*
* Copyright (c) 2006-2007 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2006-2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -36,7 +36,7 @@
class trackContainer;
class importFilter : public plugin
class EXPORT importFilter : public plugin
{
public:
importFilter( const QString & _file_name,

View File

@@ -31,6 +31,7 @@
#endif
#include "types.h"
#include "export.h"
#include <QtCore/QVariant>
#include <QtCore/QVector>

View File

@@ -2,7 +2,7 @@
* ladspa_2_lmms.h - class that identifies and instantiates LADSPA effects
* for use with LMMS
*
* Copyright (c) 2005-2007 Danny McRae <khjklujn@netscape.net>
* Copyright (c) 2005-2008 Danny McRae <khjklujn@netscape.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -30,7 +30,7 @@
#include "ladspa_manager.h"
class ladspa2LMMS: public ladspaManager
class EXPORT ladspa2LMMS: public ladspaManager
{
public:

View File

@@ -47,7 +47,7 @@ class track;
typedef struct portDescription port_desc_t;
class ladspaControl : public model, public journallingObject
class EXPORT ladspaControl : public model, public journallingObject
{
Q_OBJECT
public:

View File

@@ -33,7 +33,7 @@
class ladspaControl;
class ladspaControlView : public QWidget, public modelView
class EXPORT ladspaControlView : public QWidget, public modelView
{
Q_OBJECT
public:

View File

@@ -3,7 +3,7 @@
* a class to manage loading and instantiation
* of ladspa plugins
*
* Copyright (c) 2005-2007 Danny McRae <khjklujn@netscape.net>
* Copyright (c) 2005-2008 Danny McRae <khjklujn@netscape.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -45,6 +45,7 @@
#include <QtCore/QStringList>
#include "export.h"
#include "types.h"
@@ -88,7 +89,7 @@ typedef struct ladspaManagerStorage
} ladspaManagerDescription;
class ladspaManager
class EXPORT ladspaManager
{
public:

View File

@@ -35,7 +35,7 @@
class QLabel;
class lcdSpinBox : public QWidget, public intModelView
class EXPORT lcdSpinBox : public QWidget, public intModelView
{
Q_OBJECT
public:

View File

@@ -1,7 +1,7 @@
/*
* led_checkbox.h - class ledCheckBox, an improved QCheckBox
*
* Copyright (c) 2005-2007 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2005-2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -32,7 +32,7 @@
class QPixmap;
class ledCheckBox : public automatableButton
class EXPORT ledCheckBox : public automatableButton
{
Q_OBJECT
public:

View File

@@ -28,6 +28,7 @@
#include <Qt/QtXml>
#include "export.h"
#include "types.h"

View File

@@ -28,7 +28,7 @@
#include <QtCore/QObject>
#include "types.h"
#include "export.h"
class modelView;

View File

@@ -50,7 +50,7 @@ class sampleBuffer;
class pattern : public trackContentObject
class EXPORT pattern : public trackContentObject
{
Q_OBJECT
public:

View File

@@ -37,7 +37,7 @@ class QTextCharFormat;
class QTextEdit;
class projectNotes : public QMainWindow, public journallingObject
class EXPORT projectNotes : public QMainWindow, public journallingObject
{
Q_OBJECT
public:
@@ -47,9 +47,8 @@ public:
void clear( void );
void setText( const QString & _text );
virtual void FASTCALL saveSettings( QDomDocument & _doc,
QDomElement & _parent );
virtual void FASTCALL loadSettings( const QDomElement & _this );
virtual void saveSettings( QDomDocument & _doc, QDomElement & _parent );
virtual void loadSettings( const QDomElement & _this );
inline virtual QString nodeName( void ) const
{
return( "projectnotes" );

View File

@@ -30,7 +30,7 @@
#include <QtGui/QDragEnterEvent>
#include <QtGui/QDropEvent>
#include "types.h"
#include "export.h"
class QPixmap;

View File

@@ -1,7 +1,7 @@
/*
* tab_bar.h - class tabBar
*
* Copyright (c) 2004-2007 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2004-2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -30,6 +30,8 @@
#include <config.h>
#endif
#include "export.h"
#include <QtCore/QMap>
#include <QtGui/QLayout>
#include <QtGui/QWidget>
@@ -38,7 +40,7 @@
class tabButton;
class tabBar : public QWidget
class EXPORT tabBar : public QWidget
{
Q_OBJECT
public:

View File

@@ -31,7 +31,7 @@
#include "plugin_view.h"
class tool : public plugin
class EXPORT tool : public plugin
{
public:
tool( const descriptor * _descriptor, model * _parent );
@@ -46,7 +46,7 @@ public:
class toolView : public pluginView
class EXPORT toolView : public pluginView
{
public:
toolView( tool * _tool );

View File

@@ -28,7 +28,7 @@
#include <qstring.h>
#include "types.h"
#include "export.h"
class QWidget;

View File

@@ -35,7 +35,7 @@ class trackContainerView;
class instrumentTrack;
class trackContainer : public model, public journallingObject
class EXPORT trackContainer : public model, public journallingObject
{
Q_OBJECT
public:

View File

@@ -74,25 +74,4 @@ struct valueRanges
} ;
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef BUILD_WIN32
#ifdef PLUGIN_NAME
#define EXPORT __declspec(dllimport)
#define PLUGIN_EXPORT __declspec(dllexport)
#else
#define EXPORT __declspec(dllexport)
#endif
#else
#define EXPORT
#define PLUGIN_EXPORT
#endif
#endif

View File

@@ -30,6 +30,8 @@
#ifndef SAMPLERATE_H
#define SAMPLERATE_H
#include "export.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
@@ -73,7 +75,7 @@ typedef long (*src_callback_t) (void *cb_data, float **data) ;
** Error returned in *error.
*/
SRC_STATE* src_new (int converter_type, int channels, int *error) ;
SRC_STATE* EXPORT src_new (int converter_type, int channels, int *error) ;
/*
** Initilisation for callback based API : return an anonymous pointer to the
@@ -91,14 +93,14 @@ SRC_STATE* src_callback_new (src_callback_t func, int converter_type, int channe
** Always returns NULL.
*/
SRC_STATE* src_delete (SRC_STATE *state) ;
SRC_STATE* EXPORT src_delete (SRC_STATE *state) ;
/*
** Standard processing function.
** Returns non zero on error.
*/
int src_process (SRC_STATE *state, SRC_DATA *data) ;
int EXPORT src_process (SRC_STATE *state, SRC_DATA *data) ;
/*
** Callback based processing function. Read up to frames worth of data from
@@ -161,7 +163,7 @@ int src_error (SRC_STATE *state) ;
/*
** Convert the error number into a string.
*/
const char* src_strerror (int error) ;
const char* EXPORT src_strerror (int error) ;
/*
** The following enums can be used to set the interpolator type