return list;
}
+void Glossary::addItem( GlossaryItem* item )
+{
+ m_itemlist.append( item );
+}
+
+QList<GlossaryItem*> Glossary::itemlist()const
+{
+ return m_itemlist;
+}
+
+void Glossary::clear()
+{
+ m_itemlist.clear();
+}
+
+QString Glossary::name()const
+{
+ return m_name;
+}
+
+void Glossary::setItemlist( QList<GlossaryItem*> list )
+{
+ m_itemlist = list;
+}
+
+QString Glossary::picturePath()const
+{
+ return m_picturepath;
+}
+
+QString Glossary::backgroundPicture()const
+{
+ return m_backgroundpicture;
+}
+
GlossaryDialog::GlossaryDialog( QWidget *parent )
: KDialog( parent ), d( new Private( this ) )
{
return htmlcode;
}
+void GlossaryItem::setName( const QString& s )
+{
+ m_name = s;
+}
+
+void GlossaryItem::setDesc( const QString& s)
+{
+ m_desc = s;
+}
+
+void GlossaryItem::setPictures( const QString& s ){
+ m_pic = QStringList(s);
+}
+
+QString GlossaryItem::name() const
+{
+ return m_name;
+}
+
+QString GlossaryItem::desc() const
+{
+ return m_desc;
+}
+
+QStringList GlossaryItem::ref() const
+{
+ return m_ref;
+}
+
+QStringList GlossaryItem::pictures() const
+{
+ return m_pic;
+}
#include "kdeeduglossary.moc"
/**
* add the item @p item to the glossary
*/
- void addItem( GlossaryItem* item ){
- m_itemlist.append( item );
- }
+ void addItem( GlossaryItem* item );
- QList<GlossaryItem*> itemlist()const{
- return m_itemlist;
- }
+ QList<GlossaryItem*> itemlist()const;
/**
* clear the Glossary
*/
- void clear(){
- m_itemlist.clear();
- }
+ void clear();
/**
* does this glossary have items?
/**
* @returns the name of the glossary
*/
- QString name()const{
- return m_name;
- }
+ QString name()const;
/**
* sets the internal list of items to @p list
*/
- void setItemlist( QList<GlossaryItem*> list ){
- m_itemlist = list;
- }
+ void setItemlist( QList<GlossaryItem*> list );
/**
* Every glossaryitem can show pictures. [img src="foo.png]
*/
void setPicturePath( const QString& path );
- QString picturePath()const{
- return m_picturepath;
- }
+ QString picturePath()const;
/**
* defines which picture to use as the background
* @return the picuture used as the background in
* this background
*/
- QString backgroundPicture()const{
- return m_backgroundpicture;
- }
+ QString backgroundPicture()const;
protected:
void init( const KUrl& url, const QString& path );
GlossaryItem(){}
~GlossaryItem(){}
- void setName( const QString& s ){
- m_name = s;
- }
+ void setName( const QString& s );
- void setDesc( const QString& s){
- m_desc = s;
- }
+ void setDesc( const QString& s);
/**
* Set the references for the current GlossaryItem to
*/
void setRef( const QStringList& s);
- void setPictures( const QString& s ){
- m_pic = QStringList(s);
- }
+ void setPictures( const QString& s );
- QString name() const {
- return m_name;
- }
+ QString name() const;
- QString desc() const {
- return m_desc;
- }
+ QString desc() const;
- QStringList ref() const {
- return m_ref;
- }
+ QStringList ref() const;
- QStringList pictures() const {
- return m_pic;
- }
+ QStringList pictures() const;
/**
* @return the formated HTML code for current item.