Moved global.* to mastersettings.*, and converted many error messages to use the...
[tagua/yd.git] / src / pref_engines.h
blob45ecb4d469c890fe994422f7e9595ece8049a57f
1 /*
2 Copyright (c) 2006 Paolo Capriotti <p.capriotti@sns.it>
3 (c) 2006 Maurizio Monge <maurizio.monge@kdemail.net>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9 */
11 #ifndef PREF_ENGINES_H
12 #define PREF_ENGINES_H
14 #include "ui_pref_engines.h"
15 #include "engineinfo.h"
16 #include <vector>
17 #include <map>
20 class PrefEngines : public QWidget
21 , public Ui::PrefEngines {
22 Q_OBJECT
23 std::map<QListWidgetItem*, EngineDetails> m_engines;
25 EngineDetails& currentEngine();
26 public:
27 PrefEngines(QWidget* parent = 0);
28 ~PrefEngines();
30 QListWidgetItem* addEngine(const EngineDetails& details);
31 public slots:
32 void apply();
33 void setName(QListWidgetItem*);
34 void add();
35 void remove();
36 void changeEngine(QListWidgetItem* item);
38 void setPath();
39 void setType();
40 void setWorkDir();
43 #endif // PREF_ENGINES_H