Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
doxygen-1.8.11
addon
doxywizard
inputstring.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 _INPUTSTRING_H
16
#define _INPUTSTRING_H
17
18
#include "
input.h
"
19
20
#include <QObject>
21
#include <QMap>
22
#include <QStringList>
23
24
class
QLabel;
25
class
QLineEdit;
26
class
QToolBar;
27
class
QComboBox;
28
class
QGridLayout;
29
30
class
InputString
:
public
QObject,
public
Input
31
{
32
Q_OBJECT
33
34
public
:
35
enum
StringMode
{
StringFree
=0,
36
StringFile
=1,
37
StringDir
=2,
38
StringFixed
=3,
39
StringImage
=4
40
};
41
42
InputString
( QGridLayout *layout,
int
&
row
,
43
const
QString
&
id
,
const
QString
&
s
,
44
StringMode
m
,
45
const
QString
&
docs
,
46
const
QString
&absPath =
QString
() );
47
~InputString
();
48
void
addValue
(
QString
s);
49
void
setDefault
();
50
51
// Input
52
QVariant &
value
();
53
void
update
();
54
Kind
kind
()
const
{
return
String
; }
55
QString
docs
()
const
{
return
m_docs
; }
56
QString
id
()
const
{
return
m_id
; }
57
QString
templateDocs
()
const
{
return
m_tdocs
; }
58
void
addDependency
(
Input
*) { Q_ASSERT(
false
); }
59
void
setEnabled
(
bool
);
60
void
updateDependencies
() {}
61
void
writeValue
(
QTextStream
&
t
,
QTextCodec
*codec);
62
void
setTemplateDocs
(
const
QString
&docs) {
m_tdocs
=
docs
; }
63
64
public
slots:
65
void
reset
();
66
void
setValue
(
const
QString
&);
67
68
signals:
69
void
changed
();
70
void
showHelp
(
Input
*);
71
72
private
slots:
73
void
browse
();
74
void
clear
();
75
void
help
();
76
77
private
:
78
void
updateDefault
();
79
QLabel *
m_lab
;
80
QLineEdit *
m_le
;
81
QLabel *
m_im
;
82
QToolBar *
m_br
;
83
QComboBox *
m_com
;
84
QString
m_str
;
85
QString
m_default
;
86
StringMode
m_sm
;
87
QStringList
m_values
;
88
int
m_index
;
89
QVariant
m_value
;
90
QString
m_docs
;
91
QString
m_id
;
92
bool
m_absPath
;
93
QString
m_tdocs
;
94
};
95
96
#endif
InputString::addValue
void addValue(QString s)
Definition:
inputstring.cpp:221
InputString::setEnabled
void setEnabled(bool)
Definition:
inputstring.cpp:173
InputString::value
QVariant & value()
Definition:
inputstring.cpp:236
InputString::setValue
void setValue(const QString &)
Definition:
inputstring.cpp:121
InputString
Definition:
inputstring.h:30
InputString::id
QString id() const
Definition:
inputstring.h:56
InputString::showHelp
void showHelp(Input *)
InputString::StringMode
StringMode
Definition:
inputstring.h:35
input.h
InputString::m_docs
QString m_docs
Definition:
inputstring.h:90
InputString::changed
void changed()
InputString::updateDefault
void updateDefault()
Definition:
inputstring.cpp:130
InputString::m_str
QString m_str
Definition:
inputstring.h:84
InputString::m_tdocs
QString m_tdocs
Definition:
inputstring.h:93
InputString::reset
void reset()
Definition:
inputstring.cpp:247
InputString::m_le
QLineEdit * m_le
Definition:
inputstring.h:80
InputString::m_br
QToolBar * m_br
Definition:
inputstring.h:82
muoncounters.row
row
Definition:
muoncounters.py:36
QString
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
Definition:
qstring.h:350
InputString::StringDir
Definition:
inputstring.h:37
InputString::~InputString
~InputString()
Definition:
inputstring.cpp:116
InputString::StringFixed
Definition:
inputstring.h:38
InputString::m_index
int m_index
Definition:
inputstring.h:88
InputString::writeValue
void writeValue(QTextStream &t, QTextCodec *codec)
Definition:
inputstring.cpp:253
InputString::help
void help()
Definition:
inputstring.cpp:110
InputString::docs
QString docs() const
Definition:
inputstring.h:55
InputString::StringFree
Definition:
inputstring.h:35
InputString::setTemplateDocs
void setTemplateDocs(const QString &docs)
Definition:
inputstring.h:62
InputString::updateDependencies
void updateDependencies()
Definition:
inputstring.h:60
Input::String
Definition:
input.h:16
InputString::m_im
QLabel * m_im
Definition:
inputstring.h:81
InputString::m_id
QString m_id
Definition:
inputstring.h:91
QStringList
A list of strings.
Definition:
qstringlist.h:51
InputString::m_default
QString m_default
Definition:
inputstring.h:85
reco_momentum_tuples.t
t
Definition:
reco_momentum_tuples.py:25
InputString::m_absPath
bool m_absPath
Definition:
inputstring.h:92
InputString::m_com
QComboBox * m_com
Definition:
inputstring.h:83
InputString::StringImage
Definition:
inputstring.h:39
InputString::m_value
QVariant m_value
Definition:
inputstring.h:89
InputString::templateDocs
QString templateDocs() const
Definition:
inputstring.h:57
Input
Definition:
input.h:9
InputString::StringFile
Definition:
inputstring.h:36
cache_state.m
m
Definition:
cache_state.py:415
InputString::setDefault
void setDefault()
Definition:
inputstring.cpp:230
InputString::browse
void browse()
Definition:
inputstring.cpp:183
QTextStream
The QTextStream class provides basic functions for reading and writing text using a QIODevice...
Definition:
qtextstream.h:53
Input::Kind
Kind
Definition:
input.h:12
InputString::clear
void clear()
Definition:
inputstring.cpp:216
InputString::m_sm
StringMode m_sm
Definition:
inputstring.h:86
InputString::update
void update()
Definition:
inputstring.cpp:241
InputString::m_lab
QLabel * m_lab
Definition:
inputstring.h:79
QTextCodec
Provides conversion between text encodings.
Definition:
qtextcodec.h:62
InputString::m_values
QStringList m_values
Definition:
inputstring.h:87
InputString::InputString
InputString(QGridLayout *layout, int &row, const QString &id, const QString &s, StringMode m, const QString &docs, const QString &absPath=QString())
Definition:
inputstring.cpp:39
s
static QCString * s
Definition:
config.cpp:1042
InputString::addDependency
void addDependency(Input *)
Definition:
inputstring.h:58
InputString::kind
Kind kind() const
Definition:
inputstring.h:54
Generated by
1.8.11