You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

126 lines
3.4 KiB
C

/**
* @file TableWidgetFileReadFileDialog.h
* @brief TimePoint
* @author YanZhiHui (chanyuantiandao@126.com)
* @date 2024-04-19
*/
#ifndef __TABLEWIDGETFILEREADFILEDIALOG_H__
#define __TABLEWIDGETFILEREADFILEDIALOG_H__
#include "FITKWidgetAPI.h"
#include <QDialog>
namespace Ui
{
class TableWidgetFileReadFileDialog;
}
namespace Comp
{
/**
* @brief TimePoint
* @author yanzhihui (chanyuantiandao@126.com)
* @date 2023-08-14
*/
class FITKWidgetAPI TableWidgetFileReadFileDialog : public QDialog
{
Q_OBJECT
public:
/**
* @brief
* @param range
* @param parent
* @author yanzhihui (chanyuantiandao@126.com)
* @date 2023-08-14
*/
TableWidgetFileReadFileDialog(QList<int> range, QWidget *parent = nullptr);
/**
* @brief
* @author yanzhihui (chanyuantiandao@126.com)
* @date 2023-08-14
*/
~TableWidgetFileReadFileDialog();
/**
* @brief
* @return
* @author yanzhihui (chanyuantiandao@126.com)
* @date 2023-08-14
*/
QString getFile() const;
/**
* @brief
* @return
* @author yanzhihui (chanyuantiandao@126.com)
* @date 2023-08-14
*/
int getStartRow() const;
/**
* @brief
* @return
* @author yanzhihui (chanyuantiandao@126.com)
* @date 2023-08-14
*/
int getStartColumn() const;
private slots:
/**
* @brief
* @author yanzhihui (chanyuantiandao@126.com)
* @date 2023-08-14
*/
void on_pb_file_clicked();
/**
* @brief ok
* @author yanzhihui (chanyuantiandao@126.com)
* @date 2023-08-14
*/
void on_pb_ok_clicked();
/**
* @brief
* @author yanzhihui (chanyuantiandao@126.com)
* @date 2023-08-14
*/
void on_pb_cancel_clicked();
private:
/**
* @brief ui
* @author yanzhihui (chanyuantiandao@126.com)
* @date 2023-08-14
*/
Ui::TableWidgetFileReadFileDialog *_ui{};
/**
* @brief
* @author yanzhihui (chanyuantiandao@126.com)
* @date 2023-08-14
*/
QString _filepath{};
/**
* @brief
* @author yanzhihui (chanyuantiandao@126.com)
* @date 2023-08-14
*/
int _totalRow{};
/**
* @brief
* @author yanzhihui (chanyuantiandao@126.com)
* @date 2023-08-14
*/
int _totalColumn{};
/**
* @brief
* @author yanzhihui (chanyuantiandao@126.com)
* @date 2023-08-14
*/
int _startRow{};
/**
* @brief
* @author yanzhihui (chanyuantiandao@126.com)
* @date 2023-08-14
*/
int _startColumn{};
};
} // namespace GUI
#endif // !__TABLEWIDGETFILEREADFILEDIALOG_H__