summaryrefslogtreecommitdiffstats
path: root/src/tools/sdcc/gui/sdcc_ui.cpp
blob: 05cfffc9fc0c5a981c142d6623848ed6b9381f4b (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
/***************************************************************************
 *   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);
}

#include "sdcc_ui.moc"