Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
doxygen-1.8.11
addon
doxywizard
inputstrlist.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
*
4
*
5
* Copyright (C) 1997-2015 by Dimitri van Heesch.
6
*
7
* Permission to use, copy, modify, and distribute this software and its
8
* documentation under the terms of the GNU General Public License is hereby
9
* granted. No representations are made about the suitability of this software
10
* for any purpose. It is provided "as is" without express or implied warranty.
11
* See the GNU General Public License for more details.
12
*
13
*/
14
15
#ifndef _INPUTSTRLIST_H
16
#define _INPUTSTRLIST_H
17
18
#include "
input.h
"
19
20
#include <QObject>
21
#include <QStringList>
22
23
class
QLabel;
24
class
QLineEdit;
25
class
QPushButton;
26
class
QListWidget;
27
class
QStringList
;
28
class
QGridLayout;
29
class
QAction;
30
31
class
InputStrList
:
public
QObject,
public
Input
32
{
33
Q_OBJECT
34
35
public
:
36
enum
ListMode
{
ListString
= 0,
37
ListFile
= 1,
38
ListDir
= 2,
39
ListFileDir
=
ListFile
|
ListDir
40
};
41
42
InputStrList
( QGridLayout *layout,
int
&
row
,
43
const
QString
&
id
,
const
QStringList
&sl,
44
ListMode
v,
const
QString
&
docs
);
45
void
setValue
(
const
QStringList
&sl);
46
47
QVariant &
value
();
48
void
update
();
49
Kind
kind
()
const
{
return
StrList
; }
50
QString
docs
()
const
{
return
m_docs
; }
51
QString
id
()
const
{
return
m_id
; }
52
QString
templateDocs
()
const
{
return
m_tdocs
; }
53
void
addDependency
(
Input
*) { Q_ASSERT(
false
); }
54
void
setEnabled
(
bool
);
55
void
updateDependencies
() {}
56
void
writeValue
(
QTextStream
&
t
,
QTextCodec
*codec);
57
void
setTemplateDocs
(
const
QString
&
docs
) {
m_tdocs
=
docs
; }
58
59
public
slots:
60
void
reset
();
61
62
signals:
63
void
changed
();
64
void
showHelp
(
Input
*);
65
66
private
slots:
67
void
addString
();
68
void
delString
();
69
void
updateString
();
70
void
selectText
(
const
QString
&
s
);
71
void
browseFiles
();
72
void
browseDir
();
73
void
help
();
74
75
private
:
76
void
updateDefault
();
77
QLabel *
m_lab
;
78
QLineEdit *
m_le
;
79
QAction *
m_add
;
80
QAction *
m_del
;
81
QAction *
m_upd
;
82
QAction *
m_brFile
;
83
QAction *
m_brDir
;
84
QListWidget *
m_lb
;
85
QStringList
m_default
;
86
QStringList
m_strList
;
87
QVariant
m_value
;
88
QString
m_docs
;
89
QString
m_id
;
90
QString
m_tdocs
;
91
};
92
93
#endif
InputStrList::setTemplateDocs
void setTemplateDocs(const QString &docs)
Definition:
inputstrlist.h:57
InputStrList::m_tdocs
QString m_tdocs
Definition:
inputstrlist.h:90
InputStrList::reset
void reset()
Definition:
inputstrlist.cpp:243
input.h
InputStrList::update
void update()
Definition:
inputstrlist.cpp:226
InputStrList::docs
QString docs() const
Definition:
inputstrlist.h:50
InputStrList::changed
void changed()
InputStrList::writeValue
void writeValue(QTextStream &t, QTextCodec *codec)
Definition:
inputstrlist.cpp:248
InputStrList
Definition:
inputstrlist.h:31
InputStrList::setValue
void setValue(const QStringList &sl)
Definition:
inputstrlist.cpp:209
InputStrList::m_lab
QLabel * m_lab
Definition:
inputstrlist.h:77
InputStrList::help
void help()
Definition:
inputstrlist.cpp:91
muoncounters.row
row
Definition:
muoncounters.py:36
Input::StrList
Definition:
input.h:17
QString
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
Definition:
qstring.h:350
InputStrList::m_add
QAction * m_add
Definition:
inputstrlist.h:79
InputStrList::browseFiles
void browseFiles()
Definition:
inputstrlist.cpp:154
InputStrList::browseDir
void browseDir()
Definition:
inputstrlist.cpp:184
InputStrList::addString
void addString()
Definition:
inputstrlist.cpp:97
InputStrList::m_docs
QString m_docs
Definition:
inputstrlist.h:88
InputStrList::ListFileDir
Definition:
inputstrlist.h:39
InputStrList::m_le
QLineEdit * m_le
Definition:
inputstrlist.h:78
InputStrList::m_brFile
QAction * m_brFile
Definition:
inputstrlist.h:82
QStringList
A list of strings.
Definition:
qstringlist.h:51
InputStrList::addDependency
void addDependency(Input *)
Definition:
inputstrlist.h:53
reco_momentum_tuples.t
t
Definition:
reco_momentum_tuples.py:25
InputStrList::templateDocs
QString templateDocs() const
Definition:
inputstrlist.h:52
InputStrList::ListMode
ListMode
Definition:
inputstrlist.h:36
InputStrList::ListDir
Definition:
inputstrlist.h:38
InputStrList::m_value
QVariant m_value
Definition:
inputstrlist.h:87
InputStrList::m_strList
QStringList m_strList
Definition:
inputstrlist.h:86
InputStrList::updateDefault
void updateDefault()
Definition:
inputstrlist.cpp:231
InputStrList::showHelp
void showHelp(Input *)
InputStrList::updateDependencies
void updateDependencies()
Definition:
inputstrlist.h:55
Input
Definition:
input.h:9
QTextStream
The QTextStream class provides basic functions for reading and writing text using a QIODevice...
Definition:
qtextstream.h:53
InputStrList::m_brDir
QAction * m_brDir
Definition:
inputstrlist.h:83
InputStrList::ListString
Definition:
inputstrlist.h:36
InputStrList::setEnabled
void setEnabled(bool)
Definition:
inputstrlist.cpp:141
Input::Kind
Kind
Definition:
input.h:12
InputStrList::value
QVariant & value()
Definition:
inputstrlist.cpp:221
InputStrList::m_default
QStringList m_default
Definition:
inputstrlist.h:85
InputStrList::m_id
QString m_id
Definition:
inputstrlist.h:89
InputStrList::m_upd
QAction * m_upd
Definition:
inputstrlist.h:81
InputStrList::id
QString id() const
Definition:
inputstrlist.h:51
InputStrList::selectText
void selectText(const QString &s)
Definition:
inputstrlist.cpp:136
InputStrList::ListFile
Definition:
inputstrlist.h:37
InputStrList::m_lb
QListWidget * m_lb
Definition:
inputstrlist.h:84
InputStrList::m_del
QAction * m_del
Definition:
inputstrlist.h:80
QTextCodec
Provides conversion between text encodings.
Definition:
qtextcodec.h:62
InputStrList::updateString
void updateString()
Definition:
inputstrlist.cpp:123
s
static QCString * s
Definition:
config.cpp:1042
InputStrList::InputStrList
InputStrList(QGridLayout *layout, int &row, const QString &id, const QStringList &sl, ListMode v, const QString &docs)
Definition:
inputstrlist.cpp:29
InputStrList::delString
void delString()
Definition:
inputstrlist.cpp:110
InputStrList::kind
Kind kind() const
Definition:
inputstrlist.h:49
Generated by
1.8.11