File indexing completed on 2024-05-12 16:40:16

0001 /**  This file is part of the KDE project
0002  *
0003  *  Copyright (C) 2011 Adam Pigg <adam@piggz.co.uk>
0004  *
0005  *  This library is free software; you can redistribute it and/or
0006  *  modify it under the terms of the GNU Library General Public
0007  *  License as published by the Free Software Foundation; either
0008  *  version 2 of the License, or (at your option) any later version.
0009  *
0010  *  This library is distributed in the hope that it will be useful,
0011  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
0012  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0013  *  Library General Public License for more details.
0014  *
0015  *  You should have received a copy of the GNU Library General Public License
0016  *  along with this library; see the file COPYING.LIB.  If not, write to
0017  *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0018  *  Boston, MA 02110-1301, USA.
0019  */
0020 
0021 
0022 
0023 #ifndef KEXIMOBILENAVIGATOR_H
0024 #define KEXIMOBILENAVIGATOR_H
0025 
0026 #include <QWidget>
0027 #include <QHBoxLayout>
0028 #include <widget/navigator/KexiProjectNavigator.h>
0029 
0030 class KexiProjectModel;
0031 class KexiProject;
0032 
0033 class KexiMobileNavigator : public QWidget
0034 {
0035     Q_OBJECT
0036 public:
0037     explicit KexiMobileNavigator(QWidget* parent = 0, Qt::WindowFlags f = 0);
0038     virtual ~KexiMobileNavigator();
0039 
0040     void setProject(KexiProject*);
0041 
0042 private Q_SLOTS:
0043     void slotOpenItem(KexiPart::Item *item);
0044 
0045 Q_SIGNALS:
0046     void openItem(KexiPart::Item *item);
0047 
0048 private:
0049     KexiProject *m_project;
0050     KexiProjectModel* m_reportModel;
0051     KexiProjectNavigator *m_formNavigator;
0052     KexiProjectNavigator *m_reportNavigator;
0053 
0054     QHBoxLayout *m_layout;
0055 };
0056 
0057 #endif // KEXIMOBILENAVIGATOR_H