summaryrefslogtreecommitdiffstats
path: root/src/progs/gui/prog_config_widget.h
blob: 3fb515c1a59a30c2bc5401c4646ca28cfce08aaa (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/***************************************************************************
 *   Copyright (C) 2005 Nicolas Hadacek <hadacek@kde.org>                  *
 *                                                                         *
 *   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 PROG_CONFIG_WIDGET
#define PROG_CONFIG_WIDGET

class TQCheckBox;
class KURLRequester;

#include "common/gui/config_widget.h"
#include "common/port/port.h"

namespace Programmer
{
class Group;
class HardwareDescription;

class ConfigWidget: public ::ConfigWidget
{
TQ_OBJECT
  
public:
  ConfigWidget(const Group &group, TQWidget *parent);
  virtual void loadConfig();
  const Group &group() const { return _group; }
  virtual void saveConfig();
  virtual bool setPort(const HardwareDescription &hd);

signals:
  void updatePortStatus(bool ok);

protected:
  const Group &_group;

private:
  KURLRequester *_firmwareDir;
};

} // namespace

#endif