aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/Input/CMakeLists.txt5
-rw-r--r--src/plugins/Input/gme/CMakeLists.txt67
2 files changed, 72 insertions, 0 deletions
diff --git a/src/plugins/Input/CMakeLists.txt b/src/plugins/Input/CMakeLists.txt
index 57b7a6ada..08ff6a96d 100644
--- a/src/plugins/Input/CMakeLists.txt
+++ b/src/plugins/Input/CMakeLists.txt
@@ -13,6 +13,7 @@ SET(USE_AAC TRUE CACHE BOOL "enable/disable aac plugin")
SET(USE_CUE TRUE CACHE BOOL "enable/disable cue plugin")
SET(USE_CDA TRUE CACHE BOOL "enable/disable cd audio support")
SET(USE_MIDI TRUE CACHE BOLL "enable/disable midi support")
+SET(USE_GME TRUE CACHE BOLL "enable/disable game music plugin")
pkg_check_modules(TAGLIB taglib)
@@ -63,3 +64,7 @@ ENDIF(USE_CDA)
IF(USE_MIDI)
add_subdirectory(wildmidi)
ENDIF(USE_MIDI)
+
+IF(USE_GME)
+add_subdirectory(gme)
+ENDIF(USE_GME)
diff --git a/src/plugins/Input/gme/CMakeLists.txt b/src/plugins/Input/gme/CMakeLists.txt
new file mode 100644
index 000000000..9f6993ce9
--- /dev/null
+++ b/src/plugins/Input/gme/CMakeLists.txt
@@ -0,0 +1,67 @@
+project(libgme)
+
+INCLUDE(CheckIncludeFileCXX)
+cmake_minimum_required(VERSION 2.6.0)
+
+if(COMMAND cmake_policy)
+cmake_policy(SET CMP0003 NEW)
+endif(COMMAND cmake_policy)
+
+# qt plugin
+ADD_DEFINITIONS( -Wall )
+ADD_DEFINITIONS(${QT_DEFINITIONS})
+ADD_DEFINITIONS(-DQT_PLUGIN)
+ADD_DEFINITIONS(-DQT_NO_DEBUG)
+ADD_DEFINITIONS(-DQT_SHARED)
+ADD_DEFINITIONS(-DQT_THREAD)
+
+include_directories(${CMAKE_CURRENT_BINARY_DIR})
+
+SET(QT_INCLUDES
+ ${QT_INCLUDES}
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../../
+)
+
+# libqmmp
+include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../../)
+link_directories(${CMAKE_CURRENT_BINARY_DIR}/../../../qmmp)
+
+# libgme
+
+CHECK_INCLUDE_FILE_CXX(gme/Music_Emu.h GME_FOUND)
+
+IF(GME_FOUND)
+
+ENDIF(GME_FOUND)
+
+include_directories(${TAGLIB_INCLUDE_DIRS})
+link_directories(${TAGLIB_LIBRARY_DIRS})
+
+SET(libgme_SRCS
+ decoder_gme.cpp
+ decodergmefactory.cpp
+ gmehelper.cpp
+)
+
+SET(libgme_MOC_HDRS
+ decodergmefactory.h
+ decoder_gme.h
+ gmehelper.h
+)
+
+SET(libgme_RCCS translations/translations.qrc)
+
+QT4_ADD_RESOURCES(libgme_RCC_SRCS ${libgme_RCCS})
+
+QT4_WRAP_CPP(libgme_MOC_SRCS ${libgme_MOC_HDRS})
+
+# Don't forget to include output directory, otherwise
+# the UI file won't be wrapped!
+include_directories(${CMAKE_CURRENT_BINARY_DIR})
+
+IF(GME_FOUND)
+ADD_LIBRARY(gme MODULE ${libgme_SRCS} ${libgme_MOC_SRCS} ${libgme_RCC_SRCS})
+add_dependencies(gme qmmp)
+target_link_libraries(gme ${QT_LIBRARIES} -lqmmp -lgme ${TAGLIB_LDFLAGS} ${TAGLIB_CFLAGS})
+install(TARGETS gme DESTINATION ${LIB_DIR}/qmmp/Input)
+ENDIF(GME_FOUND)
ef='#n38'>38 39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55






















                                                                             

                              

             











                                                  

                          
 

                   

                                     
 
        
                      





                                       
/***************************************************************************
 *   Copyright (C) 2008 by Ilya Kotov                                      *
 *   forkotov02@hotmail.ru                                                 *
 *                                                                         *
 *   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 SETTINGSDIALOG_H
#define SETTINGSDIALOG_H

#include <QDialog>
#include "ui_settingsdialog.h"

class Action;

/**
	@author Ilya Kotov <forkotov02@hotmail.ru>
*/
class SettingsDialog : public QDialog
{
Q_OBJECT
public:
    SettingsDialog(QWidget *parent = 0);

    ~SettingsDialog();


public slots:
    virtual void accept();

private slots:
    void setFont();
    void insertExpression(QAction *);
    void on_resetButton_clicked();

private:
    void createMenu();
    Ui::SettingsDialog ui;
    QMap<uint, QPushButton*> m_buttons;

};

#endif