author | ulf69 <ulf69> | 2004-09-15 17:53:22 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-09-15 17:53:22 (UTC) |
commit | d3925ba5bd25224bc4a60d3d6a107c464994a1ea (patch) (side-by-side diff) | |
tree | 60f69da1d2b79ee3081e7ef5c09a46470ca6eda0 /pwmanager/pwmanager/pwmviewstyle_0.h | |
parent | ce83a3479d23b9e8a59c745ccd0a0b14f64ef4e8 (diff) | |
download | kdepimpi-d3925ba5bd25224bc4a60d3d6a107c464994a1ea.zip kdepimpi-d3925ba5bd25224bc4a60d3d6a107c464994a1ea.tar.gz kdepimpi-d3925ba5bd25224bc4a60d3d6a107c464994a1ea.tar.bz2 |
initial revision
Diffstat (limited to 'pwmanager/pwmanager/pwmviewstyle_0.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | pwmanager/pwmanager/pwmviewstyle_0.h | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/pwmanager/pwmanager/pwmviewstyle_0.h b/pwmanager/pwmanager/pwmviewstyle_0.h new file mode 100644 index 0000000..cc564c3 --- a/dev/null +++ b/pwmanager/pwmanager/pwmviewstyle_0.h @@ -0,0 +1,99 @@ +/*************************************************************************** + * * + * copyright (C) 2004 by Michael Buesch * + * email: mbuesch@freenet.de * + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License version 2 * + * as published by the Free Software Foundation. * + * * + ***************************************************************************/ + +/*************************************************************************** + * copyright (C) 2004 by Ulf Schenk + * This file is originaly based on version 1.0.1 of pwmanager + * and was modified to run on embedded devices that run microkde + * + * $Id$ + **************************************************************************/ + +#ifndef PWMVIEWSTYLE_0_H +#define PWMVIEWSTYLE_0_H + +#include <qhbox.h> +#include <qvbox.h> +#include <qpushbutton.h> +#ifndef PWM_EMBEDDED +#include <qtextedit.h> +#include <qsplitter.h> +#else +#include <qmultilineedit.h> +#include <KDGanttMinimizeSplitter.h> +#endif +#include <qlabel.h> +#include <qcombobox.h> + +class PwMView; +class ListViewPwM; +class CommentBox; + +class PwMViewStyle_0 : public QObject +{ +public: + PwMViewStyle_0(PwMView *view); + ~PwMViewStyle_0(); + + ListViewPwM * getLv() + { return lv; } + CommentBox * getCommentBox() + { return commentBox; } + + /** returns the currently selected category */ + QString getCurrentCategory() + { return categoriesCombo->currentText(); } + /** add Category to the view */ + void addCategory(const QString &cat) + { categoriesCombo->insertItem(cat); } + /** delete Category from view */ + void delCategory(const QString &cat); + /** delete all categories from view */ + void delAllCategories() + { categoriesCombo->clear(); } + /** select the specified category */ + void selectCategory(const QString &cat); + /** returns the number of categories in this view. + * This value dosn't say anything about the number of + * categories in the document. + */ + int numCategories() + { return categoriesCombo->count(); } + /** resize the view */ + void resize(const QSize &size) + { vbox1->resize(size); } + +protected: + /** main list view */ + ListViewPwM *lv; + /** categories combo-box */ + QComboBox *categoriesCombo; + /** title string for the categories combo or list box */ + QLabel *categoriesTitle; + /** hbox1 for widget style */ + QHBox *hbox1; + /** vbox1 for widget style */ + QVBox *vbox1; + /** splitter for commentTextEdit */ +#ifndef PWM_EMBEDDED + QSplitter *splitter1; +#else + KDGanttMinimizeSplitter * splitter1; +#endif + /** push button to change the category name */ + QPushButton *renCatButton; + /** push button to delete the category */ + QPushButton *delCatButton; + /** comment box */ + CommentBox *commentBox; +}; + +#endif |