blob: bd4561a0011e6cb0c7a681370461ba38e9b61a80 (
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
61
62
|
/***************************************************************************
* 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 <tqcombobox.h>
#include <tqtabwidget.h>
#include <tqvaluevector.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
TQ_OBJECT
public:
HelpDialog(TQWidget *tqparent);
};
//----------------------------------------------------------------------------
class ToolsConfigWidget : public ConfigWidget
{
Q_OBJECT
TQ_OBJECT
public:
ToolsConfigWidget(Project *project, TQWidget *tqparent);
virtual void loadConfig();
public slots:
virtual void saveConfig();
virtual void displayHelp();
private slots:
void toolChanged();
private:
Project *_project;
KeyComboBox<TQString> *_tool;
KeyComboBox<Tool::OutputType> *_output;
TQWidgetStack *_mainStack;
TQWidget *_customWidget;
EditListBox *_commandsEditor;
TQTabWidget *_tabWidget;
TQMap<Tool::Category, KeyWidgetStack<TQString> *> _stacks;
TQGuardedPtr<Dialog> _helpDialog;
};
#endif
|