diff options
Diffstat (limited to 'src/tools/sdcc/gui')
-rw-r--r-- | src/tools/sdcc/gui/Makefile.am | 6 | ||||
-rw-r--r-- | src/tools/sdcc/gui/sdcc_ui.cpp | 29 | ||||
-rw-r--r-- | src/tools/sdcc/gui/sdcc_ui.h | 35 |
3 files changed, 70 insertions, 0 deletions
diff --git a/src/tools/sdcc/gui/Makefile.am b/src/tools/sdcc/gui/Makefile.am new file mode 100644 index 0000000..35ee59a --- /dev/null +++ b/src/tools/sdcc/gui/Makefile.am @@ -0,0 +1,6 @@ +INCLUDES = -I$(top_srcdir)/src $(all_includes) +METASOURCES = AUTO + +noinst_LTLIBRARIES = libsdccui.la +libsdccui_la_LDFLAGS = $(all_libraries) +libsdccui_la_SOURCES = sdcc_ui.cpp
\ No newline at end of file diff --git a/src/tools/sdcc/gui/sdcc_ui.cpp b/src/tools/sdcc/gui/sdcc_ui.cpp new file mode 100644 index 0000000..bc14f78 --- /dev/null +++ b/src/tools/sdcc/gui/sdcc_ui.cpp @@ -0,0 +1,29 @@ +/*************************************************************************** + * Copyright (C) 2006 Nicolas Hadacek <[email protected]> * + * * + * 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. * + ***************************************************************************/ +#include "sdcc_ui.h" + +#include "tools/gputils/gui/gputils_ui.h" + +//---------------------------------------------------------------------------- +SDCC::ConfigWidget::ConfigWidget(Project *project) + : ToolConfigWidget(project) +{} + +void SDCC::ConfigWidget::initEntries() +{ + if ( _category==Tool::Category::Linker ) createHexFormatEntry(); + createIncludeDirectoriesEntry(); +} + +//---------------------------------------------------------------------------- +ToolConfigWidget *SDCC::GroupUI::configWidgetFactory(Tool::Category category, Project *project) const +{ + if ( category==Tool::Category::Librarian ) return new GPUtils::ConfigWidget(project); + return new ConfigWidget(project); +} diff --git a/src/tools/sdcc/gui/sdcc_ui.h b/src/tools/sdcc/gui/sdcc_ui.h new file mode 100644 index 0000000..a0f0ffc --- /dev/null +++ b/src/tools/sdcc/gui/sdcc_ui.h @@ -0,0 +1,35 @@ +/*************************************************************************** + * Copyright (C) 2006 Nicolas Hadacek <[email protected]> * + * * + * 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 SDCC_UI_H +#define SDCC_UI_H + +#include "tools/gui/tool_config_widget.h" +#include "tools/gui/tool_group_ui.h" + +namespace SDCC +{ +//---------------------------------------------------------------------------- +class ConfigWidget : public ToolConfigWidget +{ +Q_OBJECT +public: + ConfigWidget(Project *project); + virtual void initEntries(); +}; + +//---------------------------------------------------------------------------- +class GroupUI : public Tool::GroupUI +{ +public: + virtual ToolConfigWidget *configWidgetFactory(Tool::Category category, ::Project *project) const; +}; + +} // namespace + +#endif |