Skip to content

Commit

Permalink
add hust-lib
Browse files Browse the repository at this point in the history
add basic functions for hust-lib
  • Loading branch information
LewisTian committed Feb 20, 2019
1 parent 5febd23 commit 5e12af2
Show file tree
Hide file tree
Showing 13 changed files with 633 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ A set of special tools to cope with my daily tasks. It's based on [Python 3.6.5]
All image resources in this repo are from [iconfont](http://www.iconfont.cn).

### Table of Contents
|||||||
| :--------: | :---------: | :---------: | :---------: | :---------: | :---------:|
| [Google Translate](#google-translate) | [Bilibili Kit](#bilibili-kit)|[Words Recorder](#words-recorder) | [HUST Electricity Fee](#hust-electricity-fee) |[Missevan Kit](#missevan-kit)| [Lossless Music Box](#lossless-music-box)|
||||||||
| :--------: | :---------: | :---------: | :---------: | :---------: | :---------:| :---------:|
| [Google Translate](#google-translate) | [Bilibili Kit](#bilibili-kit)|[Words Recorder](#words-recorder) | [HUST Electricity Fee](#hust-electricity-fee) |[Missevan Kit](#missevan-kit)| [Lossless Music Box](#lossless-music-box)| [HUST Lib](#hust-lib)|

### Google Translate
[Google Translate](google-translate) is a translation app using [Google translate api](https://github.com/ssut/py-googletrans).
Expand Down Expand Up @@ -58,3 +58,10 @@ maybe you can try [this one](https://github.com/LewisTian/bili-box) :flags:
<div align="center">
<img src="images/Lossless-Music-Box.gif" alt="Lossless Music Box" title="Lossless Music Box" />
</div>

### HUST Lib

[HUST Lib](hust-lib) is an app to query hust library collection information.
<div align="center">
<img src="images/HUST-Lib.png" alt="HUST-Lib" title="HUST-Lib" />
</div>
15 changes: 15 additions & 0 deletions hust-lib/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## hust-lib
华科图书馆: 华中科技大学图书馆公共查询系统。

用来查询华科馆藏的一个应用。

### Donation
如果觉得本应用还有那么点用处,可以请我喝杯咖啡:D
<div>
<img src="https://github.com/LewisTian/bili-box/raw/master/images/alipay.png" alt="alipay" title="非常感谢请我喝一杯咖啡:D" width="300">
<img src="https://github.com/LewisTian/bili-box/raw/master/images/wechatpay.png" alt="wechatpay" title="非常感谢请我喝一杯咖啡:D" width="300">
</div>


### LICENSE
Copyright (c) 2019 Lewis Tian. Licensed under the MIT license.
3 changes: 3 additions & 0 deletions hust-lib/hust-lib/gen.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pyuic5.exe mwin.ui -o ..\src\mwin.py

pyrcc5.exe res.qrc -o ..\src\res_rc.py
43 changes: 43 additions & 0 deletions hust-lib/hust-lib/hust-lib.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#-------------------------------------------------
#
# Project created by QtCreator 2019-02-20T16:06:11
#
#-------------------------------------------------

QT += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = hust-lib
TEMPLATE = app

# The following define makes your compiler emit warnings if you use
# any feature of Qt which has been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0

CONFIG += c++11

SOURCES += \
main.cpp \
mwin.cpp

HEADERS += \
mwin.h

FORMS += \
mwin.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
res.qrc
Binary file added hust-lib/hust-lib/library.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions hust-lib/hust-lib/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include "mwin.h"
#include <QApplication>

int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MWin w;
w.show();

return a.exec();
}
14 changes: 14 additions & 0 deletions hust-lib/hust-lib/mwin.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#include "mwin.h"
#include "ui_mwin.h"

MWin::MWin(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MWin)
{
ui->setupUi(this);
}

MWin::~MWin()
{
delete ui;
}
22 changes: 22 additions & 0 deletions hust-lib/hust-lib/mwin.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#ifndef MWIN_H
#define MWIN_H

#include <QMainWindow>

namespace Ui {
class MWin;
}

class MWin : public QMainWindow
{
Q_OBJECT

public:
explicit MWin(QWidget *parent = nullptr);
~MWin();

private:
Ui::MWin *ui;
};

#endif // MWIN_H
Loading

0 comments on commit 5e12af2

Please sign in to comment.