1 /**************************************************************************************** 2 * Copyright (c) 2009 Nikolaj Hald Nielsen <nhn@kde.org> * 3 * Copyright (c) 2009 Mark Kretschmann <kretschmann@kde.org> * 4 * * 5 * This program is free software; you can redistribute it and/or modify it under * 6 * the terms of the GNU General Public License as published by the Free Software * 7 * Foundation; either version 2 of the License, or (at your option) any later * 8 * version. * 9 * * 10 * This program is distributed in the hope that it will be useful, but WITHOUT ANY * 11 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * 12 * PARTICULAR PURPOSE. See the GNU General Public License for more details. * 13 * * 14 * You should have received a copy of the GNU General Public License along with * 15 * this program. If not, see <http://www.gnu.org/licenses/>. * 16 ****************************************************************************************/ 17 18 #ifndef BROWSERDOCK_H 19 #define BROWSERDOCK_H 20 21 #include "BrowserBreadcrumbWidget.h" 22 #include "BrowserCategoryList.h" 23 #include "BrowserMessageArea.h" 24 #include "widgets/AmarokDockWidget.h" 25 26 #include <QPointer> 27 28 class BoxWidget; 29 30 /** 31 The base widget that contains all other browsers, organized in a dig down interface 32 */ 33 class BrowserDock : public AmarokDockWidget 34 { 35 Q_OBJECT 36 37 public: 38 explicit BrowserDock( QWidget *parent ); 39 40 ~BrowserDock() override; 41 42 BrowserCategoryList *list() const; 43 void navigate( const QString &target ); 44 void polish() override; 45 46 private Q_SLOTS: 47 void home(); 48 void paletteChanged( const QPalette &palette ); 49 50 private: 51 BrowserBreadcrumbWidget *m_breadcrumbWidget; 52 QPointer<BrowserCategoryList> m_categoryList; 53 BoxWidget *m_mainWidget; 54 BrowserMessageArea *m_messageArea; 55 }; 56 57 #endif 58