MuseScore/mscore/prefsdialog.h

85 lines
2.5 KiB
C
Raw Normal View History

2012-05-26 14:49:10 +02:00
//=============================================================================
// MusE Score
// Linux Music Score Editor
// $Id:$
//
// Copyright (C) 2002-2010 Werner Schweer and others
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2.
//
// 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., 675 Mass Ave, Cambridge, MA 02139, USA.
//=============================================================================
#ifndef __PREFSDIALOG_H__
#define __PREFSDIALOG_H__
#include "ui_prefsdialog.h"
#include "preferences.h"
2012-05-26 14:49:10 +02:00
class Shortcut;
//---------------------------------------------------------
// PreferenceDialog
//---------------------------------------------------------
class PreferenceDialog : public QDialog, private Ui::PrefsDialogBase {
Q_OBJECT
QMap<QString, Shortcut*> localShortcuts;
bool shortcutsChanged;
QButtonGroup* recordButtons;
Preferences prefs;
2012-05-26 14:49:10 +02:00
void apply();
bool sfChanged;
void updateSCListView();
void setUseMidiOutput(bool);
void updateValues();
2012-05-26 14:49:10 +02:00
private slots:
void buttonBoxClicked(QAbstractButton*);
void bgClicked(bool);
void fgClicked(bool);
void selectFgWallpaper();
void selectBgWallpaper();
void selectDefaultStyle();
void selectPartStyle();
void selectInstrumentList1();
void selectInstrumentList2();
2012-05-26 14:49:10 +02:00
void selectStartWith();
void resetShortcutClicked();
void clearShortcutClicked();
void defineShortcutClicked();
void portaudioApiActivated(int idx);
void resetAllValues();
void styleFileButtonClicked();
void recordButtonClicked(int);
void midiRemoteControlClearClicked();
void selectScoresDirectory();
void selectStylesDirectory();
void selectTemplatesDirectory();
void selectPluginsDirectory();
void selectImagesDirectory();
2012-08-20 09:58:23 +02:00
void printShortcutsClicked();
2012-05-26 14:49:10 +02:00
signals:
void preferencesChanged();
public:
PreferenceDialog(QWidget* parent);
~PreferenceDialog();
void setPreferences(const Preferences& p);
2012-05-26 14:49:10 +02:00
void updateRemote();
};
#endif