Changed my email in the copyright statements.
[tagua/yd.git] / src / pref_engines.h
blob7b531e21788dadb547162e409e2740b872598c89
1 /*
2 Copyright (c) 2006 Paolo Capriotti <p.capriotti@gmail.com>
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(const QString&, QWidget* parent = 0);
28 ~PrefEngines();
30 QListWidgetItem* addEngine(const EngineDetails& details);
31 public Q_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