qt_demoe/tool/countcode/frmcountcode.h

36 lines
705 B
C
Raw Normal View History

2021-11-17 07:33:19 +00:00
#ifndef FRMCOUNTCODE_H
#define FRMCOUNTCODE_H
#include <QWidget>
namespace Ui {
class frmCountCode;
}
class frmCountCode : public QWidget
{
Q_OBJECT
public:
explicit frmCountCode(QWidget *parent = 0);
~frmCountCode();
private:
Ui::frmCountCode *ui;
QStringList listFile;
private:
void initForm();
bool checkFile(const QString &fileName);
void countCode(const QString &filePath);
void countCode(const QStringList &files);
void countCode(const QString &fileName, int &lineCode, int &lineBlank, int &lineNotes);
private slots:
void on_btnOpenFile_clicked();
void on_btnOpenPath_clicked();
void on_btnClear_clicked();
};
#endif // FRMCOUNTCODE_H