mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/MI-38.git
synced 2026-01-24 00:15:39 +03:00
66 lines
1.7 KiB
C++
66 lines
1.7 KiB
C++
#ifndef EXPORTDIALOG_H
|
|
#define EXPORTDIALOG_H
|
|
|
|
#include <QDialog>
|
|
#include <QTreeWidget>
|
|
#include "s1000d_manager.h"
|
|
|
|
namespace Ui {
|
|
class ExportDialog;
|
|
}
|
|
|
|
class ExportDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ExportDialog(QWidget *parent = nullptr, S1000D_Manager* _SM = nullptr);
|
|
~ExportDialog();
|
|
void setPackName(QString packname);
|
|
QString getPackName();
|
|
void setPackDir(QString packdir);
|
|
QString getPackDir();
|
|
void setPackTitle(QString packtitle);
|
|
QString getPackTitle();
|
|
void fillTree(QTreeWidget* tree);
|
|
void fillTreeItem(QTreeWidgetItem* treeItem, QTreeWidgetItem* dlgItem);
|
|
QTreeWidget* getDlgTreeWidget();
|
|
void setS1000Dlabel(QString text, QString color);
|
|
void setSCORMlabel(QString text, QString color);
|
|
void fillPackageList();
|
|
void setPackageListIndex(int ind);
|
|
|
|
bool flagCanSetCheck;
|
|
bool ignore_cbPackageList_events=false;
|
|
int curPackIndex = -1;
|
|
|
|
private slots:
|
|
void on_btnCloseDlg_clicked();
|
|
void on_btnExportS1000D_clicked();
|
|
void on_btnExportSCORM_clicked();
|
|
void on_dlgTree_itemChanged(QTreeWidgetItem *item, int column);
|
|
|
|
void on_btnChooseDir_clicked();
|
|
|
|
void on_cbPackageList_currentIndexChanged(int index);
|
|
void on_cbPackageList_currentTextChanged(QString newPackName);
|
|
|
|
void hidelabels();
|
|
void on_btnPackageAdd_clicked();
|
|
void on_btnPackageDel_clicked();
|
|
void closeEvent(QCloseEvent *event);
|
|
void on_cbPackageList_editTextChanged(const QString &arg1);
|
|
void on_lePackName_textEdited(const QString &arg1);
|
|
void on_lePackTitle_textEdited(const QString &arg1);
|
|
|
|
private:
|
|
Ui::ExportDialog *ui;
|
|
S1000D_Manager* SM;
|
|
|
|
Q_SIGNALS:
|
|
void actionS1000Dexport();
|
|
void actionSCORMexport();
|
|
};
|
|
|
|
#endif // EXPORTDIALOG_H
|