File indexing completed on 2022-09-27 13:41:20

0001 /*
0002 
0003     Copyright (C) 2001 The Kompany
0004           2002-2003 Ilya Konstantinov <kde-devel@future.shiny.co.il>
0005           2002-2003 Marcus Meissner <marcus@jet.franken.de>
0006           2003      Nadeem Hasan <nhasan@nadmm.com>
0007 
0008     This program is free software; you can redistribute it and/or modify
0009     it under the terms of the GNU General Public License as published by
0010     the Free Software Foundation; either version 2 of the License, or
0011     (at your option) any later version.
0012 
0013     This program is distributed in the hope that it will be useful,
0014     but WITHOUT ANY WARRANTY; without even the implied warranty of
0015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0016     GNU General Public License for more details.
0017 
0018     You should have received a copy of the GNU General Public License
0019     along with this program; if not, write to the Free Software
0020     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
0021 
0022 */
0023 #ifndef __kameraconfigdialog_h__
0024 #define __kameraconfigdialog_h__
0025 
0026 #include <QMap>
0027 #include <QDialog>
0028 class QTabWidget;
0029 
0030 extern "C" {
0031     #include <gphoto2.h>
0032 }
0033 
0034 class KameraConfigDialog : public QDialog
0035 {
0036     Q_OBJECT
0037 public:
0038     explicit KameraConfigDialog(Camera *camera, CameraWidget *widget,
0039                QWidget *parent = nullptr);
0040 
0041 private Q_SLOTS:
0042     void slotOk();
0043 
0044 private:
0045     void appendWidget(QWidget *parent, CameraWidget *widget);
0046     void updateWidgetValue(CameraWidget *widget);
0047 
0048     QMap<CameraWidget *, QWidget *> m_wmap;
0049     CameraWidget *m_widgetRoot = nullptr;
0050     QTabWidget *m_tabWidget = nullptr;
0051 };
0052 
0053 #endif