Debian Codegraph @

HercStudio/IplConfig.h

raw symbols SCIP
1 /*
2 * File: IplConfig.h
3 *
4 * Author: Jacob Dekel
5 * Created on: June 22, 2010
6 *
7 * Copyright (c) 2009-2013 Jacob Dekel
8 * $Id$
9 *
10 * Main window object
11 *
12 * This program is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation, either version 3 of the License, or
15 * (at your option) any later version.
16 *
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License
23 * along with this program. If not, see <http://www.gnu.org/licenses/>.
24 *
25 */
26 #ifndef IPLCONFIG_H
27 #define IPLCONFIG_H
28
29 #include <QtWidgets/QDialog>
30 #include "ui_IplConfig.h"
31
32 class IplConfig : public QDialog
33 {
34 Q_OBJECT
35
36 public:
37 IplConfig(QString &devno, QString& loadParm, QWidget *parent = 0);
38 virtual ~IplConfig();
39
40 protected:
41 QString textFromValue(int value) const; //TODO was duplicated. move to util object
42 int valueFromText(const QString& text) const; //TODO was duplicated. move to util object
43
44 private:
45 Ui::IplConfigClass ui;
46 QString &mDevno;
47 QString &mLoadParm;
48
49 private slots:
50 void okPressed();
51 void cancelPressed();
52
53 signals:
54 void doIpl(QString devNo, QString loadParm);
55 };
56
57 #endif // IPLCONFIG_H