├── debian ├── compat ├── source │ └── format ├── files ├── docs ├── README.Debian ├── rules ├── README.source ├── preinst.ex ├── control ├── prerm.ex ├── postrm.ex ├── postinst.ex ├── copyright └── changelog ├── src ├── Lootepad │ ├── res │ │ ├── 0.png │ │ ├── 1.png │ │ ├── 2.png │ │ ├── 3.png │ │ ├── 4.png │ │ ├── 5.png │ │ ├── 6.png │ │ ├── 7.png │ │ ├── 8.png │ │ ├── 9.png │ │ ├── ._0.png │ │ ├── ._1.png │ │ ├── ._10.png │ │ ├── ._11.png │ │ ├── ._12.png │ │ ├── ._13.png │ │ ├── ._14.png │ │ ├── ._15.png │ │ ├── ._16.png │ │ ├── ._17.png │ │ ├── ._18.png │ │ ├── ._19.png │ │ ├── ._2.png │ │ ├── ._20.png │ │ ├── ._21.png │ │ ├── ._22.png │ │ ├── ._23.png │ │ ├── ._24.png │ │ ├── ._25.png │ │ ├── ._26.png │ │ ├── ._27.png │ │ ├── ._28.png │ │ ├── ._29.png │ │ ├── ._3.png │ │ ├── ._30.png │ │ ├── ._31.png │ │ ├── ._32.png │ │ ├── ._33.png │ │ ├── ._34.png │ │ ├── ._35.png │ │ ├── ._36.png │ │ ├── ._37.png │ │ ├── ._38.png │ │ ├── ._39.png │ │ ├── ._4.png │ │ ├── ._5.png │ │ ├── ._6.png │ │ ├── ._7.png │ │ ├── ._8.png │ │ ├── ._9.png │ │ ├── 10.png │ │ ├── 11.png │ │ ├── 12.png │ │ ├── 13.png │ │ ├── 14.png │ │ ├── 15.png │ │ ├── 16.png │ │ ├── 17.png │ │ ├── 18.png │ │ ├── 19.png │ │ ├── 20.png │ │ ├── 21.png │ │ ├── 22.png │ │ ├── 23.png │ │ ├── 24.png │ │ ├── 25.png │ │ ├── 26.png │ │ ├── 27.png │ │ ├── 28.png │ │ ├── 29.png │ │ ├── 30.png │ │ ├── 31.png │ │ ├── 32.png │ │ ├── 33.png │ │ ├── 34.png │ │ ├── 35.png │ │ ├── 36.png │ │ ├── 37.png │ │ ├── 38.png │ │ ├── 39.png │ │ └── ._.DS_Store │ ├── main.cpp │ ├── textedittab.h │ ├── texteditor.h │ ├── Lootepad.pro │ ├── rc.qrc │ ├── CMakeLists.txt │ ├── textedittab.cpp │ ├── mainwindow.h │ ├── texteditor.cpp │ └── mainwindow.cpp ├── loofm │ ├── images │ │ ├── 110.png │ │ ├── 115.png │ │ ├── 117.png │ │ ├── 122.png │ │ ├── 66.png │ │ ├── 82.png │ │ ├── 88.png │ │ ├── 90.png │ │ ├── up-24.png │ │ ├── left-24.png │ │ ├── right-24.png │ │ ├── viewlist-24.png │ │ ├── runtonewscript.png │ │ ├── newdirectory-24.png │ │ └── viewdetailed-24.png │ ├── loofm.pro │ ├── CMakeLists.txt │ ├── resource.qrc │ ├── main.cpp │ └── fileview.h ├── looplorer │ ├── looplorer.v12.suo │ ├── jquery.qrc │ ├── looplorer.pro │ ├── CMakeLists.txt │ ├── looplorer.sln │ ├── looplorer_zh.ts │ ├── mainwindow.h │ ├── looplorer.vcxproj.filters │ └── main.cpp ├── ldecc │ ├── image │ │ ├── 2013112721311002.png │ │ ├── 2013112721311003.png │ │ ├── 2013112721311004.png │ │ ├── 2013112721311017.png │ │ ├── 2013112721311024.png │ │ ├── 2013112721311031.png │ │ ├── 2013112721311034.png │ │ ├── 2013112721311037.png │ │ ├── 2013112721311043.png │ │ ├── 2013112721311049.png │ │ ├── 2013112721311058.png │ │ ├── 2013112721311064.png │ │ ├── 2013112721311074.png │ │ ├── 2013112721311075.png │ │ ├── 2013112721311077.png │ │ ├── 2013112721311078.png │ │ ├── 2013112721311081.png │ │ ├── 2013112721311082.png │ │ ├── 2013112721311083.png │ │ └── 2013112721311092.png │ ├── main.cpp │ ├── lancc.cpp │ ├── safcc.cpp │ ├── gencc.cpp │ ├── safcc.h │ ├── lancc.h │ ├── gencc.h │ ├── descc.h │ ├── CMakeLists.txt │ ├── ldecc.h │ ├── ldecc.pro │ ├── ldeccrc.qrc │ ├── ldecc.cpp │ ├── descc.cpp │ ├── lancc.ui │ ├── safcc.ui │ ├── descc.ui │ └── gencc.ui ├── ldeframework │ ├── lconfig │ │ ├── lconfigitem.cpp │ │ ├── lconfiggroup.cpp │ │ ├── lconfigbase.cpp │ │ ├── lconfigfile.cpp │ │ ├── lconfigitem.h │ │ ├── lconfiggroup.h │ │ ├── lconfig.cpp │ │ ├── lconfigbase.h │ │ ├── lconfig.h │ │ ├── lconfigfile.h │ │ └── lconfig.pri │ └── lithium │ │ ├── themes │ │ └── dark │ │ │ ├── images │ │ │ ├── dark_button_hover_bg.png │ │ │ ├── dark_button_normal_bg.png │ │ │ └── dark_button_press_bg.png │ │ │ ├── LTextButton.theme │ │ │ └── LPushButton.theme │ │ ├── ltextbutton.cpp │ │ ├── ltextbutton.h │ │ ├── lapplication.h │ │ ├── lapplication.cpp │ │ ├── lpushbutton.h │ │ ├── lpushbutton.cpp │ │ ├── res.qrc │ │ ├── lithium_global.h │ │ ├── lthememanager.h │ │ ├── lithium.pri │ │ └── lthememanager.cpp ├── lde.pro ├── Looget │ ├── main.cpp │ ├── Looget.pro │ ├── CMakeLists.txt │ ├── widget.h │ ├── widget.ui │ └── widget.cpp ├── loogout │ ├── main.cpp │ ├── loogout.pro │ ├── widget.h │ ├── widget.cpp │ ├── CMakeLists.txt │ └── widget.ui ├── lrun │ ├── main.cpp │ ├── widget.h │ ├── lrun.pro │ ├── CMakeLists.txt │ ├── widget.cpp │ └── widget.ui ├── LooFTP │ ├── main.cpp │ ├── LooFTP.pro │ ├── widget.h │ ├── widget.ui │ ├── qurlinfo.h │ ├── widget.cpp │ └── qftp.h ├── lcalc │ ├── lcalc.pro │ ├── history.h │ ├── CMakeLists.txt │ ├── history.cpp │ ├── main.cpp │ ├── button.h │ ├── button.cpp │ └── calculator.h ├── ldeabout │ ├── widget.cpp │ ├── widget.h │ ├── ldeabout.pro │ ├── CMakeLists.txt │ ├── laboutwidget.h │ ├── main.cpp │ └── laboutwidget.cpp ├── ldeinit │ ├── ldeinit.pro │ ├── CMakeLists.txt │ ├── init.h │ ├── main.cpp │ └── init.cpp ├── install.sh └── CMakeLists.txt ├── wallpapers └── lde-default.png ├── share ├── lrun.desktop ├── lcalc.desktop ├── ldeabout.desktop ├── loofm.desktop ├── looget.desktop ├── looftp.desktop ├── lde-control-center.desktop ├── lde-logout.desktop ├── lootepad.desktop └── looplorer.desktop ├── AUTHORS ├── .gitignore ├── xsessions └── LDE.desktop ├── CMakeLists.txt ├── Makefile ├── PKGBUILD ├── README.md ├── shell └── startlde ├── rpm └── lde.spec └── ldemanual.txt /debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (native) 2 | -------------------------------------------------------------------------------- /debian/files: -------------------------------------------------------------------------------- 1 | lde_1.9.1-1_amd64.deb X11 optional 2 | -------------------------------------------------------------------------------- /debian/docs: -------------------------------------------------------------------------------- 1 | ldemanual.txt 2 | README.md 3 | ldemanual.abw 4 | 5 | -------------------------------------------------------------------------------- /src/Lootepad/res/0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/0.png -------------------------------------------------------------------------------- /src/Lootepad/res/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/1.png -------------------------------------------------------------------------------- /src/Lootepad/res/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/2.png -------------------------------------------------------------------------------- /src/Lootepad/res/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/3.png -------------------------------------------------------------------------------- /src/Lootepad/res/4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/4.png -------------------------------------------------------------------------------- /src/Lootepad/res/5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/5.png -------------------------------------------------------------------------------- /src/Lootepad/res/6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/6.png -------------------------------------------------------------------------------- /src/Lootepad/res/7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/7.png -------------------------------------------------------------------------------- /src/Lootepad/res/8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/8.png -------------------------------------------------------------------------------- /src/Lootepad/res/9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/9.png -------------------------------------------------------------------------------- /src/Lootepad/res/._0.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._0.png -------------------------------------------------------------------------------- /src/Lootepad/res/._1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._1.png -------------------------------------------------------------------------------- /src/Lootepad/res/._10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._10.png -------------------------------------------------------------------------------- /src/Lootepad/res/._11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._11.png -------------------------------------------------------------------------------- /src/Lootepad/res/._12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._12.png -------------------------------------------------------------------------------- /src/Lootepad/res/._13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._13.png -------------------------------------------------------------------------------- /src/Lootepad/res/._14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._14.png -------------------------------------------------------------------------------- /src/Lootepad/res/._15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._15.png -------------------------------------------------------------------------------- /src/Lootepad/res/._16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._16.png -------------------------------------------------------------------------------- /src/Lootepad/res/._17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._17.png -------------------------------------------------------------------------------- /src/Lootepad/res/._18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._18.png -------------------------------------------------------------------------------- /src/Lootepad/res/._19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._19.png -------------------------------------------------------------------------------- /src/Lootepad/res/._2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._2.png -------------------------------------------------------------------------------- /src/Lootepad/res/._20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._20.png -------------------------------------------------------------------------------- /src/Lootepad/res/._21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._21.png -------------------------------------------------------------------------------- /src/Lootepad/res/._22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._22.png -------------------------------------------------------------------------------- /src/Lootepad/res/._23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._23.png -------------------------------------------------------------------------------- /src/Lootepad/res/._24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._24.png -------------------------------------------------------------------------------- /src/Lootepad/res/._25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._25.png -------------------------------------------------------------------------------- /src/Lootepad/res/._26.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._26.png -------------------------------------------------------------------------------- /src/Lootepad/res/._27.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._27.png -------------------------------------------------------------------------------- /src/Lootepad/res/._28.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._28.png -------------------------------------------------------------------------------- /src/Lootepad/res/._29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._29.png -------------------------------------------------------------------------------- /src/Lootepad/res/._3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._3.png -------------------------------------------------------------------------------- /src/Lootepad/res/._30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._30.png -------------------------------------------------------------------------------- /src/Lootepad/res/._31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._31.png -------------------------------------------------------------------------------- /src/Lootepad/res/._32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._32.png -------------------------------------------------------------------------------- /src/Lootepad/res/._33.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._33.png -------------------------------------------------------------------------------- /src/Lootepad/res/._34.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._34.png -------------------------------------------------------------------------------- /src/Lootepad/res/._35.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._35.png -------------------------------------------------------------------------------- /src/Lootepad/res/._36.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._36.png -------------------------------------------------------------------------------- /src/Lootepad/res/._37.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._37.png -------------------------------------------------------------------------------- /src/Lootepad/res/._38.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._38.png -------------------------------------------------------------------------------- /src/Lootepad/res/._39.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._39.png -------------------------------------------------------------------------------- /src/Lootepad/res/._4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._4.png -------------------------------------------------------------------------------- /src/Lootepad/res/._5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._5.png -------------------------------------------------------------------------------- /src/Lootepad/res/._6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._6.png -------------------------------------------------------------------------------- /src/Lootepad/res/._7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._7.png -------------------------------------------------------------------------------- /src/Lootepad/res/._8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._8.png -------------------------------------------------------------------------------- /src/Lootepad/res/._9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._9.png -------------------------------------------------------------------------------- /src/Lootepad/res/10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/10.png -------------------------------------------------------------------------------- /src/Lootepad/res/11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/11.png -------------------------------------------------------------------------------- /src/Lootepad/res/12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/12.png -------------------------------------------------------------------------------- /src/Lootepad/res/13.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/13.png -------------------------------------------------------------------------------- /src/Lootepad/res/14.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/14.png -------------------------------------------------------------------------------- /src/Lootepad/res/15.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/15.png -------------------------------------------------------------------------------- /src/Lootepad/res/16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/16.png -------------------------------------------------------------------------------- /src/Lootepad/res/17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/17.png -------------------------------------------------------------------------------- /src/Lootepad/res/18.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/18.png -------------------------------------------------------------------------------- /src/Lootepad/res/19.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/19.png -------------------------------------------------------------------------------- /src/Lootepad/res/20.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/20.png -------------------------------------------------------------------------------- /src/Lootepad/res/21.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/21.png -------------------------------------------------------------------------------- /src/Lootepad/res/22.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/22.png -------------------------------------------------------------------------------- /src/Lootepad/res/23.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/23.png -------------------------------------------------------------------------------- /src/Lootepad/res/24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/24.png -------------------------------------------------------------------------------- /src/Lootepad/res/25.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/25.png -------------------------------------------------------------------------------- /src/Lootepad/res/26.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/26.png -------------------------------------------------------------------------------- /src/Lootepad/res/27.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/27.png -------------------------------------------------------------------------------- /src/Lootepad/res/28.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/28.png -------------------------------------------------------------------------------- /src/Lootepad/res/29.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/29.png -------------------------------------------------------------------------------- /src/Lootepad/res/30.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/30.png -------------------------------------------------------------------------------- /src/Lootepad/res/31.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/31.png -------------------------------------------------------------------------------- /src/Lootepad/res/32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/32.png -------------------------------------------------------------------------------- /src/Lootepad/res/33.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/33.png -------------------------------------------------------------------------------- /src/Lootepad/res/34.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/34.png -------------------------------------------------------------------------------- /src/Lootepad/res/35.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/35.png -------------------------------------------------------------------------------- /src/Lootepad/res/36.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/36.png -------------------------------------------------------------------------------- /src/Lootepad/res/37.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/37.png -------------------------------------------------------------------------------- /src/Lootepad/res/38.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/38.png -------------------------------------------------------------------------------- /src/Lootepad/res/39.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/39.png -------------------------------------------------------------------------------- /src/loofm/images/110.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/loofm/images/110.png -------------------------------------------------------------------------------- /src/loofm/images/115.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/loofm/images/115.png -------------------------------------------------------------------------------- /src/loofm/images/117.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/loofm/images/117.png -------------------------------------------------------------------------------- /src/loofm/images/122.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/loofm/images/122.png -------------------------------------------------------------------------------- /src/loofm/images/66.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/loofm/images/66.png -------------------------------------------------------------------------------- /src/loofm/images/82.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/loofm/images/82.png -------------------------------------------------------------------------------- /src/loofm/images/88.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/loofm/images/88.png -------------------------------------------------------------------------------- /src/loofm/images/90.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/loofm/images/90.png -------------------------------------------------------------------------------- /src/loofm/images/up-24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/loofm/images/up-24.png -------------------------------------------------------------------------------- /wallpapers/lde-default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/wallpapers/lde-default.png -------------------------------------------------------------------------------- /src/Lootepad/res/._.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/Lootepad/res/._.DS_Store -------------------------------------------------------------------------------- /src/loofm/images/left-24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/loofm/images/left-24.png -------------------------------------------------------------------------------- /src/loofm/images/right-24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/loofm/images/right-24.png -------------------------------------------------------------------------------- /src/loofm/images/viewlist-24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/loofm/images/viewlist-24.png -------------------------------------------------------------------------------- /src/looplorer/looplorer.v12.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/looplorer/looplorer.v12.suo -------------------------------------------------------------------------------- /src/loofm/images/runtonewscript.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/loofm/images/runtonewscript.png -------------------------------------------------------------------------------- /src/ldecc/image/2013112721311002.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/ldecc/image/2013112721311002.png -------------------------------------------------------------------------------- /src/ldecc/image/2013112721311003.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/ldecc/image/2013112721311003.png -------------------------------------------------------------------------------- /src/ldecc/image/2013112721311004.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/ldecc/image/2013112721311004.png -------------------------------------------------------------------------------- /src/ldecc/image/2013112721311017.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/ldecc/image/2013112721311017.png -------------------------------------------------------------------------------- /src/ldecc/image/2013112721311024.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/ldecc/image/2013112721311024.png -------------------------------------------------------------------------------- /src/ldecc/image/2013112721311031.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/ldecc/image/2013112721311031.png -------------------------------------------------------------------------------- /src/ldecc/image/2013112721311034.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/ldecc/image/2013112721311034.png -------------------------------------------------------------------------------- /src/ldecc/image/2013112721311037.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/ldecc/image/2013112721311037.png -------------------------------------------------------------------------------- /src/ldecc/image/2013112721311043.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/ldecc/image/2013112721311043.png -------------------------------------------------------------------------------- /src/ldecc/image/2013112721311049.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/ldecc/image/2013112721311049.png -------------------------------------------------------------------------------- /src/ldecc/image/2013112721311058.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/ldecc/image/2013112721311058.png -------------------------------------------------------------------------------- /src/ldecc/image/2013112721311064.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/ldecc/image/2013112721311064.png -------------------------------------------------------------------------------- /src/ldecc/image/2013112721311074.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/ldecc/image/2013112721311074.png -------------------------------------------------------------------------------- /src/ldecc/image/2013112721311075.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/ldecc/image/2013112721311075.png -------------------------------------------------------------------------------- /src/ldecc/image/2013112721311077.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/ldecc/image/2013112721311077.png -------------------------------------------------------------------------------- /src/ldecc/image/2013112721311078.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/ldecc/image/2013112721311078.png -------------------------------------------------------------------------------- /src/ldecc/image/2013112721311081.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/ldecc/image/2013112721311081.png -------------------------------------------------------------------------------- /src/ldecc/image/2013112721311082.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/ldecc/image/2013112721311082.png -------------------------------------------------------------------------------- /src/ldecc/image/2013112721311083.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/ldecc/image/2013112721311083.png -------------------------------------------------------------------------------- /src/ldecc/image/2013112721311092.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/ldecc/image/2013112721311092.png -------------------------------------------------------------------------------- /src/ldeframework/lconfig/lconfigitem.cpp: -------------------------------------------------------------------------------- 1 | #include "lconfigitem.h" 2 | 3 | LConfigItem::LConfigItem() 4 | { 5 | 6 | } 7 | -------------------------------------------------------------------------------- /src/loofm/images/newdirectory-24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/loofm/images/newdirectory-24.png -------------------------------------------------------------------------------- /src/loofm/images/viewdetailed-24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/loofm/images/viewdetailed-24.png -------------------------------------------------------------------------------- /src/ldeframework/lconfig/lconfiggroup.cpp: -------------------------------------------------------------------------------- 1 | #include "lconfiggroup.h" 2 | 3 | LConfigGroup::LConfigGroup() 4 | { 5 | 6 | } 7 | -------------------------------------------------------------------------------- /src/looplorer/jquery.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | jquery.min.js 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/lde.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = subdirs 2 | 3 | SUBDIRS = ldeinit ldeabout loogout lrun ldecc lcalc loofm Looget looplorer Lootepad 4 | 5 | CONFIG += ordered 6 | -------------------------------------------------------------------------------- /src/ldeframework/lconfig/lconfigbase.cpp: -------------------------------------------------------------------------------- 1 | #include "lconfigbase.h" 2 | 3 | LConfigBase::LConfigBase(QObject *parent) : QObject(parent) 4 | { 5 | 6 | } 7 | -------------------------------------------------------------------------------- /src/ldeframework/lithium/themes/dark/images/dark_button_hover_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/ldeframework/lithium/themes/dark/images/dark_button_hover_bg.png -------------------------------------------------------------------------------- /src/ldeframework/lithium/themes/dark/images/dark_button_normal_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/ldeframework/lithium/themes/dark/images/dark_button_normal_bg.png -------------------------------------------------------------------------------- /src/ldeframework/lithium/themes/dark/images/dark_button_press_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/xuzhuoyi/LDE/HEAD/src/ldeframework/lithium/themes/dark/images/dark_button_press_bg.png -------------------------------------------------------------------------------- /src/ldeframework/lconfig/lconfigfile.cpp: -------------------------------------------------------------------------------- 1 | #include "lconfigfile.h" 2 | 3 | LConfigFile::LConfigFile(QString fileName, QObject *parent) : 4 | QFile(fileName, parent) 5 | { 6 | 7 | } 8 | -------------------------------------------------------------------------------- /debian/README.Debian: -------------------------------------------------------------------------------- 1 | lde for Debian 2 | -------------- 3 | 4 | 5 | 6 | -- Zhuoyi Xu Sat, 07 Feb 2015 22:42:15 +0800 7 | -------------------------------------------------------------------------------- /debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | # -*- makefile -*- 3 | 4 | # Uncomment this to turn on verbose mode. 5 | #export DH_VERBOSE=1 6 | 7 | %: 8 | dh $@ 9 | 10 | override_dh_auto_configure: 11 | cmake . 12 | -------------------------------------------------------------------------------- /share/lrun.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=LRun 3 | Comment[zh_CN]=快速运行程序 4 | GenericName[zh_CN]=程序启动器 5 | Exec=lrun 6 | Icon=lrun 7 | Terminal=false 8 | StartupNotify=true 9 | Type=Application 10 | Categories=Qt;System; 11 | 12 | -------------------------------------------------------------------------------- /src/Looget/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "widget.h" 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | Widget w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /src/ldecc/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "ldecc.h" 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | ldecc w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /src/loogout/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "widget.h" 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | Widget w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /src/lrun/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "widget.h" 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | Widget w; 8 | w.show(); 9 | 10 | return a.exec(); 11 | } 12 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- 1 | Upstream Authors: 2 | LDE team: http://www.loongsoner.com/LDE 3 | Zhuoyi Xu 4 | 5 | Copyright: 6 | Copyright (c) 2014 LDE team 7 | 8 | License: GPL-2 9 | The full text of the licenses can be found in the 'COPYING' file. 10 | -------------------------------------------------------------------------------- /src/ldeframework/lconfig/lconfigitem.h: -------------------------------------------------------------------------------- 1 | #ifndef LCONFIGITEM_H 2 | #define LCONFIGITEM_H 3 | 4 | #include 5 | #include "lconfigbase.h" 6 | 7 | class LConfigItem : public LConfigBase 8 | { 9 | public: 10 | LConfigItem(); 11 | }; 12 | 13 | #endif // LCONFIGITEM_H 14 | -------------------------------------------------------------------------------- /src/ldeframework/lconfig/lconfiggroup.h: -------------------------------------------------------------------------------- 1 | #ifndef LCONFIGGROUP_H 2 | #define LCONFIGGROUP_H 3 | 4 | #include 5 | #include "lconfigbase.h" 6 | 7 | class LConfigGroup : public LConfigBase 8 | { 9 | public: 10 | LConfigGroup(); 11 | }; 12 | 13 | #endif // LCONFIGGROUP_H 14 | -------------------------------------------------------------------------------- /share/lcalc.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Version=1.0 3 | Name=lcalc 4 | GenericName[zh_CN]=计算器 5 | Comment=Perform simple and scientific calculations 6 | Exec=lcalc 7 | Icon=galculator 8 | Terminal=false 9 | Type=Application 10 | Categories=Utility; 11 | StartupNotify=true 12 | Name[zh_CN]=lcalc 13 | -------------------------------------------------------------------------------- /share/ldeabout.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Version=0.0.7 3 | Type=Application 4 | Name=About LDE 5 | Name[zh_CN]=关于 LDE 6 | Comment=The information of LDE 7 | Comment[zh_CN]=查看 LDE 版本、作者等信息 8 | Icon=ldeabout 9 | Exec=ldeabout 10 | Categories=Settings;DesktopSettings;Qt; 11 | StartupNotify=true 12 | Terminal=false 13 | -------------------------------------------------------------------------------- /debian/README.source: -------------------------------------------------------------------------------- 1 | lde for Debian 2 | -------------- 3 | 4 | 6 | 7 | 8 | 9 | -- Zhuoyi Xu Sat, 07 Feb 2015 22:42:15 +0800 10 | 11 | -------------------------------------------------------------------------------- /src/ldeframework/lconfig/lconfig.cpp: -------------------------------------------------------------------------------- 1 | #include "lconfig.h" 2 | #include 3 | 4 | 5 | LConfig::LConfig(LConfigFile *confFile, QObject * parent) : QSettings(confFile->fileName(), QSettings::IniFormat, parent) 6 | { 7 | 8 | } 9 | 10 | QString LConfig::homePath() 11 | { 12 | return QDir::homePath(); 13 | } 14 | -------------------------------------------------------------------------------- /src/LooFTP/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "widget.h" 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | QApplication a(argc, argv); 8 | //QTextCodec::setCodecForTr(QTextCodec::codecForLocale()); 9 | Widget w; 10 | w.show(); 11 | 12 | return a.exec(); 13 | } 14 | -------------------------------------------------------------------------------- /src/ldeframework/lconfig/lconfigbase.h: -------------------------------------------------------------------------------- 1 | #ifndef LCONFIGBASE_H 2 | #define LCONFIGBASE_H 3 | 4 | #include 5 | 6 | class LConfigBase : public QObject 7 | { 8 | Q_OBJECT 9 | public: 10 | explicit LConfigBase(QObject *parent = 0); 11 | 12 | signals: 13 | 14 | public slots: 15 | }; 16 | 17 | #endif // LCONFIGBASE_H -------------------------------------------------------------------------------- /src/ldeframework/lconfig/lconfig.h: -------------------------------------------------------------------------------- 1 | #ifndef LCONFIG_H 2 | #define LCONFIG_H 3 | 4 | #include 5 | #include "lconfigfile.h" 6 | 7 | class LConfig : public QSettings 8 | { 9 | 10 | public: 11 | LConfig(LConfigFile *confFile, QObject *parent = 0); 12 | static QString homePath(); 13 | }; 14 | 15 | #endif // LCONFIG_H 16 | -------------------------------------------------------------------------------- /src/ldeframework/lithium/ltextbutton.cpp: -------------------------------------------------------------------------------- 1 | #include "ltextbutton.h" 2 | #include "lithium_global.h" 3 | #include 4 | 5 | LTextButton::LTextButton(const QString & text, QWidget * parent) : 6 | LPushButton(text, parent) 7 | { 8 | L_THEME_INIT_WIDGET(LTextButton); 9 | //qDebug() << this->styleSheet() << endl; 10 | } 11 | 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # C++ objects and libs 2 | 3 | *.slo 4 | *.lo 5 | *.o 6 | *.a 7 | *.la 8 | *.lai 9 | *.so 10 | *.dll 11 | *.dylib 12 | 13 | # Qt-es 14 | 15 | /.qmake.cache 16 | /.qmake.stash 17 | *.pro.user 18 | *.pro.user.* 19 | *.moc 20 | moc_*.cpp 21 | qrc_*.cpp 22 | ui_*.h 23 | #Makefile* 24 | *-build-* 25 | 26 | # QtCreator 27 | 28 | *.autosave 29 | -------------------------------------------------------------------------------- /src/looplorer/looplorer.pro: -------------------------------------------------------------------------------- 1 | 2 | QT += webkitwidgets network widgets 3 | 4 | HEADERS = mainwindow.h 5 | 6 | SOURCES = main.cpp \ 7 | mainwindow.cpp 8 | 9 | RESOURCES = jquery.qrc 10 | 11 | TRANSLATIONS = looplorer_zh.ts 12 | 13 | DESTDIR += ../../usr/bin 14 | 15 | # install 16 | target.path = /usr/bin 17 | INSTALLS += target 18 | -------------------------------------------------------------------------------- /src/ldeframework/lconfig/lconfigfile.h: -------------------------------------------------------------------------------- 1 | #ifndef LCONFIGFILE_H 2 | #define LCONFIGFILE_H 3 | 4 | #include 5 | 6 | class LConfigFile : public QFile 7 | { 8 | Q_OBJECT 9 | public: 10 | explicit LConfigFile(QString fileName, QObject *parent = 0); 11 | 12 | signals: 13 | 14 | public slots: 15 | 16 | 17 | }; 18 | 19 | #endif // LCONFIGFILE_H 20 | -------------------------------------------------------------------------------- /src/ldeframework/lithium/ltextbutton.h: -------------------------------------------------------------------------------- 1 | #ifndef LTEXTBUTTON_H 2 | #define LTEXTBUTTON_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | class LTextButton : public LPushButton 9 | { 10 | Q_OBJECT 11 | public: 12 | LTextButton(const QString &text, QWidget *parent = 0); 13 | }; 14 | 15 | #endif // LTEXTBUTTON_H 16 | -------------------------------------------------------------------------------- /src/Lootepad/main.cpp: -------------------------------------------------------------------------------- 1 | #include "mainwindow.h" 2 | #include 3 | #include 4 | 5 | int main(int argc, char *argv[]) 6 | { 7 | QApplication a(argc, argv); 8 | //QTextCodec::setCodecForTr(QTextCodec::codecForLocale()); 9 | MainWindow w; 10 | w.show(); 11 | //w.showFullScreen(); 12 | 13 | return a.exec(); 14 | } 15 | -------------------------------------------------------------------------------- /share/loofm.desktop: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env xdg-open 2 | [Desktop Entry] 3 | Name=LooFM 4 | GenericName[zh_CN]=文件管理器 5 | Comment=Access and organize files 6 | Keywords=folder;manager;explore;disk;filesystem; 7 | Exec=loofm 8 | Icon=system-file-manager 9 | Terminal=false 10 | Type=Application 11 | StartupNotify=true 12 | Categories=LDE;Qt;Utility;Core;FileManager; 13 | Actions=Window; 14 | -------------------------------------------------------------------------------- /src/ldeframework/lithium/lapplication.h: -------------------------------------------------------------------------------- 1 | #ifndef LAPPLICATION_H 2 | #define LAPPLICATION_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | class LApplication : public QApplication 9 | { 10 | Q_OBJECT 11 | public: 12 | LApplication(int &argc, char **argv); 13 | void setTheme(const QString & theme); 14 | }; 15 | 16 | #endif // LAPPLICATION_H 17 | -------------------------------------------------------------------------------- /share/looget.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Encoding=UTF-8 3 | Name=Looget 4 | Comment=Download File From the Internet 5 | Comment[zh_CN]=从互联网上下载文件 6 | GenericName=Download Tools 7 | GenericName[zh_CN]=下载工具 8 | X-GNOME-FullName=Loongson Download Tools 9 | Exec=looget 10 | Terminal=false 11 | X-MultipleArgs=false 12 | Type=Application 13 | Icon=looget 14 | Categories=Network; 15 | StartupNotify=true 16 | -------------------------------------------------------------------------------- /src/ldeframework/lithium/lapplication.cpp: -------------------------------------------------------------------------------- 1 | #include "lapplication.h" 2 | #include "lthememanager.h" 3 | 4 | LApplication::LApplication(int &argc, char **argv) : 5 | QApplication(argc, argv) 6 | { 7 | 8 | } 9 | 10 | void LApplication::setTheme(const QString & theme) 11 | { 12 | LThemeManager * themeManager = LThemeManager::instance(); 13 | themeManager->setTheme(theme); 14 | } 15 | 16 | -------------------------------------------------------------------------------- /src/ldeframework/lithium/lpushbutton.h: -------------------------------------------------------------------------------- 1 | #ifndef LPUSHBUTTON_H 2 | #define LPUSHBUTTON_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | class LPushButton : public QPushButton 9 | { 10 | Q_OBJECT 11 | public: 12 | LPushButton(QWidget *parent = 0); 13 | LPushButton(QString const &text, QWidget *parent = 0); 14 | }; 15 | 16 | #endif // LPUSHBUTTON_H 17 | -------------------------------------------------------------------------------- /share/looftp.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Encoding=UTF-8 3 | Name=LooFTP 4 | Comment=Browse the File Transfer Protocol Servers 5 | Comment[zh_CN]=浏览 FTP 服务器 6 | GenericName=FTP Browser 7 | GenericName[zh_CN]=FTP 客户端 8 | X-GNOME-FullName=Loongson FTP Browser 9 | Exec=looftp 10 | Terminal=false 11 | X-MultipleArgs=false 12 | Type=Application 13 | Icon=looftp 14 | Categories=Network; 15 | StartupNotify=true 16 | -------------------------------------------------------------------------------- /src/ldeframework/lithium/lpushbutton.cpp: -------------------------------------------------------------------------------- 1 | #include "lpushbutton.h" 2 | #include "lithium_global.h" 3 | 4 | LPushButton::LPushButton(QWidget *parent) : 5 | QPushButton(parent) 6 | { 7 | L_THEME_INIT_WIDGET(LPushButton); 8 | } 9 | 10 | LPushButton::LPushButton(QString const &text, QWidget *parent) : 11 | QPushButton(text, parent) 12 | { 13 | L_THEME_INIT_WIDGET(LPushButton); 14 | } 15 | 16 | -------------------------------------------------------------------------------- /src/lcalc/lcalc.pro: -------------------------------------------------------------------------------- 1 | QT += widgets 2 | 3 | include(../ldeframework/lithium/lithium.pri) 4 | 5 | HEADERS += button.h \ 6 | calculator.h \ 7 | history.h 8 | SOURCES += button.cpp \ 9 | calculator.cpp \ 10 | main.cpp \ 11 | history.cpp 12 | 13 | DESTDIR += ../../usr/bin 14 | 15 | # install 16 | target.path = /usr/bin 17 | INSTALLS += target 18 | -------------------------------------------------------------------------------- /src/ldecc/lancc.cpp: -------------------------------------------------------------------------------- 1 | #include "lancc.h" 2 | #include "ui_lancc.h" 3 | 4 | Lancc::Lancc(QWidget *parent) : 5 | QWidget(parent), 6 | ui(new Ui::Lancc) 7 | { 8 | ui->setupUi(this); 9 | } 10 | 11 | Lancc::~Lancc() 12 | { 13 | delete ui; 14 | } 15 | 16 | void Lancc::on_pushButton_clicked() 17 | { 18 | qApp->quit(); 19 | } 20 | 21 | void Lancc::on_pushButton_2_clicked() 22 | { 23 | emit back(); 24 | this->close(); 25 | } 26 | -------------------------------------------------------------------------------- /src/ldecc/safcc.cpp: -------------------------------------------------------------------------------- 1 | #include "safcc.h" 2 | #include "ui_safcc.h" 3 | 4 | Safcc::Safcc(QWidget *parent) : 5 | QWidget(parent), 6 | ui(new Ui::Safcc) 7 | { 8 | ui->setupUi(this); 9 | } 10 | 11 | Safcc::~Safcc() 12 | { 13 | delete ui; 14 | } 15 | 16 | void Safcc::on_pushButton_3_clicked() 17 | { 18 | qApp->quit(); 19 | } 20 | 21 | void Safcc::on_pushButton_4_clicked() 22 | { 23 | emit back(); 24 | this->close(); 25 | } 26 | -------------------------------------------------------------------------------- /xsessions/LDE.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Encoding=UTF-8 3 | # The names/descriptions should really be better 4 | Name=LDE 5 | Comment=LDE - Loongson desktop environment 6 | Comment[de]=LDE - Loongson Desktop-Umgebung 7 | Comment[fi]=LDE - Loongson työpöytäympäristö 8 | Comment[ja]=LDE - Loongson デスクトップ環境 9 | Comment[pt]=LDE - Loongson de trabalho X11 leve 10 | Comment[zh_CN]=LDE - 龙芯桌面环境 11 | Exec=/usr/bin/startlde 12 | # Icon= 13 | Type=Application 14 | -------------------------------------------------------------------------------- /src/ldeframework/lithium/res.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | themes/dark/LPushButton.theme 4 | themes/dark/LTextButton.theme 5 | 6 | 7 | themes/dark/images/dark_button_hover_bg.png 8 | themes/dark/images/dark_button_normal_bg.png 9 | themes/dark/images/dark_button_press_bg.png 10 | 11 | 12 | -------------------------------------------------------------------------------- /src/ldecc/gencc.cpp: -------------------------------------------------------------------------------- 1 | #include "gencc.h" 2 | #include "ui_gencc.h" 3 | 4 | Gencc::Gencc(QWidget *parent) : 5 | QWidget(parent), 6 | ui(new Ui::Gencc) 7 | { 8 | ui->setupUi(this); 9 | } 10 | 11 | Gencc::~Gencc() 12 | { 13 | delete ui; 14 | } 15 | 16 | void Gencc::on_pushButton_clicked() 17 | { 18 | qApp->quit(); 19 | } 20 | 21 | void Gencc::on_pushButton_2_clicked() 22 | { 23 | emit back(); 24 | this->close(); 25 | } 26 | 27 | void Gencc::on_pushButton_3_clicked() 28 | { 29 | 30 | } 31 | -------------------------------------------------------------------------------- /src/ldecc/safcc.h: -------------------------------------------------------------------------------- 1 | #ifndef SAFCC_H 2 | #define SAFCC_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class Safcc; 8 | } 9 | 10 | class Safcc : public QWidget 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | explicit Safcc(QWidget *parent = 0); 16 | ~Safcc(); 17 | 18 | private slots: 19 | void on_pushButton_3_clicked(); 20 | 21 | void on_pushButton_4_clicked(); 22 | 23 | private: 24 | Ui::Safcc *ui; 25 | 26 | signals: 27 | void back(); 28 | 29 | }; 30 | 31 | #endif // SAFCC_H 32 | -------------------------------------------------------------------------------- /share/lde-control-center.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Categories=Application;System;Settings 3 | Comment=LDE Desktop Environment Control Center 4 | Encoding=UTF-8 5 | Exec=/usr/bin/ldecc 6 | Icon=preferences-system 7 | Name=LDE Control Center 8 | StartupNotify=false 9 | Terminal=false 10 | Type=Application 11 | X-MultipleArgs=false 12 | 13 | 14 | 15 | # Translations 16 | 17 | 18 | # Translations 19 | Comment[zh_CN]=LDE 桌面环境控制中心 20 | Name[zh_CN]=LDE 控制中心 21 | Comment[zh_TW]=LDE 桌面環境的系統控制中心 22 | Name[zh_TW]=LDE 控制中心 23 | -------------------------------------------------------------------------------- /src/ldeabout/widget.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include "ui_widget.h" 3 | 4 | Widget::Widget(QWidget *parent) : 5 | QWidget(parent), 6 | ui(new Ui::Widget) 7 | { 8 | ui->setupUi(this); 9 | ui->label_6->setWordWrap(true); 10 | ui->label_9->setWordWrap(true); 11 | } 12 | 13 | Widget::~Widget() 14 | { 15 | delete ui; 16 | } 17 | 18 | void Widget::on_pushButton_clicked() 19 | { 20 | qApp->quit(); 21 | } 22 | 23 | void Widget::on_pushButton_2_clicked() 24 | { 25 | qApp->aboutQt(); 26 | } 27 | -------------------------------------------------------------------------------- /src/ldeabout/widget.h: -------------------------------------------------------------------------------- 1 | #ifndef WIDGET_H 2 | #define WIDGET_H 3 | 4 | #include 5 | 6 | #define LDE_VERSION "2.1" 7 | 8 | namespace Ui { 9 | class Widget; 10 | } 11 | 12 | class Widget : public QWidget 13 | { 14 | Q_OBJECT 15 | 16 | public: 17 | explicit Widget(QWidget *parent = 0); 18 | ~Widget(); 19 | 20 | private slots: 21 | void on_pushButton_clicked(); 22 | 23 | void on_pushButton_2_clicked(); 24 | 25 | private: 26 | Ui::Widget *ui; 27 | }; 28 | 29 | #endif // WIDGET_H 30 | -------------------------------------------------------------------------------- /src/ldecc/lancc.h: -------------------------------------------------------------------------------- 1 | #ifndef LANCC_H 2 | #define LANCC_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class Lancc; 8 | } 9 | 10 | class Lancc : public QWidget 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | explicit Lancc(QWidget *parent = 0); 16 | ~Lancc(); 17 | 18 | private slots: 19 | void on_pushButton_clicked(); 20 | 21 | void on_pushButton_2_clicked(); 22 | 23 | private: 24 | Ui::Lancc *ui; 25 | 26 | signals: 27 | void back(); 28 | 29 | }; 30 | 31 | #endif // LANCC_H 32 | -------------------------------------------------------------------------------- /src/ldeframework/lithium/lithium_global.h: -------------------------------------------------------------------------------- 1 | #ifndef LITHIUM_GLOBAL 2 | #define LITHIUM_GLOBAL 3 | 4 | #include 5 | 6 | #define L_THEME_INIT_WIDGET(className) \ 7 | LThemeManager * manager = LThemeManager::instance(); \ 8 | this->setStyleSheet(this->styleSheet() + manager->getQssForWidget(#className)); \ 9 | connect(manager, <hemeManager::themeChanged, [=](QString) { \ 10 | this->setStyleSheet(manager->getQssForWidget(#className)); \ 11 | }); 12 | 13 | #endif // LITHIUM_GLOBAL 14 | 15 | -------------------------------------------------------------------------------- /src/lrun/widget.h: -------------------------------------------------------------------------------- 1 | #ifndef WIDGET_H 2 | #define WIDGET_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class Widget; 8 | } 9 | 10 | class Widget : public QWidget 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | explicit Widget(QWidget *parent = 0); 16 | ~Widget(); 17 | 18 | private slots: 19 | void on_pushButton_2_clicked(); 20 | 21 | void on_pushButton_clicked(); 22 | 23 | void on_pushButton_3_clicked(); 24 | 25 | private: 26 | Ui::Widget *ui; 27 | QString path; 28 | }; 29 | 30 | #endif // WIDGET_H 31 | -------------------------------------------------------------------------------- /src/ldeinit/ldeinit.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2014-08-21T23:23:49 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core 8 | 9 | QT -= gui 10 | 11 | DESTDIR += ../../usr/bin 12 | 13 | TARGET = ldeinit 14 | CONFIG += console 15 | CONFIG -= app_bundle 16 | 17 | TEMPLATE = app 18 | 19 | 20 | SOURCES += main.cpp \ 21 | init.cpp 22 | 23 | HEADERS += \ 24 | init.h 25 | 26 | # install 27 | target.path = /usr/bin 28 | INSTALLS += target 29 | -------------------------------------------------------------------------------- /src/loofm/loofm.pro: -------------------------------------------------------------------------------- 1 | # ------------------------------------------------- 2 | # Project created by QtCreator 2010-05-15T16:14:31 3 | # ------------------------------------------------- 4 | QT += widgets 5 | 6 | DESTDIR += ../../usr/bin 7 | 8 | TARGET = loofm 9 | 10 | TEMPLATE = app 11 | 12 | SOURCES += main.cpp \ 13 | fileview.cpp 14 | 15 | HEADERS += fileview.h 16 | 17 | FORMS += fileview.ui 18 | 19 | RESOURCES += resource.qrc 20 | 21 | TRANSLATIONS +=filemanager_zh.ts 22 | 23 | # install 24 | target.path = /usr/bin 25 | INSTALLS += target 26 | 27 | -------------------------------------------------------------------------------- /src/lrun/lrun.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2014-08-29T09:49:25 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | DESTDIR += ../../usr/bin 12 | 13 | TARGET = lrun 14 | TEMPLATE = app 15 | 16 | 17 | SOURCES += main.cpp\ 18 | widget.cpp 19 | 20 | HEADERS += widget.h 21 | 22 | FORMS += widget.ui 23 | 24 | # install 25 | target.path = /usr/bin 26 | INSTALLS += target 27 | 28 | -------------------------------------------------------------------------------- /src/install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | install -d /usr/ 3 | install -d /usr/bin/ 4 | install -d /usr/share/ 5 | install -d /usr/share/applications/ 6 | install -d /usr/share/xsessions/ 7 | install -d /usr/share/wallpapers/ 8 | install -d /usr/share/apps/kdm/sessions/ 9 | install usr/bin/* /usr/bin/ 10 | install share/*.desktop /usr/share/applications/ 11 | install shell/startlde /usr/bin/ 12 | install xsessions/LDE.desktop /usr/share/xsessions/ 13 | install wallpapers/lde-default.png /usr/share/wallpapers/ 14 | install xsessions/LDE.desktop /usr/share/apps/kdm/sessions/ 15 | -------------------------------------------------------------------------------- /src/ldecc/gencc.h: -------------------------------------------------------------------------------- 1 | #ifndef GENCC_H 2 | #define GENCC_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class Gencc; 8 | } 9 | 10 | class Gencc : public QWidget 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | explicit Gencc(QWidget *parent = 0); 16 | ~Gencc(); 17 | 18 | private slots: 19 | void on_pushButton_clicked(); 20 | 21 | void on_pushButton_2_clicked(); 22 | 23 | void on_pushButton_3_clicked(); 24 | 25 | private: 26 | Ui::Gencc *ui; 27 | 28 | signals: 29 | void back(); 30 | 31 | }; 32 | 33 | #endif // GENCC_H 34 | -------------------------------------------------------------------------------- /src/loogout/loogout.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2014-08-25T09:37:52 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | DESTDIR += ../../usr/bin 12 | 13 | TARGET = loogout 14 | TEMPLATE = app 15 | 16 | 17 | SOURCES += main.cpp\ 18 | widget.cpp 19 | 20 | HEADERS += widget.h 21 | 22 | FORMS += widget.ui 23 | 24 | # install 25 | target.path = /usr/bin 26 | INSTALLS += target 27 | 28 | -------------------------------------------------------------------------------- /src/ldeframework/lithium/lthememanager.h: -------------------------------------------------------------------------------- 1 | #ifndef LTHEMEMANAGER_H 2 | #define LTHEMEMANAGER_H 3 | 4 | #include 5 | 6 | class LThemeManager : public QObject 7 | { 8 | Q_OBJECT 9 | public: 10 | explicit LThemeManager(QObject *parent = 0); 11 | 12 | static LThemeManager * instance(); 13 | QString getQssForWidget(QString className); 14 | void setTheme(const QString theme); 15 | signals: 16 | void themeChanged(QString theme); 17 | 18 | public slots: 19 | 20 | protected: 21 | QString m_theme; 22 | }; 23 | 24 | #endif // LTHEMEMANAGER_H 25 | -------------------------------------------------------------------------------- /src/loogout/widget.h: -------------------------------------------------------------------------------- 1 | #ifndef WIDGET_H 2 | #define WIDGET_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class Widget; 8 | } 9 | 10 | class Widget : public QWidget 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | explicit Widget(QWidget *parent = 0); 16 | ~Widget(); 17 | 18 | private slots: 19 | void on_pushButton_clicked(); 20 | 21 | void on_pushButton_4_clicked(); 22 | 23 | void on_pushButton_2_clicked(); 24 | 25 | void on_pushButton_3_clicked(); 26 | 27 | private: 28 | Ui::Widget *ui; 29 | }; 30 | 31 | #endif // WIDGET_H 32 | -------------------------------------------------------------------------------- /src/Looget/Looget.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2014-08-12T23:25:51 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | QT += network 9 | 10 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 11 | 12 | DESTDIR += ../../usr/bin 13 | 14 | TARGET = looget 15 | TEMPLATE = app 16 | 17 | 18 | SOURCES += main.cpp\ 19 | widget.cpp 20 | 21 | HEADERS += widget.h 22 | 23 | FORMS += widget.ui 24 | 25 | # install 26 | target.path = /usr/bin 27 | INSTALLS += target 28 | -------------------------------------------------------------------------------- /src/LooFTP/LooFTP.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2014-08-13T14:00:17 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | QT += network 9 | 10 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 11 | 12 | DESTDIR += ../../usr/bin 13 | 14 | TARGET = looftp 15 | TEMPLATE = app 16 | 17 | 18 | SOURCES += main.cpp\ 19 | widget.cpp 20 | 21 | HEADERS += widget.h 22 | 23 | FORMS += widget.ui 24 | 25 | # install 26 | target.path = /usr/bin 27 | INSTALLS += target 28 | 29 | -------------------------------------------------------------------------------- /src/ldeframework/lconfig/lconfig.pri: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-01-29T20:49:41 4 | # 5 | #------------------------------------------------- 6 | 7 | INCLUDEPATH += $$PWD 8 | DEPENDPATH += $$PWD 9 | 10 | SOURCES += $$PWD/lconfig.cpp \ 11 | $$PWD/lconfigfile.cpp \ 12 | $$PWD/lconfigbase.cpp \ 13 | $$PWD/lconfigitem.cpp \ 14 | $$PWD/lconfiggroup.cpp 15 | 16 | HEADERS += $$PWD/lconfig.h\ 17 | $$PWD/lconfigfile.h \ 18 | $$PWD/lconfigbase.h \ 19 | $$PWD/lconfigitem.h \ 20 | $$PWD/lconfiggroup.h 21 | -------------------------------------------------------------------------------- /src/ldeinit/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.11) 2 | 3 | project(ldeinit) 4 | 5 | # Find includes in corresponding build directories 6 | set(CMAKE_INCLUDE_CURRENT_DIR ON) 7 | # Instruct CMake to run moc automatically when needed. 8 | set(CMAKE_AUTOMOC ON) 9 | set(CMAKE_AUTOUIC ON) 10 | 11 | find_package(Qt5Core) 12 | 13 | # Tell CMake to create the helloworld executable 14 | add_executable(ldeinit init.cpp main.cpp) 15 | 16 | # Use the Widgets module from Qt 5. 17 | target_link_libraries(ldeinit Qt5::Core) 18 | 19 | INSTALL (TARGETS ldeinit RUNTIME DESTINATION /usr/bin) 20 | -------------------------------------------------------------------------------- /src/lcalc/history.h: -------------------------------------------------------------------------------- 1 | #ifndef HISTORY_H 2 | #define HISTORY_H 3 | 4 | #include 5 | #include 6 | 7 | class QListWidget; 8 | class QGridLayout; 9 | 10 | class History : public QWidget 11 | { 12 | Q_OBJECT 13 | public: 14 | explicit History(QWidget *parent = 0); 15 | QList *listHistory(); 16 | void refreshList(); 17 | //void setListHistory(); 18 | 19 | signals: 20 | 21 | public slots: 22 | 23 | private: 24 | QList *m_pListHistory; 25 | QListWidget *m_pListWidget; 26 | QGridLayout *m_pGridLayout; 27 | 28 | }; 29 | 30 | #endif // HISTORY_H 31 | -------------------------------------------------------------------------------- /src/ldeabout/ldeabout.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2014-08-28T20:06:54 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | DESTDIR += ../../usr/bin 12 | 13 | TARGET = ldeabout 14 | TEMPLATE = app 15 | 16 | 17 | SOURCES += main.cpp\ 18 | widget.cpp \ 19 | laboutwidget.cpp 20 | 21 | HEADERS += widget.h \ 22 | laboutwidget.h 23 | 24 | FORMS += widget.ui 25 | 26 | # install 27 | target.path = /usr/bin 28 | INSTALLS += target 29 | -------------------------------------------------------------------------------- /src/lcalc/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.11) 2 | 3 | project(lcalc) 4 | 5 | # Find includes in corresponding build directories 6 | set(CMAKE_INCLUDE_CURRENT_DIR ON) 7 | # Instruct CMake to run moc automatically when needed. 8 | set(CMAKE_AUTOMOC ON) 9 | 10 | # Find the QtWidgets library 11 | find_package(Qt5Widgets) 12 | 13 | # Tell CMake to create the helloworld executable 14 | add_executable(lcalc button.cpp calculator.cpp main.cpp history.cpp) 15 | 16 | # Use the Widgets module from Qt 5. 17 | target_link_libraries(lcalc Qt5::Widgets) 18 | 19 | INSTALL (TARGETS lcalc RUNTIME DESTINATION /usr/bin) 20 | -------------------------------------------------------------------------------- /src/ldecc/descc.h: -------------------------------------------------------------------------------- 1 | #ifndef DESCC_H 2 | #define DESCC_H 3 | 4 | #include 5 | 6 | namespace Ui { 7 | class Descc; 8 | } 9 | 10 | class Descc : public QWidget 11 | { 12 | Q_OBJECT 13 | 14 | public: 15 | explicit Descc(QWidget *parent = 0); 16 | ~Descc(); 17 | 18 | private slots: 19 | void on_pushButton_clicked(); 20 | 21 | void on_pushButton_2_clicked(); 22 | 23 | void on_pushButton_3_clicked(); 24 | 25 | void on_pushButton_4_clicked(); 26 | 27 | private: 28 | Ui::Descc *ui; 29 | QString fileName; 30 | 31 | signals: 32 | void back(); 33 | }; 34 | 35 | #endif // DESCC_H 36 | -------------------------------------------------------------------------------- /share/lde-logout.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Encoding=UTF-8 3 | Type=Application 4 | Name=Loogout 5 | Name[de]=Abmelden 6 | Name[fi]=Kirjaudu ulos 7 | Name[pt]=Terminar sessão 8 | Name[pt_BR]=Desligar 9 | Name[zh_CN]=注销 10 | Comment=Logout, shutdown or reboot 11 | Comment[de]=Abmelden, herunterfahren oder neu starten 12 | Comment[fi]=Kirjaudu ulos, sammuta tai käynnistä tietokone uudelleen 13 | Comment[pt]=Terminar sessão, desligar ou reiniciar 14 | Comment[pt_BR]=Desligar, reiniciar, sair da sessão etc. 15 | Comment[zh_CN]=注销、关机、或重新开机 16 | GenericName[zh_CN]=LDE 注销管理器 17 | Icon=gnome-logout 18 | Exec=loogout 19 | Categories=System 20 | 21 | -------------------------------------------------------------------------------- /src/loogout/widget.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include "ui_widget.h" 3 | #include 4 | 5 | Widget::Widget(QWidget *parent) : 6 | QWidget(parent), 7 | ui(new Ui::Widget) 8 | { 9 | ui->setupUi(this); 10 | } 11 | 12 | Widget::~Widget() 13 | { 14 | delete ui; 15 | } 16 | 17 | void Widget::on_pushButton_clicked() 18 | { 19 | system("killall ldeinit"); 20 | } 21 | 22 | void Widget::on_pushButton_4_clicked() 23 | { 24 | qApp->quit(); 25 | } 26 | 27 | void Widget::on_pushButton_2_clicked() 28 | { 29 | system("reboot"); 30 | } 31 | 32 | void Widget::on_pushButton_3_clicked() 33 | { 34 | system("init 0"); 35 | } 36 | -------------------------------------------------------------------------------- /src/lrun/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.11) 2 | 3 | project(lrun) 4 | 5 | # Find includes in corresponding build directories 6 | set(CMAKE_INCLUDE_CURRENT_DIR ON) 7 | # Instruct CMake to run moc automatically when needed. 8 | set(CMAKE_AUTOMOC ON) 9 | set(CMAKE_AUTOUIC ON) 10 | 11 | # Find the QtWidgets library 12 | find_package(Qt5Widgets) 13 | qt5_wrap_ui(UIS_HDRS widget.ui) 14 | 15 | # Tell CMake to create the executable 16 | add_executable(lrun main.cpp widget.cpp ${UIS_HDRS}) 17 | 18 | # Use the Widgets module from Qt 5. 19 | target_link_libraries(lrun Qt5::Widgets) 20 | 21 | INSTALL (TARGETS lrun RUNTIME DESTINATION /usr/bin) 22 | -------------------------------------------------------------------------------- /src/ldeframework/lithium/lithium.pri: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2016-02-04T16:43:36 4 | # 5 | #------------------------------------------------- 6 | 7 | INCLUDEPATH += $$PWD 8 | DEPENDPATH += $$PWD 9 | 10 | CONFIG += c++11 11 | 12 | SOURCES +=\ 13 | $$PWD/lpushbutton.cpp \ 14 | $$PWD/lthememanager.cpp \ 15 | $$PWD/lapplication.cpp \ 16 | $$PWD/ltextbutton.cpp 17 | 18 | HEADERS += \ 19 | $$PWD/lpushbutton.h \ 20 | $$PWD/lthememanager.h \ 21 | $$PWD/lapplication.h \ 22 | $$PWD/ltextbutton.h \ 23 | $$PWD/lithium_global.h 24 | 25 | RESOURCES += \ 26 | $$PWD/res.qrc 27 | -------------------------------------------------------------------------------- /src/loogout/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.11) 2 | 3 | project(loogout) 4 | 5 | # Find includes in corresponding build directories 6 | set(CMAKE_INCLUDE_CURRENT_DIR ON) 7 | # Instruct CMake to run moc automatically when needed. 8 | set(CMAKE_AUTOMOC ON) 9 | set(CMAKE_AUTOUIC ON) 10 | 11 | # Find the QtWidgets library 12 | find_package(Qt5Widgets) 13 | qt5_wrap_ui(UIS_HDRS widget.ui) 14 | 15 | # Tell CMake to create the helloworld executable 16 | add_executable(loogout main.cpp widget.cpp ${UIS_HDRS}) 17 | 18 | # Use the Widgets module from Qt 5. 19 | target_link_libraries(loogout Qt5::Widgets) 20 | 21 | INSTALL (TARGETS loogout RUNTIME DESTINATION /usr/bin) 22 | -------------------------------------------------------------------------------- /src/ldeframework/lithium/themes/dark/LTextButton.theme: -------------------------------------------------------------------------------- 1 | LTextButton { 2 | padding:0 5px; 3 | min-width:50px; 4 | color: #CCCCCC; 5 | outline:none; 6 | border-width:5px 5px 5px 5px; 7 | border-image:url(:/images/themes/dark/images/dark_button_normal_bg.png) 5 5 5 5 stretch; 8 | background-color:transparent; 9 | } 10 | 11 | LTextButton:hover { 12 | color: #AAA; 13 | border-image:url(:/images/themes/dark/images/dark_button_hover_bg.png) 5 5 5 5 stretch; 14 | } 15 | 16 | LTextButton:pressed { 17 | border-image:url(:/images/themes/dark/images/dark_button_press_bg.png) 5 5 5 5 stretch; 18 | } 19 | 20 | LTextButton:checked { 21 | color:#01BDFF; 22 | } 23 | -------------------------------------------------------------------------------- /src/ldeabout/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.11) 2 | 3 | project(ldeabout) 4 | 5 | # Find includes in corresponding build directories 6 | set(CMAKE_INCLUDE_CURRENT_DIR ON) 7 | # Instruct CMake to run moc automatically when needed. 8 | set(CMAKE_AUTOMOC ON) 9 | set(CMAKE_AUTOUIC ON) 10 | 11 | # Find the QtWidgets library 12 | find_package(Qt5Widgets) 13 | qt5_wrap_ui(UIS_HDRS widget.ui) 14 | 15 | # Tell CMake to create the executable 16 | add_executable(ldeabout main.cpp widget.cpp laboutwidget.cpp ${UIS_HDRS}) 17 | 18 | # Use the Widgets module from Qt 5. 19 | target_link_libraries(ldeabout Qt5::Widgets) 20 | 21 | INSTALL (TARGETS ldeabout RUNTIME DESTINATION /usr/bin) 22 | -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | #cmake file for project association #表示注释 2 | #author:>---LDE Team 3 | #created:>--2015/08/24 4 | 5 | CMAKE_MINIMUM_REQUIRED(VERSION 2.8.11) #cmake 最低版本要求 6 | #低于2.8.11 构建过程会被终止 7 | 8 | PROJECT(lde) #定义工程名称 9 | 10 | MESSAGE(STATUS "Project: LDE") #打印相关消息消息 11 | MESSAGE(STATUS "Project Directory: ${PROJECT_SOURCE_DIR}") 12 | 13 | # SET(CMAKE_BUILE_TYPE DEBUG) #指定编译类型 14 | 15 | 16 | # SET(CMAKE_C_FLAGS_DEBUG "-g -Wall") #指定编译器 17 | 18 | ADD_SUBDIRECTORY(src) #添加子目录 19 | -------------------------------------------------------------------------------- /src/Looget/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.11) 2 | 3 | project(Looget) 4 | 5 | # Find includes in corresponding build directories 6 | set(CMAKE_INCLUDE_CURRENT_DIR ON) 7 | # Instruct CMake to run moc automatically when needed. 8 | set(CMAKE_AUTOMOC ON) 9 | set(CMAKE_AUTOUIC ON) 10 | 11 | # Find the QtWidgets library 12 | find_package(Qt5Widgets) 13 | find_package(Qt5Network) 14 | qt5_wrap_ui(UIS_HDRS widget.ui) 15 | 16 | # Tell CMake to create the executable 17 | add_executable(looget main.cpp widget.cpp ${UIS_HDRS}) 18 | 19 | # Use the Widgets module from Qt 5. 20 | target_link_libraries(looget Qt5::Widgets Qt5::Network) 21 | 22 | INSTALL (TARGETS looget RUNTIME DESTINATION /usr/bin) 23 | -------------------------------------------------------------------------------- /src/lcalc/history.cpp: -------------------------------------------------------------------------------- 1 | #include "history.h" 2 | 3 | #include 4 | #include 5 | 6 | History::History(QWidget *parent) : QWidget(parent) 7 | { 8 | m_pListWidget = new QListWidget; 9 | m_pGridLayout = new QGridLayout; 10 | m_pGridLayout->addWidget(m_pListWidget); 11 | m_pListHistory = new QList; 12 | setLayout(m_pGridLayout); 13 | } 14 | 15 | QList *History::listHistory() 16 | { 17 | return m_pListHistory; 18 | } 19 | 20 | void History::refreshList() 21 | { 22 | double d; 23 | m_pListWidget->clear(); 24 | foreach(d, *m_pListHistory) 25 | { 26 | m_pListWidget->addItem(QString::number(d)); 27 | } 28 | 29 | } 30 | 31 | -------------------------------------------------------------------------------- /src/Lootepad/textedittab.h: -------------------------------------------------------------------------------- 1 | #ifndef TEXTEDITTAB_H 2 | #define TEXTEDITTAB_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include "texteditor.h" 8 | 9 | class MainWindow; 10 | 11 | class TextEditTab : public QTabWidget 12 | { 13 | Q_OBJECT 14 | 15 | public: 16 | explicit TextEditTab(MainWindow *parent = 0); 17 | ~TextEditTab(); 18 | TextEditor *currentTEditor; 19 | QList *textEditorList; 20 | 21 | signals: 22 | void addEditTab(MainWindow *parent = 0); 23 | 24 | private slots: 25 | void on_TextEditTab_addEditTab(MainWindow *parent = 0); 26 | void onCurrentChanged(int index); 27 | 28 | 29 | }; 30 | 31 | #endif // TEXTEDITTAB_H 32 | -------------------------------------------------------------------------------- /src/Lootepad/texteditor.h: -------------------------------------------------------------------------------- 1 | #ifndef TEXTEDITOR_H 2 | #define TEXTEDITOR_H 3 | 4 | #include 5 | #include "mainwindow.h" 6 | 7 | class TextEditor : public QTextEdit 8 | { 9 | Q_OBJECT 10 | 11 | public: 12 | explicit TextEditor(MainWindow *parent = 0); 13 | ~TextEditor(); 14 | void do_file_New(); 15 | void do_file_SaveOrNot(); 16 | void do_file_Save(); 17 | void do_file_SaveAs(); 18 | void do_file_Open(); 19 | private: 20 | MainWindow *pMainWindow; 21 | 22 | bool saveFile(const QString &fileName); 23 | bool isSaved; 24 | 25 | bool do_file_Load(const QString &fileName); 26 | QString curFile; 27 | QString formTitle; 28 | }; 29 | 30 | #endif // TEXTEDITOR_H 31 | -------------------------------------------------------------------------------- /src/looplorer/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.11) 2 | 3 | project(looplorer) 4 | 5 | # Find includes in corresponding build directories 6 | set(CMAKE_INCLUDE_CURRENT_DIR ON) 7 | # Instruct CMake to run moc automatically when needed. 8 | set(CMAKE_AUTOMOC ON) 9 | set(CMAKE_AUTOUIC ON) 10 | 11 | # Find the QtWidgets library 12 | find_package(Qt5Widgets) 13 | find_package(Qt5WebKit) 14 | find_package(Qt5WebKitWidgets) 15 | 16 | # Tell CMake to create the executable 17 | add_executable(looplorer jquery.qrc main.cpp mainwindow.cpp) 18 | 19 | # Use the Widgets module from Qt 5. 20 | target_link_libraries(looplorer Qt5::Widgets Qt5::WebKit Qt5::WebKitWidgets) 21 | 22 | INSTALL (TARGETS looplorer RUNTIME DESTINATION /usr/bin) 23 | -------------------------------------------------------------------------------- /src/Lootepad/Lootepad.pro: -------------------------------------------------------------------------------- 1 | ###################################################################### 2 | # Automatically generated by qmake (2.01a) ?? 8? 12 04:59:00 2014 3 | ###################################################################### 4 | 5 | QT += widgets 6 | 7 | TEMPLATE = app 8 | 9 | DESTDIR += ../../usr/bin 10 | 11 | TARGET = lootepad 12 | DEPENDPATH += . 13 | INCLUDEPATH += . 14 | 15 | # Input 16 | HEADERS += mainwindow.h \ 17 | textedittab.h \ 18 | texteditor.h 19 | FORMS += mainwindow.ui 20 | SOURCES += main.cpp mainwindow.cpp \ 21 | textedittab.cpp \ 22 | texteditor.cpp 23 | 24 | RESOURCES += \ 25 | rc.qrc 26 | 27 | # install 28 | target.path = /usr/bin 29 | INSTALLS += target 30 | 31 | CONFIG += c++11 32 | 33 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | default: 2 | cd src && qmake -qt5 lde.pro && make 3 | 4 | install: 5 | install -d $(DESTDIR)/usr/ 6 | install -d $(DESTDIR)/usr/bin/ 7 | install -d $(DESTDIR)/usr/share/ 8 | install -d $(DESTDIR)/usr/share/applications/ 9 | install -d $(DESTDIR)/usr/share/xsessions/ 10 | install -d $(DESTDIR)/usr/share/wallpapers/ 11 | install -d $(DESTDIR)/usr/share/apps/kdm/sessions/ 12 | install usr/bin/* $(DESTDIR)/usr/bin/ 13 | install share/*.desktop $(DESTDIR)/usr/share/applications/ 14 | install shell/startlde $(DESTDIR)/usr/bin/ 15 | install xsessions/LDE.desktop $(DESTDIR)/usr/share/xsessions/ 16 | install wallpapers/lde-default.png $(DESTDIR)/usr/share/wallpapers/ 17 | install xsessions/LDE.desktop $(DESTDIR)/usr/share/apps/kdm/sessions/ 18 | -------------------------------------------------------------------------------- /src/Lootepad/rc.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | res/0.png 4 | res/1.png 5 | res/2.png 6 | res/10.png 7 | res/11.png 8 | res/12.png 9 | res/13.png 10 | res/14.png 11 | res/16.png 12 | res/17.png 13 | res/18.png 14 | res/19.png 15 | res/24.png 16 | res/33.png 17 | res/5.png 18 | res/21.png 19 | res/6.png 20 | res/36.png 21 | res/28.png 22 | 23 | 24 | -------------------------------------------------------------------------------- /src/ldeabout/laboutwidget.h: -------------------------------------------------------------------------------- 1 | #ifndef LABOUTWIDGET_H 2 | #define LABOUTWIDGET_H 3 | 4 | #include 5 | 6 | class QVBoxLayout; 7 | class QLabel; 8 | class QPushButton; 9 | class QTabWidget; 10 | 11 | class LAboutWidget : public QWidget 12 | { 13 | Q_OBJECT 14 | public: 15 | explicit LAboutWidget(QString name, QString version, QString info = "", QWidget *parent = 0); 16 | 17 | signals: 18 | 19 | public slots: 20 | 21 | private: 22 | QVBoxLayout *m_pVBoxLayoutMain; 23 | QVBoxLayout *m_pVBoxLayoutTitle; 24 | QLabel *m_pLabelName; 25 | QLabel *m_pLabelVersion; 26 | QLabel *m_pLabelLDEVersion; 27 | QTabWidget *m_pTabWidgetContent; 28 | QLabel *m_pLabelAbout; 29 | QVBoxLayout *m_pVBoxLayoutAbout; 30 | }; 31 | 32 | #endif // LABOUTWIDGET_H 33 | -------------------------------------------------------------------------------- /src/Looget/widget.h: -------------------------------------------------------------------------------- 1 | #ifndef WIDGET_H 2 | #define WIDGET_H 3 | 4 | #include 5 | #include 6 | 7 | namespace Ui { 8 | class Widget; 9 | } 10 | 11 | class Widget : public QWidget 12 | { 13 | Q_OBJECT 14 | 15 | public: 16 | explicit Widget(QWidget *parent = 0); 17 | ~Widget(); 18 | void startRequest(QUrl url); 19 | 20 | protected: 21 | // void changeEvent (QEvent *e); 22 | 23 | private slots: 24 | void on_pushButton_clicked(); 25 | void httpFinished(); 26 | void httpReadyRead(); 27 | void updateDataReadProgress(qint64,qint64); 28 | 29 | private: 30 | Ui::Widget *ui; 31 | QNetworkAccessManager *manager; 32 | QNetworkReply *reply; 33 | QUrl url; 34 | QFile *file; 35 | }; 36 | 37 | #endif // WIDGET_H 38 | -------------------------------------------------------------------------------- /src/ldecc/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.11) 2 | 3 | project(ldecc) 4 | 5 | # Find includes in corresponding build directories 6 | set(CMAKE_INCLUDE_CURRENT_DIR ON) 7 | # Instruct CMake to run moc automatically when needed. 8 | set(CMAKE_AUTOMOC ON) 9 | set(CMAKE_AUTOUIC ON) 10 | 11 | # Find the QtWidgets library 12 | find_package(Qt5Widgets) 13 | qt5_wrap_ui(UIS_HDRS descc.ui gencc.ui lancc.ui ldecc.ui safcc.ui) 14 | qt5_add_resources(QRCS_CPPS ldeccrc.qrc) 15 | 16 | # Tell CMake to create the helloworld executable 17 | add_executable(ldecc descc.cpp gencc.cpp lancc.cpp ldecc.cpp main.cpp safcc.cpp ${UIS_HDRS} ${QRCS_CPPS}) 18 | 19 | # Use the Widgets module from Qt 5. 20 | target_link_libraries(ldecc Qt5::Widgets) 21 | 22 | INSTALL (TARGETS ldecc RUNTIME DESTINATION /usr/bin) 23 | -------------------------------------------------------------------------------- /src/loofm/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.11) 2 | 3 | project(loofm) 4 | 5 | # Find includes in corresponding build directories 6 | set(CMAKE_INCLUDE_CURRENT_DIR ON) 7 | # Instruct CMake to run moc automatically when needed. 8 | set(CMAKE_AUTOMOC ON) 9 | set(CMAKE_AUTOUIC ON) 10 | 11 | find_package(Qt5Widgets) 12 | qt5_wrap_ui(UIS_HDRS fileview.ui) 13 | qt5_add_resources(QRCS_CPPS resource.qrc) 14 | # find_package(Qt5LinguistTools) 15 | 16 | # qt5_add_translation(filemanager_zh.qm filemanager_zh.ts) 17 | 18 | # Tell CMake to create the helloworld executable 19 | add_executable(loofm fileview.cpp main.cpp ${UIS_HDRS} ${QRCS_CPPS}) 20 | 21 | # Use the Widgets module from Qt 5. 22 | target_link_libraries(loofm Qt5::Widgets) 23 | 24 | INSTALL (TARGETS loofm RUNTIME DESTINATION /usr/bin) 25 | -------------------------------------------------------------------------------- /src/Lootepad/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.8.11) 2 | 3 | project(Lootepad) 4 | 5 | # Find includes in corresponding build directories 6 | set(CMAKE_INCLUDE_CURRENT_DIR ON) 7 | # Instruct CMake to run moc automatically when needed. 8 | set(CMAKE_AUTOMOC ON) 9 | set(CMAKE_AUTOUIC ON) 10 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") 11 | 12 | # Find the QtWidgets library 13 | find_package(Qt5Widgets) 14 | qt5_wrap_ui(UIS_HDRS mainwindow.ui) 15 | qt5_add_resources(QRCS_CPPS rc.qrc) 16 | 17 | # Tell CMake to create the helloworld executable 18 | add_executable(lootepad main.cpp mainwindow.cpp texteditor.cpp textedittab.cpp ${UIS_HDRS} ${QRCS_CPPS}) 19 | 20 | # Use the Widgets module from Qt 5. 21 | target_link_libraries(lootepad Qt5::Widgets) 22 | 23 | INSTALL (TARGETS lootepad RUNTIME DESTINATION /usr/bin) 24 | -------------------------------------------------------------------------------- /debian/preinst.ex: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # preinst script for lde 3 | # 4 | # see: dh_installdeb(1) 5 | 6 | set -e 7 | 8 | # summary of how this script can be called: 9 | # * `install' 10 | # * `install' 11 | # * `upgrade' 12 | # * `abort-upgrade' 13 | # for details, see http://www.debian.org/doc/debian-policy/ or 14 | # the debian-policy package 15 | 16 | 17 | case "$1" in 18 | install|upgrade) 19 | ;; 20 | 21 | abort-upgrade) 22 | ;; 23 | 24 | *) 25 | echo "preinst called with unknown argument \`$1'" >&2 26 | exit 1 27 | ;; 28 | esac 29 | 30 | # dh_installdeb will replace this with shell code automatically 31 | # generated by other debhelper scripts. 32 | 33 | #DEBHELPER# 34 | 35 | exit 0 36 | -------------------------------------------------------------------------------- /src/ldecc/ldecc.h: -------------------------------------------------------------------------------- 1 | #ifndef LDECC_H 2 | #define LDECC_H 3 | 4 | #include 5 | #include "gencc.h" 6 | #include "lancc.h" 7 | #include "safcc.h" 8 | #include "descc.h" 9 | 10 | namespace Ui { 11 | class ldecc; 12 | } 13 | 14 | class ldecc : public QWidget 15 | { 16 | Q_OBJECT 17 | 18 | public: 19 | explicit ldecc(QWidget *parent = 0); 20 | ~ldecc(); 21 | 22 | private slots: 23 | void on_pushButton_clicked(); 24 | 25 | void on_toolButton_clicked(); 26 | 27 | void on_toolButton_2_clicked(); 28 | 29 | void on_toolButton_10_clicked(); 30 | 31 | void on_toolButton_9_clicked(); 32 | 33 | void on_toolButton_3_clicked(); 34 | 35 | void on_toolButton_11_clicked(); 36 | 37 | private: 38 | Ui::ldecc *ui; 39 | Gencc g; 40 | Lancc l; 41 | Safcc s; 42 | Descc d; 43 | }; 44 | 45 | #endif // LDECC_H 46 | -------------------------------------------------------------------------------- /src/loofm/resource.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | images/88.png 4 | images/left-24.png 5 | images/newdirectory-24.png 6 | images/right-24.png 7 | images/up-24.png 8 | images/viewdetailed-24.png 9 | images/viewlist-24.png 10 | images/110.png 11 | images/82.png 12 | images/66.png 13 | images/117.png 14 | images/122.png 15 | images/90.png 16 | images/115.png 17 | images/go-down.svg 18 | 19 | 20 | images/runtonewscript.png 21 | 22 | 23 | -------------------------------------------------------------------------------- /src/ldeframework/lithium/themes/dark/LPushButton.theme: -------------------------------------------------------------------------------- 1 | LPushButton { 2 | background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, 3 | stop: 0 #272727, 4 | stop: 1.0 #191919); 5 | border-width: 1px; 6 | border-style: solid; 7 | border-radius: 3; 8 | border-color: rgba(0, 0, 0, 255); 9 | } 10 | 11 | LPushButton:pressed { 12 | background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, 13 | stop: 0 #181818, 14 | stop: 1.0 #282828); 15 | } 16 | 17 | LPushButton:flat { 18 | border: none; /* no border for a flat push button */ 19 | } 20 | 21 | 22 | QFrame#ButtonInsideFrame { 23 | background-color: transparent; 24 | border-top-width: 1px; 25 | border-style: solid; 26 | border-radius: 3; 27 | border-top-color: rgba(255, 255, 255, 26); 28 | } 29 | -------------------------------------------------------------------------------- /src/ldeabout/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include "widget.h" 6 | #include "laboutwidget.h" 7 | 8 | int main(int argc, char *argv[]) 9 | { 10 | QApplication a(argc, argv); 11 | QCommandLineOption opName("n"); 12 | opName.setValueName("name"); 13 | QCommandLineOption opVer("v"); 14 | opVer.setValueName("version"); 15 | QCommandLineParser parser; 16 | parser.addOption(opName); 17 | parser.addOption(opVer); 18 | parser.process(a); 19 | Widget w; 20 | LAboutWidget *aw; 21 | if(!parser.isSet(opName) && !parser.isSet(opVer)) 22 | { 23 | w.show(); 24 | } 25 | else 26 | { 27 | aw = new LAboutWidget(parser.value(opName), parser.value(opVer)); 28 | aw->show(); 29 | } 30 | 31 | return a.exec(); 32 | } 33 | -------------------------------------------------------------------------------- /src/ldecc/ldecc.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2014-10-03T16:55:54 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | DESTDIR += ../../usr/bin 12 | 13 | TARGET = ldecc 14 | TEMPLATE = app 15 | 16 | include(../ldeframework/lconfig/lconfig.pri) 17 | 18 | SOURCES += main.cpp\ 19 | ldecc.cpp \ 20 | gencc.cpp \ 21 | lancc.cpp \ 22 | safcc.cpp \ 23 | descc.cpp 24 | 25 | HEADERS += ldecc.h \ 26 | gencc.h \ 27 | lancc.h \ 28 | safcc.h \ 29 | descc.h 30 | 31 | FORMS += ldecc.ui \ 32 | gencc.ui \ 33 | lancc.ui \ 34 | safcc.ui \ 35 | descc.ui 36 | 37 | RESOURCES += \ 38 | ldeccrc.qrc 39 | 40 | # install 41 | target.path = /usr/bin 42 | INSTALLS += target 43 | -------------------------------------------------------------------------------- /src/lrun/widget.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include "ui_widget.h" 3 | #include 4 | #include 5 | #include 6 | 7 | Widget::Widget(QWidget *parent) : 8 | QWidget(parent), 9 | ui(new Ui::Widget) 10 | { 11 | ui->setupUi(this); 12 | } 13 | 14 | Widget::~Widget() 15 | { 16 | delete ui; 17 | } 18 | 19 | void Widget::on_pushButton_2_clicked() 20 | { 21 | qApp->quit(); 22 | } 23 | 24 | void Widget::on_pushButton_clicked() 25 | { 26 | QProcess *mainProcess = new QProcess; 27 | mainProcess->start(ui->lineEdit->text(),NULL); 28 | qApp->quit(); 29 | } 30 | 31 | void Widget::on_pushButton_3_clicked() 32 | { 33 | path = QFileDialog::getOpenFileName(this, tr("Run..."), "."); 34 | if(path.length() == 0) { 35 | QMessageBox::information(NULL, tr("Run"), tr("You didn't select any files.")); 36 | } 37 | ui->lineEdit->setText(path); 38 | } 39 | -------------------------------------------------------------------------------- /src/LooFTP/widget.h: -------------------------------------------------------------------------------- 1 | #ifndef WIDGET_H 2 | #define WIDGET_H 3 | 4 | #include 5 | #include "qftp.h" 6 | #include 7 | #include 8 | 9 | namespace Ui { 10 | class Widget; 11 | } 12 | 13 | class Widget : public QWidget 14 | { 15 | Q_OBJECT 16 | 17 | public: 18 | explicit Widget(QWidget *parent = 0); 19 | ~Widget(); 20 | 21 | private: 22 | Ui::Widget *ui; 23 | QFtp *ftp; 24 | QHash isDirectory; 25 | QString currentPath; 26 | QFile *file; 27 | 28 | private slots: 29 | void ftpCommandStarted(int); 30 | void ftpCommandFinished(int,bool); 31 | void on_downloadButton_clicked(); 32 | void on_cdToParentButton_clicked(); 33 | void on_connectButton_clicked(); 34 | void updateDataTransferProgress(qint64,qint64); 35 | void addToList(const QUrlInfo &urlInfo); 36 | void processItem(QTreeWidgetItem*,int); 37 | 38 | }; 39 | 40 | #endif // WIDGET_H 41 | -------------------------------------------------------------------------------- /debian/control: -------------------------------------------------------------------------------- 1 | Source: lde 2 | Section: x11 3 | Priority: optional 4 | Maintainer: Zhuoyi Xu 5 | Build-Depends: debhelper (>= 8.0.0), libqt5core5a, libqt5gui5, libqt5network5, libqt5webkit5-dev, libqt5widgets5, libqt5opengl5-dev, qt5-qmake, cmake 6 | Standards-Version: 3.9.4 7 | Homepage: http://ldeteam.tk 8 | Vcs-Git: git://github.com/xuzhuoyi/LDE.git 9 | Vcs-Browser: https://github.com/xuzhuoyi/LDE 10 | 11 | Package: lde 12 | Architecture: any 13 | Depends: ${shlibs:Depends}, ${misc:Depends}, libqt5core5a, libqt5gui5, libqt5network5, libqt5webkit5-dev, libqt5widgets5, razorqt-panel, feh, xfwm4 14 | Description: complete LDE Desktop Environment for end users 15 | LDE is the powerful, lightweight, and easy-to-use Free Software desktop platform and suite of applications. 16 | This package includes all the modules released with LDE Desktop Environment that are useful for a desktop user. This includes Looplorer, Looget, LDE Control Center, LooFm, Lootepad, and other useful utilities. 17 | -------------------------------------------------------------------------------- /src/ldeframework/lithium/lthememanager.cpp: -------------------------------------------------------------------------------- 1 | #include "lthememanager.h" 2 | #include 3 | #include 4 | 5 | 6 | class LThemeManagerPrivate : public LThemeManager 7 | { 8 | 9 | }; 10 | 11 | Q_GLOBAL_STATIC(LThemeManagerPrivate, LThemeManagerStatic) 12 | 13 | LThemeManager * LThemeManager::instance() 14 | { 15 | return LThemeManagerStatic; 16 | } 17 | 18 | LThemeManager::LThemeManager(QObject *parent) : QObject(parent) 19 | { 20 | 21 | } 22 | 23 | QString LThemeManager::getQssForWidget(QString className) 24 | { 25 | QString qss; 26 | 27 | QFile themeFile(QString(":/themes/%1/%2.theme").arg(m_theme).arg(className)); 28 | 29 | if (themeFile.open(QIODevice::ReadOnly | QIODevice::Text)) { 30 | qss = themeFile.readAll(); 31 | 32 | themeFile.close(); 33 | } 34 | 35 | return qss; 36 | } 37 | 38 | void LThemeManager::setTheme(const QString theme) 39 | { 40 | if (m_theme != theme) { 41 | m_theme = theme; 42 | 43 | emit themeChanged(theme); 44 | } 45 | } 46 | 47 | -------------------------------------------------------------------------------- /debian/prerm.ex: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # prerm script for lde 3 | # 4 | # see: dh_installdeb(1) 5 | 6 | set -e 7 | 8 | # summary of how this script can be called: 9 | # * `remove' 10 | # * `upgrade' 11 | # * `failed-upgrade' 12 | # * `remove' `in-favour' 13 | # * `deconfigure' `in-favour' 14 | # `removing' 15 | # 16 | # for details, see http://www.debian.org/doc/debian-policy/ or 17 | # the debian-policy package 18 | 19 | 20 | case "$1" in 21 | remove|upgrade|deconfigure) 22 | ;; 23 | 24 | failed-upgrade) 25 | ;; 26 | 27 | *) 28 | echo "prerm called with unknown argument \`$1'" >&2 29 | exit 1 30 | ;; 31 | esac 32 | 33 | # dh_installdeb will replace this with shell code automatically 34 | # generated by other debhelper scripts. 35 | 36 | #DEBHELPER# 37 | 38 | exit 0 39 | -------------------------------------------------------------------------------- /src/ldeabout/laboutwidget.cpp: -------------------------------------------------------------------------------- 1 | #include "laboutwidget.h" 2 | #include "widget.h" 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | LAboutWidget::LAboutWidget(QString name, QString version, QString info, QWidget *parent) : QWidget(parent) 11 | { 12 | m_pVBoxLayoutMain = new QVBoxLayout; 13 | m_pVBoxLayoutTitle = new QVBoxLayout; 14 | m_pLabelName = new QLabel(name); 15 | m_pLabelVersion = new QLabel(tr("版本") + " " + version); 16 | m_pLabelLDEVersion = new QLabel(tr("LDE 版本") + " " + LDE_VERSION); 17 | m_pVBoxLayoutTitle->addWidget(m_pLabelName); 18 | m_pVBoxLayoutTitle->addWidget(m_pLabelVersion); 19 | m_pVBoxLayoutTitle->addWidget(m_pLabelLDEVersion); 20 | m_pTabWidgetContent = new QTabWidget; 21 | m_pLabelAbout = new QLabel(info); 22 | m_pTabWidgetContent->addTab(m_pLabelAbout, tr("关于")); 23 | m_pVBoxLayoutMain->addLayout(m_pVBoxLayoutTitle); 24 | m_pVBoxLayoutMain->addWidget(m_pTabWidgetContent); 25 | setLayout(m_pVBoxLayoutMain); 26 | } 27 | 28 | -------------------------------------------------------------------------------- /debian/postrm.ex: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # postrm script for lde 3 | # 4 | # see: dh_installdeb(1) 5 | 6 | set -e 7 | 8 | # summary of how this script can be called: 9 | # * `remove' 10 | # * `purge' 11 | # * `upgrade' 12 | # * `failed-upgrade' 13 | # * `abort-install' 14 | # * `abort-install' 15 | # * `abort-upgrade' 16 | # * `disappear' 17 | # 18 | # for details, see http://www.debian.org/doc/debian-policy/ or 19 | # the debian-policy package 20 | 21 | 22 | case "$1" in 23 | purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) 24 | ;; 25 | 26 | *) 27 | echo "postrm called with unknown argument \`$1'" >&2 28 | exit 1 29 | ;; 30 | esac 31 | 32 | # dh_installdeb will replace this with shell code automatically 33 | # generated by other debhelper scripts. 34 | 35 | #DEBHELPER# 36 | 37 | exit 0 38 | -------------------------------------------------------------------------------- /src/Lootepad/textedittab.cpp: -------------------------------------------------------------------------------- 1 | #include "textedittab.h" 2 | #include 3 | #include "mainwindow.h" 4 | #include "texteditor.h" 5 | 6 | 7 | 8 | TextEditTab::TextEditTab(MainWindow *parent): 9 | QTabWidget(parent) 10 | { 11 | auto par = parent; 12 | connect(this, SIGNAL(addEditTab(MainWindow*)), this, SLOT(on_TextEditTab_addEditTab(MainWindow*))); 13 | 14 | textEditorList = new QList; 15 | TextEditor *textLine = new TextEditor(par); 16 | this->addTab(textLine, "untitled"); 17 | currentTEditor = textLine; 18 | textEditorList->append(textLine); 19 | connect(this, SIGNAL(currentChanged(int)), this, SLOT(onCurrentChanged(int))); 20 | } 21 | 22 | TextEditTab::~TextEditTab() 23 | { 24 | 25 | } 26 | 27 | void TextEditTab::on_TextEditTab_addEditTab(MainWindow *parent) 28 | { 29 | TextEditor *tEdit = new TextEditor(parent); 30 | this->addTab(tEdit, "untitled"); 31 | textEditorList->append(tEdit); 32 | } 33 | 34 | void TextEditTab::onCurrentChanged(int index) 35 | { 36 | currentTEditor = textEditorList->at(index); 37 | } 38 | 39 | 40 | -------------------------------------------------------------------------------- /src/loofm/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include "fileview.h" 6 | 7 | int main(int argc, char *argv[]) 8 | { 9 | 10 | QApplication a(argc, argv); 11 | 12 | QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8")); 13 | //QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8")); 14 | //QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8")); 15 | QTranslator translator(0); 16 | translator.load("filemanager_zh","."); 17 | a.installTranslator(&translator); 18 | 19 | QTranslator qttranslator(0); 20 | qttranslator.load("qt_zh_CN","."); 21 | a.installTranslator(&qttranslator); 22 | 23 | QTranslator fileinfotranslator(0); 24 | fileinfotranslator.load("qfile_zh","."); 25 | a.installTranslator(&fileinfotranslator); 26 | 27 | 28 | fileview w; 29 | 30 | QFont font; 31 | font.setPointSize(12); 32 | font.setFamily(("wenquanyi")); 33 | 34 | a.setFont(font); 35 | 36 | 37 | w.show(); 38 | 39 | 40 | return a.exec(); 41 | } 42 | -------------------------------------------------------------------------------- /debian/postinst.ex: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # postinst script for lde 3 | # 4 | # see: dh_installdeb(1) 5 | 6 | set -e 7 | 8 | # summary of how this script can be called: 9 | # * `configure' 10 | # * `abort-upgrade' 11 | # * `abort-remove' `in-favour' 12 | # 13 | # * `abort-remove' 14 | # * `abort-deconfigure' `in-favour' 15 | # `removing' 16 | # 17 | # for details, see http://www.debian.org/doc/debian-policy/ or 18 | # the debian-policy package 19 | 20 | 21 | case "$1" in 22 | configure) 23 | ;; 24 | 25 | abort-upgrade|abort-remove|abort-deconfigure) 26 | ;; 27 | 28 | *) 29 | echo "postinst called with unknown argument \`$1'" >&2 30 | exit 1 31 | ;; 32 | esac 33 | 34 | # dh_installdeb will replace this with shell code automatically 35 | # generated by other debhelper scripts. 36 | 37 | #DEBHELPER# 38 | 39 | exit 0 40 | -------------------------------------------------------------------------------- /src/ldecc/ldeccrc.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | image/2013112721311002.png 4 | image/2013112721311003.png 5 | image/2013112721311004.png 6 | image/2013112721311017.png 7 | image/2013112721311024.png 8 | image/2013112721311031.png 9 | image/2013112721311034.png 10 | image/2013112721311037.png 11 | image/2013112721311043.png 12 | image/2013112721311049.png 13 | image/2013112721311058.png 14 | image/2013112721311064.png 15 | image/2013112721311074.png 16 | image/2013112721311075.png 17 | image/2013112721311077.png 18 | image/2013112721311078.png 19 | image/2013112721311081.png 20 | image/2013112721311082.png 21 | image/2013112721311083.png 22 | image/2013112721311092.png 23 | 24 | 25 | -------------------------------------------------------------------------------- /src/ldecc/ldecc.cpp: -------------------------------------------------------------------------------- 1 | #include "ldecc.h" 2 | #include "ui_ldecc.h" 3 | 4 | ldecc::ldecc(QWidget *parent) : 5 | QWidget(parent), 6 | ui(new Ui::ldecc) 7 | { 8 | ui->setupUi(this); 9 | 10 | connect(&g, SIGNAL(back()), this, SLOT(show())); 11 | connect(&l, SIGNAL(back()), this, SLOT(show())); 12 | connect(&s, SIGNAL(back()), this, SLOT(show())); 13 | connect(&d, SIGNAL(back()), this, SLOT(show())); 14 | } 15 | 16 | ldecc::~ldecc() 17 | { 18 | delete ui; 19 | } 20 | 21 | void ldecc::on_pushButton_clicked() 22 | { 23 | qApp->quit(); 24 | } 25 | 26 | void ldecc::on_toolButton_clicked() 27 | { 28 | g.show(); 29 | this->hide(); 30 | 31 | } 32 | 33 | void ldecc::on_toolButton_2_clicked() 34 | { 35 | l.show(); 36 | this->hide(); 37 | } 38 | 39 | void ldecc::on_toolButton_10_clicked() 40 | { 41 | qApp->aboutQt(); 42 | } 43 | 44 | void ldecc::on_toolButton_9_clicked() 45 | { 46 | 47 | } 48 | 49 | void ldecc::on_toolButton_3_clicked() 50 | { 51 | s.show(); 52 | this->hide(); 53 | } 54 | 55 | void ldecc::on_toolButton_11_clicked() 56 | { 57 | d.show(); 58 | this->hide(); 59 | } 60 | -------------------------------------------------------------------------------- /src/ldeinit/init.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2014 Zhuoyi Xu 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2.1 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with this library; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | * 18 | */ 19 | 20 | #ifndef INIT_H 21 | #define INIT_H 22 | 23 | class Init 24 | { 25 | 26 | private: 27 | bool isFirstLogin(); 28 | //static void runAutorun(); 29 | void startInit(); 30 | void initUser(); 31 | 32 | public: 33 | Init(int mode = 1); 34 | void runDesktop(); 35 | int initMode; 36 | }; 37 | 38 | 39 | 40 | #endif 41 | 42 | -------------------------------------------------------------------------------- /debian/copyright: -------------------------------------------------------------------------------- 1 | Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ 2 | Upstream-Name: lde 3 | Source: https://github.com/xuzhuoyi/LDE 4 | 5 | Files: * 6 | Copyright: 2014-2015 Zhuoyi Xu 7 | License: GNU GPL-3 8 | 9 | 10 | . 11 | 12 | 13 | Files: debian/* 14 | Copyright: 2015 Zhuoyi Xu 15 | License: GPL-2+ 16 | This package is free software; you can redistribute it and/or modify 17 | it under the terms of the GNU General Public License as published by 18 | the Free Software Foundation; either version 2 of the License, or 19 | (at your option) any later version. 20 | . 21 | This package is distributed in the hope that it will be useful, 22 | but WITHOUT ANY WARRANTY; without even the implied warranty of 23 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24 | GNU General Public License for more details. 25 | . 26 | You should have received a copy of the GNU General Public License 27 | along with this program. If not, see 28 | . 29 | On Debian systems, the complete text of the GNU General 30 | Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". 31 | 32 | -------------------------------------------------------------------------------- /src/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | #cmake file for project association #表示注释 2 | #author:>---LDE Team 3 | #created:>--2015/08/16 4 | 5 | CMAKE_MINIMUM_REQUIRED(VERSION 2.8.11) #cmake 最低版本要求 6 | #低于2.8.11 构建过程会被终止 7 | 8 | PROJECT(src) #定义工程名称 9 | 10 | MESSAGE(STATUS "Project: LDE") #打印相关消息消息 11 | MESSAGE(STATUS "Project Directory: ${PROJECT_SOURCE_DIR}") 12 | 13 | # SET(CMAKE_BUILE_TYPE DEBUG) #指定编译类型 14 | 15 | 16 | # SET(CMAKE_C_FLAGS_DEBUG "-g -Wall") #指定编译器 17 | 18 | ADD_SUBDIRECTORY(ldeinit) #添加子目录 19 | ADD_SUBDIRECTORY(ldeabout) 20 | ADD_SUBDIRECTORY(loogout) 21 | ADD_SUBDIRECTORY(lrun) 22 | ADD_SUBDIRECTORY(ldecc) 23 | ADD_SUBDIRECTORY(lcalc) 24 | ADD_SUBDIRECTORY(loofm) 25 | ADD_SUBDIRECTORY(Looget) 26 | ADD_SUBDIRECTORY(looplorer) 27 | ADD_SUBDIRECTORY(Lootepad) 28 | 29 | INSTALL(DIRECTORY ../share/ DESTINATION /usr/share/applications) 30 | INSTALL(PROGRAMS ../shell/startlde DESTINATION /usr/bin) 31 | INSTALL(FILES ../xsessions/LDE.desktop DESTINATION /usr/share/xsessions) 32 | INSTALL(FILES ../wallpapers/lde-default.png DESTINATION /usr/share/wallpapers) 33 | INSTALL(FILES ../xsessions/LDE.desktop DESTINATION /usr/share/apps/kdm/sessions) 34 | -------------------------------------------------------------------------------- /PKGBUILD: -------------------------------------------------------------------------------- 1 | # Contributor: Zhuoyi Xu 2 | pkgname=lde2 3 | pkgver=2.0.1 4 | pkgrel=1 5 | pkgdesc="A Lightweight, Powerful Desktop Environment" 6 | url="http://xuzhuoyi.github.io" 7 | arch=('i686' 'x86_64' 'armv6h') 8 | license="GPL2" 9 | depends=('qt5-base' 'qt5-webkit' 'openbox' 'razorqt-lde' 'feh') 10 | optdepends=() 11 | makedepends=('git') 12 | provides=('lde2') 13 | conflicts=('lde2') 14 | source=("git://github.com/xuzhuoyi/lde.git") 15 | md5sums=('SKIP') 16 | 17 | _gitname="lde" 18 | 19 | 20 | pkgver() { 21 | cd "$srcdir/$_gitname" 22 | 23 | echo "$(LANG=C date '+%Y%m%d')_$(git describe --tags --always | sed 's/-/_/g')" 24 | } 25 | 26 | 27 | build() { 28 | cd "$srcdir/$_gitname/src" 29 | qmake-qt5 lde.pro 30 | make 31 | } 32 | 33 | package() { 34 | cd "$srcdir/$_gitname/src" 35 | install -d $pkgdir/usr/bin/ $pkgdir/usr/share/applications/ $pkgdir/usr/share/xsessions/ $pkgdir/usr/share/wallpapers/ $pkgdir/usr/share/apps/kdm/sessions/ 36 | install ../usr/bin/* $pkgdir/usr/bin/ 37 | install ../share/*.desktop $pkgdir/usr/share/applications/ 38 | install ../shell/startlde $pkgdir/usr/bin/ 39 | install ../xsessions/LDE.desktop $pkgdir/usr/share/xsessions/ 40 | install ../wallpapers/lde-default.png $pkgdir/usr/share/wallpapers/ 41 | install ../xsessions/LDE.desktop $pkgdir/usr/share/apps/kdm/sessions/ 42 | } 43 | -------------------------------------------------------------------------------- /src/looplorer/looplorer.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2013 4 | VisualStudioVersion = 12.0.30723.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "looplorer", "looplorer.vcxproj", "{53266EC1-1DC0-3502-B3A9-295663480DE3}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Win32 = Debug|Win32 11 | Debug|x64 = Debug|x64 12 | Release|Win32 = Release|Win32 13 | Release|x64 = Release|x64 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {53266EC1-1DC0-3502-B3A9-295663480DE3}.Debug|Win32.ActiveCfg = Debug|Win32 17 | {53266EC1-1DC0-3502-B3A9-295663480DE3}.Debug|Win32.Build.0 = Debug|Win32 18 | {53266EC1-1DC0-3502-B3A9-295663480DE3}.Debug|x64.ActiveCfg = Debug|x64 19 | {53266EC1-1DC0-3502-B3A9-295663480DE3}.Debug|x64.Build.0 = Debug|x64 20 | {53266EC1-1DC0-3502-B3A9-295663480DE3}.Release|Win32.ActiveCfg = Release|Win32 21 | {53266EC1-1DC0-3502-B3A9-295663480DE3}.Release|Win32.Build.0 = Release|Win32 22 | {53266EC1-1DC0-3502-B3A9-295663480DE3}.Release|x64.ActiveCfg = Release|x64 23 | {53266EC1-1DC0-3502-B3A9-295663480DE3}.Release|x64.Build.0 = Release|x64 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | EndGlobal 29 | -------------------------------------------------------------------------------- /debian/changelog: -------------------------------------------------------------------------------- 1 | lde (2.1.1) vivid; urgency=low 2 | 3 | * Merge pull request #2 from xuzhuoyi/cmake-install (Closes: #96) 4 | 5 | -- Zhuoyi Xu (LDE Team) Mon, 24 Aug 2015 20:55:57 +0800 6 | 7 | lde (2.1.0) vivid; urgency=low 8 | 9 | * Add Default xml of xfwm4 (Closes: #88) 10 | 11 | -- Zhuoyi Xu (LDE Team) Sun, 23 Aug 2015 23:11:41 +0800 12 | 13 | lde (2.0.1) utopic; urgency=low 14 | 15 | * Remove file conflict with LXDE (Closes: #68) 16 | 17 | -- Zhuoyi Xu (LDE Team) Thu, 26 Feb 2015 19:36:19 +0800 18 | 19 | lde (2.0.0) utopic; urgency=medium 20 | 21 | * Change Ldeabout UI (Closes: #64) 22 | 23 | -- Zhuoyi Xu (LDE Team) Thu, 26 Feb 2015 14:11:11 +0800 24 | 25 | lde (1.9.4-1) utopic; urgency=low 26 | 27 | * Add Wallpaper in Makefile (Closes: #61) 28 | 29 | -- Zhuoyi Xu (LDE Team) Tue, 24 Feb 2015 15:50:11 +0800 30 | 31 | lde (1.9.3-3) utopic; urgency=medium 32 | 33 | * Fix rc exists judgement (Closes: #53) 34 | 35 | -- Zhuoyi Xu (LDE Team) Mon, 23 Feb 2015 13:28:30 +0800 36 | 37 | lde (1.9.3-1) utopic; urgency=low 38 | 39 | * Add note in changelog (Closes: #51) 40 | 41 | -- Zhuoyi Xu (LDE Team) Mon, 23 Feb 2015 1:32:05 +0800 42 | 43 | lde (1.9.1-1) utopic; urgency=low 44 | 45 | * Initial release (Closes: #nnnn) 46 | 47 | -- Zhuoyi Xu (LDE Team) Sat, 07 Feb 2015 22:42:15 +0800 48 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | LDE 2 | === 3 | LDE,全名为 L Desktop Environment,可在 i386/amd64/mipsel(龙芯)/armv5/armv7 等平台上执行。最近,LDE正在准备向 iOS/Android 移动平台进行移植。LDE 项目旨在向用户提供一个低硬件门槛的桌面环境,在轻量化的前提下,尽可能实现更强大的功能。LDE 以 Qt 5 作为图形界面库,有强大的移植性,在 mipsel 以外的平台也可编译运行。LDE 提供了一些配套的可独立运行元件。LDE 使用 Openbox 为其默认视窗管理器,并且希望能够提供一个建立在可独立的套件上的轻巧而快速的桌面。 4 | 一些信息 5 | --- 6 | ### 源码包括 7 | * LooFM 文件管理器,提供多种视图模式,即将推出面板功能。 8 | * Looplorer 2 网页浏览器,基于 Webkit 设计的浏览器,重写上一版几乎所有代码,针对小内存设备优化。 9 | * LCalc 计算器。 10 | * LooFTP FTP 客户端。(基于 QtFtp) 11 | * InitLDE 会话管理器,当使用者启动会话时建立桌面环境并自动启动程序的工具,提供对配置文件的管理功能。 12 | * Looget 可指定存储位置,带进度条的下载工具。 13 | * Lootepad 文字编辑器,基于 Qt 的文本编辑器。最新的版本支持恢复功能。 14 | * Loogout 注销管理器。 15 | * LRun 程序快速启动器。 16 | * Ldeabout 内嵌于 LDE 软件中,显示 LDE 版本、作者等信息的模块。 17 | * Ldecc LDE 控制中心,控制硬件与软件的各项设置。 18 | 19 | ### 已经测试支持的Linux系统/版本: 20 | * Linux Mint 16/17/17.1 21 | * Debian stable/testing/sid 22 | * Gentoo 23 | * Arch Linux 24 | * OpenSuse 13.1/Factory 25 | * Ubuntu 13.10-15.04 alpha 1 26 | 27 | LDE 理论上支持所有 Linux 发行版 28 | 29 | ###已经测试编译通过的平台: 30 | * MIPS (little endian) 31 | * amd64 32 | * i386 33 | 34 | ###LDE 即将移植到以下平台 35 | * armv7 36 | * iphoneos-arm 37 | * armv5 38 | 39 | 其他平台可自行测试。 40 | 编译与安装 41 | --- 42 | ### 编译安装 43 | 44 | 45 | ### 二进制安装包安装 46 | 用户可以从 Github 的 Releases 中获取已编译完成的二进制安装包。 47 | 48 | 同一目录下的 ldemanual.txt/ldemanual.abw 是两种格式的用户手册,里面有安装方法。 49 | 共同开发 50 | --- 51 | ### 贡献代码 52 | LDE 使用 Git 作为版本控制系统. 我们所有的代码都可以在 Github 找到 53 | 54 | 你可以直接从 Github Clone 一份 LDE 的源码 55 | 56 | git clone https://github.com/xuzhuoyi/LDE/ 57 | Git 的更多信息,参见官方网站: http://git-scm.com/ 58 | ### 撰写文档 59 | ldemanual.txt/ldemanual.abw 是两种格式的用户手册,你可以修改或添加里面的内容 60 | ### 报告 Bugs 61 | 我们所有的问题都记录在 GitHub 上。 62 | -------------------------------------------------------------------------------- /src/ldecc/descc.cpp: -------------------------------------------------------------------------------- 1 | #include "descc.h" 2 | #include "ui_descc.h" 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | Descc::Descc(QWidget *parent) : 11 | QWidget(parent), 12 | ui(new Ui::Descc) 13 | { 14 | ui->setupUi(this); 15 | } 16 | 17 | Descc::~Descc() 18 | { 19 | delete ui; 20 | } 21 | 22 | void Descc::on_pushButton_clicked() 23 | { 24 | qApp->quit(); 25 | } 26 | 27 | void Descc::on_pushButton_2_clicked() 28 | { 29 | emit back(); 30 | this->close(); 31 | } 32 | 33 | void Descc::on_pushButton_3_clicked() 34 | { 35 | 36 | fileName = QFileDialog::getOpenFileName(this,tr("Open Image"), "/", 37 | tr("Image Files (*.png *.jpg *.bmp)")); 38 | //qDebug() << QDir::homePath() + "/.LDE/lderc.ini"; 39 | ui->lineEdit->setText(fileName); 40 | ui->label_4->setPixmap(QPixmap(fileName)); 41 | ui->pushButton_4->setEnabled(true); 42 | 43 | } 44 | 45 | void Descc::on_pushButton_4_clicked() 46 | { 47 | QString fileRc = LConfig::homePath() + "/.LDE/lderc.ini"; 48 | LConfigFile *configFile = new LConfigFile(fileRc); 49 | LConfig set(configFile); 50 | set.setValue("wallPapers/source", fileName); 51 | set.sync(); 52 | 53 | QProcess *wallpaperCon = new QProcess; 54 | QStringList runArgsList; 55 | QString wpSource = set.value("wallPapers/source").toString(); 56 | 57 | runArgsList << "--bg-scale" << wpSource; 58 | wallpaperCon->start("feh", runArgsList); 59 | 60 | ui->pushButton_4->setEnabled(false); 61 | } 62 | -------------------------------------------------------------------------------- /src/ldeinit/main.cpp: -------------------------------------------------------------------------------- 1 | /* BEGIN_COMMON_COPYRIGHT_HEADER 2 | * (c)LGPL2+ 3 | * 4 | * LDE - for Loongson, Qt based, desktop toolset 5 | * http://www.loongsoner.com, ftp://ftp.loongsoner.com/ 6 | * 7 | * Copyright: 2014 LDE team 8 | * Authors: 9 | * Zhuoyi Xu 10 | * 11 | * This program or library is free software; you can redistribute it 12 | * and/or modify it under the terms of the GNU Lesser General Public 13 | * License as published by the Free Software Foundation; either 14 | * version 2.1 of the License, or (at your option) any later version. 15 | * 16 | * This library is distributed in the hope that it will be useful, 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 19 | * Lesser General Public License for more details. 20 | 21 | * You should have received a copy of the GNU Lesser General 22 | * Public License along with this library; if not, write to the 23 | * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 24 | * Boston, MA 02110-1301 USA 25 | * 26 | * END_COMMON_COPYRIGHT_HEADER */ 27 | 28 | #include 29 | #include 30 | #include 31 | #include "init.h" 32 | 33 | int main(int argc, char *argv[]) 34 | { 35 | QCoreApplication a(argc, argv); 36 | QCommandLineOption opMode("m"); 37 | opMode.setValueName("mode"); 38 | QCommandLineParser parser; 39 | parser.addOption(opMode); 40 | parser.process(a); 41 | int m = parser.isSet(opMode) ? parser.value(opMode).toInt() : 1; 42 | Init *app; 43 | app = new Init(m); 44 | return a.exec(); 45 | } 46 | -------------------------------------------------------------------------------- /src/Lootepad/mainwindow.h: -------------------------------------------------------------------------------- 1 | #ifndef MAINWINDOW_H 2 | #define MAINWINDOW_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | 10 | class TextEditTab; 11 | 12 | namespace Ui { 13 | class MainWindow; 14 | } 15 | 16 | class MainWindow : public QMainWindow 17 | { 18 | Q_OBJECT 19 | 20 | public: 21 | explicit MainWindow(QWidget *parent = 0); 22 | ~MainWindow(); 23 | 24 | signals: 25 | void updateText(QString text); 26 | 27 | private slots: 28 | void on_second_statusLabel_updateText(QString text); 29 | 30 | void on_action_New_triggered(); 31 | 32 | void on_action_Save_triggered(); 33 | 34 | void on_action_SaveAs_triggered(); 35 | 36 | void on_action_Help_triggered(); 37 | 38 | void on_action_Open_triggered(); 39 | 40 | void on_action_Close_triggered(); 41 | 42 | void on_action_Quit_triggered(); 43 | 44 | void on_action_Undo_triggered(); 45 | 46 | void on_action_Cut_triggered(); 47 | 48 | void on_action_Copy_triggered(); 49 | 50 | void on_action_Past_triggered(); 51 | 52 | void show_findText(); 53 | 54 | void on_action_Find_triggered(); 55 | 56 | void do_cursorChanged(); 57 | 58 | void on_action_triggered(); 59 | 60 | void on_action_LDE_triggered(); 61 | 62 | void on_actionNewTab_triggered(); 63 | 64 | public slots: 65 | 66 | 67 | private: 68 | Ui::MainWindow *ui; 69 | bool isSaved; 70 | QString curFile; 71 | QString formTitle; 72 | QLineEdit *find_textLineEdit; 73 | QLabel* first_statusLabel; 74 | QLabel* second_statusLabel; 75 | void init_statusBar(); 76 | TextEditTab *textEditTab; 77 | }; 78 | 79 | #endif // MAINWINDOW_H 80 | -------------------------------------------------------------------------------- /share/lootepad.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Lootepad 3 | Comment=Simple text editor 4 | Comment[bg]=Опростен текстов редактор 5 | Comment[br]=Embanner testennou eeun 6 | Comment[ca]=Editor de text simple 7 | Comment[cs]=Jednoduchý textový editor 8 | Comment[da]=Enkel tekstbehandler 9 | Comment[de]=Einfacher Texteditor 10 | Comment[el]=Απλός επεξεργαστής κειμένου 11 | Comment[eo]=Simpla tekstredaktilo 12 | Comment[es]=Editor de texto simple 13 | Comment[eu]=Testu editore sinplea 14 | Comment[fi]=Yksinkertainen tekstieditori 15 | Comment[fr]=Un éditeur de texte tout simple 16 | Comment[ga]=Eagarthóir simplí 17 | Comment[gl]=Editor de texto sinxelo 18 | Comment[he]=עורך טקסט פשוט 19 | Comment[hu]=Egyszerű szöveg szerkesztő 20 | Comment[id]=Penyunting teks sederhana 21 | Comment[it]=Semplice editor di testi 22 | Comment[ja]=シンプルなテキストエディタ 23 | Comment[ko]=간단한 텍스트 편집기 24 | Comment[lt]=Paprastas teksto redaktorius 25 | Comment[lv]=Vienkāršā teksta redaktors 26 | Comment[nl]=Eenvoudige teksteditor 27 | Comment[nn]=Enkel tekstredigering 28 | Comment[pl]=Prosty edytor tekstu 29 | Comment[pt]=Simples editor de texto 30 | Comment[pt_BR]=Editor de texto simples 31 | Comment[ru]=Простой текстовый редактор 32 | Comment[sk]=Jednoduchý textový editor 33 | Comment[sl]=Preprost urejevalnik besedila 34 | Comment[sr]=Једноставан уређивач текста 35 | Comment[sv]=Enkel textredigerare 36 | Comment[ta]=எளிமையான உரை பதிப்பான் 37 | Comment[tr]=Basit metin düzenleyicisi 38 | Comment[uk]=Проситий текстовий редактор 39 | Comment[vi]=Một trình soạn thảo văn bản đơn giản 40 | Comment[zh_CN]=简易文字编辑器 41 | Comment[zh_TW]=簡易文字編輯器 42 | GenericName[zh_CN]=文本编辑器 43 | Exec=lootepad 44 | Icon=lootepad 45 | Terminal=false 46 | Type=Application 47 | Categories=Qt;Utility;TextEditor; 48 | -------------------------------------------------------------------------------- /shell/startlde: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | export XDG_DATA_DIRS="/usr/local/share/:/usr/share/:/usr/share/gdm/:/var/lib/menu-xdg/" 4 | 5 | if [ -z "$XDG_CONFIG_HOME" ]; then 6 | export XDG_CONFIG_HOME="$HOME/.config" 7 | fi 8 | 9 | # Ensure the existance of pcmanfm config file 10 | PCMANFM_CONF_DIR="$XDG_CONFIG_HOME/pcmanfm/LDE" 11 | if [ ! -f "$PCMANFM_CONF_DIR/pcmanfm.conf" ]; then 12 | mkdir -p "$PCMANFM_CONF_DIR" 13 | cp /etc/xdg/pcmanfm/LDE/pcmanfm.conf "$PCMANFM_CONF_DIR/pcmanfm.conf" 14 | fi 15 | 16 | # Ensure the existance of openbox config file 17 | OPENBOX_CONF_DIR="$XDG_CONFIG_HOME/openbox" 18 | if [ ! -f "$OPENBOX_CONF_DIR/lde-rc.xml" ]; then 19 | mkdir -p "$OPENBOX_CONF_DIR" 20 | cp /etc/xdg/openbox/LDE/rc.xml "$OPENBOX_CONF_DIR/lde-rc.xml" 21 | fi 22 | 23 | # Ensure the existance of lxpanel config files 24 | LXPANEL_CONF_DIR="$XDG_CONFIG_HOME/lxpanel" 25 | if [ ! -e "$LXPANEL_CONF_DIR/LDE" ]; then 26 | mkdir -p "$LXPANEL_CONF_DIR" 27 | cp -r /etc/xdg/lxpanel/profile/LDE "$LXPANEL_CONF_DIR" 28 | fi 29 | 30 | # Ensure the existance of the 'Desktop' folder 31 | if [ -e "$XDG_CONFIG_HOME/user-dirs.dirs" ]; then 32 | . "$XDG_CONFIG_HOME/user-dirs.dirs" 33 | else 34 | XDG_DESKTOP_DIR="$HOME/Desktop" 35 | fi 36 | mkdir -p "$XDG_DESKTOP_DIR" 37 | 38 | # Clean up after GDM (GDM sets the number of desktops to one) 39 | xprop -root -remove _NET_NUMBER_OF_DESKTOPS -remove _NET_DESKTOP_NAMES -remove _NET_CURRENT_DESKTOP 2> /dev/null 40 | 41 | # Enable GTK+2 integration for OpenOffice.org, if available. 42 | export SAL_USE_VCLPLUGIN=gtk 43 | 44 | # Launch DBus if needed 45 | if which dbus-launch >/dev/null && test -z "$DBUS_SESSION_BUS_ADDRESS"; then 46 | eval "$(dbus-launch --sh-syntax --exit-with-session)" 47 | fi 48 | 49 | export XDG_MENU_PREFIX="lde-" 50 | 51 | # Start the LDE session 52 | exec /usr/bin/ldeinit 53 | 54 | -------------------------------------------------------------------------------- /src/loogout/widget.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Widget 4 | 5 | 6 | 7 | 0 8 | 0 9 | 287 10 | 232 11 | 12 | 13 | 14 | Widget 15 | 16 | 17 | 18 | 19 | 20 | 21 | 16 22 | 23 | 24 | 25 | 结束 LDE 会话 26 | 27 | 28 | 29 | 30 | 31 | 32 | 注销 33 | 34 | 35 | 36 | 37 | 38 | 39 | 重启 40 | 41 | 42 | 43 | 44 | 45 | 46 | 关机 47 | 48 | 49 | 50 | 51 | 52 | 53 | 取消 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 8 62 | 63 | 64 | 65 | 系统限制非 root 用户重启和关机无效请使用命令行关机 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/loofm/fileview.h: -------------------------------------------------------------------------------- 1 | #ifndef FILEVIEW_H 2 | #define FILEVIEW_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | 12 | namespace Ui { 13 | class fileview; 14 | } 15 | 16 | class fileview : public QWidget { 17 | Q_OBJECT 18 | public: 19 | fileview(QWidget *parent = 0); 20 | ~fileview(); 21 | 22 | protected: 23 | void changeEvent(QEvent *e); 24 | 25 | private: 26 | Ui::fileview *ui; 27 | public slots: 28 | 29 | void listDoubleClick(QModelIndex index); 30 | void treeDoubleClick(QModelIndex index); 31 | void detailClick(); 32 | void listClick(); 33 | void backClick(); 34 | void forwardClick(); 35 | void aheadClick(); 36 | void displayMenu(); 37 | void triggerdelAction(); 38 | void triggercopyAction(); 39 | void triggerpasteAction(); 40 | void triggeropenAction(); 41 | 42 | void changeModel(); 43 | 44 | public: 45 | //QFileSystemModel *comboModel; 46 | QFileSystemModel *listModel; 47 | 48 | QModelIndexList dirHistory; 49 | int dirHistoryPosi; 50 | 51 | QMenu *popMenu; 52 | 53 | QAction *copyAction; 54 | QAction *pasteAction; 55 | QAction *delAction; 56 | QAction *openAction; 57 | 58 | QFileInfo clipFileInfo; 59 | 60 | 61 | void appendHistory(QModelIndexList &modellist,QModelIndex model,int &listposi); 62 | void removeFirstHistory(QModelIndexList &modellist,int &listposi); 63 | void removeLastHistory(QModelIndexList &modellist,int &listposi); 64 | 65 | private slots: 66 | void on_backAction_triggered(); 67 | void on_forwardAction_triggered(); 68 | void on_upAction_triggered(); 69 | void on_iconAction_triggered(); 70 | void on_detailAction_triggered(); 71 | void on_refreshAction_triggered(); 72 | void on_action_LDE_triggered(); 73 | void on_exitAction_triggered(); 74 | void on_controlButton_2_clicked(); 75 | }; 76 | 77 | #endif // FILEVIEW_H 78 | -------------------------------------------------------------------------------- /rpm/lde.spec: -------------------------------------------------------------------------------- 1 | Name: lde 2 | Version: 2.0.1 3 | Release: 1%{?dist} 4 | Summary: Complete LDE Desktop Environment for end users 5 | 6 | License: GPLv2+ 7 | URL: http://xuzhuoyi.github.io 8 | Source0: %{name}.tar.gz 9 | 10 | BuildRequires: qt5-qtbase-gui, qt5-qtwebkit-devel, gcc-c++ 11 | Requires: qt5-qtbase, qt5-qtbase-gui, qt5-qtwebkit, openbox, razorqt-panel feh 12 | 13 | %description 14 | LDE is the powerful, lightweight, and easy-to-use Free Software desktop platform and suite of applications. 15 | This package includes all the modules released with LDE Desktop Environment that are useful for a desktop user. This includes Looplorer, Looget, LDE Control Center, LooFm, Lootepad, and other useful utilities. 16 | 17 | 18 | %prep 19 | %setup -q -n %{name} 20 | 21 | 22 | %build 23 | cd src && %{_libdir}/qt5/bin/qmake lde.pro && make 24 | 25 | 26 | %install 27 | rm -rf $RPM_BUILD_ROOT 28 | install -d %{buildroot}/usr/ 29 | install -d %{buildroot}/usr/bin/ 30 | install -d %{buildroot}/usr/share/ 31 | install -d %{buildroot}/usr/share/applications/ 32 | install -d %{buildroot}/usr/share/xsessions/ 33 | install -d %{buildroot}/usr/share/wallpapers/ 34 | install -d %{buildroot}/usr/share/apps/kdm/sessions/ 35 | install usr/bin/* %{buildroot}/usr/bin/ 36 | install share/*.desktop %{buildroot}/usr/share/applications/ 37 | install shell/startlde %{buildroot}/usr/bin/ 38 | install xsessions/LDE.desktop %{buildroot}/usr/share/xsessions/ 39 | install wallpapers/lde-default.png %{buildroot}/usr/share/wallpapers/ 40 | install xsessions/LDE.desktop %{buildroot}/usr/share/apps/kdm/sessions/ 41 | 42 | 43 | %files 44 | %doc 45 | %{_bindir}/* 46 | %{_datadir}/applications/* 47 | %{_datadir}/xsessions/* 48 | %{_datadir}/wallpapers/* 49 | %{_datadir}/apps/kdm/sessions/* 50 | 51 | 52 | 53 | %changelog 54 | * Thu Feb 26 2015 Zhuoyi Xu (LDE Team) - 2.0.1 55 | - Remove file conflict with LXDE (#68) 56 | 57 | * Thu Feb 26 2015 Zhuoyi Xu (LDE Team) - 2.0.0 58 | - Change Ldeabout UI (#64) 59 | -------------------------------------------------------------------------------- /src/Looget/widget.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Widget 4 | 5 | 6 | 7 | 0 8 | 0 9 | 421 10 | 175 11 | 12 | 13 | 14 | Looget 0.1.3 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 请输入URL地址: 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 存储路径: 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 24 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 存储路径空时存储到/usr/bin,输入路径时不要在尾部加上“/” 58 | 59 | 60 | 61 | 62 | 63 | 64 | 下载 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/lrun/widget.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Widget 4 | 5 | 6 | 7 | 0 8 | 0 9 | 361 10 | 149 11 | 12 | 13 | 14 | LRun 15 | 16 | 17 | 18 | 19 | 20 | 21 | 16777215 22 | 20 23 | 24 | 25 | 26 | 请输入您要执行的程序: 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 16 40 | 25 41 | 42 | 43 | 44 | ... 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | Qt::Horizontal 56 | 57 | 58 | 59 | 40 60 | 20 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 取消 69 | 70 | 71 | 72 | 73 | 74 | 75 | 确定 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /src/ldecc/lancc.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Lancc 4 | 5 | 6 | 7 | 0 8 | 0 9 | 400 10 | 300 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 220 20 | 10 21 | 151 22 | 31 23 | 24 | 25 | 26 | 27 | 11 28 | 75 29 | true 30 | 31 | 32 | 33 | 语言与地区 34 | 35 | 36 | 37 | 38 | 39 | 10 40 | 10 41 | 80 42 | 27 43 | 44 | 45 | 46 | 关闭 47 | 48 | 49 | 50 | 51 | 52 | 10 53 | 70 54 | 381 55 | 31 56 | 57 | 58 | 59 | “语言和地区”偏好设置控制您在菜单和对话框中看到的语言,以及日期、时间和货币的格式 60 | 61 | 62 | true 63 | 64 | 65 | 66 | 67 | 68 | 140 69 | 250 70 | 121 71 | 27 72 | 73 | 74 | 75 | 开始本地化配置 76 | 77 | 78 | 79 | 80 | 81 | 100 82 | 10 83 | 80 84 | 27 85 | 86 | 87 | 88 | 主页 89 | 90 | 91 | 92 | 93 | 94 | 95 | -------------------------------------------------------------------------------- /src/lcalc/main.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** 3 | ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). 4 | ** Contact: http://www.qt-project.org/legal 5 | ** 6 | ** This file is part of the examples of the Qt Toolkit. 7 | ** 8 | ** $QT_BEGIN_LICENSE:BSD$ 9 | ** You may use this file under the terms of the BSD license as follows: 10 | ** 11 | ** "Redistribution and use in source and binary forms, with or without 12 | ** modification, are permitted provided that the following conditions are 13 | ** met: 14 | ** * Redistributions of source code must retain the above copyright 15 | ** notice, this list of conditions and the following disclaimer. 16 | ** * Redistributions in binary form must reproduce the above copyright 17 | ** notice, this list of conditions and the following disclaimer in 18 | ** the documentation and/or other materials provided with the 19 | ** distribution. 20 | ** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names 21 | ** of its contributors may be used to endorse or promote products derived 22 | ** from this software without specific prior written permission. 23 | ** 24 | ** 25 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 26 | ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 27 | ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 28 | ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 29 | ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 30 | ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 31 | ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 32 | ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 33 | ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 34 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 35 | ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 | ** 37 | ** $QT_END_LICENSE$ 38 | ** 39 | ****************************************************************************/ 40 | 41 | #include 42 | 43 | #include "calculator.h" 44 | 45 | int main(int argc, char *argv[]) 46 | { 47 | LApplication app(argc, argv); 48 | app.setTheme("dark"); 49 | Calculator calc; 50 | calc.show(); 51 | return app.exec(); 52 | } 53 | -------------------------------------------------------------------------------- /src/lcalc/button.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** 3 | ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). 4 | ** Contact: http://www.qt-project.org/legal 5 | ** 6 | ** This file is part of the examples of the Qt Toolkit. 7 | ** 8 | ** $QT_BEGIN_LICENSE:BSD$ 9 | ** You may use this file under the terms of the BSD license as follows: 10 | ** 11 | ** "Redistribution and use in source and binary forms, with or without 12 | ** modification, are permitted provided that the following conditions are 13 | ** met: 14 | ** * Redistributions of source code must retain the above copyright 15 | ** notice, this list of conditions and the following disclaimer. 16 | ** * Redistributions in binary form must reproduce the above copyright 17 | ** notice, this list of conditions and the following disclaimer in 18 | ** the documentation and/or other materials provided with the 19 | ** distribution. 20 | ** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names 21 | ** of its contributors may be used to endorse or promote products derived 22 | ** from this software without specific prior written permission. 23 | ** 24 | ** 25 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 26 | ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 27 | ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 28 | ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 29 | ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 30 | ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 31 | ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 32 | ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 33 | ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 34 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 35 | ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 | ** 37 | ** $QT_END_LICENSE$ 38 | ** 39 | ****************************************************************************/ 40 | 41 | #ifndef BUTTON_H 42 | #define BUTTON_H 43 | 44 | #include 45 | 46 | class Button : public LTextButton 47 | { 48 | Q_OBJECT 49 | 50 | public: 51 | explicit Button(const QString &text, QWidget *parent = 0); 52 | 53 | QSize sizeHint() const Q_DECL_OVERRIDE; 54 | }; 55 | 56 | #endif 57 | -------------------------------------------------------------------------------- /src/lcalc/button.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** 3 | ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). 4 | ** Contact: http://www.qt-project.org/legal 5 | ** 6 | ** This file is part of the examples of the Qt Toolkit. 7 | ** 8 | ** $QT_BEGIN_LICENSE:BSD$ 9 | ** You may use this file under the terms of the BSD license as follows: 10 | ** 11 | ** "Redistribution and use in source and binary forms, with or without 12 | ** modification, are permitted provided that the following conditions are 13 | ** met: 14 | ** * Redistributions of source code must retain the above copyright 15 | ** notice, this list of conditions and the following disclaimer. 16 | ** * Redistributions in binary form must reproduce the above copyright 17 | ** notice, this list of conditions and the following disclaimer in 18 | ** the documentation and/or other materials provided with the 19 | ** distribution. 20 | ** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names 21 | ** of its contributors may be used to endorse or promote products derived 22 | ** from this software without specific prior written permission. 23 | ** 24 | ** 25 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 26 | ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 27 | ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 28 | ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 29 | ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 30 | ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 31 | ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 32 | ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 33 | ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 34 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 35 | ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 | ** 37 | ** $QT_END_LICENSE$ 38 | ** 39 | ****************************************************************************/ 40 | 41 | #include 42 | 43 | #include "button.h" 44 | 45 | Button::Button(const QString &text, QWidget *parent) 46 | : LTextButton(text, parent) 47 | { 48 | setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); 49 | } 50 | 51 | QSize Button::sizeHint() const 52 | { 53 | QSize size = LTextButton::sizeHint(); 54 | size.rheight() += 20; 55 | size.rwidth() = qMax(size.width(), size.height()); 56 | return size; 57 | } 58 | -------------------------------------------------------------------------------- /src/Looget/widget.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2014 Zhuoyi Xu 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2.1 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with this library; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | * 18 | */ 19 | 20 | 21 | 22 | #include "widget.h" 23 | #include "ui_widget.h" 24 | 25 | 26 | Widget::Widget(QWidget *parent) : 27 | QWidget(parent), 28 | ui(new Ui::Widget) 29 | { 30 | ui->setupUi(this); 31 | manager = new QNetworkAccessManager(this); 32 | ui->progressBar->hide(); 33 | } 34 | 35 | 36 | Widget::~Widget() 37 | { 38 | delete ui; 39 | } 40 | 41 | 42 | void Widget::on_pushButton_clicked() 43 | { 44 | url = ui->lineEdit->text(); 45 | QFileInfo info(url.path()); 46 | QString fileName(info.fileName()); 47 | QString fullName; 48 | 49 | if (fileName.isEmpty()) fileName = "index.html"; 50 | 51 | //存储路径为空存储在程序目录 52 | if (ui->lineEditSaveDir->text() == "") fullName = fileName; 53 | else fullName = ui->lineEditSaveDir->text() + "/" + fileName; 54 | file = new QFile(fullName); 55 | 56 | 57 | if(!file->open(QIODevice::WriteOnly)) 58 | { 59 | qDebug() << "file open error"; 60 | delete file; 61 | file = 0; 62 | return; 63 | } 64 | 65 | startRequest(url); 66 | 67 | ui->progressBar->setValue(0); 68 | ui->progressBar->show(); 69 | } 70 | 71 | 72 | void Widget::startRequest(QUrl url) 73 | { 74 | reply = manager->get(QNetworkRequest(url)); 75 | 76 | connect(reply,SIGNAL(finished()),this,SLOT(httpFinished())); 77 | connect(reply,SIGNAL(readyRead()),this,SLOT(httpReadyRead())); 78 | connect(reply,SIGNAL(downloadProgress(qint64,qint64)),this,SLOT(updateDataReadProgress(qint64,qint64))); 79 | } 80 | 81 | 82 | void Widget::httpReadyRead() 83 | { 84 | if (file) file->write(reply->readAll()); 85 | } 86 | 87 | 88 | void Widget::updateDataReadProgress(qint64 bytesRead, qint64 totalBytes) 89 | { 90 | ui->progressBar->setMaximum(totalBytes); 91 | ui->progressBar->setValue(bytesRead); 92 | } 93 | 94 | 95 | void Widget::httpFinished() 96 | { 97 | ui->progressBar->hide(); 98 | file->flush(); 99 | file->close(); 100 | reply->deleteLater(); 101 | 102 | reply = 0; 103 | delete file; 104 | file = 0; 105 | } 106 | -------------------------------------------------------------------------------- /src/Lootepad/texteditor.cpp: -------------------------------------------------------------------------------- 1 | #include "texteditor.h" 2 | #include "mainwindow.h" 3 | #include 4 | #include 5 | #include 6 | 7 | TextEditor::TextEditor(MainWindow *parent) 8 | { 9 | pMainWindow = parent; 10 | connect(this,SIGNAL(cursorPositionChanged()),pMainWindow,SLOT(do_cursorChanged())); 11 | } 12 | 13 | TextEditor::~TextEditor() 14 | { 15 | 16 | } 17 | 18 | void TextEditor::do_file_New() 19 | { 20 | do_file_SaveOrNot(); 21 | isSaved = false; 22 | curFile = tr("untitled.txt"); 23 | formTitle = curFile + tr(" - Lootepad 0.9"); 24 | pMainWindow->setWindowTitle(formTitle); 25 | this->clear(); 26 | this->setVisible(true); 27 | 28 | } 29 | 30 | void TextEditor::do_file_SaveOrNot() 31 | { 32 | if(this->document()->isModified()) 33 | { 34 | QMessageBox box; 35 | box.setWindowTitle(tr("警告")); 36 | box.setIcon(QMessageBox::Warning); 37 | box.setText(curFile + tr("尚未保存,是否保存?")); 38 | box.setStandardButtons(QMessageBox::Yes | QMessageBox::No); 39 | if(box.exec() == QMessageBox::Yes) 40 | do_file_Save(); 41 | } 42 | } 43 | 44 | void TextEditor::do_file_Save() 45 | { 46 | if(isSaved){ 47 | saveFile(curFile); 48 | } 49 | else{ 50 | do_file_SaveAs(); 51 | } 52 | } 53 | 54 | void TextEditor::do_file_SaveAs() 55 | { 56 | QString fileName = QFileDialog::getSaveFileName(this,tr("另存为"),curFile); 57 | if(!fileName.isEmpty()) 58 | { 59 | saveFile(fileName); 60 | } 61 | } 62 | 63 | bool TextEditor::saveFile(const QString &fileName) 64 | { 65 | QFile file(fileName); 66 | if(!file.open(QFile::WriteOnly | QFile::Text)) 67 | { 68 | QMessageBox::warning(this,tr("保存文件"),tr("无法保存文件 %1:\n %2").arg(fileName).arg(file.errorString())); 69 | return false; 70 | } 71 | QTextStream out(&file); 72 | out<toPlainText(); 73 | isSaved = true; 74 | curFile = QFileInfo(fileName).canonicalFilePath(); 75 | formTitle = curFile + tr(" - Lootepad 0.9"); 76 | pMainWindow->setWindowTitle(formTitle); 77 | emit pMainWindow->updateText(tr("保存文件成功")); 78 | 79 | return true; 80 | } 81 | 82 | void TextEditor::do_file_Open() 83 | { 84 | do_file_SaveOrNot(); 85 | QString fileName = QFileDialog::getOpenFileName(this); 86 | if(!fileName.isEmpty()) 87 | { 88 | do_file_Load(fileName); 89 | } 90 | this->setVisible(true); 91 | } 92 | 93 | bool TextEditor::do_file_Load(const QString &fileName) 94 | { 95 | QFile file(fileName); 96 | if(!file.open(QFile::ReadOnly | QFile::Text)) 97 | { 98 | QMessageBox::warning(this,tr("读取文件"),tr("无法读取文件 %1:\n%2.").arg(fileName).arg(file.errorString())); 99 | return false; 100 | } 101 | QTextStream in(&file); 102 | this->setText(in.readAll()); 103 | curFile = QFileInfo(fileName).canonicalFilePath(); 104 | formTitle = curFile + tr(" - Lootepad 0.9"); 105 | pMainWindow->setWindowTitle(formTitle); 106 | emit pMainWindow->updateText(tr("打开文件成功")); 107 | return true; 108 | } 109 | -------------------------------------------------------------------------------- /src/looplorer/looplorer_zh.ts: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | MainWindow 6 | 7 | 8 | Navigation 9 | 导航 10 | 11 | 12 | 13 | &View 14 | 视图(&V) 15 | 16 | 17 | 18 | Page Source 19 | 页面源代码 20 | 21 | 22 | 23 | &Effect 24 | 效果(&E) 25 | 26 | 27 | 28 | Highlight all links 29 | 高亮所有链接 30 | 31 | 32 | 33 | Turn images upside down 34 | 倒转图像 35 | 36 | 37 | 38 | &Tools 39 | 工具(&T) 40 | 41 | 42 | 43 | Remove GIF images 44 | 屏蔽 GIF 图像 45 | 46 | 47 | 48 | Remove all inline frames 49 | 屏蔽所有内联框架 50 | 51 | 52 | 53 | Remove all object elements 54 | 屏蔽所有对象元素 55 | 56 | 57 | 58 | Remove all embedded elements 59 | 屏蔽所有嵌入元素 60 | 61 | 62 | 63 | &Help 64 | 帮助(&H) 65 | 66 | 67 | 68 | 69 | About Looplorer 70 | 关于 Looplorer 71 | 72 | 73 | 74 | Looplorer 1.9.1 75 | Looplorer 1.9.1 76 | 77 | 78 | 79 | -------------------------------------------------------------------------------- /src/looplorer/mainwindow.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** 3 | ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). 4 | ** Contact: http://www.qt-project.org/legal 5 | ** 6 | ** This file is part of the examples of the Qt Toolkit. 7 | ** 8 | ** $QT_BEGIN_LICENSE:BSD$ 9 | ** You may use this file under the terms of the BSD license as follows: 10 | ** 11 | ** "Redistribution and use in source and binary forms, with or without 12 | ** modification, are permitted provided that the following conditions are 13 | ** met: 14 | ** * Redistributions of source code must retain the above copyright 15 | ** notice, this list of conditions and the following disclaimer. 16 | ** * Redistributions in binary form must reproduce the above copyright 17 | ** notice, this list of conditions and the following disclaimer in 18 | ** the documentation and/or other materials provided with the 19 | ** distribution. 20 | ** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names 21 | ** of its contributors may be used to endorse or promote products derived 22 | ** from this software without specific prior written permission. 23 | ** 24 | ** 25 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 26 | ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 27 | ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 28 | ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 29 | ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 30 | ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 31 | ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 32 | ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 33 | ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 34 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 35 | ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 | ** 37 | ** $QT_END_LICENSE$ 38 | ** 39 | ****************************************************************************/ 40 | 41 | #include 42 | 43 | class QWebView; 44 | QT_BEGIN_NAMESPACE 45 | class QLineEdit; 46 | QT_END_NAMESPACE 47 | 48 | extern int windowNum; 49 | 50 | //! [1] 51 | class MainWindow : public QMainWindow 52 | { 53 | Q_OBJECT 54 | 55 | public: 56 | MainWindow(const QUrl& url); 57 | ~MainWindow(); 58 | void clickLink(); 59 | 60 | protected slots: 61 | 62 | void adjustLocation(); 63 | void changeLocation(); 64 | void adjustTitle(); 65 | void setProgress(int p); 66 | void finishLoading(bool); 67 | 68 | void newWindow(); 69 | void closeWindow(); 70 | 71 | void viewSource(); 72 | void slotSourceDownloaded(); 73 | 74 | void highlightAllLinks(); 75 | void rotateImages(bool invert); 76 | void removeGifImages(); 77 | void removeInlineFrames(); 78 | void removeObjectElements(); 79 | void removeEmbeddedElements(); 80 | 81 | void aboutLooplorer(); 82 | 83 | void loadLink(const QUrl &url); 84 | 85 | private: 86 | QString jQuery; 87 | QWebView *view; 88 | QLineEdit *locationEdit; 89 | QAction *rotateAction; 90 | int progress; 91 | //! [1] 92 | }; 93 | -------------------------------------------------------------------------------- /share/looplorer.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Encoding=UTF-8 3 | Name=Looplorer 4 | Name[bg]=Looplorer 5 | Name[ca]=Looplorer 6 | Name[cs]=Looplorer 7 | Name[el]=Looplorer 8 | Name[es]=Looplorer 9 | Name[fa]=Looplorer 10 | Name[fi]=Looplorer 11 | Name[fr]=Looplorer 12 | Name[hu]=Looplorer 13 | Name[it]=Looplorer 14 | Name[ja]=Looplorer 15 | Name[ko]=Looplorer 16 | Name[nb]=Looplorer 17 | Name[nl]=Looplorer 18 | Name[nn]=Looplorer 19 | Name[no]=Looplorer 20 | Name[pl]=Looplorer 21 | Name[pt]=Looplorer 22 | Name[pt_BR]=Looplorer 23 | Name[ru]=Looplorer 24 | Name[sk]=Looplorer 25 | Name[sv]=Looplorer 26 | Comment=Browse the World Wide Web 27 | Comment[bg]=Сърфиране в Мрежата 28 | Comment[ca]=Navegueu per el web 29 | Comment[cs]=Prohlížení stránek World Wide Webu 30 | Comment[de]=Im Internet surfen 31 | Comment[el]=Περιηγηθείτε στον παγκόσμιο ιστό 32 | Comment[es]=Navegue por la web 33 | Comment[fa]=صفحات شبکه جهانی اینترنت را مرور نمایید 34 | Comment[fi]=Selaa Internetin WWW-sivuja 35 | Comment[fr]=Navigue sur Internet 36 | Comment[hu]=A világháló böngészése 37 | Comment[it]=Esplora il web 38 | Comment[ja]=ウェブを閲覧します 39 | Comment[ko]=웹을 돌아 다닙니다 40 | Comment[nb]=Surf på nettet 41 | Comment[nl]=Verken het internet 42 | Comment[nn]=Surf på nettet 43 | Comment[no]=Surf på nettet 44 | Comment[pl]=Przeglądanie stron WWW 45 | Comment[pt]=Navegue na Internet 46 | Comment[pt_BR]=Navegue na Internet 47 | Comment[ru]=Обозреватель Всемирной Паутины 48 | Comment[sk]=Prehliadanie internetu 49 | Comment[sv]=Surfa på webben 50 | Comment[zh_CN]=浏览因特网 51 | GenericName=Web Browser 52 | GenericName[bg]=Интернет браузър 53 | GenericName[ca]=Navegador web 54 | GenericName[cs]=Webový prohlížeč 55 | GenericName[de]=Webbrowser 56 | GenericName[el]=Περιηγητής ιστού 57 | GenericName[es]=Navegador web 58 | GenericName[fa]=مرورگر اینترنتی 59 | GenericName[fi]=WWW-selain 60 | GenericName[fr]=Navigateur Web 61 | GenericName[hu]=Webböngésző 62 | GenericName[it]=Browser Web 63 | GenericName[ja]=ウェブ・ブラウザ 64 | GenericName[ko]=웹 브라우저 65 | GenericName[nb]=Nettleser 66 | GenericName[nl]=Webbrowser 67 | GenericName[nn]=Nettlesar 68 | GenericName[no]=Nettleser 69 | GenericName[pl]=Przeglądarka WWW 70 | GenericName[pt]=Navegador Web 71 | GenericName[pt_BR]=Navegador Web 72 | GenericName[ru]=Интернет-браузер 73 | GenericName[sk]=Internetový prehliadač 74 | GenericName[sv]=Webbläsare 75 | GenericName[zh_CN]=网页浏览器 76 | X-GNOME-FullName=Looplorer Web Browser 77 | X-GNOME-FullName[bg]=Интернет браузър (Looplorer) 78 | X-GNOME-FullName[ca]=Navegador web Looplorer 79 | X-GNOME-FullName[cs]=Looplorer Webový prohlížeč 80 | X-GNOME-FullName[el]=Περιηγήτης Ιστού Looplorer 81 | X-GNOME-FullName[es]=Navegador web Looplorer 82 | X-GNOME-FullName[fa]=مرورگر اینترنتی Looplorer 83 | X-GNOME-FullName[fi]=Looplorer-selain 84 | X-GNOME-FullName[fr]=Navigateur Web Looplorer 85 | X-GNOME-FullName[hu]=Looplorer webböngésző 86 | X-GNOME-FullName[it]=Looplorer Browser Web 87 | X-GNOME-FullName[ja]=Looplorer ウェブ・ブラウザ 88 | X-GNOME-FullName[ko]=Looplorer 웹 브라우저 89 | X-GNOME-FullName[nb]=Looplorer Nettleser 90 | X-GNOME-FullName[nl]=Looplorer webbrowser 91 | X-GNOME-FullName[nn]=Looplorer Nettlesar 92 | X-GNOME-FullName[no]=Looplorer Nettleser 93 | X-GNOME-FullName[pl]=Przeglądarka WWW Looplorer 94 | X-GNOME-FullName[pt]=Looplorer Navegador Web 95 | X-GNOME-FullName[pt_BR]=Navegador Web Looplorer 96 | X-GNOME-FullName[ru]=Интернет-браузер Looplorer 97 | X-GNOME-FullName[sk]=Internetový prehliadač Looplorer 98 | X-GNOME-FullName[sv]=Webbläsaren Looplorer 99 | Exec=looplorer 100 | Terminal=false 101 | X-MultipleArgs=false 102 | Type=Application 103 | Icon=looplorer 104 | Categories=Network;WebBrowser; 105 | StartupNotify=true 106 | -------------------------------------------------------------------------------- /src/lcalc/calculator.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** 3 | ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). 4 | ** Contact: http://www.qt-project.org/legal 5 | ** 6 | ** This file is part of the examples of the Qt Toolkit. 7 | ** 8 | ** $QT_BEGIN_LICENSE:BSD$ 9 | ** You may use this file under the terms of the BSD license as follows: 10 | ** 11 | ** "Redistribution and use in source and binary forms, with or without 12 | ** modification, are permitted provided that the following conditions are 13 | ** met: 14 | ** * Redistributions of source code must retain the above copyright 15 | ** notice, this list of conditions and the following disclaimer. 16 | ** * Redistributions in binary form must reproduce the above copyright 17 | ** notice, this list of conditions and the following disclaimer in 18 | ** the documentation and/or other materials provided with the 19 | ** distribution. 20 | ** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names 21 | ** of its contributors may be used to endorse or promote products derived 22 | ** from this software without specific prior written permission. 23 | ** 24 | ** 25 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 26 | ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 27 | ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 28 | ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 29 | ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 30 | ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 31 | ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 32 | ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 33 | ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 34 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 35 | ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 | ** 37 | ** $QT_END_LICENSE$ 38 | ** 39 | ****************************************************************************/ 40 | 41 | #ifndef CALCULATOR_H 42 | #define CALCULATOR_H 43 | 44 | #include 45 | 46 | class QMenu; 47 | class History; 48 | 49 | QT_BEGIN_NAMESPACE 50 | class QLineEdit; 51 | QT_END_NAMESPACE 52 | class Button; 53 | 54 | class Calculator : public QWidget 55 | { 56 | Q_OBJECT 57 | 58 | public: 59 | Calculator(QWidget *parent = 0); 60 | 61 | private slots: 62 | void digitClicked(); 63 | void unaryOperatorClicked(); 64 | void additiveOperatorClicked(); 65 | void multiplicativeOperatorClicked(); 66 | void equalClicked(); 67 | void pointClicked(); 68 | void changeSignClicked(); 69 | void backspaceClicked(); 70 | void clear(); 71 | void clearAll(); 72 | void clearMemory(); 73 | void readMemory(); 74 | void setMemory(); 75 | void addToMemory(); 76 | void popMenu(); 77 | void openHistory(); 78 | void openAbout(); 79 | 80 | private: 81 | Button *createButton(const QString &text, const char *member); 82 | void abortOperation(); 83 | bool calculate(double rightOperand, const QString &pendingOperator); 84 | 85 | double sumInMemory; 86 | double sumSoFar; 87 | double factorSoFar; 88 | QString pendingAdditiveOperator; 89 | QString pendingMultiplicativeOperator; 90 | bool waitingForOperand; 91 | 92 | QLineEdit *display; 93 | 94 | enum { NumDigitButtons = 10 }; 95 | Button *digitButtons[NumDigitButtons]; 96 | QMenu *m_pMenuMain; 97 | 98 | History *m_pHistory; 99 | }; 100 | 101 | #endif 102 | -------------------------------------------------------------------------------- /src/ldecc/safcc.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Safcc 4 | 5 | 6 | 7 | 0 8 | 0 9 | 400 10 | 300 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 140 20 | 60 21 | 115 22 | 32 23 | 24 | 25 | 26 | 更改登录密码 27 | 28 | 29 | 30 | 31 | 32 | 40 33 | 110 34 | 191 35 | 20 36 | 37 | 38 | 39 | 进入睡眠模式或屏幕保护程序 40 | 41 | 42 | 43 | 44 | 45 | 10 46 | 10 47 | 80 48 | 27 49 | 50 | 51 | 52 | 关闭 53 | 54 | 55 | 56 | 57 | 58 | 220 59 | 10 60 | 161 61 | 31 62 | 63 | 64 | 65 | 66 | 11 67 | 75 68 | true 69 | 70 | 71 | 72 | 安全性与隐私 73 | 74 | 75 | 76 | 77 | 78 | 100 79 | 10 80 | 80 81 | 27 82 | 83 | 84 | 85 | 主页 86 | 87 | 88 | 89 | 90 | 91 | 40 92 | 180 93 | 294 94 | 32 95 | 96 | 97 | 98 | 99 | 100 | 101 | 屏幕锁定时显示信息 102 | 103 | 104 | 105 | 106 | 107 | 108 | 设置锁定信息... 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 130 118 | 140 119 | 190 120 | 26 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 要求输入密码 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | -------------------------------------------------------------------------------- /src/looplorer/looplorer.vcxproj.filters: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | {71ED8ED8-ACB9-4CE9-BBE1-E00B30144E11} 6 | cpp;c;cxx;moc;h;def;odl;idl;res; 7 | 8 | 9 | {71ED8ED8-ACB9-4CE9-BBE1-E00B30144E11} 10 | cpp;c;cxx;moc;h;def;odl;idl;res; 11 | 12 | 13 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 14 | h;hpp;hxx;hm;inl;inc;xsd 15 | 16 | 17 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 18 | h;hpp;hxx;hm;inl;inc;xsd 19 | 20 | 21 | {D9D6E242-F8AF-46E4-B9FD-80ECBC20BA3E} 22 | qrc;* 23 | false 24 | 25 | 26 | {D9D6E242-F8AF-46E4-B9FD-80ECBC20BA3E} 27 | qrc;* 28 | false 29 | 30 | 31 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 32 | cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx 33 | 34 | 35 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 36 | cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx 37 | 38 | 39 | {5122bf84-6339-467f-b89e-8994ec77e776} 40 | cpp;moc 41 | False 42 | 43 | 44 | {79d54681-71c5-41f1-8e8a-29ae8db512d8} 45 | cpp;moc 46 | False 47 | 48 | 49 | {639EADAA-A684-42e4-A9AD-28FC9BCB8F7C} 50 | ts 51 | false 52 | 53 | 54 | 55 | 56 | Source Files 57 | 58 | 59 | Source Files 60 | 61 | 62 | Generated Files\Debug 63 | 64 | 65 | Generated Files\Release 66 | 67 | 68 | Generated Files 69 | 70 | 71 | 72 | 73 | Header Files 74 | 75 | 76 | 77 | 78 | Resource Files 79 | 80 | 81 | Resource Files 82 | 83 | 84 | Translation Files 85 | 86 | 87 | 88 | -------------------------------------------------------------------------------- /src/ldeinit/init.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2014 Zhuoyi Xu 3 | * 4 | * This library is free software; you can redistribute it and/or 5 | * modify it under the terms of the GNU Lesser General Public 6 | * License as published by the Free Software Foundation; either 7 | * version 2.1 of the License, or (at your option) any later version. 8 | * 9 | * This library is distributed in the hope that it will be useful, 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | * Lesser General Public License for more details. 13 | * 14 | * You should have received a copy of the GNU Lesser General Public 15 | * License along with this library; if not, write to the Free Software 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 17 | * 18 | */ 19 | 20 | #include "init.h" 21 | #include 22 | #include 23 | #include 24 | #include 25 | 26 | //引导模式表 27 | //mode 0 注销 28 | //mode 1 正常启动 29 | //mode 2 首次启动(无配置文件时) 30 | //mode 3 升级后首次启动(配置文件版本过低时) 31 | //mode 4 上次引导失败 32 | //mode 6 调用系统 init 6 33 | 34 | //判断引导模式,只实现了模式1 35 | 36 | 37 | void Init::startInit() 38 | { 39 | switch (initMode) 40 | { 41 | case 1 : 42 | runDesktop(); 43 | break; 44 | case 2 : 45 | 46 | initUser(); 47 | runDesktop(); 48 | break; 49 | //case 3 : 50 | 51 | //... 52 | //case 4 : 53 | 54 | // ... 55 | } 56 | } 57 | 58 | Init::Init(int mode) 59 | { 60 | initMode = mode; 61 | if (isFirstLogin()) 62 | initMode = 2; 63 | startInit(); 64 | } 65 | 66 | void Init::runDesktop() 67 | { 68 | 69 | //QSetting autorun = new autorun 70 | //利用 QSetting 类存储 autorun.ini 存储配置文件 71 | // 72 | //... 73 | 74 | QProcess *mainProcess = new QProcess; 75 | mainProcess->start("/usr/bin/xfwm4",NULL); 76 | QProcess *mainProcess2 = new QProcess; 77 | mainProcess2->start("/usr/bin/razor-panel",NULL); 78 | QProcess *wallpaperCon = new QProcess; 79 | QStringList runArgsList; 80 | QSettings settings(".LDE/lderc.ini",QSettings::IniFormat); 81 | QString wpSource = settings.value("wallPapers/source").toString(); 82 | runArgsList << "--bg-scale" << wpSource; 83 | wallpaperCon->start("feh", runArgsList); 84 | } 85 | 86 | //根据有无配置文件判断是否首次登录 87 | bool Init::isFirstLogin() 88 | { 89 | if (!QFile::exists(".LDE/lderc.ini")) 90 | return true; 91 | else 92 | return false; 93 | } 94 | 95 | void Init::initUser() 96 | { 97 | if (QFile::exists(".LDE/lderc.ini")) 98 | QFile::remove(".LDE/lderc.ini"); 99 | QSettings settings(".LDE/lderc.ini",QSettings::IniFormat); 100 | settings.setValue("wallPapers/source", "/usr/share/wallpapers/lde-default.png"); 101 | settings.setValue("autoStart/appNum", 0); 102 | settings.setValue("theme/qt-theme","clearlooks"); 103 | settings.setValue("theme/gnome-theme","default"); 104 | settings.setValue("theme/openbox-theme","lde-default"); 105 | settings.setValue("font/fontConfigPreset","lde-default"); 106 | settings.sync(); 107 | if (QFile::exists(".config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml")) 108 | QFile::remove(".config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml"); 109 | if (QFile::exists(".config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml")) 110 | QFile::remove(".config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml"); 111 | QFile::copy("/usr/share/LDE/defaults/xfwm4.xml", ".config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml"); 112 | QFile::copy("/usr/share/LDE/defaults/xsettings.xml", ".config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml"); 113 | } 114 | 115 | //判断是否升级 116 | //bool Init::isUpdated() 117 | //{ 118 | 119 | 120 | //} 121 | -------------------------------------------------------------------------------- /src/looplorer/main.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** 3 | ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). 4 | ** Contact: http://www.qt-project.org/legal 5 | ** 6 | ** This file is part of the Qt Toolkit. 7 | ** 8 | ** $QT_BEGIN_LICENSE:BSD$ 9 | ** You may use this file under the terms of the BSD license as follows: 10 | ** 11 | ** "Redistribution and use in source and binary forms, with or without 12 | ** modification, are permitted provided that the following conditions are 13 | ** met: 14 | ** * Redistributions of source code must retain the above copyright 15 | ** notice, this list of conditions and the following disclaimer. 16 | ** * Redistributions in binary form must reproduce the above copyright 17 | ** notice, this list of conditions and the following disclaimer in 18 | ** the documentation and/or other materials provided with the 19 | ** distribution. 20 | ** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names 21 | ** of its contributors may be used to endorse or promote products derived 22 | ** from this software without specific prior written permission. 23 | ** 24 | ** 25 | ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 26 | ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 27 | ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 28 | ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 29 | ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 30 | ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 31 | ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 32 | ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 33 | ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 34 | ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 35 | ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." 36 | ** 37 | ** $QT_END_LICENSE$ 38 | ** 39 | ****************************************************************************/ 40 | 41 | #include 42 | #include 43 | #include "mainwindow.h" 44 | 45 | extern int windowNum; 46 | 47 | static void showHelp(QCommandLineParser &parser, const QString errorMessage = QString()) 48 | { 49 | QString text; 50 | QTextStream str(&text); 51 | str << ""; 52 | if (!errorMessage.isEmpty()) 53 | str << "

" << errorMessage << "

"; 54 | str << "
" << parser.helpText() << "
"; 55 | QMessageBox box(errorMessage.isEmpty() ? QMessageBox::Information : QMessageBox::Warning, 56 | QGuiApplication::applicationDisplayName(), text, QMessageBox::Ok); 57 | box.setTextInteractionFlags(Qt::TextBrowserInteraction); 58 | box.exec(); 59 | } 60 | 61 | int main(int argc, char * argv[]) 62 | { 63 | QApplication app(argc, argv); 64 | //QTranslator trans; 65 | //trans.load("looplorer_zh.qm"); 66 | //app.installTranslator(&trans); 67 | QCommandLineParser commandLineParser; 68 | commandLineParser.addPositionalArgument(QStringLiteral("url"), 69 | QStringLiteral("The url to be loaded in the browser window.")); 70 | commandLineParser.process(app); 71 | QStringList positionalArguments = commandLineParser.positionalArguments(); 72 | 73 | QUrl url; 74 | if (positionalArguments.size() > 1) { 75 | showHelp(commandLineParser, QStringLiteral("Too many arguments.")); 76 | return -1; 77 | } else if (positionalArguments.size() == 1) 78 | url = QUrl::fromUserInput(positionalArguments.at(0)); 79 | else 80 | url = QUrl("http://www.baidu.com"); 81 | 82 | if (!url.isValid()) { 83 | showHelp(commandLineParser, QString("%1 is not a valid url.").arg(positionalArguments.at(0))); 84 | return -1; 85 | } 86 | 87 | windowNum = 0; 88 | MainWindow browser(url); 89 | browser.show(); 90 | 91 | return app.exec(); 92 | } 93 | -------------------------------------------------------------------------------- /src/ldecc/descc.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Descc 4 | 5 | 6 | 7 | 0 8 | 0 9 | 400 10 | 300 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 100 20 | 10 21 | 80 22 | 27 23 | 24 | 25 | 26 | 主页 27 | 28 | 29 | 30 | 31 | 32 | 220 33 | 10 34 | 161 35 | 31 36 | 37 | 38 | 39 | 40 | 11 41 | 75 42 | true 43 | 44 | 45 | 46 | 桌面与壁纸 47 | 48 | 49 | 50 | 51 | 52 | 10 53 | 10 54 | 80 55 | 27 56 | 57 | 58 | 59 | 关闭 60 | 61 | 62 | 63 | 64 | 65 | 20 66 | 40 67 | 201 68 | 131 69 | 70 | 71 | 72 | <html><head/><body><p align="center">&lt;背景浏览&gt;</p></body></html> 73 | 74 | 75 | true 76 | 77 | 78 | 79 | 80 | 81 | 20 82 | 180 83 | 361 84 | 79 85 | 86 | 87 | 88 | 89 | 90 | 91 | false 92 | 93 | 94 | 使用 LDE WallPapers 壁纸库(未安装) 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 自定义壁纸 104 | 105 | 106 | true 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 图片位置: 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 200 132 | 260 133 | 195 134 | 32 135 | 136 | 137 | 138 | 139 | 140 | 141 | 选择图片... 142 | 143 | 144 | 145 | 146 | 147 | 148 | false 149 | 150 | 151 | 应用 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | -------------------------------------------------------------------------------- /src/ldecc/gencc.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Gencc 4 | 5 | 6 | 7 | 0 8 | 0 9 | 400 10 | 300 11 | 12 | 13 | 14 | Form 15 | 16 | 17 | 18 | 19 | 10 20 | 10 21 | 80 22 | 27 23 | 24 | 25 | 26 | 关闭 27 | 28 | 29 | 30 | 31 | 32 | 100 33 | 10 34 | 80 35 | 27 36 | 37 | 38 | 39 | 主页 40 | 41 | 42 | 43 | 44 | 45 | 220 46 | 10 47 | 161 48 | 31 49 | 50 | 51 | 52 | 53 | 11 54 | 75 55 | true 56 | 57 | 58 | 59 | 通用 60 | 61 | 62 | 63 | 64 | 65 | 150 66 | 60 67 | 121 68 | 27 69 | 70 | 71 | 72 | 窗口管理器设置 73 | 74 | 75 | 76 | 77 | 78 | 90 79 | 60 80 | 31 81 | 31 82 | 83 | 84 | 85 | 外观: 86 | 87 | 88 | 89 | 90 | 91 | 60 92 | 120 93 | 71 94 | 16 95 | 96 | 97 | 98 | 显示状态栏: 99 | 100 | 101 | 102 | 103 | 104 | 120 105 | 230 106 | 231 107 | 22 108 | 109 | 110 | 111 | 关闭文稿时要求保存更改 112 | 113 | 114 | 115 | 116 | 117 | 20 118 | 210 119 | 361 120 | 16 121 | 122 | 123 | 124 | Qt::Horizontal 125 | 126 | 127 | 128 | 129 | 130 | 10 131 | 90 132 | 381 133 | 16 134 | 135 | 136 | 137 | Qt::Horizontal 138 | 139 | 140 | 141 | 142 | 143 | 150 144 | 120 145 | 134 146 | 80 147 | 148 | 149 | 150 | 151 | 152 | 153 | 按照程序内设置 154 | 155 | 156 | 157 | 158 | 159 | 160 | 始终显示 161 | 162 | 163 | 164 | 165 | 166 | 167 | 始终隐藏 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | -------------------------------------------------------------------------------- /src/LooFTP/widget.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | Widget 4 | 5 | 6 | 7 | 0 8 | 0 9 | 454 10 | 300 11 | 12 | 13 | 14 | LooFTP 0.1.6 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | FTP服务器: 23 | 24 | 25 | 26 | 27 | 28 | 29 | ftp.loongsoner.com 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 用户名: 41 | 42 | 43 | 44 | 45 | 46 | 47 | 默认用户名请使用:anonymous,此时密码任意。 48 | 49 | 50 | anonymous 51 | 52 | 53 | 54 | 55 | 56 | 57 | 密码: 58 | 59 | 60 | 61 | 62 | 63 | 64 | 123456 65 | 66 | 67 | QLineEdit::Password 68 | 69 | 70 | 71 | 72 | 73 | 74 | 连接 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 文件 85 | 86 | 87 | 88 | 89 | 大小 90 | 91 | 92 | 93 | 94 | 新建列 95 | 96 | 97 | 98 | 99 | 拥有者 100 | 101 | 102 | 103 | 104 | 修改日期 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 24 115 | 116 | 117 | 118 | 119 | 120 | 121 | 返回上一级目录 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | FTP客户端 133 | 134 | 135 | 136 | 137 | 138 | 139 | Qt::Horizontal 140 | 141 | 142 | 143 | 40 144 | 20 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 下载 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | -------------------------------------------------------------------------------- /src/Lootepad/mainwindow.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include 6 | 7 | #include "mainwindow.h" 8 | #include "ui_mainwindow.h" 9 | #include "textedittab.h" 10 | 11 | MainWindow::MainWindow(QWidget *parent) : 12 | QMainWindow(parent), 13 | ui(new Ui::MainWindow) 14 | { 15 | ui->setupUi(this); 16 | isSaved = false; 17 | curFile = tr("untitled.txt"); 18 | formTitle = curFile + tr(" - Lootepad 0.10"); 19 | setWindowTitle(formTitle); 20 | textEditTab = new TextEditTab(this); 21 | ui->gridLayout->addWidget(textEditTab); 22 | 23 | connect(this, SIGNAL(updateText(QString)), this, SLOT(on_second_statusLabel_updateText(QString))); 24 | init_statusBar(); 25 | 26 | } 27 | 28 | MainWindow::~MainWindow() 29 | { 30 | delete ui; 31 | } 32 | 33 | 34 | void MainWindow::on_action_New_triggered() 35 | { 36 | textEditTab->currentTEditor->do_file_New(); 37 | } 38 | 39 | void MainWindow::on_action_Save_triggered() 40 | { 41 | textEditTab->currentTEditor->do_file_Save(); 42 | } 43 | 44 | void MainWindow::on_action_SaveAs_triggered() 45 | { 46 | textEditTab->currentTEditor->do_file_SaveAs(); 47 | } 48 | 49 | void MainWindow::on_action_Help_triggered() 50 | { 51 | QMessageBox::information(this,tr("版本说明"),tr("lootepad 0.10.1")); 52 | } 53 | 54 | 55 | 56 | void MainWindow::on_action_Open_triggered() 57 | { 58 | textEditTab->currentTEditor->do_file_Open(); 59 | } 60 | 61 | void MainWindow::on_action_Close_triggered() 62 | { 63 | textEditTab->currentTEditor->do_file_SaveOrNot(); 64 | textEditTab->currentTEditor->setVisible(false); 65 | first_statusLabel->setText(tr("文本编辑器已关闭")); 66 | second_statusLabel->setText(tr("Lootepad 0.10.1")); 67 | } 68 | 69 | void MainWindow::on_action_Quit_triggered() 70 | { 71 | on_action_Close_triggered(); 72 | qApp->quit(); 73 | } 74 | 75 | void MainWindow::on_action_Undo_triggered() 76 | { 77 | textEditTab->currentTEditor->undo(); 78 | } 79 | 80 | void MainWindow::on_action_Cut_triggered() 81 | { 82 | textEditTab->currentTEditor->cut(); 83 | } 84 | 85 | void MainWindow::on_action_Copy_triggered() 86 | { 87 | textEditTab->currentTEditor->copy(); 88 | } 89 | 90 | void MainWindow::on_action_Past_triggered() 91 | { 92 | textEditTab->currentTEditor->paste(); 93 | } 94 | 95 | void MainWindow::on_action_Find_triggered() 96 | { 97 | QDialog *findDlg = new QDialog(this); 98 | findDlg->setWindowTitle(tr("查找")); 99 | find_textLineEdit = new QLineEdit(findDlg); 100 | QPushButton *find_Btn = new QPushButton(tr("查找下一个"),findDlg); 101 | QVBoxLayout* layout = new QVBoxLayout(findDlg); 102 | layout->addWidget(find_textLineEdit); 103 | layout->addWidget(find_Btn); 104 | findDlg->show(); 105 | connect(find_Btn,SIGNAL(clicked()),this,SLOT(show_findText())); 106 | second_statusLabel->setText(tr("正在进行查找")); 107 | } 108 | 109 | void MainWindow::show_findText() 110 | { 111 | QString findText = find_textLineEdit->text(); 112 | if(!textEditTab->currentTEditor->find(findText,QTextDocument::FindBackward)) 113 | { 114 | QMessageBox::warning(this,tr("查找"),tr("找不到 %1").arg(findText)); 115 | } 116 | } 117 | 118 | void MainWindow::init_statusBar() 119 | { 120 | QStatusBar* bar = ui->statusBar; 121 | first_statusLabel = new QLabel; 122 | first_statusLabel->setMinimumSize(150,20); 123 | first_statusLabel->setFrameShape(QFrame::WinPanel); 124 | first_statusLabel->setFrameShadow(QFrame::Sunken); 125 | second_statusLabel = new QLabel; 126 | second_statusLabel->setMinimumSize(150,20); 127 | second_statusLabel->setFrameShape(QFrame::WinPanel); 128 | second_statusLabel->setFrameShadow(QFrame::Sunken); 129 | bar->addWidget(first_statusLabel); 130 | bar->addWidget(second_statusLabel); 131 | first_statusLabel->setText(tr("欢迎使用文本编辑器")); 132 | second_statusLabel->setText(tr("Lootepad 0.10.1")); 133 | } 134 | 135 | void MainWindow::do_cursorChanged() 136 | { 137 | int rowNum = textEditTab->currentTEditor->document()->blockCount(); 138 | const QTextCursor cursor = textEditTab->currentTEditor->textCursor(); 139 | int colNum = cursor.columnNumber(); 140 | first_statusLabel->setText(tr("%1 行 %2 列").arg(rowNum).arg(colNum)); 141 | } 142 | 143 | void MainWindow::on_action_triggered() 144 | { 145 | textEditTab->currentTEditor->redo(); 146 | } 147 | 148 | void MainWindow::on_action_LDE_triggered() 149 | { 150 | QProcess *mainProcess = new QProcess; 151 | mainProcess->start("ldeabout",NULL); 152 | } 153 | 154 | void MainWindow::on_actionNewTab_triggered() 155 | { 156 | emit textEditTab->addEditTab(this); 157 | } 158 | 159 | void MainWindow::on_second_statusLabel_updateText(QString text) 160 | { 161 | second_statusLabel->setText(text); 162 | } 163 | -------------------------------------------------------------------------------- /src/LooFTP/qurlinfo.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** 3 | ** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). 4 | ** Contact: http://www.qt-project.org/legal 5 | ** 6 | ** This file is part of the QtNetwork module of the Qt Toolkit. 7 | ** 8 | ** $QT_BEGIN_LICENSE:LGPL$ 9 | ** Commercial License Usage 10 | ** Licensees holding valid commercial Qt licenses may use this file in 11 | ** accordance with the commercial license agreement provided with the 12 | ** Software or, alternatively, in accordance with the terms contained in 13 | ** a written agreement between you and Digia. For licensing terms and 14 | ** conditions see http://qt.digia.com/licensing. For further information 15 | ** use the contact form at http://qt.digia.com/contact-us. 16 | ** 17 | ** GNU Lesser General Public License Usage 18 | ** Alternatively, this file may be used under the terms of the GNU Lesser 19 | ** General Public License version 2.1 as published by the Free Software 20 | ** Foundation and appearing in the file LICENSE.LGPL included in the 21 | ** packaging of this file. Please review the following information to 22 | ** ensure the GNU Lesser General Public License version 2.1 requirements 23 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 24 | ** 25 | ** In addition, as a special exception, Digia gives you certain additional 26 | ** rights. These rights are described in the Digia Qt LGPL Exception 27 | ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 28 | ** 29 | ** GNU General Public License Usage 30 | ** Alternatively, this file may be used under the terms of the GNU 31 | ** General Public License version 3.0 as published by the Free Software 32 | ** Foundation and appearing in the file LICENSE.GPL included in the 33 | ** packaging of this file. Please review the following information to 34 | ** ensure the GNU General Public License version 3.0 requirements will be 35 | ** met: http://www.gnu.org/copyleft/gpl.html. 36 | ** 37 | ** 38 | ** $QT_END_LICENSE$ 39 | ** 40 | ****************************************************************************/ 41 | 42 | #ifndef QURLINFO_H 43 | #define QURLINFO_H 44 | 45 | #include 46 | #include 47 | #include 48 | 49 | QT_BEGIN_NAMESPACE 50 | 51 | class QUrl; 52 | class QUrlInfoPrivate; 53 | 54 | class QUrlInfo 55 | { 56 | public: 57 | enum PermissionSpec { 58 | ReadOwner = 00400, WriteOwner = 00200, ExeOwner = 00100, 59 | ReadGroup = 00040, WriteGroup = 00020, ExeGroup = 00010, 60 | ReadOther = 00004, WriteOther = 00002, ExeOther = 00001 }; 61 | 62 | QUrlInfo(); 63 | QUrlInfo(const QUrlInfo &ui); 64 | QUrlInfo(const QString &name, int permissions, const QString &owner, 65 | const QString &group, qint64 size, const QDateTime &lastModified, 66 | const QDateTime &lastRead, bool isDir, bool isFile, bool isSymLink, 67 | bool isWritable, bool isReadable, bool isExecutable); 68 | QUrlInfo(const QUrl &url, int permissions, const QString &owner, 69 | const QString &group, qint64 size, const QDateTime &lastModified, 70 | const QDateTime &lastRead, bool isDir, bool isFile, bool isSymLink, 71 | bool isWritable, bool isReadable, bool isExecutable); 72 | QUrlInfo &operator=(const QUrlInfo &ui); 73 | virtual ~QUrlInfo(); 74 | 75 | virtual void setName(const QString &name); 76 | virtual void setDir(bool b); 77 | virtual void setFile(bool b); 78 | virtual void setSymLink(bool b); 79 | virtual void setOwner(const QString &s); 80 | virtual void setGroup(const QString &s); 81 | virtual void setSize(qint64 size); 82 | virtual void setWritable(bool b); 83 | virtual void setReadable(bool b); 84 | virtual void setPermissions(int p); 85 | virtual void setLastModified(const QDateTime &dt); 86 | void setLastRead(const QDateTime &dt); 87 | 88 | bool isValid() const; 89 | 90 | QString name() const; 91 | int permissions() const; 92 | QString owner() const; 93 | QString group() const; 94 | qint64 size() const; 95 | QDateTime lastModified() const; 96 | QDateTime lastRead() const; 97 | bool isDir() const; 98 | bool isFile() const; 99 | bool isSymLink() const; 100 | bool isWritable() const; 101 | bool isReadable() const; 102 | bool isExecutable() const; 103 | 104 | static bool greaterThan(const QUrlInfo &i1, const QUrlInfo &i2, 105 | int sortBy); 106 | static bool lessThan(const QUrlInfo &i1, const QUrlInfo &i2, 107 | int sortBy); 108 | static bool equal(const QUrlInfo &i1, const QUrlInfo &i2, 109 | int sortBy); 110 | 111 | bool operator==(const QUrlInfo &i) const; 112 | inline bool operator!=(const QUrlInfo &i) const 113 | { return !operator==(i); } 114 | 115 | private: 116 | QUrlInfoPrivate *d; 117 | }; 118 | 119 | QT_END_NAMESPACE 120 | 121 | #endif // QURLINFO_H 122 | -------------------------------------------------------------------------------- /src/LooFTP/widget.cpp: -------------------------------------------------------------------------------- 1 | #include "widget.h" 2 | #include "ui_widget.h" 3 | 4 | Widget::Widget(QWidget *parent) : 5 | QWidget(parent), 6 | ui(new Ui::Widget) 7 | { 8 | ui->setupUi(this); 9 | ui->progressBar->setValue(0); 10 | connect(ui->fileList,SIGNAL(itemActivated(QTreeWidgetItem*,int)),this,SLOT(processItem(QTreeWidgetItem*,int))); 11 | } 12 | 13 | Widget::~Widget() 14 | { 15 | delete ui; 16 | } 17 | 18 | void Widget::ftpCommandStarted(int) 19 | { 20 | if(ftp->currentCommand() == QFtp::ConnectToHost){ 21 | ui->label->setText(tr("正在连接到服务器…")); 22 | } 23 | if(ftp->currentCommand() == QFtp::Login){ 24 | ui->label->setText(tr("正在登录…")); 25 | } 26 | if(ftp->currentCommand() == QFtp::Get){ 27 | ui->label->setText(tr("正在下载…")); 28 | } 29 | else if(ftp->currentCommand() == QFtp::Close){ 30 | ui->label->setText(tr("正在关闭链接…")); 31 | } 32 | } 33 | 34 | void Widget::ftpCommandFinished(int, bool error) 35 | { 36 | if(ftp->currentCommand() == QFtp::ConnectToHost){ 37 | if(error) ui->label->setText(tr("连接服务器出现错误: %1").arg(ftp->errorString())); 38 | else ui->label->setText(tr("连接到服务器成功")); 39 | } 40 | if(ftp->currentCommand() == QFtp::Login){ 41 | if(error) ui->label->setText(tr("登录出现错误: %1").arg(ftp->errorString())); 42 | else{ 43 | ui->label->setText(tr("登录成功")); 44 | ftp->list(); 45 | } 46 | } 47 | if(ftp->currentCommand() == QFtp::Get){ 48 | if(error) ui->label->setText(tr("下载出现错误: %1").arg(ftp->errorString())); 49 | else{ 50 | ui->label->setText(tr("已经完成下载")); 51 | ui->downloadButton->setEnabled(true); 52 | file->close(); 53 | } 54 | } 55 | if(ftp->currentCommand() == QFtp::List){ 56 | if(isDirectory.isEmpty()) 57 | { 58 | ui->fileList->addTopLevelItem(new QTreeWidgetItem(QStringList()<"))); 59 | ui->fileList->setEnabled(false); 60 | ui->label->setText(tr("该目录为空")); 61 | } 62 | } 63 | else if(ftp->currentCommand() == QFtp::Close){ 64 | ui->label->setText(tr("已经关闭连接")); 65 | } 66 | } 67 | 68 | 69 | void Widget::on_cdToParentButton_clicked() 70 | { 71 | ui->fileList->clear(); 72 | isDirectory.clear(); 73 | currentPath = currentPath.left(currentPath.lastIndexOf('/')); 74 | if(currentPath.isEmpty()){ 75 | ui->cdToParentButton->setEnabled(false); 76 | ftp->cd("/"); 77 | } else{ 78 | ftp->cd(currentPath); 79 | } 80 | ftp->list(); 81 | } 82 | 83 | void Widget::on_connectButton_clicked() 84 | { 85 | QString userName; 86 | QString passWord; 87 | ui->fileList->clear(); 88 | currentPath.clear(); 89 | isDirectory.clear(); 90 | ftp = new QFtp(this); 91 | connect(ftp,SIGNAL(commandStarted(int)),this,SLOT(ftpCommandStarted(int))); 92 | connect(ftp,SIGNAL(commandFinished(int,bool)),this,SLOT(ftpCommandFinished(int,bool))); 93 | connect(ftp,SIGNAL(listInfo(QUrlInfo)),this,SLOT(addToList(QUrlInfo))); 94 | connect(ftp,SIGNAL(dataTransferProgress(qint64,qint64)),this,SLOT(updateDataTransferProgress(qint64,qint64))); 95 | QString ftpServer = ui->ftpServerLineEdit->text(); 96 | if (ui->userNamelineEdit->text() == "") 97 | userName = "anonymous"; 98 | else 99 | userName = ui->userNamelineEdit->text(); 100 | if (ui->passWordlineEdit->text() == "") 101 | passWord = "123456"; 102 | else 103 | passWord = ui->passWordlineEdit->text(); 104 | ftp->connectToHost(ftpServer,21); 105 | ftp->login(userName,passWord); 106 | } 107 | 108 | void Widget::addToList(const QUrlInfo &urlInfo) 109 | { 110 | QTreeWidgetItem *item = new QTreeWidgetItem; 111 | item->setText(0,urlInfo.name()); 112 | item->setText(1,QString::number(urlInfo.size())); 113 | item->setText(2,urlInfo.owner()); 114 | item->setText(3,urlInfo.group()); 115 | item->setText(4,urlInfo.lastModified().toString("MMM dd yyyy")); 116 | //QPixmap pixmap(urlInfo.isDir() ? "../dir.png" : "../file.png"); 117 | //item->setIcon(0,pixmap); 118 | isDirectory[urlInfo.name()] = urlInfo.isDir(); 119 | ui->fileList->addTopLevelItem(item); 120 | if(!ui->fileList->currentItem()){ 121 | ui->fileList->setCurrentItem(ui->fileList->topLevelItem(0)); 122 | ui->fileList->setEnabled(true); 123 | } 124 | } 125 | 126 | void Widget::processItem(QTreeWidgetItem *item, int) 127 | { 128 | QString name = item->text(0); 129 | if(isDirectory.value(name)){ 130 | ui->fileList->clear(); 131 | isDirectory.clear(); 132 | currentPath += '/'; 133 | currentPath += name; 134 | ftp->cd(name); 135 | ftp->list(); 136 | ui->cdToParentButton->setEnabled(true); 137 | } 138 | } 139 | 140 | 141 | void Widget::on_downloadButton_clicked() 142 | { 143 | QString fileName = ui->fileList->currentItem()->text(0); 144 | file = new QFile(fileName); 145 | if(!file->open(QIODevice::WriteOnly)) 146 | { 147 | delete file; 148 | return; 149 | } 150 | ui->downloadButton->setEnabled(false); 151 | ftp->get(ui->fileList->currentItem()->text(0),file); 152 | } 153 | 154 | void Widget::updateDataTransferProgress(qint64 readBytes, qint64 totalBytes) 155 | { 156 | ui->progressBar->setMaximum(totalBytes); 157 | ui->progressBar->setValue(readBytes); 158 | } 159 | -------------------------------------------------------------------------------- /src/LooFTP/qftp.h: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** 3 | ** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). 4 | ** Contact: http://www.qt-project.org/legal 5 | ** 6 | ** This file is part of the QtNetwork module of the Qt Toolkit. 7 | ** 8 | ** $QT_BEGIN_LICENSE:LGPL$ 9 | ** Commercial License Usage 10 | ** Licensees holding valid commercial Qt licenses may use this file in 11 | ** accordance with the commercial license agreement provided with the 12 | ** Software or, alternatively, in accordance with the terms contained in 13 | ** a written agreement between you and Digia. For licensing terms and 14 | ** conditions see http://qt.digia.com/licensing. For further information 15 | ** use the contact form at http://qt.digia.com/contact-us. 16 | ** 17 | ** GNU Lesser General Public License Usage 18 | ** Alternatively, this file may be used under the terms of the GNU Lesser 19 | ** General Public License version 2.1 as published by the Free Software 20 | ** Foundation and appearing in the file LICENSE.LGPL included in the 21 | ** packaging of this file. Please review the following information to 22 | ** ensure the GNU Lesser General Public License version 2.1 requirements 23 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 24 | ** 25 | ** In addition, as a special exception, Digia gives you certain additional 26 | ** rights. These rights are described in the Digia Qt LGPL Exception 27 | ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 28 | ** 29 | ** GNU General Public License Usage 30 | ** Alternatively, this file may be used under the terms of the GNU 31 | ** General Public License version 3.0 as published by the Free Software 32 | ** Foundation and appearing in the file LICENSE.GPL included in the 33 | ** packaging of this file. Please review the following information to 34 | ** ensure the GNU General Public License version 3.0 requirements will be 35 | ** met: http://www.gnu.org/copyleft/gpl.html. 36 | ** 37 | ** 38 | ** $QT_END_LICENSE$ 39 | ** 40 | ****************************************************************************/ 41 | 42 | #ifndef QFTP_H 43 | #define QFTP_H 44 | 45 | #include 46 | #include 47 | #include "qurlinfo.h" 48 | 49 | QT_BEGIN_NAMESPACE 50 | 51 | class QFtpPrivate; 52 | 53 | class QFtp : public QObject 54 | { 55 | Q_OBJECT 56 | 57 | public: 58 | explicit QFtp(QObject *parent = 0); 59 | virtual ~QFtp(); 60 | 61 | enum State { 62 | Unconnected, 63 | HostLookup, 64 | Connecting, 65 | Connected, 66 | LoggedIn, 67 | Closing 68 | }; 69 | enum Error { 70 | NoError, 71 | UnknownError, 72 | HostNotFound, 73 | ConnectionRefused, 74 | NotConnected 75 | }; 76 | enum Command { 77 | None, 78 | SetTransferMode, 79 | SetProxy, 80 | ConnectToHost, 81 | Login, 82 | Close, 83 | List, 84 | Cd, 85 | Get, 86 | Put, 87 | Remove, 88 | Mkdir, 89 | Rmdir, 90 | Rename, 91 | RawCommand 92 | }; 93 | enum TransferMode { 94 | Active, 95 | Passive 96 | }; 97 | enum TransferType { 98 | Binary, 99 | Ascii 100 | }; 101 | 102 | int setProxy(const QString &host, quint16 port); 103 | int connectToHost(const QString &host, quint16 port=21); 104 | int login(const QString &user = QString(), const QString &password = QString()); 105 | int close(); 106 | int setTransferMode(TransferMode mode); 107 | int list(const QString &dir = QString()); 108 | int cd(const QString &dir); 109 | int get(const QString &file, QIODevice *dev=0, TransferType type = Binary); 110 | int put(const QByteArray &data, const QString &file, TransferType type = Binary); 111 | int put(QIODevice *dev, const QString &file, TransferType type = Binary); 112 | int remove(const QString &file); 113 | int mkdir(const QString &dir); 114 | int rmdir(const QString &dir); 115 | int rename(const QString &oldname, const QString &newname); 116 | 117 | int rawCommand(const QString &command); 118 | 119 | qint64 bytesAvailable() const; 120 | qint64 read(char *data, qint64 maxlen); 121 | QByteArray readAll(); 122 | 123 | int currentId() const; 124 | QIODevice* currentDevice() const; 125 | Command currentCommand() const; 126 | bool hasPendingCommands() const; 127 | void clearPendingCommands(); 128 | 129 | State state() const; 130 | 131 | Error error() const; 132 | QString errorString() const; 133 | 134 | public Q_SLOTS: 135 | void abort(); 136 | 137 | Q_SIGNALS: 138 | void stateChanged(int); 139 | void listInfo(const QUrlInfo&); 140 | void readyRead(); 141 | void dataTransferProgress(qint64, qint64); 142 | void rawCommandReply(int, const QString&); 143 | 144 | void commandStarted(int); 145 | void commandFinished(int, bool); 146 | void done(bool); 147 | 148 | private: 149 | Q_DISABLE_COPY(QFtp) 150 | QScopedPointer d; 151 | 152 | Q_PRIVATE_SLOT(d, void _q_startNextCommand()) 153 | Q_PRIVATE_SLOT(d, void _q_piFinished(const QString&)) 154 | Q_PRIVATE_SLOT(d, void _q_piError(int, const QString&)) 155 | Q_PRIVATE_SLOT(d, void _q_piConnectState(int)) 156 | Q_PRIVATE_SLOT(d, void _q_piFtpReply(int, const QString&)) 157 | }; 158 | 159 | QT_END_NAMESPACE 160 | 161 | #endif // QFTP_H 162 | -------------------------------------------------------------------------------- /ldemanual.txt: -------------------------------------------------------------------------------- 1 | LDE 用户手册(2015-1-28 更新) 2 | 3 | 本用户手册是自由传播的,类似Wiki,每个使用者和开发者 4 | 都可以修改、补充其内容。修改后请在文本最后增加作者信息, 5 | 上传时请保留原文件。 6 | 7 | 8 | 9 | 1.9.1: 10 | 11 | 1、增加 LCalc 计算器。 12 | 13 | 2、修改 InitLDE 增加配置文件管理功能。 14 | 15 | 16 | 17 | Debian 7 用户请注意: 18 | 19 | 20 | LDE 有一个依赖包在 Debian Testing 源中。 21 | 在 /etc/apt/sources.list 中添加: 22 | 23 | deb http://ftp.cn.debian.org/debian/ testing main 24 | 25 | 再执行 apt-get update 即可使用 LDE 的 deb 包安装。 26 | 27 | 如果在命令行下安装, 28 | 安装后请执行 apt-get -f install 修复依赖。 29 | (推荐使用 GDebi 软件包安装程序来安装,可自动安装依赖) 30 | 31 | 32 | 33 | 安装详细说明请看下文 “五、安装方法” 34 | 35 | 36 | 37 | 当然,更好的方法是从源码编译安装 38 | 39 | 这里是编译说明:https://github.com/xuzhuoyi/LDE/wiki 40 | 41 | 零、LDE介绍: 42 | 43 | 44 | LDE,全名为 L Desktop Environment, 45 | 可在 i386/amd64/mipsel(龙芯)/armv5/armv7 等平台上执行。 46 | 最近,LDE正在准备向 iOS/Android 移动平台进行移植。 47 | LDE 项目旨在向用户提供一个低硬件门槛的桌面环境, 48 | 在轻量化的前提下,尽可能实现更强大的功能。 49 | LDE 以 Qt 5 作为图形界面库,有强大的移植性, 50 | 在 mipsel 以外的平台也可编译运行。 51 | LDE 提供了一些配套的可独立运行元件。 52 | LDE 使用 Openbox 为其默认视窗管理器, 53 | 并且希望能够提供一个建立在可独立的套件上。 54 | 55 | 56 | LDE 元件 57 | 58 | 59 | 60 | LCalc,计算器 61 | 62 | LooFM,文件管理器 63 | 64 | Looplorer, 是一个快速的网页浏览器,以 webkit 为内核, 65 | 有可保存书签功能,提供用户书签文件用于修改。 66 | 67 | 68 | LooFTP, FTP 客户端。 69 | 70 | 71 | Razorqt-Panel, 桌面面板, 72 | 移植于 Razorqt 项目(LXQT 项目的前身)。 73 | 它可以从 *.desktop 档案自动制造出选单, 74 | 也有 GUI 的偏好设定对话框(因此不需要手动修改设定档)。 75 | 这个元件也提供拥有自动完成选单的“执行”对话框。 76 | 77 | 78 | Initlde,会话管理器,当使用者启动会话时, 79 | 建立桌面环境并自动启动程序的工具。 80 | 81 | 82 | Looget, 可指定存储位置,带进度条的下载工具。 83 | 84 | 85 | Obconf, 界面管理器,可以通过此软件简单的切换窗口风格、 86 | 图标以及程序使用的字型。 87 | 88 | 89 | Lootepad, 文字编辑器,基于 Qt 的文本编辑器。可快速启动, 90 | 流畅操作。最新的版本支持恢复功能。 91 | 92 | 93 | Loogout, 注销管理器。 94 | 95 | 96 | Openbox, 窗口管理器。 97 | 98 | 99 | LRun,程序快速启动器。 100 | 101 | 102 | Ldeabout,内嵌于 LDE 软件中,显示 LDE 版本、 103 | 作者等信息的模块。 104 | 105 | 106 | 107 | 一、开发初衷和适用人群: 108 | 109 | 110 | 在图形计算中,一个桌面环境(Desktop environment, 111 | 有时称为桌面管理器)为计算机提供一个图形用户界面(GUI)。 112 | 这个名称来自桌面比拟,对应于早期的文字命令行界面(CLI)。 113 | 一个典型的桌面环境提供图标,视窗,工具栏,文件夹, 114 | 壁纸以及像拖放这样的能力。整体而言, 115 | 桌面环境在设计和功能上的特性, 116 | 赋予了它与众不同的外观和感觉。 117 | 这个桌面环境, 118 | 可以在龙芯上使用。龙芯(英语:Loongson,旧称GODSON[1]) 119 | 是由中国科学院计算技术研究所所设计的通用中央处理器, 120 | 采用MIPS精简指令集架构。因为它的 mipsel 架构, 121 | 支持的软件比较少。而且现阶段龙芯的性能较弱, 122 | 流行的 KDE、GNOME 桌面环境无法在龙芯上运行, 123 | 于是就开始逐步开发和完善一个新的桌面环境。 124 | 现在已经做到了以下部分: 125 | 126 | 127 | 1,以 Openbox 为默认窗口管理器。可自行修改配置文件更换窗口 128 | 管理器。 129 | 130 | 131 | 2,整体风格接近 Lxde,由窗口管理器与面板组成。 132 | 133 | 134 | 3,支持 Oconf 修改窗口风格、主题。 135 | 136 | 137 | 4,支持所有 Openbox 的窗体操作。 138 | 139 | 140 | 5,有独立的桌面环境引导和注销程序。 141 | 142 | 143 | 6,整合 Looplorer, Lootepad, LooFTP, Looget 等实用程序, 144 | 可在终端中直接打程序名启动,也可在菜单中启动。 145 | 146 | 147 | 148 | 适用人群: 149 | 150 | 151 | 1,使用 MIPSEL 架构的设备,建议 Loongson 2F 及以上 152 | (包括 2F/3A/3B 等)。 153 | 154 | 155 | 2,好奇心强,希望更换新桌面环境,体验新程序。 156 | 157 | 158 | 3,对 Linux 有一定了解,懂得如何切换桌面环境。 159 | 160 | 161 | 4,愿意报告 bug,为龙芯社区做贡献。 162 | 163 | 关于报告 bug 及帮助开发,可以前往项目主页: 164 | 165 | https://github.com/xuzhuoyi/LDE 166 | 167 | 这是一个 git 仓库,你也可以使用 168 | 169 | git clone https://github.com/xuzhuoyi/LDE 170 | 171 | 将源代码下载到本地,编译说明请见 LDE Wiki 172 | 173 | https://github.com/xuzhuoyi/LDE/wiki 174 | 175 | 176 | 177 | 178 | 二、版本变更记录 179 | 180 | 181 | 由于之后版本变化过于频繁,这里只列出 0.9 以前版本变更记录 182 | 183 | 详细版本记录可以去: 184 | 185 | https://github.com/xuzhuoyi/LDE/commits/master 查看 186 | 187 | 0.9.0: 188 | 189 | 1、增加 LooFM 文件管理器。 190 | 191 | 2、重写 Looplorer UI,WebView 与应用分离,增加稳定性。 192 | 193 | 0.5.0: 194 | 195 | 1、修改 InitLDE 源文件,修复部分电脑的启动错误。 196 | 197 | 0.1.0: 198 | 199 | 1、对 amd64 平台进行优化。 200 | 201 | 0.0.7: 202 | 203 | 204 | 1、增加 LRun 软件快速启动器。 205 | 206 | 207 | 2、修改 .desktop 配置文件,优化菜单显示。 208 | 209 | 0.0.6: 210 | 211 | 212 | 1、出于稳定性的考虑,将面板更换为 razorqt-panel。 213 | 214 | 215 | 2、向关键程序添加 ldeabout 关于模块。 216 | 217 | 218 | 219 | 0.0.5: 220 | 221 | 222 | 1、优化依赖关系,去除非必需的依赖关系。 223 | 224 | 225 | 2、加入 Looplorer, Lootepad, LooFTP, Looget 等应用。 226 | 227 | 228 | 3、加入 Loogout 注销管理器。 229 | 230 | 231 | 4、加入 Initlde 桌面环境引导程序。 232 | 233 | 234 | 5、移植 Lxqt-panel 作为 LDE 的面板程序。 235 | 236 | 237 | 238 | 0.0.5 之前为内部版本 239 | 240 | 241 | 242 | 三、软件特色: 243 | 244 | 245 | (......待补充......) 246 | 247 | 248 | 249 | 四、主界面展示: 250 | 251 | 252 | 253 | 254 | 五、安装方法: 255 | 256 | 257 | Debian 用户安装前请注意,LDE 的一个依赖只在 Debian Testing 源提供。 258 | 安装前可临时调整到 Testing 源,安装好后可以调回 Stable 源 259 | ,不会影响其他软件包的安装升级。 260 | 如果知道如何换成 261 | Testing 源,可以以自己的方法更换。 262 | 这里使用命令行文本编辑器 nano 作为示范: 263 | 264 | 265 | 安装有两种方法,图形安装和命令行安装。建议使用图形安装。 266 | 267 | 268 | 1.图形安装(推荐): 269 | 270 | 271 | 图形安装需要下载一个 GDebi 软件包安装程序。 272 | 273 | 274 | 1)输入 su 获得 root 权限。 275 | 276 | 277 | 2)终端下执行 apt-get install gdebi 。 278 | 279 | 280 | 开始更改源: 281 | 282 | 283 | 3)输入 nano /etc/apt/sources.list 284 | 285 | 286 | 4)按下键使光标移到最后一行直接输入 287 | deb http://ftp.cn.debian.org/debian/ testing main 288 | 289 | 290 | 5)按 Ctrl + X 退出,再按 Y 确认,最后按回车。 291 | 292 | 293 | 6)使用 apt-get update 更新软件包列表。 294 | 295 | 296 | 注意:换到 Testing 源期间,最好不要使用 297 | apt-get dist-upgrade 命令升级。这样会更新到 Debian 8, 298 | Wi-Fi 将会失效。 299 | 300 | 301 | 7)打开图形界面的文件管理器,右键点击下载好的deb包, 302 | 选择“GDebi 软件包安装程序”,再在弹出的窗口中点击 303 | “安装软件包”,输入密码后会自动安装。 304 | 图形安装的优点是可以更方便地检查软件包依赖关系, 305 | 并且自动满足依赖关系,清楚地查看不满足的的依赖包和 306 | 错误信息。 307 | 308 | 309 | 310 | 2.命令行安装: 311 | 312 | 修改源的操作与图形安装一样,可以参考图形安装3-6步。 313 | 314 | 315 | 安装: 316 | 317 | 318 | 代码: 319 | 320 | cd <你的下载目录> 321 | 322 | su 323 | 324 | dpkg -i lde_0.0.7-1_mipsel.deb 325 | 326 | apt-get -f install 327 | 328 | 329 | 330 | 注意:完全安装完毕后可以删除新加的源。和刚才一样, 331 | 使用 nano 打开 sources.list,在刚添加的那行最开头加#。 332 | Ctrl + X,Y,回车。保存并退出。 333 | 334 | 335 | 336 | 六、配置文件 337 | 338 | 339 | 本版本的配置文件保存在程序内部,暂时不提供修改。 340 | 在后续的版本中,将提供配置文件的修改功能和 341 | 一个图形化的配置工具。现在,您也可以通过更改 342 | Openbox 的配置文件来更改窗口管理器和 343 | 面板设置。 344 | 345 | 346 | Openbox 配置文件位置: 347 | /home/xuzhuoyi/.config/openbox 348 | 349 | 350 | 351 | 七、进入DE环境 352 | 做完上面几步后,注销,在“登陆”界面, 353 | 选“LDE”登陆,即可进入。 354 | 第一次启动可能速度稍慢, 355 | 一般第二次启动即可正常使用。 356 | 357 | 358 | LDE 提供了专门开发的注销管理器 Loogout。 359 | 点击菜单中的系统工具中的注销即可打开。 360 | 由于新版 Debian 的权限限制, 361 | 非管理员用户没有关机和重启权限。 362 | 可注销后在登录界面关机。 363 | 也可按 Ctrl + Alt + F1 进入 tty 命令行或使用虚拟终端, 364 | 输入 su 后输入密码获取权限,再执行 reboot (重启) 365 | 或 init 0 (关机)。 366 | 367 | 368 | 369 | 注意:部分电脑在 LDE 下菜单中最低下的注销按钮有时会失效, 370 | 请点击系统工具中的注销来使用 LDE 自带的注销程序 Loogout。 371 | 372 | 373 | 374 | 八、使用方法 375 | 376 | 377 | (......待补充......) 378 | 379 | 380 | 381 | 九,其他 382 | 本DE可以直接在其他桌面环境中启动, 383 | 支持同时重叠两个桌面环境。 384 | 385 | 启动命令是: 386 | initlde 387 | 388 | 389 | 390 | 其他附带的程序也可以很好地单独运行, 391 | 命令行或是菜单中的运行中输入: 392 | 393 | 394 | looplorer 轻量级网页浏览器 395 | 396 | lootepad 类似 gedit 的文本编辑器 397 | 398 | looftp 多信息 FTP 客户端 399 | 400 | looget 可指定存储位置的下载工具 401 | 402 | loogout 注销管理器 403 | 404 | 405 | 406 | 407 | 作者:LDE Team --------------------------------------------------------------------------------