22 #include <QGridLayout> 23 #include <QWheelEvent> 26 #include <QFileDialog> 43 : m_default(s), m_sm(m), m_index(0), m_docs(docs), m_id(id),
44 m_absPath(absPath==
QString::fromLatin1(
"1"))
49 layout->addWidget(
m_lab, row, 0 );
59 layout->addWidget(
m_lab, row, 0 );
66 layout->addWidget(
m_le, row, 1 );
68 m_br->setIconSize(QSize(24,24));
72 file->setToolTip(tr(
"Browse to a file"));
73 layout->addWidget(
m_br,row,2 );
77 m_im->setMinimumSize(1,55);
80 layout->addWidget(
m_im,row,1 );
86 dir->setToolTip(tr(
"Browse to a folder"));
87 layout->addWidget(
m_br,row,2 );
92 layout->addWidget(
m_le, row, 1, 1, 2 );
104 m_str = s+QChar::fromLatin1(
'!');
145 m_im->setText(tr(
"No Project logo selected."));
159 m_im->setPixmap(pm.scaledToHeight(55,Qt::SmoothTransformation));
175 m_lab->setEnabled(state);
189 tr(
"Select file"),path);
195 fileName =
m_absPath ? fileName : dir.relativeFilePath(fileName);
203 tr(
"Select directory"),path);
209 dirName =
m_absPath ? dirName : dir.relativeFilePath(dirName);
233 if (index!=-1 &&
m_com)
m_com->setCurrentIndex(index);
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)
def connect(nxgraph, k1, k2, p1=0, p2=0, kwds)
void wheelEvent(QWheelEvent *e)
The QFile class is an I/O device that operates on files.
The QTextStream class provides basic functions for reading and writing text using a QIODevice...
void writeStringValue(QTextStream &t, QTextCodec *codec, const QString &s)
Provides conversion between text encodings.
The QFileInfo class provides system-independent file information.
static MainWindow & instance()
virtual bool exists() const