diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2 (patch) | |
tree | d3bb9f5d25a2dc09ca81adecf39621d871534297 /keduca/keducabuilder/kcontrolheader.h | |
download | tdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.tar.gz tdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'keduca/keducabuilder/kcontrolheader.h')
-rw-r--r-- | keduca/keducabuilder/kcontrolheader.h | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/keduca/keducabuilder/kcontrolheader.h b/keduca/keducabuilder/kcontrolheader.h new file mode 100644 index 00000000..86752ae0 --- /dev/null +++ b/keduca/keducabuilder/kcontrolheader.h @@ -0,0 +1,86 @@ +/*************************************************************************** + kcontrolheader.h - description + ------------------- + begin : Tue May 29 2001 + copyright : (C) 2001 by Javier Campos + email : javi@asyris.org +***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef KCONTROLHEADER_H +#define KCONTROLHEADER_H + +#include "../libkeduca/fileread.h" +#include "klangcombo.h" + +#include <kdialogbase.h> +#include <kurlrequester.h> + + +/**Information header + * Options Dialog for KEduca Document. + * Will be called for each new KEduca Document and from the Editor (class KEducaBuilder) + *@author Javier Campos + */ + +class KControlHeader : public KDialogBase { + Q_OBJECT + +public: + KControlHeader(FileRead *keducaFile, QWidget *parent=0, const char *name=0); + ~KControlHeader(); + +private: + + // Private attributes + + /** Keduca pointer */ + FileRead *_keducaFile; + /** Title */ + QLineEdit *_headerTitle; + /** Header type */ + KComboBox *_headerType; + /** Header category */ + KComboBox *_headerCategory; + /** Header level */ + KComboBox *_headerLevel; + /** Header lang */ + KLanguageCombo *_headerLang; + /** Header picture */ + KURLRequester *_headerPicture; + /** Header name */ + QLineEdit *_headerName; + /** Header email */ + QLineEdit *_headerEmail; + /** Header www */ + QLineEdit *_headerWWW; + /** Default categories */ + QStringList _defaultCategories; + + // Private methods + + /** Init graphical interface */ + void init(); + /** Insert header */ + void insertHeader(); + /** Load country list */ + void loadCountryList(KLanguageCombo *combo); + /** Write settings */ + void configWrite(); + /** Read settings */ + void configRead(); + +private slots: + /** Ok push */ + void slotOk(); +}; + +#endif |