1 Star 0 Fork 0

uthelei/CodeLineCount

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
localcountcodeWidget.h 1.51 KB
Copy Edit Raw Blame History
helei authored 2023-05-25 19:22 . 修改windows差异
#ifndef LOCALCOUNTCODEWIDGET_H
#define LOCALCOUNTCODEWIDGET_H
#include "countcodeWidget.h"
class QLineEdit;
class QStandardItemModel;
class QLabel;
class StyleLabel;
//DWIDGET_USE_NAMESPACE
class LocalCountCodeWidget : public CountCodeWidget
{
Q_OBJECT
public:
explicit LocalCountCodeWidget(QWidget* parent = Q_NULLPTR);
~LocalCountCodeWidget() Q_DECL_OVERRIDE;
void initBottomWidget() Q_DECL_OVERRIDE;
private:
void initForm() Q_DECL_OVERRIDE;
void deleteAllData() Q_DECL_OVERRIDE;
void setLabelStyle() Q_DECL_OVERRIDE;
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 onOpenFile();
void onOpenPath();
void onClearData() Q_DECL_OVERRIDE;
private:
QStringList listFile;
QLineEdit* m_edit = Q_NULLPTR;
QLineEdit* m_dirEdit = Q_NULLPTR;
QStandardItemModel* m_model = Q_NULLPTR;
StyleLabel* m_fileCountLabel = Q_NULLPTR;
StyleLabel* m_codeCountLabel = Q_NULLPTR;
StyleLabel* m_sizeCountLabel = Q_NULLPTR;
StyleLabel* m_rowsCountlabel = Q_NULLPTR;
StyleLabel* m_noteCountLabel = Q_NULLPTR;
StyleLabel* m_blankCountlabel = Q_NULLPTR;
QLabel* m_labPercentCode = Q_NULLPTR;
QLabel* m_labPercentNote = Q_NULLPTR;
QLabel* m_labPercentBlank = Q_NULLPTR;
};
#endif // LOCALCOUNTCODEWIDGET_H
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/uthelei/CodeLineCount.git
git@gitee.com:uthelei/CodeLineCount.git
uthelei
CodeLineCount
CodeLineCount
master

Search

D67c1975 1850385 1daf7b77 1850385