首次提交
This commit is contained in:
35
countcode/frmcountcode.h
Normal file
35
countcode/frmcountcode.h
Normal file
@@ -0,0 +1,35 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user