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 | 84da08d7b7fcda12c85caeb5a10b4903770a6f69 (patch) | |
tree | 2a6aea76f2dfffb4cc04bb907c4725af94f70e72 /noatun-plugins/oblique/view.h | |
download | tdeaddons-84da08d7b7fcda12c85caeb5a10b4903770a6f69.tar.gz tdeaddons-84da08d7b7fcda12c85caeb5a10b4903770a6f69.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/kdeaddons@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun-plugins/oblique/view.h')
-rw-r--r-- | noatun-plugins/oblique/view.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/noatun-plugins/oblique/view.h b/noatun-plugins/oblique/view.h new file mode 100644 index 0000000..598c0cc --- /dev/null +++ b/noatun-plugins/oblique/view.h @@ -0,0 +1,71 @@ +// Copyright (c) 2003,2004 Charles Samuels <charles@kde.org> +// See the file COPYING for redistribution terms. + +#ifndef VIEW_H +#define VIEW_H + +#include <kmainwindow.h> +#include <kaction.h> +#include <klineedit.h> + +#include "tree.h" + +class SchemaListAction; +class TabWidget; + +class View : public KMainWindow +{ +Q_OBJECT + Oblique *mOblique; + Tree *mTree; + QValueList<Tree*> mTrees; + TabWidget *mTabs; + KAction *mRemoveTabAction; + SchemaListAction *mSchemaListAction; + +public: + View(Oblique *oblique); + ~View(); + + Tree *tree() { return mTree; } + + Oblique *oblique() { return mOblique; } + +public slots: + void addFiles(); + void addDirectory(); + void addTab(); + void removeTab(); + +signals: + void listHidden(); + void listShown(); + +private slots: + void configureToolBars(); + void newToolBarConfig(); + void jumpTextChanged(const QString &text); + void use(Slice*); + void currentTabChanged(QWidget *); + void setSchema(const QString &file); + +protected: + virtual void showEvent(QShowEvent *) { emit listShown(); } + virtual void hideEvent(QHideEvent *) { emit listHidden(); } + void closeEvent(QCloseEvent*); +}; + + +class LineEditAction : public KWidgetAction +{ +Q_OBJECT +public: + LineEditAction(const QString &text, const QObject *reciever, const char *slot, KActionCollection *parent, const char *name); + + KLineEdit *widget() { return static_cast<KLineEdit*>(KWidgetAction::widget()); } + KLineEdit *lineEdit() { return widget(); } +}; + + +#endif + |