File indexing completed on 2024-12-01 11:20:35

0001 /***************************************************************************
0002  *   Copyright (C) 2003-2005 by David Saxton                               *
0003  *   david@bluehaze.org                                                    *
0004  *                                                                         *
0005  *   This program is free software; you can redistribute it and/or modify  *
0006  *   it under the terms of the GNU General Public License as published by  *
0007  *   the Free Software Foundation; either version 2 of the License, or     *
0008  *   (at your option) any later version.                                   *
0009  ***************************************************************************/
0010 
0011 #ifndef NEWFILEDLG_H
0012 #define NEWFILEDLG_H
0013 
0014 #include <QDialog>
0015 
0016 class MicroSelectWidget;
0017 class NewFileWidget;
0018 // class Q3IconViewItem; // 2018.06.02 - not used
0019 
0020 /**
0021 A standard dialog for getting file details from the user for a new project
0022 @short Dialog for new file details
0023 @author David Saxton
0024 */
0025 class NewFileDlg : public QDialog
0026 {
0027     Q_OBJECT
0028 public:
0029     NewFileDlg(QWidget *parent);
0030 
0031     void accept() override;
0032 
0033     int fileType() const
0034     {
0035         return m_fileType;
0036     }
0037     int codeType() const
0038     {
0039         return m_codeType;
0040     }
0041     bool addToProject() const
0042     {
0043         return m_bAddToProject;
0044     }
0045     QString microID() const
0046     {
0047         return m_microID;
0048     }
0049     MicroSelectWidget *microSelectWidget() const;
0050 
0051 public slots:
0052     void fileTypeChanged();
0053 
0054 protected:
0055     int m_fileType;
0056     int m_codeType;
0057     bool m_bAddToProject;
0058     QString m_microID;
0059 
0060     NewFileWidget *m_pNewFileWidget;
0061     QWidget *m_pMainParent;
0062 };
0063 
0064 #endif