searchnodesidebar.h

00001 /*
00002  * Silence
00003  *
00004  * Copyright (C) 2009 Yves Adler, Manuel Unglaub
00005  *
00006  * This file is part of Silence.
00007  *
00008  * Silence is free software: you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation, version GPLv2 only of the License.
00011  *
00012  * Silence is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016 
00017  * You should have received a copy of the GNU General Public License
00018  * along with Silence.  If not, see <http://www.gnu.org/licenses/>.
00019  */
00020 
00021 #ifndef SEARCHNODESIDEBAR_H
00022 #define SEARCHNODESIDEBAR_H
00023 
00024 #include "src/data/model/filtermodel.h"
00025 #include "src/data/model/listproxymodel.h"
00026 #include "src/gui/widget/labellist.h"
00027 #include "src/gui/widget/searchnodeoptions.h"
00028 #include <QDockWidget>
00029 #include <QGridLayout>
00030 #include <klineedit.h>
00031 #include <QListView>
00032 
00033 
00044 class SearchNodeSidebar : public QDockWidget
00045 {
00046     Q_OBJECT
00047 
00048     public:
00059         SearchNodeSidebar(const QString &title, QWidget *parent = 0, Qt::WindowFlags flags = 0);
00060 
00065         ~SearchNodeSidebar();
00066 
00070         void updateLabels();
00071 
00072     private slots:
00073         void selectionChanged(QModelIndex current);
00074 
00075     private:
00076         ListProxyModel *listProxy;
00077         FilterModel *filtermodel;
00078 
00079         QGridLayout *layout;
00080         QFrame  *frame;
00081         SearchNodeOptions *searchnodeoptions;
00082         LabelList *labellist;
00083         QListView *resultList;
00084         KLineEdit *searchedit;
00085 
00086         void connectOptions();
00087         void connectLabelList();
00088 };
00089 
00090 #endif // SEARCHNODESIDEBAR_H
00091 
Generated on Fri May 14 19:12:50 2010 for Silence by  doxygen 1.6.3