diff options
Diffstat (limited to 'attic/muse_qt4_evolution/muse/preferences.h')
-rw-r--r-- | attic/muse_qt4_evolution/muse/preferences.h | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/attic/muse_qt4_evolution/muse/preferences.h b/attic/muse_qt4_evolution/muse/preferences.h new file mode 100644 index 00000000..75cb5754 --- /dev/null +++ b/attic/muse_qt4_evolution/muse/preferences.h @@ -0,0 +1,79 @@ +//============================================================================= +// MusE +// Linux Music Editor +// $Id:$ +// +// Copyright (C) 2002-2006 by 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 __PREFERENCES_H__ +#define __PREFERENCES_H__ + +#include "ui_preferences.h" +#include "midievent.h" + +class MusE; +class Arranger; +class GlobalConfigValues; + +//--------------------------------------------------------- +// PreferencesDialog +//--------------------------------------------------------- + +class PreferencesDialog : public QDialog, public Ui::PreferencesDialogBase { + Q_OBJECT + + Arranger* arr; + QColor* color; + QString currentBg; + GlobalConfigValues* config; + QButtonGroup* colorGroup; + QButtonGroup* startProjectGroup; + + void updateColor(); + + private slots: + void apply(); + void ok(); + void cancel(); + void configCanvasBgColor(); + void configCanvasBgPixmap(); + void colorItemSelectionChanged(); + void hsliderChanged(int); + void ssliderChanged(int); + void vsliderChanged(int); + void addToPaletteClicked(); + void paletteClicked(QAbstractButton*); + void useColorToggled(bool); + void usePixmapToggled(bool); + + void mixerCurrent1(); + void mixerCurrent2(); + void bigtimeCurrent(); + void arrangerCurrent(); + void transportCurrent(); + void recordStopToggled(bool); + void recordRecordToggled(bool); + void recordGotoLeftMarkToggled(bool); + void recordPlayToggled(bool); + void midiEventReceived(MidiEvent); + + public: + PreferencesDialog(Arranger*, QWidget* parent=0); + ~PreferencesDialog(); + void resetValues(); + }; + +#endif |