Skip to content

Commit

Permalink
Merge pull request #14 from QQxiaoming/dev-mainwindow
Browse files Browse the repository at this point in the history
A more modern and beautiful main window
  • Loading branch information
QQxiaoming authored Dec 11, 2023
2 parents d06cc24 + c8c534d commit 066a0f5
Show file tree
Hide file tree
Showing 485 changed files with 11,534 additions and 4,953 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,4 @@ The code of this project references or partially refers to or depends on the fol
- [qtkeychain](https://github.com/frankosterfeld/qtkeychain)
- [qvncclient](https://bitbucket.org/amahta/qvncclient)
- [qhexedit](https://github.com/Simsys/qhexedit2)
- [QGoodWindow](https://github.com/antonypro/QGoodWindow)
1 change: 1 addition & 0 deletions README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,4 @@ quardCRT一款多功能终端仿真/图形桌面软件,支持多种后端协
- [qtkeychain](https://github.com/frankosterfeld/qtkeychain)
- [qvncclient](https://bitbucket.org/amahta/qvncclient)
- [qhexedit](https://github.com/Simsys/qhexedit2)
- [QGoodWindow](https://github.com/antonypro/QGoodWindow)
25 changes: 25 additions & 0 deletions lib/QGoodWindow/QGoodCentralWidget/QGoodCentralWidget
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
The MIT License (MIT)

Copyright © 2022-2023 Antonio Dias (https://github.com/antonypro)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

#include "src/qgoodcentralwidget.h"
54 changes: 54 additions & 0 deletions lib/QGoodWindow/QGoodCentralWidget/QGoodCentralWidget.pri
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#The MIT License (MIT)

#Copyright © 2022-2023 Antonio Dias (https://github.com/antonypro)

#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
#in the Software without restriction, including without limitation the rights
#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
#copies of the Software, and to permit persons to whom the Software is
#furnished to do so, subject to the following conditions:

#The above copyright notice and this permission notice shall be included in all
#copies or substantial portions of the Software.

#THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
#IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
#FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
#AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
#LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
#OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
#SOFTWARE.

QT += core gui widgets

CONFIG += c++11

SOURCES += \
$$PWD/src/qgoodcentralwidget.cpp

HEADERS += \
$$PWD/src/qgoodcentralwidget.h

INCLUDEPATH += $$PWD #include <QGoodCentralWidget>

DEFINES += QGOODCENTRALWIDGET

qgoodwindow {
QT += svg

SOURCES += \
$$PWD/src/captionbutton.cpp \
$$PWD/src/iconwidget.cpp \
$$PWD/src/titlebar.cpp \
$$PWD/src/titlewidget.cpp

HEADERS += \
$$PWD/src/captionbutton.h \
$$PWD/src/iconwidget.h \
$$PWD/src/titlebar.h \
$$PWD/src/titlewidget.h

RESOURCES += \
$$PWD/src/qgoodcentralwidget_icons.qrc
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
The MIT License (MIT)
Copyright © 2023 Antonio Dias (https://github.com/antonypro)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

#ifndef QGOODCENTRALWIDGET_GLOBAL_H
#define QGOODCENTRALWIDGET_GLOBAL_H

#include "qgoodcentralwidget_helper.h"

#endif // QGOODCENTRALWIDGET_GLOBAL_H
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
The MIT License (MIT)
Copyright © 2023 Antonio Dias (https://github.com/antonypro)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/

#ifndef QGOODCENTRALWIDGET_GLOBAL_H
#define QGOODCENTRALWIDGET_GLOBAL_H

#ifndef QGOODCENTRALWIDGET
#define QGOODCENTRALWIDGET
#endif

#endif // QGOODCENTRALWIDGET_GLOBAL_H
Loading

0 comments on commit 066a0f5

Please sign in to comment.