You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
piklab/src/tools/list/tools_config_widget.h

63 lines
1.9 KiB

/***************************************************************************
* 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
public:
HelpDialog(TQWidget *parent);
};
//----------------------------------------------------------------------------
class ToolsConfigWidget : public ConfigWidget
{
Q_OBJECT
public:
ToolsConfigWidget(Project *project, TQWidget *parent);
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