Prepare 1.0 alpha3 release.
[tagua/yd.git] / src / pref_engines.h
blob4cb9d5b8845f05c33b268dd48a7aff26ef39ac24
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 "settings.h"
17 #include <vector>
18 #include <map>
20 class QPushButton;
21 class QListWidget;
23 class PrefEngines : public QWidget {
24 Q_OBJECT
25 QPushButton* m_new;
26 QPushButton* m_edit;
27 QPushButton* m_delete;
28 QListWidget* m_list;
30 QList<EngineDetails> m_engines;
31 void reload_engines();
32 public:
33 PrefEngines(const QString&, QWidget* parent = 0);
34 ~PrefEngines();
36 void apply();
37 private Q_SLOTS:
38 void new_engine();
39 void edit_engine();
40 void delete_engine();
41 void update_buttons();
44 #endif // PREF_ENGINES_H