itom
Loading...
Searching...
No Matches
stringListEditor.h
1/* ********************************************************************
2 itom software
3 URL: http://www.uni-stuttgart.de/ito
4 Copyright (C) 2021, Institut für Technische Optik (ITO),
5 Universität Stuttgart, Germany
6
7 This file is part of itom and its software development toolkit (SDK).
8
9 itom is free software; you can redistribute it and/or modify it
10 under the terms of the GNU Library General Public Licence as published by
11 the Free Software Foundation; either version 2 of the Licence, or (at
12 your option) any later version.
13
14 In addition, as a special exception, the Institut für Technische
15 Optik (ITO) gives you certain additional rights.
16 These rights are described in the ITO LGPL Exception version 1.0,
17 which can be found in the file LGPL_EXCEPTION.txt in this package.
18
19 itom is distributed in the hope that it will be useful, but
20 WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
22 General Public Licence for more details.
23
24 You should have received a copy of the GNU Library General Public License
25 along with itom. If not, see <http://www.gnu.org/licenses/>.
26*********************************************************************** */
27
28#ifndef STRINGLISTEDITOR_H
29#define STRINGLISTEDITOR_H
30
31#include <qevent.h>
32#include <qlineedit.h>
33#include <qstringlist.h>
34#include <qtoolbutton.h>
35#include <qwidget.h>
36
37class StringListEditor : public QWidget
38{
39 Q_OBJECT
40public:
41 StringListEditor(QWidget* parent = 0);
42 virtual ~StringListEditor();
43
44 QStringList value() const;
45 void setValue(QStringList stringList);
46
47private:
48 QStringList m_stringList;
49 QLineEdit* m_textEdit;
50 QToolButton* m_toolBtn;
51
52protected:
53 // void focusOutEvent ( QFocusEvent * event );
54
55signals:
57 void stringListChanged(QStringList stringList);
58
59private slots:
60 void btnClicked();
61};
62#endif
Definition stringListEditor.h:38
void stringListChanged(QStringList stringList)