File: pref_engines.h

package info (click to toggle)
tagua 1.0~alpha2-15
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 8,028 kB
  • ctags: 7,178
  • sloc: cpp: 26,149; ansic: 13,039; makefile: 182; ruby: 87; sh: 39
file content (45 lines) | stat: -rw-r--r-- 1,024 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
  Copyright (c) 2006 Paolo Capriotti <p.capriotti@gmail.com>
            (c) 2006 Maurizio Monge <maurizio.monge@kdemail.net>
            
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.
*/

#ifndef PREF_ENGINES_H
#define PREF_ENGINES_H

#include "ui_pref_engines.h"
#include "engineinfo.h"
#include "settings.h"
#include <vector>
#include <map>

class QPushButton;
class QListWidget;

class PrefEngines : public QWidget {
Q_OBJECT
  QPushButton* m_new;
  QPushButton* m_edit;
  QPushButton* m_delete;
  QListWidget* m_list;
  
  QList<EngineDetails> m_engines;
  void reload_engines();
public:
  PrefEngines(const QString&, QWidget* parent = 0);
  ~PrefEngines();

  void apply();
private Q_SLOTS:
  void new_engine();
  void edit_engine();
  void delete_engine();
  void update_buttons();
};

#endif // PREF_ENGINES_H