File indexing completed on 2024-05-05 04:51:42

0001 /*
0002     SPDX-FileCopyrightText: 2003-2007 Sebastian Trueg <trueg@k3b.org>
0003     SPDX-FileCopyrightText: 2010 Michal Malek <michalm@jabster.pl>
0004     SPDX-FileCopyrightText: 1998-2010 Sebastian Trueg <trueg@k3b.org>
0005 
0006     SPDX-License-Identifier: GPL-2.0-or-later
0007 */
0008 
0009 
0010 #ifndef K3B_BOOTIMAGEDIALOG_H
0011 #define K3B_BOOTIMAGEDIALOG_H
0012 
0013 #include "ui_base_k3bbootimagedialog.h"
0014 
0015 class QModelIndex;
0016 
0017 namespace K3b {
0018 
0019     class DataDoc;
0020     class BootItem;
0021     class BootImageModel;
0022 
0023     class BootImageDialog : public QDialog, public Ui::base_K3bBootImageDialog
0024     {
0025         Q_OBJECT
0026 
0027     public:
0028         explicit BootImageDialog( DataDoc* doc, QWidget* parent = 0 );
0029         ~BootImageDialog() override;
0030 
0031     private Q_SLOTS:
0032         void slotNewBootImage();
0033         void slotDeleteBootImage();
0034         void slotToggleOptions();
0035         void slotCurrentChanged( const QModelIndex& current, const QModelIndex& previous );
0036 
0037         /* reimplemented from base_...*/
0038         void slotOptionsChanged();
0039 
0040         void slotNoEmulationToggled( bool );
0041 
0042     private:
0043         void showAdvancedOptions( bool );
0044         void loadBootItemSettings( BootItem* );
0045 
0046         DataDoc* m_doc;
0047         BootImageModel* m_bootImageModel;
0048 
0049         bool m_loadingItem;
0050     };
0051 }
0052 
0053 #endif