1 //========================================================= 2 // MusE 3 // Linux Music Editor 4 // $Id: deloverlaps.h,v 1.1.1.1 2011/05/05 18:51:04 flo93 Exp $ 5 // (C) Copyright 2011 Florian Jung (flo93@sourceforge.net) 6 // 7 // This program is free software; you can redistribute it and/or 8 // modify it under the terms of the GNU General Public License 9 // as published by the Free Software Foundation; version 2 of 10 // the License, or (at your option) any later version. 11 // 12 // This program is distributed in the hope that it will be useful, 13 // but WITHOUT ANY WARRANTY; without even the implied warranty of 14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 // GNU General Public License for more details. 16 // 17 // You should have received a copy of the GNU General Public License 18 // along with this program; if not, write to the Free Software 19 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 // 21 //========================================================= 22 23 #ifndef __DELOVERLAPS_H__ 24 #define __DELOVERLAPS_H__ 25 26 #include "ui_deloverlapsbase.h" 27 #include "function_dialog_base.h" 28 29 30 // Forward declarations: 31 namespace MusECore { 32 class Xml; 33 } 34 35 namespace MusEGui { 36 37 class DelOverlaps : public FunctionDialogBase, public Ui::DelOverlapsBase 38 { 39 Q_OBJECT 40 41 public: 42 DelOverlaps(QWidget* parent = 0); 43 44 static int _range; 45 static int _parts; 46 static FunctionReturnDialogFlags_t _ret_flags; 47 static FunctionDialogElements_t _elements; 48 49 static void setElements(FunctionDialogElements_t elements = 50 FunctionAllEventsButton | FunctionSelectedEventsButton | 51 FunctionLoopedButton | FunctionSelectedLoopedButton) { _elements = elements; } 52 53 static void read_configuration(MusECore::Xml& xml); 54 void write_configuration(int level, MusECore::Xml& xml); 55 curRange()56 int curRange() const { return _range; } setCurRange(int range)57 void setCurRange(int range) { _range = range; } curParts()58 int curParts() const { return _parts; } setCurParts(int parts)59 void setCurParts(int parts) { _parts = parts; } setReturnFlags(FunctionReturnDialogFlags_t f)60 void setReturnFlags(FunctionReturnDialogFlags_t f) { _ret_flags = f; } elements()61 FunctionDialogElements_t elements() const { return _elements; } 62 }; 63 64 } // namespace MusEGui 65 66 #endif 67 68