#include <inputstrlist.h>
Definition at line 31 of file inputstrlist.h.
Enumerator |
---|
ListString |
|
ListFile |
|
ListDir |
|
ListFileDir |
|
Definition at line 36 of file inputstrlist.h.
Definition at line 29 of file inputstrlist.cpp.
40 QToolBar *toolBar =
new QToolBar;
41 toolBar->setIconSize(QSize(24,24));
44 m_add->setToolTip(tr(
"Add item"));
47 m_del->setToolTip(tr(
"Delete selected item"));
50 m_upd->setToolTip(tr(
"Update selected item"));
52 m_lb =
new QListWidget;
64 m_brFile->setToolTip(tr(
"Browse to a file"));
70 m_brDir->setToolTip(tr(
"Browse to a folder"));
73 QHBoxLayout *rowLayout =
new QHBoxLayout;
74 rowLayout->addWidget(
m_le );
75 rowLayout->addWidget( toolBar );
77 layout->addLayout( rowLayout,
row,1,1,2 );
78 layout->addWidget(
m_lb,
row+1,1,1,2 );
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
static QString fromLatin1(const char *, int len=-1)
def connect(nxgraph, k1, k2, p1=0, p2=0, kwds)
void InputStrList::addDependency |
( |
Input * |
| ) |
|
|
inlinevirtual |
void InputStrList::addString |
( |
| ) |
|
|
privateslot |
void InputStrList::browseDir |
( |
| ) |
|
|
privateslot |
Definition at line 184 of file inputstrlist.cpp.
187 QString dirName = QFileDialog::getExistingDirectory();
194 dirName =
dir.relativeFilePath(dirName);
200 m_lb->addItem(dirName);
205 m_le->setText(dirName);
Traverses directory structures and contents in a platform-independent way.
Iterator append(const T &x)
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
static QString fromLatin1(const char *, int len=-1)
The QFileInfo class provides system-independent file information.
static MainWindow & instance()
void InputStrList::browseFiles |
( |
| ) |
|
|
privateslot |
Definition at line 154 of file inputstrlist.cpp.
157 QStringList fileNames = QFileDialog::getOpenFileNames();
162 for ( it= fileNames.
begin(); it != fileNames.
end(); ++it )
168 fileName =
dir.relativeFilePath(*it);
174 m_lb->addItem(fileName);
Traverses directory structures and contents in a platform-independent way.
Iterator append(const T &x)
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
The QFileInfo class provides system-independent file information.
static MainWindow & instance()
void InputStrList::changed |
( |
| ) |
|
|
signal |
void InputStrList::delString |
( |
| ) |
|
|
privateslot |
QString InputStrList::docs |
( |
| ) |
const |
|
inlinevirtual |
void InputStrList::help |
( |
| ) |
|
|
privateslot |
Kind InputStrList::kind |
( |
| ) |
const |
|
inlinevirtual |
void InputStrList::reset |
( |
| ) |
|
|
slot |
void InputStrList::selectText |
( |
const QString & |
s | ) |
|
|
privateslot |
void InputStrList::setEnabled |
( |
bool |
state | ) |
|
|
virtual |
void InputStrList::setTemplateDocs |
( |
const QString & |
docs | ) |
|
|
inlinevirtual |
void InputStrList::showHelp |
( |
Input * |
| ) |
|
|
signal |
QString InputStrList::templateDocs |
( |
| ) |
const |
|
inlinevirtual |
void InputStrList::update |
( |
| ) |
|
|
virtual |
void InputStrList::updateDefault |
( |
| ) |
|
|
private |
Definition at line 231 of file inputstrlist.cpp.
static QString fromLatin1(const char *, int len=-1)
void InputStrList::updateDependencies |
( |
| ) |
|
|
inlinevirtual |
void InputStrList::updateString |
( |
| ) |
|
|
privateslot |
Definition at line 123 of file inputstrlist.cpp.
125 if (
m_lb->currentRow()!=-1 && !
m_le->text().isEmpty())
127 m_lb->currentItem()->setText(
m_le->text());
Iterator insert(Iterator it, const T &x)
QVariant & InputStrList::value |
( |
| ) |
|
|
virtual |
Implements Input.
Definition at line 248 of file inputstrlist.cpp.
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
void writeStringValue(QTextStream &t, QTextCodec *codec, const QString &s)
QTextStream & endl(QTextStream &s)
QAction* InputStrList::m_add |
|
private |
QAction* InputStrList::m_brDir |
|
private |
QAction* InputStrList::m_brFile |
|
private |
QAction* InputStrList::m_del |
|
private |
QLabel* InputStrList::m_lab |
|
private |
QListWidget* InputStrList::m_lb |
|
private |
QLineEdit* InputStrList::m_le |
|
private |
QAction* InputStrList::m_upd |
|
private |
QVariant InputStrList::m_value |
|
private |
The documentation for this class was generated from the following files: