[KLF Application][KLF Tools][KLF Backend][KLF Home]
KLatexFormula Project
Public Member Functions | Static Public Member Functions | List of all members
KLFLibNewSubResDlg Class Reference

#include <klflibview.h>

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

Public Member Functions

 KLFLibNewSubResDlg (KLFLibResourceEngine *resource, QWidget *parent=0)
 
virtual ~KLFLibNewSubResDlg ()
 
QString newSubResourceName () const
 
QString newSubResourceTitle () const
 
- Public Member Functions inherited from QDialog
 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)
 

Detailed Description

Definition at line 1048 of file klflibview.h.

Constructor & Destructor Documentation

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

Definition at line 4702 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 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().

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

References QRegExp::cap(), QRegExp::indexIn(), QString::isEmpty(), 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().


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

Generated by doxygen 1.8.11