}
-bool KEduVocDocument::open(const KURL& url, bool /*append*/)
+bool KEduVocDocument::open(const KUrl& url, bool /*append*/)
{
Init();
if (!url.isEmpty())
}
-bool KEduVocDocument::saveAs(QObject *parent, const KURL & url, FileType ft, const QString & generator)
+bool KEduVocDocument::saveAs(QObject *parent, const KUrl & url, FileType ft, const QString & generator)
{
connect( this, SIGNAL(progressChanged(KEduVocDocument*,int)), parent, SLOT(slotProgress(KEduVocDocument*,int)) );
- KURL tmp (url);
+ KUrl tmp (url);
if (ft == automatic)
{
* are in the result.
* @returns true if successful
*/
- bool open(const KURL& url, bool append);
+ bool open(const KUrl& url, bool append);
/**
* Saves the data under the given name
* @param generator the name of the application saving the document
* @returns true if successful
*/
- bool saveAs(QObject *parent, const KURL & url, FileType ft, const QString & generator);
+ bool saveAs(QObject *parent, const KUrl & url, FileType ft, const QString & generator);
/**
* @returns the number of entries
/**
* @returns the URL of the XML file
*/
- inline KURL URL() const {return m_url; }
+ inline KUrl URL() const {return m_url; }
/**
* Sets the URL of the XML file
*/
- inline void setURL(const KURL& url) {m_url = url;}
+ inline void setURL(const KUrl& url) {m_url = url;}
/**
* @returns the title of the XML file
private:
bool m_dirty;
- KURL m_url;
+ KUrl m_url;
QList<bool> m_sortIdentifier;
bool m_sortLesson;
bool m_unknownAttribute;
#include <qstringlist.h>
#include <qtoolbutton.h>
-Glossary::Glossary( const KURL& url, const QString& path )
+Glossary::Glossary( const KUrl& url, const QString& path )
{
init( url, path );
}
{
}
-void Glossary::init( const KURL& url, const QString& path )
+void Glossary::init( const KUrl& url, const QString& path )
{
// setting a generic name for a new glossary
m_name = i18n( "Glossary" );
}
}
-bool Glossary::loadLayout( QDomDocument &Document, const KURL& url )
+bool Glossary::loadLayout( QDomDocument &Document, const KUrl& url )
{
QFile layoutFile( url.path() );
m_htmlpart = new KHTMLPart( vs, "html-part" );
- connect( m_htmlpart->browserExtension(), SIGNAL( openURLRequestDelayed( const KURL &, const KParts::URLArgs & ) ), this, SLOT( displayItem( const KURL &, const KParts::URLArgs & ) ) );
+ connect( m_htmlpart->browserExtension(), SIGNAL( openURLRequestDelayed( const KUrl &, const KParts::URLArgs & ) ), this, SLOT( displayItem( const KUrl &, const KParts::URLArgs & ) ) );
connect( m_glosstree, SIGNAL(clicked( Q3ListViewItem * )), this, SLOT(slotClicked( Q3ListViewItem * )));
connect( clear, SIGNAL(clicked()), m_search, SLOT(clear()));
KDialogBase::keyPressEvent(e);
}
-void GlossaryDialog::displayItem( const KURL& url, const KParts::URLArgs& )
+void GlossaryDialog::displayItem( const KUrl& url, const KParts::URLArgs& )
{
// using the "host" part of a kurl as reference
QString myurl = url.host().toLower();
* @param url the path of the file to load
* @param path the path of the pictures
*/
- Glossary( const KURL& url, const QString& path = 0 );
+ Glossary( const KUrl& url, const QString& path = 0 );
/**
* Creates a new empty glossary
}
protected:
- void init( const KURL& url, const QString& path );
+ void init( const KUrl& url, const QString& path );
private:
/**
* @return a bool indicating whether the loading of the XML was
* successfull or not
*/
- bool loadLayout( QDomDocument& doc, const KURL& url );
+ bool loadLayout( QDomDocument& doc, const KUrl& url );
QList<GlossaryItem*> m_itemlist;
/**
* The user clicked on a href. Find and display the right item
*/
- void displayItem( const KURL& url, const KParts::URLArgs& args );
+ void displayItem( const KUrl& url, const KParts::URLArgs& args );
};
#endif // KDEEDUGLOSSARY_H