From f508189682b6fba62e08feeb1596f682bad5fff9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 24 Feb 2010 18:42:24 +0000 Subject: Added KDE3 version of PikLab git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/piklab@1095639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/tools/pic30/gui/Makefile.am | 6 ++++++ src/tools/pic30/gui/pic30_ui.cpp | 26 ++++++++++++++++++++++++++ src/tools/pic30/gui/pic30_ui.h | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 src/tools/pic30/gui/Makefile.am create mode 100644 src/tools/pic30/gui/pic30_ui.cpp create mode 100644 src/tools/pic30/gui/pic30_ui.h (limited to 'src/tools/pic30/gui') diff --git a/src/tools/pic30/gui/Makefile.am b/src/tools/pic30/gui/Makefile.am new file mode 100644 index 0000000..4ee894e --- /dev/null +++ b/src/tools/pic30/gui/Makefile.am @@ -0,0 +1,6 @@ +INCLUDES = -I$(top_srcdir)/src $(all_includes) +METASOURCES = AUTO + +noinst_LTLIBRARIES = libpic30ui.la +libpic30ui_la_LDFLAGS = $(all_libraries) +libpic30ui_la_SOURCES = pic30_ui.cpp diff --git a/src/tools/pic30/gui/pic30_ui.cpp b/src/tools/pic30/gui/pic30_ui.cpp new file mode 100644 index 0000000..9d1b2c4 --- /dev/null +++ b/src/tools/pic30/gui/pic30_ui.cpp @@ -0,0 +1,26 @@ +/*************************************************************************** + * Copyright (C) 2006 Nicolas Hadacek * + * * + * 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 "pic30_ui.h" + +#include + +#include "common/gui/purl_gui.h" +#include "tools/pic30/pic30_config.h" + +//---------------------------------------------------------------------------- +PIC30::ConfigWidget::ConfigWidget(Project *project) + : ToolConfigWidget(project) +{} + +void PIC30::ConfigWidget::initEntries() +{ + if ( _category==Tool::Category::Compiler || _category==Tool::Category::Assembler || _category==Tool::Category::Linker ) + createIncludeDirectoriesEntry(); + if ( _category==Tool::Category::Linker ) createCustomLibrariesEntry(); +} diff --git a/src/tools/pic30/gui/pic30_ui.h b/src/tools/pic30/gui/pic30_ui.h new file mode 100644 index 0000000..d9890e7 --- /dev/null +++ b/src/tools/pic30/gui/pic30_ui.h @@ -0,0 +1,36 @@ +/*************************************************************************** + * Copyright (C) 2006 Nicolas Hadacek * + * * + * 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 PIC30_UI_H +#define PIC30_UI_H + +#include "tools/gui/tool_config_widget.h" +#include "tools/gui/tool_group_ui.h" + +namespace PIC30 +{ + +//---------------------------------------------------------------------------- +class ConfigWidget : public ToolConfigWidget +{ +Q_OBJECT +public: + ConfigWidget(Project *project); + virtual void initEntries(); +}; + +//---------------------------------------------------------------------------- +class GroupUI : public Tool::GroupUI +{ +public: + virtual ::ToolConfigWidget *configWidgetFactory(Tool::Category, ::Project *project) const { return new ConfigWidget(project); } +}; + +} // namespace + +#endif -- cgit v1.2.1