blob: 0f41b6ac884da235abd51c290532b89bb8d28773 (
plain)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
/***************************************************************************
* Copyright (C) 2005-2006 Nicolas Hadacek <hadacek@kde.org> *
* Copyright (C) 2004 Alain Gibaud <alain.gibaud@free.fr> *
* *
* 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 TOOLS_CONFIG_WIDGET_H
#define TOOLS_CONFIG_WIDGET_H
#include <qcombobox.h>
#include <qtabwidget.h>
#include <qvaluevector.h>
#include "common/gui/config_widget.h"
#include "common/gui/dialog.h"
#include "common/gui/key_gui.h"
#include "common/gui/editlistbox.h"
#include "tools/base/generic_tool.h"
class Project;
class ToolConfigWidget;
//----------------------------------------------------------------------------
class HelpDialog : public Dialog
{
Q_OBJECT
public:
HelpDialog(QWidget *parent);
};
//----------------------------------------------------------------------------
class ToolsConfigWidget : public ConfigWidget
{
Q_OBJECT
public:
ToolsConfigWidget(Project *project, QWidget *parent);
virtual void loadConfig();
public slots:
virtual void saveConfig();
virtual void displayHelp();
private slots:
void toolChanged();
private:
Project *_project;
KeyComboBox<QString> *_tool;
KeyComboBox<Tool::OutputType> *_output;
QWidgetStack *_mainStack;
QWidget *_customWidget;
EditListBox *_commandsEditor;
QTabWidget *_tabWidget;
QMap<Tool::Category, KeyWidgetStack<QString> *> _stacks;
QGuardedPtr<Dialog> _helpDialog;
};
#endif
|