[KLF Application][KLF Tools][KLF Backend][KLF Home]
KLatexFormula Project
Public Member Functions | Static Public Member Functions

KLFLibNewSubResDlg Class Reference

#include <klflibview.h>

Inheritance diagram for KLFLibNewSubResDlg:
Inheritance graph
[legend]
Collaboration diagram for KLFLibNewSubResDlg:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 KLFLibNewSubResDlg (KLFLibResourceEngine *resource, QWidget *parent=0)
virtual ~KLFLibNewSubResDlg ()
QString newSubResourceName () const
QString newSubResourceTitle () const

Static Public Member Functions

static QString createSubResourceIn (KLFLibResourceEngine *resource, QWidget *parent=0)
static QString makeSubResInternalName (const QString &title)

Detailed Description

Definition at line 1044 of file klflibview.h.


Constructor & Destructor Documentation

KLFLibNewSubResDlg::KLFLibNewSubResDlg ( KLFLibResourceEngine resource,
QWidget parent = 0 
)
KLFLibNewSubResDlg::~KLFLibNewSubResDlg ( ) [virtual]

Definition at line 4676 of file klflibview.cpp.


Member Function Documentation

QString KLFLibNewSubResDlg::createSubResourceIn ( KLFLibResourceEngine resource,
QWidget parent = 0 
) [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 4723 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().

QString KLFLibNewSubResDlg::makeSubResInternalName ( const QString title) [static]

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 4691 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 4680 of file klflibview.cpp.

Referenced by createSubResourceIn().

QString KLFLibNewSubResDlg::newSubResourceTitle ( ) const

Definition at line 4685 of file klflibview.cpp.

Referenced by createSubResourceIn().


The documentation for this class was generated from the following files:

Generated by doxygen 1.7.3