/*************************************************************************** * Copyright (C) 2005-2006 Nicolas Hadacek * * Copyright (C) 2004 Alain Gibaud * * * * 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 #include #include #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 { TQ_OBJECT public: HelpDialog(TQWidget *parent); }; //---------------------------------------------------------------------------- class ToolsConfigWidget : public ConfigWidget { TQ_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 *_tool; KeyComboBox *_output; TQWidgetStack *_mainStack; TQWidget *_customWidget; EditListBox *_commandsEditor; TQTabWidget *_tabWidget; TQMap *> _stacks; TQGuardedPtr _helpDialog; }; #endif