1 /* 2 * Copyright (C) 2002 - David W. Durham 3 * 4 * This file is part of ReZound, an audio editing application. 5 * 6 * ReZound is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published 8 * by the Free Software Foundation; either version 2 of the License, 9 * or (at your option) any later version. 10 * 11 * ReZound is distributed in the hope that it will be useful, but 12 * WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 19 */ 20 21 #ifndef __CJACKPortChoiceDialog_H__ 22 #define __CJACKPortChoiceDialog_H__ 23 24 #include "../../config/common.h" 25 #include "fox_compat.h" 26 27 #include <string> 28 #include <vector> 29 30 class CJACKPortChoiceDialog; 31 32 #include "FXModalDialogBox.h" 33 34 class CJACKPortChoiceDialog : public FXModalDialogBox 35 { 36 FXDECLARE(CJACKPortChoiceDialog); 37 public: 38 CJACKPortChoiceDialog(FXWindow *mainWindow); 39 virtual ~CJACKPortChoiceDialog(); 40 41 bool show(const string message,const vector<string> portNames); 42 43 const string getPortName() const; 44 45 protected: CJACKPortChoiceDialog()46 CJACKPortChoiceDialog() {} 47 48 private: 49 50 FXLabel *messageLabel; 51 FXComboBox *portNamesComboBox; 52 }; 53 54 #endif 55