#include <klflibview.h>
Public Member Functions | |
KLFLibNewSubResDlg (KLFLibResourceEngine *resource, QWidget *parent=0) | |
virtual | ~KLFLibNewSubResDlg () |
QString | newSubResourceName () const |
QString | newSubResourceTitle () const |
![]() | |
QDialog (QWidget *parent=0, Qt::WindowFlags f=0) | |
accept () | |
accepted () | |
done (int r) | |
exec () | |
finished (int result) | |
reject () | |
rejected () | |
result () | |
setResult (int i) | |
QDialog (QWidget *parent, const char *name, bool modal=false, Qt::WindowFlags f=0) | |
Static Public Member Functions | |
static QString | createSubResourceIn (KLFLibResourceEngine *resource, QWidget *parent=0) |
static QString | makeSubResInternalName (const QString &title) |
Definition at line 1048 of file klflibview.h.
KLFLibNewSubResDlg::KLFLibNewSubResDlg | ( | KLFLibResourceEngine * | resource, |
QWidget * | parent = 0 |
||
) |
Definition at line 4677 of file klflibview.cpp.
References KLFLibResourceEngine::FeatureSubResourceProps, KLFLibResourceEngine::FeatureSubResources, KLFLibResourceEngine::supportedFeatureFlags(), and KLFLibResourceEngine::title().
|
virtual |
Definition at line 4702 of file klflibview.cpp.
|
static |
Prompt to create a sub-resource in resource resource
. Then actually create the sub-resource and return the name of the sub-resource that was created.
Returns a null string in case of error or if the operation was canceled.
Definition at line 4749 of file klflibview.cpp.
References KLFLibResourceEngine::createSubResource(), QDialog::exec(), KLFLibResourceEngine::FeatureSubResources, newSubResourceName(), newSubResourceTitle(), QDialog::result(), KLFLibResourceEngine::supportedFeatureFlags(), QUrl::toString(), and KLFLibResourceEngine::url().
Referenced by KLFLibBrowser::slotResourceNewSubRes().
Choose a nice internal name for the given title. Only "nice" characters will be used in the return value, namely "[A-Za-z0-9_]"
.
If title
only consists of allowed characters, it is returned unchanged.
Definition at line 4717 of file klflibview.cpp.
References QRegExp::cap(), QRegExp::indexIn(), QRegExp::matchedLength(), QString::replace(), and QChar::toUpper().
Referenced by KLFLibDBEngineFactory::createResource().
QString KLFLibNewSubResDlg::newSubResourceName | ( | ) | const |
Definition at line 4706 of file klflibview.cpp.
Referenced by createSubResourceIn().
QString KLFLibNewSubResDlg::newSubResourceTitle | ( | ) | const |
Definition at line 4711 of file klflibview.cpp.
Referenced by createSubResourceIn().