├── .gitignore ├── .tx └── config ├── LICENSE ├── README.md ├── debian ├── changelog ├── compat ├── control ├── copyright ├── rules └── source │ └── format ├── deepin-dialog ├── data │ └── com.deepin.dialog.service ├── deepin-dialog.pro ├── main.cpp ├── qml.qrc ├── qml │ └── main.qml ├── qmlloader.cpp └── qmlloader.h ├── deepin_widgets.pro ├── examples ├── MainWindow.qml ├── SingleLineTip.qml ├── testDBaseExpand.qml ├── testDBaseLine.qml ├── testDButtonFrame.qml ├── testDCenterLine.qml ├── testDCheckBox.qml ├── testDComboBox.qml ├── testDDownArrowHeader.qml ├── testDFileChooseDialog.qml ├── testDImageCheckBox.qml ├── testDLabel.qml ├── testDOverrideWindow.qml ├── testDRadio.qml ├── testDSearchInput.qml ├── testDSingleLineTip.qml ├── testDSliderEnhanced.qml ├── testDSpinner.qml ├── testDSwitchButton.qml ├── testDSwitchButtonHeader.qml ├── testDTextButton.qml ├── testDTextInput.qml ├── testDWidgetStyleController.qml ├── testDWidgetStyleControllerReceiver.qml ├── testDWindow.qml ├── testDWindowFrame.qml ├── testDssAdd_DeleteButton.qml ├── testDssAdd_DeleteCheckButton.qml └── testDssMultiButton.qml ├── locale ├── am.po ├── ar.po ├── ast.po ├── bg.po ├── cs.po ├── da.po ├── de.po ├── de_DE.po ├── deepin-qml-widgets.pot ├── deepin-qml-widgets.ts ├── el.po ├── el_GR.po ├── en_AU.po ├── es.po ├── es_AR.po ├── fr.po ├── gl.po ├── gl_ES.po ├── he.po ├── hi.po ├── hr.po ├── hu.po ├── id.po ├── id_ID.po ├── it.po ├── locale_config.ini ├── nb.po ├── nl.po ├── pl.po ├── pl_PL.po ├── pt.po ├── pt_BR.po ├── ro.po ├── ru.po ├── sk.po ├── sv_SE.po ├── tr.po ├── zh_CN.po └── zh_TW.po ├── qml-gettext-plugin ├── .gitignore ├── SubItem.qml ├── deepinlocale.h ├── plugin.h ├── plugins.qmltypes ├── qml-gettext-plugin.pro ├── qmldir └── test.qml ├── rebuild.sh ├── style-resource ├── StyleBlack │ ├── images │ │ ├── add_hover.png │ │ ├── add_normal.png │ │ ├── add_press.png │ │ ├── arrow_down_hover.png │ │ ├── arrow_down_normal.png │ │ ├── arrow_down_press.png │ │ ├── arrow_down_white.png │ │ ├── arrow_left_hover.png │ │ ├── arrow_left_normal.png │ │ ├── arrow_left_press.png │ │ ├── arrow_left_white.png │ │ ├── arrow_right_hover.png │ │ ├── arrow_right_normal.png │ │ ├── arrow_right_press.png │ │ ├── arrow_right_white.png │ │ ├── arrow_up_hover.png │ │ ├── arrow_up_normal.png │ │ ├── arrow_up_press.png │ │ ├── arrow_up_white.png │ │ ├── button_center_normal.png │ │ ├── button_center_press.png │ │ ├── button_left_normal.png │ │ ├── button_left_press.png │ │ ├── button_right_normal.png │ │ ├── button_right_press.png │ │ ├── checkbox_checked.png │ │ ├── checkbox_checked_hover.png │ │ ├── checkbox_checked_insensitive.png │ │ ├── checkbox_unchecked.png │ │ ├── checkbox_unchecked_hover.png │ │ ├── checkbox_unchecked_insensitive.png │ │ ├── clear_content_hover.png │ │ ├── clear_content_normal.png │ │ ├── clear_content_press.png │ │ ├── clear_white.png │ │ ├── delete_hover.png │ │ ├── delete_multi_hover.png │ │ ├── delete_multi_normal.png │ │ ├── delete_multi_press.png │ │ ├── delete_normal.png │ │ ├── delete_press.png │ │ ├── file_24.png │ │ ├── folder_24.png │ │ ├── folder_up_24.png │ │ ├── icon_view_hover.png │ │ ├── icon_view_normal.png │ │ ├── icon_view_press.png │ │ ├── list_view_hover.png │ │ ├── list_view_normal.png │ │ ├── list_view_press.png │ │ ├── loadfile_hover.png │ │ ├── loadfile_normal.png │ │ ├── loadfile_press.png │ │ ├── multiselect_active_normal.png │ │ ├── multiselect_inactive_hover.png │ │ ├── multiselect_inactive_normal.png │ │ ├── password_hide_hover.png │ │ ├── password_hide_normal.png │ │ ├── password_hide_press.png │ │ ├── password_show_hover.png │ │ ├── password_show_normal.png │ │ ├── password_show_press.png │ │ ├── radio_selected.png │ │ ├── radio_selected_hover.png │ │ ├── radio_selected_insensitive.png │ │ ├── radio_unselected.png │ │ ├── radio_unselected_hover.png │ │ ├── radio_unselected_insensitive.png │ │ ├── restore_hover.png │ │ ├── restore_normal.png │ │ ├── restore_press.png │ │ ├── search_hover.png │ │ ├── search_normal.png │ │ ├── search_press.png │ │ ├── slider_balance.png │ │ ├── slider_handle.svg │ │ ├── spinner_decrease.png │ │ ├── spinner_decrease_hover.png │ │ ├── spinner_decrease_normal.png │ │ ├── spinner_decrease_press.png │ │ ├── spinner_increase.png │ │ ├── spinner_increase_hover.png │ │ ├── spinner_increase_normal.png │ │ ├── spinner_increase_press.png │ │ ├── tick_hover.png │ │ ├── tick_insensitive.png │ │ ├── tick_normal.png │ │ ├── transparent_button_left_hover.png │ │ ├── transparent_button_left_normal.png │ │ ├── transparent_button_left_press.png │ │ ├── transparent_button_middle_hover.png │ │ ├── transparent_button_middle_normal.png │ │ ├── transparent_button_middle_press.png │ │ ├── transparent_button_right_hover.png │ │ ├── transparent_button_right_normal.png │ │ ├── transparent_button_right_press.png │ │ ├── up_hover.png │ │ ├── up_normal.png │ │ ├── up_press.png │ │ ├── window_close_hover.png │ │ ├── window_close_normal.png │ │ ├── window_close_press.png │ │ ├── window_max_hover.png │ │ ├── window_max_normal.png │ │ ├── window_max_press.png │ │ ├── window_min_hover.png │ │ ├── window_min_normal.png │ │ ├── window_min_press.png │ │ ├── window_option_hover.png │ │ ├── window_option_normal.png │ │ ├── window_option_press.png │ │ ├── window_unmax_hover.png │ │ ├── window_unmax_normal.png │ │ └── window_unmax_press.png │ └── style.json └── StyleWhite │ ├── images │ ├── arrow_down_hover.png │ ├── arrow_down_normal.png │ ├── arrow_down_press.png │ ├── arrow_left_hover.png │ ├── arrow_left_normal.png │ ├── arrow_left_press.png │ ├── arrow_right_hover.png │ ├── arrow_right_normal.png │ ├── arrow_right_press.png │ ├── arrow_up_hover.png │ ├── arrow_up_normal.png │ ├── arrow_up_press.png │ ├── checkbox_checked.png │ ├── checkbox_checked_hover.png │ ├── checkbox_checked_insensitive.png │ ├── checkbox_unchecked.png │ ├── checkbox_unchecked_hover.png │ ├── checkbox_unchecked_insensitive.png │ ├── clear_content_hover.png │ ├── clear_content_normal.png │ ├── clear_content_press.png │ ├── delete_multi_hover.png │ ├── delete_multi_normal.png │ ├── delete_multi_press.png │ ├── multiselect_active_normal.png │ ├── multiselect_inactive_hover.png │ ├── multiselect_inactive_normal.png │ ├── password_hide_hover.png │ ├── password_hide_normal.png │ ├── password_hide_press.png │ ├── password_show_hover.png │ ├── password_show_normal.png │ ├── password_show_press.png │ ├── radio_selected.png │ ├── radio_selected_hover.png │ ├── radio_selected_insensitive.png │ ├── radio_unselected.png │ ├── radio_unselected_hover.png │ ├── radio_unselected_insensitive.png │ ├── restore_hover.png │ ├── restore_normal.png │ ├── restore_press.png │ ├── search_hover.png │ ├── search_normal.png │ ├── search_press.png │ ├── spinner_decrease_hover.png │ ├── spinner_decrease_normal.png │ ├── spinner_decrease_press.png │ ├── spinner_increase_hover.png │ ├── spinner_increase_normal.png │ ├── spinner_increase_press.png │ ├── tick_hover.png │ ├── tick_insensitive.png │ ├── tick_normal.png │ ├── window_close_hover.png │ ├── window_close_normal.png │ ├── window_close_press.png │ ├── window_min_hover.png │ ├── window_min_normal.png │ ├── window_min_press.png │ ├── window_option_hover.png │ ├── window_option_normal.png │ ├── window_option_press.png │ ├── window_unmax_hover.png │ ├── window_unmax_normal.png │ └── window_unmax_press.png │ └── style.json └── widgets ├── DArrowButton.qml ├── DBaseExpand.qml ├── DBaseLine.qml ├── DButtonFrame.qml ├── DCenterLine.qml ├── DCheckBox.qml ├── DColumn.qml ├── DComboBox.qml ├── DComboBoxSimple.qml ├── DConstants.qml ├── DDeleteLine.qml ├── DDialog.qml ├── DDialogBox.qml ├── DDownArrowButton.qml ├── DDownArrowHeader.qml ├── DDragableArea.qml ├── DEditComboBox.qml ├── DEditComboBoxSimple.qml ├── DFileChooseDialog.qml ├── DFileChooseInput.qml ├── DFlickable.qml ├── DGridView.qml ├── DGroupBox.qml ├── DImageButton.qml ├── DImageCheckBox.qml ├── DImageCheckButton.qml ├── DInputActions.qml ├── DInputDialog.qml ├── DLabel.qml ├── DLinkText.qml ├── DListModelComponent.qml ├── DListView.qml ├── DMenu.qml ├── DMenuItem.qml ├── DMultipleSelectView.qml ├── DOpacityImageButton.qml ├── DPalette.qml ├── DPopupRoundItem.qml ├── DPopupWindow.qml ├── DPreferenceSectionIndicator.qml ├── DPreferenceSectionList.qml ├── DPreferenceView.qml ├── DPreferenceWindow.qml ├── DRadio.qml ├── DRadioButton.qml ├── DRadioButtonDelegate.qml ├── DRadioButtonHighlight.qml ├── DRectWithCorner.qml ├── DRectangle.qml ├── DRectangularGlow.qml ├── DRectangularRing.qml ├── DRightArrowHeader.qml ├── DRoundImage.qml ├── DRoundItem.qml ├── DScrollBar.qml ├── DScrollWidget.qml ├── DSearchInput.qml ├── DSelectView.qml ├── DSelectViewDelegate.qml ├── DSeparatorHorizontal.qml ├── DSeparatorVertical.qml ├── DShortcutInput.qml ├── DSlider.qml ├── DSliderEnhanced.qml ├── DSliderRect.qml ├── DSpinner.qml ├── DStatusImageButton.qml ├── DSwitchButton.qml ├── DSwitchButtonHeader.qml ├── DTextAction.qml ├── DTextButton.qml ├── DTextInput.qml ├── DTitleCloseButton.qml ├── DTitleMaxUnmaxButton.qml ├── DTitleMinimizeButton.qml ├── DTitleOptionButton.qml ├── DTransparentButton.qml ├── DWindowFrame.qml ├── DssAddButton.qml ├── DssAddCheckButton.qml ├── DssDeleteButton.qml ├── DssDeleteCheckButton.qml ├── DssH1.qml ├── DssH2.qml ├── DssH3.qml ├── DssH4.qml ├── DssH5.qml ├── DssMultiAddCheckButton.qml ├── DssMultiDeleteButton.qml ├── DssTitle.qml ├── plugins.qmltypes ├── plugins ├── dfilechoosedialogaide.cpp ├── dfilechoosedialogaide.h ├── dfiledialog.cpp ├── dfiledialog.h ├── dicon.cpp ├── dicon.h ├── dsinglelinetip.cpp ├── dsinglelinetip.h ├── dwidgetstylecontroller.cpp ├── dwidgetstylecontroller.h ├── dwindow.cpp ├── dwindow.h ├── keysutils.cpp ├── keysutils.h ├── plugin.cpp ├── plugin.h ├── previewwindow.cpp └── previewwindow.h ├── qmldir └── widgets.pro /.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | nohup.out 3 | .#* 4 | *.~ 5 | build* 6 | dist 7 | dtk.egg-info 8 | *.po~ 9 | *.swp 10 | /move.py 11 | *.so 12 | Makefile 13 | *.user 14 | *.mo 15 | -------------------------------------------------------------------------------- /.tx/config: -------------------------------------------------------------------------------- 1 | [main] 2 | host = https://www.transifex.com 3 | minimum_perc = 80 4 | mode = developer 5 | 6 | [deepin-qml-widgets.deepin-qml-widgets] 7 | file_filter = locale/.po 8 | source_lang = en 9 | source_file = locale/deepin-qml-widgets.pot 10 | type = PO 11 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Deepin QML Widgets 2 | 3 | **Description**: This project extends QML by providing widgets that is used by Deepin applications. 4 | 5 | 6 | ## Dependencies 7 | 8 | ### Build dependencies 9 | 10 | - Qt5.3 or above 11 | - Qt modules 12 | - gui 13 | - widgets 14 | - qml 15 | - quick 16 | - webkit 17 | - x11extras 18 | - pkgconfig 19 | - xcb 20 | - xcomposite 21 | - xcb-damage 22 | - gtk+-2.0 23 | - deepin-gettext-tools 24 | 25 | ### Runtime dependencies 26 | 27 | - DBus 28 | 29 | ## Installation 30 | 31 | ``` 32 | mkdir build; cd build 33 | qmake .. 34 | make; make install 35 | ``` 36 | 37 | ## Usage 38 | 39 | **Example** 40 | ```QML 41 | import QtQuick 2.0 42 | import Deepin.Widgets 1.0 43 | 44 | DDialog { 45 | width: 300 46 | height: 300 47 | title: "Deepin QML Widgets" 48 | 49 | DssH2 { 50 | text: "Hello World!" 51 | anchors.centerIn: parent 52 | } 53 | } 54 | ``` 55 | To see all the widgets that are provided, please refer to [qmldir](widgets/qmldir) and [examples](examples); 56 | 57 | ## Getting help 58 | 59 | Any usage issues can ask for help via 60 | 61 | * [Gitter](https://gitter.im/orgs/linuxdeepin/rooms) 62 | * [IRC channel](https://webchat.freenode.net/?channels=deepin) 63 | * [Forum](https://bbs.deepin.org) 64 | * [WiKi](http://wiki.deepin.org/) 65 | 66 | ## Getting involved 67 | 68 | We encourage you to report issues and contribute changes 69 | 70 | * [Contribution guide for users](http://wiki.deepin.org/index.php?title=Contribution_Guidelines_for_Users) 71 | * [Contribution guide for developers](http://wiki.deepin.org/index.php?title=Contribution_Guidelines_for_Developers). 72 | 73 | ## License 74 | 75 | Deepin QML Widgets is licensed under [GPLv3](LICENSE). 76 | -------------------------------------------------------------------------------- /debian/changelog: -------------------------------------------------------------------------------- 1 | deepin-qml-widgets (2.3.2-1) stable; urgency=low 2 | 3 | * Autobuild Tag 2.3.2 4 | 5 | -- TagBuilder Sat, 19 Dec 2015 17:00:26 +0000 6 | 7 | deepin-qml-widgets (2.2.99-1) stable; urgency=low 8 | 9 | * Autobuild Tag 2.2.99 10 | 11 | -- TagBuilder Sat, 19 Dec 2015 17:00:00 +0000 12 | 13 | deepin-qml-widgets (2.3.1-1) stable; urgency=low 14 | 15 | * Autobuild Tag 2.3.1 16 | 17 | -- TagBuilder Sat, 19 Dec 2015 16:57:18 +0000 18 | 19 | deepin-qml-widgets (2.3.0-2) stable; urgency=low 20 | 21 | * Rebuild Version 2.3.0 22 | 23 | -- TagBuilder Sat, 19 Dec 2015 16:23:26 +0000 24 | 25 | deepin-qml-widgets (2.3.0-1) stable; urgency=low 26 | 27 | * Autobuild Tag 2.3.0 28 | 29 | -- TagBuilder Wed, 01 Jul 2015 15:17:30 +0000 30 | 31 | deepin-qml-widgets (2014.2.3-1) stable; urgency=low 32 | 33 | * Autobuild Tag 2014.2.3 34 | 35 | -- TagBuilder Wed, 01 Jul 2015 15:13:45 +0000 36 | 37 | deepin-qml-widgets (0.0.0) unstable; urgency=medium 38 | 39 | * Unstable release. 40 | 41 | -- 宋文武 Wed, 12 Nov 2014 15:35:15 +0800 42 | -------------------------------------------------------------------------------- /debian/compat: -------------------------------------------------------------------------------- 1 | 9 2 | -------------------------------------------------------------------------------- /debian/control: -------------------------------------------------------------------------------- 1 | Source: deepin-qml-widgets 2 | Section: devel 3 | Priority: extra 4 | Maintainer: Deepin Sysdev 5 | Build-Depends: debhelper (>= 9), 6 | qt5-qmake, 7 | qt5-default, 8 | qtdeclarative5-dev, 9 | libqt5webkit5-dev, 10 | libqt5x11extras5-dev, 11 | libqt5opengl5-dev, 12 | pkg-config, 13 | libxcomposite-dev, 14 | libxcb-damage0-dev, 15 | libgtk2.0-dev, 16 | deepin-gettext-tools, 17 | libdtkwidget-dev 18 | Standards-Version: 3.9.5 19 | Homepage: http://www.deepin.com 20 | 21 | Package: deepin-qml-widgets 22 | Architecture: any 23 | Depends: ${shlibs:Depends}, ${misc:Depends}, 24 | qml-module-qtquick2, 25 | qml-module-qtquick-controls, 26 | qml-module-qtgraphicaleffects, 27 | qml-module-qt-labs-folderlistmodel, 28 | Description: Deepin QML widgets 29 | Deepin QML widgets 30 | -------------------------------------------------------------------------------- /debian/copyright: -------------------------------------------------------------------------------- 1 | Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ 2 | Upstream-Name: deepin-qml-widgets 3 | Source: https://gitcafe.com/Deepin/deepin-qml-widget.git 4 | 5 | Files: * 6 | Copyright: 2013-2014 Ye Kaisheng 7 | 8 | Files: debian/* 9 | Copyright: 2014 Deepin Sysdev 10 | License: GPL-3+ 11 | This package is free software; you can redistribute it and/or modify 12 | it under the terms of the GNU General Public License as published by 13 | the Free Software Foundation; either version 3 of the License, or 14 | (at your option) any later version. 15 | . 16 | This package 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 19 | GNU General Public License for more details. 20 | . 21 | You should have received a copy of the GNU General Public License 22 | along with this program. If not, see 23 | . 24 | On Debian systems, the complete text of the GNU General 25 | Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". 26 | -------------------------------------------------------------------------------- /debian/rules: -------------------------------------------------------------------------------- 1 | #!/usr/bin/make -f 2 | 3 | %: 4 | dh $@ 5 | override_dh_auto_build: 6 | deepin-generate-mo locale/locale_config.ini 7 | qmake && make 8 | 9 | override_dh_auto_install: 10 | dh_auto_install 11 | make INSTALL_ROOT=debian/deepin-qml-widgets install 12 | mkdir -p debian/deepin-qml-widgets/usr/share 13 | cp -r locale/mo debian/deepin-qml-widgets/usr/share/locale 14 | -------------------------------------------------------------------------------- /debian/source/format: -------------------------------------------------------------------------------- 1 | 3.0 (native) 2 | -------------------------------------------------------------------------------- /deepin-dialog/data/com.deepin.dialog.service: -------------------------------------------------------------------------------- 1 | [D-BUS Service] 2 | Name=com.deepin.dialog 3 | Exec=/usr/bin/deepin-dialog 4 | -------------------------------------------------------------------------------- /deepin-dialog/deepin-dialog.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = app 2 | 3 | QT += quick qml gui core dbus widgets 4 | 5 | SOURCES += main.cpp \ 6 | qmlloader.cpp 7 | 8 | HEADERS += \ 9 | qmlloader.h 10 | 11 | RESOURCES += \ 12 | qml.qrc \ 13 | 14 | #VARIABLES 15 | isEmpty(PREFIX) { 16 | PREFIX = /usr 17 | } 18 | BINDIR = $$PREFIX/bin 19 | 20 | target.path =$$BINDIR 21 | 22 | service.files += data/com.deepin.dialog.service 23 | service.path = /usr/share/dbus-1/services/ 24 | 25 | INSTALLS += target service 26 | -------------------------------------------------------------------------------- /deepin-dialog/main.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | 11 | #include "qmlloader.h" 12 | 13 | #include 14 | #include 15 | #include 16 | #include 17 | 18 | int main(int argc, char* argv[]) 19 | { 20 | QApplication::setAttribute(Qt::AA_X11InitThreads, true); 21 | QApplication app(argc, argv); 22 | if(QDBusConnection::sessionBus().registerService("com.deepin.dialog")){ 23 | 24 | QmlLoader* qmlLoader = new QmlLoader(); 25 | qmlLoader->rootContext->setContextProperty("mainObject", qmlLoader); 26 | qmlLoader->load(QUrl("qrc:///qml/main.qml")); 27 | QObject::connect(qmlLoader->engine, SIGNAL(quit()), QCoreApplication::instance(), SLOT(quit())); 28 | 29 | return app.exec(); 30 | } 31 | else{ 32 | qWarning() << "is running..."; 33 | return 0; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /deepin-dialog/qml.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | qml/main.qml 4 | 5 | 6 | -------------------------------------------------------------------------------- /deepin-dialog/qmlloader.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | #ifndef QMLLOADER_H 11 | #define QMLLOADER_H 12 | 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | 19 | class QmlLoader; 20 | class DBusProxy; 21 | 22 | class QmlLoader: public QObject{ 23 | Q_OBJECT 24 | 25 | public: 26 | QmlLoader(QObject* parent = 0); 27 | ~QmlLoader(); 28 | 29 | QQmlEngine* engine; 30 | QQmlComponent* component; 31 | QQmlContext * rootContext; 32 | QObject * rootObject; 33 | 34 | void load(QUrl url); 35 | 36 | Q_INVOKABLE void actionInvoked(int appId, QString actionId); 37 | private: 38 | DBusProxy * m_dbus_proxy; 39 | }; 40 | 41 | class DBusProxy : public QDBusAbstractAdaptor { 42 | Q_OBJECT 43 | Q_CLASSINFO("D-Bus Interface", "com.deepin.dialog") 44 | 45 | public: 46 | DBusProxy(QmlLoader* parent); 47 | ~DBusProxy(); 48 | 49 | Q_SLOT int ShowUninstall(QString icon, QString message, QString warning, QStringList actions); 50 | 51 | Q_SIGNAL void ActionInvoked(int appId, QString actionId); 52 | 53 | private: 54 | QmlLoader* m_parent; 55 | }; 56 | 57 | #endif // QMLLOADER_H 58 | -------------------------------------------------------------------------------- /deepin_widgets.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = subdirs 2 | 3 | SUBDIRS += \ 4 | widgets \ 5 | deepin-dialog \ 6 | qml-gettext-plugin 7 | -------------------------------------------------------------------------------- /examples/MainWindow.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import QtQuick.Window 2.1 12 | import Deepin.Widgets 1.0 13 | 14 | DWindow { 15 | id: rootWindow 16 | width: 800 17 | height: 500 18 | color: "transparent" 19 | flags: Qt.FramelessWindowHint 20 | 21 | DWindowFrame { 22 | anchors.fill: parent 23 | 24 | Item { 25 | id: titleArea 26 | width: parent.width 27 | height: 40 28 | 29 | DDragableArea{ 30 | anchors.fill: parent 31 | window: rootWindow 32 | } 33 | 34 | Row { 35 | anchors.right: parent.right 36 | DTitleOptionButton{} 37 | DTitleMinimizeButton{} 38 | DTitleMaxUnmaxButton{} 39 | DTitleCloseButton{ 40 | onClicked: { 41 | Qt.quit() 42 | } 43 | } 44 | } 45 | } 46 | 47 | Column { 48 | width: parent.width - 10 49 | anchors.top: titleArea.bottom 50 | anchors.topMargin: 5 51 | anchors.left: parent.left 52 | anchors.leftMargin: 5 53 | 54 | DArrowButton{} 55 | DCheckBox{ 56 | text: "CheckBox" 57 | } 58 | DRadio{ 59 | text: "Radio" 60 | } 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /examples/SingleLineTip.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | DSingleLineTip { 14 | width: 100 15 | height: 40 16 | radius:2 17 | textColor:"#000000" 18 | backgroundColor:"#ffffff" 19 | arrowWidth: 6 20 | arrowHeight: 9 21 | arrowLeftMargin: 20 22 | destroyInterval: 200 23 | borderColor: "#000fff" 24 | fontPixelSize: 8 25 | x:100 26 | y:500 27 | 28 | property alias animationEnable: yAnimation.enabled 29 | 30 | Behavior on y { 31 | id:yAnimation 32 | SmoothedAnimation {duration: 300} 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /examples/testDBaseExpand.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | Rectangle { 14 | width: 200 15 | height: 400 16 | color: "yellow" 17 | 18 | DBaseExpand { 19 | id:testExpand 20 | width: parent.width * 4 / 5 21 | height: parent.height 22 | anchors.horizontalCenter: parent.horizontalCenter 23 | header.sourceComponent: DArrowButton { 24 | direction:directionDown 25 | onClicked:{ 26 | if (direction == directionDown){ 27 | direction = directionUp 28 | testExpand.expanded = true 29 | } 30 | else{ 31 | direction = directionDown 32 | testExpand.expanded = false 33 | } 34 | } 35 | } 36 | content.sourceComponent: Text { 37 | height: 200 38 | width: testExpand.width 39 | text: "Test text..." 40 | font.pixelSize: 15 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /examples/testDBaseLine.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | Rectangle { 14 | width: 500 15 | height: 500 16 | color: "yellow" 17 | 18 | DBaseLine { 19 | anchors.centerIn: parent 20 | leftLoader.sourceComponent: Rectangle { 21 | height: contentText.contentHeight 22 | width: contentText.contentWidth 23 | color: "red" 24 | Text { 25 | id:contentText 26 | text: "Left content can be anything" 27 | anchors.centerIn: parent 28 | verticalAlignment: Text.AlignVCenter 29 | horizontalAlignment: Text.AlignHCenter 30 | } 31 | } 32 | 33 | rightLoader.sourceComponent: Rectangle { 34 | height: contentText2.contentHeight 35 | width: contentText2.contentWidth 36 | color: "red" 37 | Text { 38 | id:contentText2 39 | text: "Right content can be anything" 40 | anchors.centerIn: parent 41 | verticalAlignment: Text.AlignVCenter 42 | horizontalAlignment: Text.AlignHCenter 43 | } 44 | } 45 | } 46 | } 47 | 48 | -------------------------------------------------------------------------------- /examples/testDButtonFrame.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | Rectangle { 14 | width: 500 15 | height: 300 16 | color: "gray" 17 | 18 | DButtonFrame { 19 | id: shittt 20 | anchors.centerIn: parent 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /examples/testDCenterLine.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | Rectangle { 14 | width: 500 15 | height: 500 16 | color: "yellow" 17 | 18 | DCenterLine { 19 | anchors.centerIn: parent 20 | title.text: "Title" 21 | title.verticalAlignment: Text.AlignVCenter 22 | content.sourceComponent: Rectangle { 23 | height: contentText.contentHeight 24 | width: contentText.contentWidth 25 | color: "red" 26 | Text { 27 | id:contentText 28 | text: "the content can be anything" 29 | anchors.centerIn: parent 30 | verticalAlignment: Text.AlignVCenter 31 | horizontalAlignment: Text.AlignHCenter 32 | } 33 | } 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /examples/testDCheckBox.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | Rectangle { 14 | color: "gray" 15 | height: 300 16 | width: 500 17 | 18 | DCheckBox { 19 | anchors.centerIn: parent 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /examples/testDDownArrowHeader.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | Rectangle { 14 | width: 500 15 | height: 500 16 | color: "yellow" 17 | 18 | DDownArrowHeader { 19 | text: "Header" 20 | hintText: "(The hint text)" 21 | anchors.centerIn: parent 22 | } 23 | } 24 | 25 | -------------------------------------------------------------------------------- /examples/testDFileChooseDialog.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | DFileChooseDialog { 14 | currentFolder: "/home" 15 | onSelectAction:{ 16 | print ("File name:",fileUrl) 17 | Qt.quit() 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /examples/testDImageCheckBox.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | Rectangle { 14 | color: "gray" 15 | width: 300 16 | height: 500 17 | 18 | DImageCheckBox { 19 | anchors.centerIn: parent 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /examples/testDLabel.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | Item { 14 | width: 400 15 | height: 300 16 | Column { 17 | DLabel { 18 | text: "test" 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /examples/testDOverrideWindow.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.0 11 | import Deepin.Widgets 1.0 12 | 13 | DOverrideWindow { 14 | color :Qt.rgba(1.0, 0.5, 0, 0.8) 15 | Text { 16 | text : "dwindow" 17 | } 18 | x:100 19 | y:100 20 | width:300 21 | height:300 22 | } 23 | -------------------------------------------------------------------------------- /examples/testDRadio.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | Rectangle { 14 | color: "gray" 15 | width: 300 16 | height: 500 17 | 18 | DRadio { 19 | anchors.centerIn: parent 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /examples/testDSearchInput.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | Rectangle { 14 | width: 500 15 | height: 300 16 | color: "gray" 17 | 18 | Column { 19 | anchors.centerIn: parent 20 | spacing: 10 21 | 22 | DSearchInput{ 23 | text: "ggggggggg" 24 | } 25 | DSearchInput{ 26 | text: "" 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /examples/testDSingleLineTip.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | Rectangle { 14 | id: mainRec 15 | width:200 16 | height: 500 17 | 18 | property var singleLineTipComponent:Qt.createComponent("SingleLineTip.qml"); 19 | property var singleLineTipPage; 20 | 21 | Component.onCompleted: { 22 | showTip(100,100,200,"This is a test...") 23 | } 24 | 25 | function showTip(x,y,width, toolTip) 26 | { 27 | singleLineTipPage = singleLineTipComponent.createObject(undefined); 28 | 29 | if (singleLineTipPage != undefined) 30 | { 31 | singleLineTipPage.x = x 32 | singleLineTipPage.y = y 33 | singleLineTipPage.width = width; 34 | singleLineTipPage.toolTip = toolTip 35 | singleLineTipPage.destroyInterval = 200 36 | singleLineTipPage.showTipAtTop() 37 | 38 | return 39 | } 40 | else 41 | { 42 | console.log("component createObject failed"); 43 | } 44 | } 45 | 46 | 47 | function destroysingleLineTip() 48 | { 49 | if (singleLineTipPage != undefined) 50 | singleLineTipPage.destroyTip() 51 | } 52 | 53 | function destroysingleLineTipImmediately(){ 54 | if (singleLineTipPage != undefined){ 55 | singleLineTipPage.destroyInterval = -1 56 | singleLineTipPage.destroyTip() 57 | } 58 | } 59 | 60 | } 61 | -------------------------------------------------------------------------------- /examples/testDSliderEnhanced.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.0 11 | import Deepin.Widgets 1.0 12 | 13 | Rectangle{ 14 | width: childrenRect.width 15 | height: childrenRect.height 16 | color: Qt.rgba(0, 0, 0, 0.7) 17 | DSliderEnhanced{ 18 | min:-100 19 | max:1000 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /examples/testDSpinner.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.0 11 | import Deepin.Widgets 1.0 12 | 13 | Rectangle { 14 | 15 | width: 500 16 | height: 300 17 | color: "gray" 18 | 19 | Column { 20 | spacing: 10 21 | anchors.centerIn: parent 22 | 23 | DSpinner { 24 | width:200 25 | min:-3 26 | initValue:3 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /examples/testDSwitchButton.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | Item { 14 | width: 300 15 | height: 300 16 | 17 | Timer { 18 | running: true 19 | repeat: true 20 | interval: 3000 21 | onTriggered: { print("triggered"); btn.enabled = !btn.enabled } 22 | } 23 | 24 | DSwitchButton { 25 | id: btn 26 | anchors.centerIn: parent 27 | } 28 | } -------------------------------------------------------------------------------- /examples/testDSwitchButtonHeader.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | Rectangle { 14 | width: 500 15 | height: 500 16 | color: "gray" 17 | 18 | DSwitchButtonHeader { 19 | anchors.centerIn: parent 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /examples/testDTextButton.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | Item { 14 | width: 400 15 | height: 300 16 | Column { 17 | DLabel { 18 | text: "test" 19 | } 20 | DTextButton{ 21 | text: "click" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /examples/testDTextInput.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | Rectangle { 14 | width: 500 15 | height: 300 16 | color: "gray" 17 | 18 | Column { 19 | spacing: 10 20 | DTextInput { 21 | text: "test1" 22 | } 23 | 24 | DTextInput { 25 | text: "fffffffffff" 26 | isPassword: true 27 | } 28 | 29 | DTextInput { 30 | text: "njewrenhwgre" 31 | showClearButton: true 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /examples/testDWidgetStyleControllerReceiver.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | Rectangle { 14 | id: mainRec 15 | width: 800 16 | height: 600 17 | color: dconstants.contentBgColor 18 | 19 | DConstants { id: dconstants } 20 | 21 | Row { 22 | anchors.fill: parent 23 | DArrowButton { 24 | direction: directionDown 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /examples/testDWindow.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.0 11 | import Deepin.Widgets 1.0 12 | 13 | DWindow { 14 | color :Qt.rgba(1.0, 0.5, 0, 0.2) 15 | Text { 16 | text : "dwindow" 17 | } 18 | width:300 19 | height:300 20 | Component.onCompleted: print(getWinId()) 21 | } 22 | -------------------------------------------------------------------------------- /examples/testDWindowFrame.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import QtQuick.Window 2.1 12 | import Deepin.Widgets 1.0 13 | 14 | Window { 15 | width: 500 16 | height: 300 17 | color: "transparent" 18 | x: 300 19 | y: 300 20 | flags: Qt.FramelessWindowHint | Qt.WindowStaysOnTopHint | Qt.X11BypassWindowManagerHint 21 | 22 | DWindowFrame { 23 | anchors.fill: parent 24 | 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /examples/testDssAdd_DeleteButton.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | Rectangle { 14 | width: 500 15 | height: 500 16 | color: "yellow" 17 | 18 | Row{ 19 | DssAddButton {} 20 | 21 | DssDeleteButton {} 22 | } 23 | } 24 | 25 | -------------------------------------------------------------------------------- /examples/testDssAdd_DeleteCheckButton.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | Rectangle { 14 | width: 500 15 | height: 500 16 | color: "yellow" 17 | 18 | Row{ 19 | DssAddCheckButton {} 20 | 21 | DssDeleteCheckButton {} 22 | } 23 | } 24 | 25 | -------------------------------------------------------------------------------- /examples/testDssMultiButton.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | Rectangle { 14 | width: 500 15 | height: 300 16 | color: "#fafafa" 17 | 18 | Column { 19 | anchors.fill: parent 20 | spacing: 10 21 | 22 | DssMultiAddCheckButton {} 23 | DssMultiAddCheckButton {} 24 | DssMultiAddCheckButton {} 25 | DssMultiAddCheckButton {} 26 | 27 | DssMultiDeleteButton {} 28 | DssMultiDeleteButton {} 29 | DssMultiDeleteButton {} 30 | DssMultiDeleteButton {} 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /locale/am.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # samson , 2014 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: Deepin QML Widgets\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2015-01-12 14:13+0800\n" 12 | "PO-Revision-Date: 2015-03-23 22:12+0000\n" 13 | "Last-Translator: deepin_transifex \n" 14 | "Language-Team: Amharic (http://www.transifex.com/projects/p/deepin-qml-widgets/language/am/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: am\n" 19 | "Plural-Forms: nplurals=2; plural=(n > 1);\n" 20 | 21 | #: ../widgets/DFileChooseDialog.qml:225 ../widgets/plugins/dfiledialog.cpp:176 22 | msgid "Cancel" 23 | msgstr "መሰረዣ" 24 | 25 | #: ../widgets/DFileChooseDialog.qml:233 26 | msgid "OK" 27 | msgstr "እሺ" 28 | 29 | #: ../widgets/plugins/dfiledialog.cpp:17 30 | msgid "Look in" 31 | msgstr "መፈለጊያ" 32 | 33 | #: ../widgets/plugins/dfiledialog.cpp:18 34 | msgid "Files of type" 35 | msgstr "የ ፋይሎች አይነት" 36 | 37 | #: ../widgets/plugins/dfiledialog.cpp:167 38 | msgid "Save" 39 | msgstr "ማስቀመቻ" 40 | 41 | #: ../widgets/plugins/dfiledialog.cpp:195 42 | msgid "Directory" 43 | msgstr "ዳይሬክቶሪ " 44 | 45 | #: ../widgets/plugins/dfiledialog.cpp:196 46 | msgid "Select" 47 | msgstr "ይምረጡ" 48 | 49 | #: ../widgets/plugins/dfiledialog.cpp:204 50 | msgid "File name" 51 | msgstr "የ ፋይሉ ስም" 52 | 53 | #: ../widgets/plugins/dfiledialog.cpp:167 54 | #: ../widgets/plugins/dfiledialog.cpp:205 55 | msgid "Open" 56 | msgstr "መክፈቻ" 57 | 58 | #: ../widgets/DInputActions.qml:46 59 | msgid "Copy" 60 | msgstr "ኮፒ" 61 | 62 | #: ../widgets/DInputActions.qml:56 63 | msgid "Cut" 64 | msgstr "መቁረጫ" 65 | 66 | #: ../widgets/DInputActions.qml:66 67 | msgid "Paste" 68 | msgstr "መለጠፊያ" 69 | 70 | #: ../widgets/DInputActions.qml:76 71 | msgid "Select all" 72 | msgstr "ሁሉንም መምረጫ" 73 | -------------------------------------------------------------------------------- /locale/ast.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # Ḷḷumex03 , 2015 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: Deepin QML Widgets\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2015-01-12 14:13+0800\n" 12 | "PO-Revision-Date: 2015-02-03 00:21+0000\n" 13 | "Last-Translator: deepin_transifex \n" 14 | "Language-Team: Asturian (http://www.transifex.com/projects/p/deepin-qml-widgets/language/ast/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: ast\n" 19 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 | 21 | #: ../widgets/DFileChooseDialog.qml:225 ../widgets/plugins/dfiledialog.cpp:176 22 | msgid "Cancel" 23 | msgstr "Encaboxar" 24 | 25 | #: ../widgets/DFileChooseDialog.qml:233 26 | msgid "OK" 27 | msgstr "Aceutar" 28 | 29 | #: ../widgets/plugins/dfiledialog.cpp:17 30 | msgid "Look in" 31 | msgstr "" 32 | 33 | #: ../widgets/plugins/dfiledialog.cpp:18 34 | msgid "Files of type" 35 | msgstr "Ficheros de la triba" 36 | 37 | #: ../widgets/plugins/dfiledialog.cpp:167 38 | msgid "Save" 39 | msgstr "Guardar" 40 | 41 | #: ../widgets/plugins/dfiledialog.cpp:195 42 | msgid "Directory" 43 | msgstr "Direutoriu" 44 | 45 | #: ../widgets/plugins/dfiledialog.cpp:196 46 | msgid "Select" 47 | msgstr "Esbillar" 48 | 49 | #: ../widgets/plugins/dfiledialog.cpp:204 50 | msgid "File name" 51 | msgstr "Nome de ficheru" 52 | 53 | #: ../widgets/plugins/dfiledialog.cpp:167 54 | #: ../widgets/plugins/dfiledialog.cpp:205 55 | msgid "Open" 56 | msgstr "Abrir" 57 | 58 | #: ../widgets/DInputActions.qml:46 59 | msgid "Copy" 60 | msgstr "Copiar" 61 | 62 | #: ../widgets/DInputActions.qml:56 63 | msgid "Cut" 64 | msgstr "Cortar" 65 | 66 | #: ../widgets/DInputActions.qml:66 67 | msgid "Paste" 68 | msgstr "Apegar" 69 | 70 | #: ../widgets/DInputActions.qml:76 71 | msgid "Select all" 72 | msgstr "Esbillar too" 73 | -------------------------------------------------------------------------------- /locale/bg.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # Petya Antonova , 2015 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: Deepin QML Widgets\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2015-01-12 14:13+0800\n" 12 | "PO-Revision-Date: 2015-04-02 11:42+0000\n" 13 | "Last-Translator: Petya Antonova \n" 14 | "Language-Team: Bulgarian (http://www.transifex.com/projects/p/deepin-qml-widgets/language/bg/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: bg\n" 19 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 | 21 | #: ../widgets/DFileChooseDialog.qml:225 ../widgets/plugins/dfiledialog.cpp:176 22 | msgid "Cancel" 23 | msgstr "Отмяна" 24 | 25 | #: ../widgets/DFileChooseDialog.qml:233 26 | msgid "OK" 27 | msgstr "ОК" 28 | 29 | #: ../widgets/plugins/dfiledialog.cpp:17 30 | msgid "Look in" 31 | msgstr "Виж в" 32 | 33 | #: ../widgets/plugins/dfiledialog.cpp:18 34 | msgid "Files of type" 35 | msgstr "Файлове от тип" 36 | 37 | #: ../widgets/plugins/dfiledialog.cpp:167 38 | msgid "Save" 39 | msgstr "Запазване" 40 | 41 | #: ../widgets/plugins/dfiledialog.cpp:195 42 | msgid "Directory" 43 | msgstr "Директория" 44 | 45 | #: ../widgets/plugins/dfiledialog.cpp:196 46 | msgid "Select" 47 | msgstr "Избери" 48 | 49 | #: ../widgets/plugins/dfiledialog.cpp:204 50 | msgid "File name" 51 | msgstr "Име на файл" 52 | 53 | #: ../widgets/plugins/dfiledialog.cpp:167 54 | #: ../widgets/plugins/dfiledialog.cpp:205 55 | msgid "Open" 56 | msgstr "Отваряне" 57 | 58 | #: ../widgets/DInputActions.qml:46 59 | msgid "Copy" 60 | msgstr "Копиране" 61 | 62 | #: ../widgets/DInputActions.qml:56 63 | msgid "Cut" 64 | msgstr "Изрежи" 65 | 66 | #: ../widgets/DInputActions.qml:66 67 | msgid "Paste" 68 | msgstr "Поставяне" 69 | 70 | #: ../widgets/DInputActions.qml:76 71 | msgid "Select all" 72 | msgstr "Избери всички" 73 | -------------------------------------------------------------------------------- /locale/cs.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # fri, 2014 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: Deepin QML Widgets\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2015-01-12 14:13+0800\n" 12 | "PO-Revision-Date: 2015-03-23 10:32+0000\n" 13 | "Last-Translator: deepin_transifex \n" 14 | "Language-Team: Czech (http://www.transifex.com/projects/p/deepin-qml-widgets/language/cs/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: cs\n" 19 | "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" 20 | 21 | #: ../widgets/DFileChooseDialog.qml:225 ../widgets/plugins/dfiledialog.cpp:176 22 | msgid "Cancel" 23 | msgstr "Zrušit" 24 | 25 | #: ../widgets/DFileChooseDialog.qml:233 26 | msgid "OK" 27 | msgstr "OK" 28 | 29 | #: ../widgets/plugins/dfiledialog.cpp:17 30 | msgid "Look in" 31 | msgstr "Náhled" 32 | 33 | #: ../widgets/plugins/dfiledialog.cpp:18 34 | msgid "Files of type" 35 | msgstr "Typ souboru" 36 | 37 | #: ../widgets/plugins/dfiledialog.cpp:167 38 | msgid "Save" 39 | msgstr "Uložit" 40 | 41 | #: ../widgets/plugins/dfiledialog.cpp:195 42 | msgid "Directory" 43 | msgstr "Adresář" 44 | 45 | #: ../widgets/plugins/dfiledialog.cpp:196 46 | msgid "Select" 47 | msgstr "Vybrat" 48 | 49 | #: ../widgets/plugins/dfiledialog.cpp:204 50 | msgid "File name" 51 | msgstr "Název souboru" 52 | 53 | #: ../widgets/plugins/dfiledialog.cpp:167 54 | #: ../widgets/plugins/dfiledialog.cpp:205 55 | msgid "Open" 56 | msgstr "Otevřít" 57 | 58 | #: ../widgets/DInputActions.qml:46 59 | msgid "Copy" 60 | msgstr "Kopírovat" 61 | 62 | #: ../widgets/DInputActions.qml:56 63 | msgid "Cut" 64 | msgstr "Vyjmout" 65 | 66 | #: ../widgets/DInputActions.qml:66 67 | msgid "Paste" 68 | msgstr "Vložit" 69 | 70 | #: ../widgets/DInputActions.qml:76 71 | msgid "Select all" 72 | msgstr "Vybrat vše" 73 | -------------------------------------------------------------------------------- /locale/da.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # Carl Andersen , 2014 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: Deepin QML Widgets\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2015-01-12 14:13+0800\n" 12 | "PO-Revision-Date: 2015-03-25 18:34+0000\n" 13 | "Last-Translator: deepin_transifex \n" 14 | "Language-Team: Danish (http://www.transifex.com/projects/p/deepin-qml-widgets/language/da/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: da\n" 19 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 | 21 | #: ../widgets/DFileChooseDialog.qml:225 ../widgets/plugins/dfiledialog.cpp:176 22 | msgid "Cancel" 23 | msgstr "Annuller" 24 | 25 | #: ../widgets/DFileChooseDialog.qml:233 26 | msgid "OK" 27 | msgstr "OK" 28 | 29 | #: ../widgets/plugins/dfiledialog.cpp:17 30 | msgid "Look in" 31 | msgstr "Kig i" 32 | 33 | #: ../widgets/plugins/dfiledialog.cpp:18 34 | msgid "Files of type" 35 | msgstr "Filtype" 36 | 37 | #: ../widgets/plugins/dfiledialog.cpp:167 38 | msgid "Save" 39 | msgstr "Gem" 40 | 41 | #: ../widgets/plugins/dfiledialog.cpp:195 42 | msgid "Directory" 43 | msgstr "Mappe" 44 | 45 | #: ../widgets/plugins/dfiledialog.cpp:196 46 | msgid "Select" 47 | msgstr "Vælg" 48 | 49 | #: ../widgets/plugins/dfiledialog.cpp:204 50 | msgid "File name" 51 | msgstr "Filnavn" 52 | 53 | #: ../widgets/plugins/dfiledialog.cpp:167 54 | #: ../widgets/plugins/dfiledialog.cpp:205 55 | msgid "Open" 56 | msgstr "Åbn" 57 | 58 | #: ../widgets/DInputActions.qml:46 59 | msgid "Copy" 60 | msgstr "kopiere" 61 | 62 | #: ../widgets/DInputActions.qml:56 63 | msgid "Cut" 64 | msgstr "Klip" 65 | 66 | #: ../widgets/DInputActions.qml:66 67 | msgid "Paste" 68 | msgstr "Indsæt" 69 | 70 | #: ../widgets/DInputActions.qml:76 71 | msgid "Select all" 72 | msgstr "Vælg alt" 73 | -------------------------------------------------------------------------------- /locale/deepin-qml-widgets.pot: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | #, fuzzy 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: PACKAGE VERSION\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2015-01-12 14:13+0800\n" 12 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 | "Last-Translator: FULL NAME \n" 14 | "Language-Team: LANGUAGE \n" 15 | "Language: \n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=UTF-8\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | 20 | #: ../widgets/DFileChooseDialog.qml:225 ../widgets/plugins/dfiledialog.cpp:176 21 | msgid "Cancel" 22 | msgstr "" 23 | 24 | #: ../widgets/DFileChooseDialog.qml:233 25 | msgid "OK" 26 | msgstr "" 27 | 28 | #: ../widgets/plugins/dfiledialog.cpp:17 29 | msgid "Look in" 30 | msgstr "" 31 | 32 | #: ../widgets/plugins/dfiledialog.cpp:18 33 | msgid "Files of type" 34 | msgstr "" 35 | 36 | #: ../widgets/plugins/dfiledialog.cpp:167 37 | msgid "Save" 38 | msgstr "" 39 | 40 | #: ../widgets/plugins/dfiledialog.cpp:195 41 | msgid "Directory" 42 | msgstr "" 43 | 44 | #: ../widgets/plugins/dfiledialog.cpp:196 45 | msgid "Select" 46 | msgstr "" 47 | 48 | #: ../widgets/plugins/dfiledialog.cpp:204 49 | msgid "File name" 50 | msgstr "" 51 | 52 | #: ../widgets/plugins/dfiledialog.cpp:167 53 | #: ../widgets/plugins/dfiledialog.cpp:205 54 | msgid "Open" 55 | msgstr "" 56 | 57 | #: ../widgets/DInputActions.qml:46 58 | msgid "Copy" 59 | msgstr "" 60 | 61 | #: ../widgets/DInputActions.qml:56 62 | msgid "Cut" 63 | msgstr "" 64 | 65 | #: ../widgets/DInputActions.qml:66 66 | msgid "Paste" 67 | msgstr "" 68 | 69 | #: ../widgets/DInputActions.qml:76 70 | msgid "Select all" 71 | msgstr "" 72 | -------------------------------------------------------------------------------- /locale/el.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # Jim Spentzos , 2014 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: Deepin QML Widgets\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2015-01-12 14:13+0800\n" 12 | "PO-Revision-Date: 2015-04-05 14:35+0000\n" 13 | "Last-Translator: deepin_transifex \n" 14 | "Language-Team: Greek (http://www.transifex.com/projects/p/deepin-qml-widgets/language/el/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: el\n" 19 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 | 21 | #: ../widgets/DFileChooseDialog.qml:225 ../widgets/plugins/dfiledialog.cpp:176 22 | msgid "Cancel" 23 | msgstr "Ακύρωση" 24 | 25 | #: ../widgets/DFileChooseDialog.qml:233 26 | msgid "OK" 27 | msgstr "OK" 28 | 29 | #: ../widgets/plugins/dfiledialog.cpp:17 30 | msgid "Look in" 31 | msgstr "Αναζήτηση σε" 32 | 33 | #: ../widgets/plugins/dfiledialog.cpp:18 34 | msgid "Files of type" 35 | msgstr "Αρχεία του τύπου" 36 | 37 | #: ../widgets/plugins/dfiledialog.cpp:167 38 | msgid "Save" 39 | msgstr "Αποθήκευση" 40 | 41 | #: ../widgets/plugins/dfiledialog.cpp:195 42 | msgid "Directory" 43 | msgstr "Κατάλογος" 44 | 45 | #: ../widgets/plugins/dfiledialog.cpp:196 46 | msgid "Select" 47 | msgstr "Επιλογή" 48 | 49 | #: ../widgets/plugins/dfiledialog.cpp:204 50 | msgid "File name" 51 | msgstr "Όνομα αρχείου" 52 | 53 | #: ../widgets/plugins/dfiledialog.cpp:167 54 | #: ../widgets/plugins/dfiledialog.cpp:205 55 | msgid "Open" 56 | msgstr "Άνοιγμα" 57 | 58 | #: ../widgets/DInputActions.qml:46 59 | msgid "Copy" 60 | msgstr "Αντιγραφή" 61 | 62 | #: ../widgets/DInputActions.qml:56 63 | msgid "Cut" 64 | msgstr "Αποκοπή" 65 | 66 | #: ../widgets/DInputActions.qml:66 67 | msgid "Paste" 68 | msgstr "Επικόλληση" 69 | 70 | #: ../widgets/DInputActions.qml:76 71 | msgid "Select all" 72 | msgstr "Επιλογή όλων" 73 | -------------------------------------------------------------------------------- /locale/en_AU.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # Mogi Fu , 2014 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: Deepin QML Widgets\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2015-01-12 14:13+0800\n" 12 | "PO-Revision-Date: 2015-02-03 00:21+0000\n" 13 | "Last-Translator: deepin_transifex \n" 14 | "Language-Team: English (Australia) (http://www.transifex.com/projects/p/deepin-qml-widgets/language/en_AU/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: en_AU\n" 19 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 | 21 | #: ../widgets/DFileChooseDialog.qml:225 ../widgets/plugins/dfiledialog.cpp:176 22 | msgid "Cancel" 23 | msgstr "Cancel" 24 | 25 | #: ../widgets/DFileChooseDialog.qml:233 26 | msgid "OK" 27 | msgstr "OK" 28 | 29 | #: ../widgets/plugins/dfiledialog.cpp:17 30 | msgid "Look in" 31 | msgstr "Look in" 32 | 33 | #: ../widgets/plugins/dfiledialog.cpp:18 34 | msgid "Files of type" 35 | msgstr "File type" 36 | 37 | #: ../widgets/plugins/dfiledialog.cpp:167 38 | msgid "Save" 39 | msgstr "Save" 40 | 41 | #: ../widgets/plugins/dfiledialog.cpp:195 42 | msgid "Directory" 43 | msgstr "Directory" 44 | 45 | #: ../widgets/plugins/dfiledialog.cpp:196 46 | msgid "Select" 47 | msgstr "Select" 48 | 49 | #: ../widgets/plugins/dfiledialog.cpp:204 50 | msgid "File name" 51 | msgstr "File name" 52 | 53 | #: ../widgets/plugins/dfiledialog.cpp:167 54 | #: ../widgets/plugins/dfiledialog.cpp:205 55 | msgid "Open" 56 | msgstr "Open" 57 | 58 | #: ../widgets/DInputActions.qml:46 59 | msgid "Copy" 60 | msgstr "Copy" 61 | 62 | #: ../widgets/DInputActions.qml:56 63 | msgid "Cut" 64 | msgstr "Cut" 65 | 66 | #: ../widgets/DInputActions.qml:66 67 | msgid "Paste" 68 | msgstr "Paste" 69 | 70 | #: ../widgets/DInputActions.qml:76 71 | msgid "Select all" 72 | msgstr "Select all" 73 | -------------------------------------------------------------------------------- /locale/es.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # Luis Castillo , 2014 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: Deepin QML Widgets\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2015-01-12 14:13+0800\n" 12 | "PO-Revision-Date: 2015-02-03 00:21+0000\n" 13 | "Last-Translator: deepin_transifex \n" 14 | "Language-Team: Spanish (http://www.transifex.com/projects/p/deepin-qml-widgets/language/es/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: es\n" 19 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 | 21 | #: ../widgets/DFileChooseDialog.qml:225 ../widgets/plugins/dfiledialog.cpp:176 22 | msgid "Cancel" 23 | msgstr "Cancelar" 24 | 25 | #: ../widgets/DFileChooseDialog.qml:233 26 | msgid "OK" 27 | msgstr "Bueno" 28 | 29 | #: ../widgets/plugins/dfiledialog.cpp:17 30 | msgid "Look in" 31 | msgstr "Buscar en" 32 | 33 | #: ../widgets/plugins/dfiledialog.cpp:18 34 | msgid "Files of type" 35 | msgstr "Tipo de archivos" 36 | 37 | #: ../widgets/plugins/dfiledialog.cpp:167 38 | msgid "Save" 39 | msgstr "Guardar" 40 | 41 | #: ../widgets/plugins/dfiledialog.cpp:195 42 | msgid "Directory" 43 | msgstr "Directorio" 44 | 45 | #: ../widgets/plugins/dfiledialog.cpp:196 46 | msgid "Select" 47 | msgstr "Seleccionar" 48 | 49 | #: ../widgets/plugins/dfiledialog.cpp:204 50 | msgid "File name" 51 | msgstr "Nombre del archivo" 52 | 53 | #: ../widgets/plugins/dfiledialog.cpp:167 54 | #: ../widgets/plugins/dfiledialog.cpp:205 55 | msgid "Open" 56 | msgstr "Abrir" 57 | 58 | #: ../widgets/DInputActions.qml:46 59 | msgid "Copy" 60 | msgstr "Copiar" 61 | 62 | #: ../widgets/DInputActions.qml:56 63 | msgid "Cut" 64 | msgstr "Cortar" 65 | 66 | #: ../widgets/DInputActions.qml:66 67 | msgid "Paste" 68 | msgstr "Pegar" 69 | 70 | #: ../widgets/DInputActions.qml:76 71 | msgid "Select all" 72 | msgstr "Seleccionar todo" 73 | -------------------------------------------------------------------------------- /locale/fr.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # lexross , 2014 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: Deepin QML Widgets\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2015-01-12 14:13+0800\n" 12 | "PO-Revision-Date: 2015-03-27 10:52+0000\n" 13 | "Last-Translator: deepin_transifex \n" 14 | "Language-Team: French (http://www.transifex.com/projects/p/deepin-qml-widgets/language/fr/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: fr\n" 19 | "Plural-Forms: nplurals=2; plural=(n > 1);\n" 20 | 21 | #: ../widgets/DFileChooseDialog.qml:225 ../widgets/plugins/dfiledialog.cpp:176 22 | msgid "Cancel" 23 | msgstr "Annuler" 24 | 25 | #: ../widgets/DFileChooseDialog.qml:233 26 | msgid "OK" 27 | msgstr "OK" 28 | 29 | #: ../widgets/plugins/dfiledialog.cpp:17 30 | msgid "Look in" 31 | msgstr "Voir dans" 32 | 33 | #: ../widgets/plugins/dfiledialog.cpp:18 34 | msgid "Files of type" 35 | msgstr "Types de fichier" 36 | 37 | #: ../widgets/plugins/dfiledialog.cpp:167 38 | msgid "Save" 39 | msgstr "Sauvegarder" 40 | 41 | #: ../widgets/plugins/dfiledialog.cpp:195 42 | msgid "Directory" 43 | msgstr "Dossier" 44 | 45 | #: ../widgets/plugins/dfiledialog.cpp:196 46 | msgid "Select" 47 | msgstr "Choisir" 48 | 49 | #: ../widgets/plugins/dfiledialog.cpp:204 50 | msgid "File name" 51 | msgstr "Nom du fichier" 52 | 53 | #: ../widgets/plugins/dfiledialog.cpp:167 54 | #: ../widgets/plugins/dfiledialog.cpp:205 55 | msgid "Open" 56 | msgstr "Ouvrir" 57 | 58 | #: ../widgets/DInputActions.qml:46 59 | msgid "Copy" 60 | msgstr "Copier " 61 | 62 | #: ../widgets/DInputActions.qml:56 63 | msgid "Cut" 64 | msgstr "Couper" 65 | 66 | #: ../widgets/DInputActions.qml:66 67 | msgid "Paste" 68 | msgstr "Coller" 69 | 70 | #: ../widgets/DInputActions.qml:76 71 | msgid "Select all" 72 | msgstr "Tout sélectionner" 73 | -------------------------------------------------------------------------------- /locale/gl.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # Xurxo Guerra Perez , 2015 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: Deepin QML Widgets\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2015-01-12 14:13+0800\n" 12 | "PO-Revision-Date: 2015-04-06 21:01+0000\n" 13 | "Last-Translator: Xurxo Guerra Perez \n" 14 | "Language-Team: Galician (http://www.transifex.com/projects/p/deepin-qml-widgets/language/gl/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: gl\n" 19 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 | 21 | #: ../widgets/DFileChooseDialog.qml:225 ../widgets/plugins/dfiledialog.cpp:176 22 | msgid "Cancel" 23 | msgstr "Cancelar" 24 | 25 | #: ../widgets/DFileChooseDialog.qml:233 26 | msgid "OK" 27 | msgstr "Aceptar" 28 | 29 | #: ../widgets/plugins/dfiledialog.cpp:17 30 | msgid "Look in" 31 | msgstr "Mirar" 32 | 33 | #: ../widgets/plugins/dfiledialog.cpp:18 34 | msgid "Files of type" 35 | msgstr "Ficheiros do tipo" 36 | 37 | #: ../widgets/plugins/dfiledialog.cpp:167 38 | msgid "Save" 39 | msgstr "Gardar" 40 | 41 | #: ../widgets/plugins/dfiledialog.cpp:195 42 | msgid "Directory" 43 | msgstr "Cartafol" 44 | 45 | #: ../widgets/plugins/dfiledialog.cpp:196 46 | msgid "Select" 47 | msgstr "Seleccionar" 48 | 49 | #: ../widgets/plugins/dfiledialog.cpp:204 50 | msgid "File name" 51 | msgstr "Nome do ficheiro" 52 | 53 | #: ../widgets/plugins/dfiledialog.cpp:167 54 | #: ../widgets/plugins/dfiledialog.cpp:205 55 | msgid "Open" 56 | msgstr "Abrir" 57 | 58 | #: ../widgets/DInputActions.qml:46 59 | msgid "Copy" 60 | msgstr "Copiar" 61 | 62 | #: ../widgets/DInputActions.qml:56 63 | msgid "Cut" 64 | msgstr "Cortar" 65 | 66 | #: ../widgets/DInputActions.qml:66 67 | msgid "Paste" 68 | msgstr "Pegar" 69 | 70 | #: ../widgets/DInputActions.qml:76 71 | msgid "Select all" 72 | msgstr "Seleccionar todo" 73 | -------------------------------------------------------------------------------- /locale/he.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # Yuval Bar-On , 2015 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: Deepin QML Widgets\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2015-01-12 14:13+0800\n" 12 | "PO-Revision-Date: 2015-02-03 00:21+0000\n" 13 | "Last-Translator: deepin_transifex \n" 14 | "Language-Team: Hebrew (http://www.transifex.com/projects/p/deepin-qml-widgets/language/he/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: he\n" 19 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 | 21 | #: ../widgets/DFileChooseDialog.qml:225 ../widgets/plugins/dfiledialog.cpp:176 22 | msgid "Cancel" 23 | msgstr "ביטול" 24 | 25 | #: ../widgets/DFileChooseDialog.qml:233 26 | msgid "OK" 27 | msgstr "אוקיי" 28 | 29 | #: ../widgets/plugins/dfiledialog.cpp:17 30 | msgid "Look in" 31 | msgstr "הסתכל פנימה" 32 | 33 | #: ../widgets/plugins/dfiledialog.cpp:18 34 | msgid "Files of type" 35 | msgstr "קבצים מסוג" 36 | 37 | #: ../widgets/plugins/dfiledialog.cpp:167 38 | msgid "Save" 39 | msgstr "שמור" 40 | 41 | #: ../widgets/plugins/dfiledialog.cpp:195 42 | msgid "Directory" 43 | msgstr "תיקייה" 44 | 45 | #: ../widgets/plugins/dfiledialog.cpp:196 46 | msgid "Select" 47 | msgstr "בחר" 48 | 49 | #: ../widgets/plugins/dfiledialog.cpp:204 50 | msgid "File name" 51 | msgstr "שם קובץ" 52 | 53 | #: ../widgets/plugins/dfiledialog.cpp:167 54 | #: ../widgets/plugins/dfiledialog.cpp:205 55 | msgid "Open" 56 | msgstr "פתח" 57 | 58 | #: ../widgets/DInputActions.qml:46 59 | msgid "Copy" 60 | msgstr "העתק" 61 | 62 | #: ../widgets/DInputActions.qml:56 63 | msgid "Cut" 64 | msgstr "גזור" 65 | 66 | #: ../widgets/DInputActions.qml:66 67 | msgid "Paste" 68 | msgstr "הדבק" 69 | 70 | #: ../widgets/DInputActions.qml:76 71 | msgid "Select all" 72 | msgstr "בחר הכל" 73 | -------------------------------------------------------------------------------- /locale/hi.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # AnandVivek, 2015 7 | # Tarsem singh , 2015 8 | msgid "" 9 | msgstr "" 10 | "Project-Id-Version: Deepin QML Widgets\n" 11 | "Report-Msgid-Bugs-To: \n" 12 | "POT-Creation-Date: 2015-01-12 14:13+0800\n" 13 | "PO-Revision-Date: 2015-03-31 07:44+0000\n" 14 | "Last-Translator: AnandVivek\n" 15 | "Language-Team: Hindi (http://www.transifex.com/projects/p/deepin-qml-widgets/language/hi/)\n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=UTF-8\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | "Language: hi\n" 20 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 21 | 22 | #: ../widgets/DFileChooseDialog.qml:225 ../widgets/plugins/dfiledialog.cpp:176 23 | msgid "Cancel" 24 | msgstr "रद्द करो" 25 | 26 | #: ../widgets/DFileChooseDialog.qml:233 27 | msgid "OK" 28 | msgstr "ठीक" 29 | 30 | #: ../widgets/plugins/dfiledialog.cpp:17 31 | msgid "Look in" 32 | msgstr "अंदर देखो" 33 | 34 | #: ../widgets/plugins/dfiledialog.cpp:18 35 | msgid "Files of type" 36 | msgstr "फ़ाइल के प्रकार" 37 | 38 | #: ../widgets/plugins/dfiledialog.cpp:167 39 | msgid "Save" 40 | msgstr "सहेजें" 41 | 42 | #: ../widgets/plugins/dfiledialog.cpp:195 43 | msgid "Directory" 44 | msgstr "निर्देशिका" 45 | 46 | #: ../widgets/plugins/dfiledialog.cpp:196 47 | msgid "Select" 48 | msgstr "चुनो" 49 | 50 | #: ../widgets/plugins/dfiledialog.cpp:204 51 | msgid "File name" 52 | msgstr "फाइल का नाम" 53 | 54 | #: ../widgets/plugins/dfiledialog.cpp:167 55 | #: ../widgets/plugins/dfiledialog.cpp:205 56 | msgid "Open" 57 | msgstr "खोलो" 58 | 59 | #: ../widgets/DInputActions.qml:46 60 | msgid "Copy" 61 | msgstr "प्रति" 62 | 63 | #: ../widgets/DInputActions.qml:56 64 | msgid "Cut" 65 | msgstr "काटें" 66 | 67 | #: ../widgets/DInputActions.qml:66 68 | msgid "Paste" 69 | msgstr "चिपकाएँ" 70 | 71 | #: ../widgets/DInputActions.qml:76 72 | msgid "Select all" 73 | msgstr "सबको चुनें" 74 | -------------------------------------------------------------------------------- /locale/hu.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # kdavid97 , 2014 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: Deepin QML Widgets\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2015-01-12 14:13+0800\n" 12 | "PO-Revision-Date: 2015-02-03 00:21+0000\n" 13 | "Last-Translator: deepin_transifex \n" 14 | "Language-Team: Hungarian (http://www.transifex.com/projects/p/deepin-qml-widgets/language/hu/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: hu\n" 19 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 | 21 | #: ../widgets/DFileChooseDialog.qml:225 ../widgets/plugins/dfiledialog.cpp:176 22 | msgid "Cancel" 23 | msgstr "Mégse" 24 | 25 | #: ../widgets/DFileChooseDialog.qml:233 26 | msgid "OK" 27 | msgstr "OK" 28 | 29 | #: ../widgets/plugins/dfiledialog.cpp:17 30 | msgid "Look in" 31 | msgstr "Megtekint" 32 | 33 | #: ../widgets/plugins/dfiledialog.cpp:18 34 | msgid "Files of type" 35 | msgstr "Fájl típus" 36 | 37 | #: ../widgets/plugins/dfiledialog.cpp:167 38 | msgid "Save" 39 | msgstr "Mentés" 40 | 41 | #: ../widgets/plugins/dfiledialog.cpp:195 42 | msgid "Directory" 43 | msgstr "Könyvtár" 44 | 45 | #: ../widgets/plugins/dfiledialog.cpp:196 46 | msgid "Select" 47 | msgstr "Kiválaszt" 48 | 49 | #: ../widgets/plugins/dfiledialog.cpp:204 50 | msgid "File name" 51 | msgstr "Fájl név" 52 | 53 | #: ../widgets/plugins/dfiledialog.cpp:167 54 | #: ../widgets/plugins/dfiledialog.cpp:205 55 | msgid "Open" 56 | msgstr "Megnyitás" 57 | 58 | #: ../widgets/DInputActions.qml:46 59 | msgid "Copy" 60 | msgstr "Másolás" 61 | 62 | #: ../widgets/DInputActions.qml:56 63 | msgid "Cut" 64 | msgstr "Kivágás" 65 | 66 | #: ../widgets/DInputActions.qml:66 67 | msgid "Paste" 68 | msgstr "Beillesztés" 69 | 70 | #: ../widgets/DInputActions.qml:76 71 | msgid "Select all" 72 | msgstr "Összes kijelölése" 73 | -------------------------------------------------------------------------------- /locale/it.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # Massimo Antonio Carofano , 2014 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: Deepin QML Widgets\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2015-01-12 14:13+0800\n" 12 | "PO-Revision-Date: 2015-03-23 09:52+0000\n" 13 | "Last-Translator: deepin_transifex \n" 14 | "Language-Team: Italian (http://www.transifex.com/projects/p/deepin-qml-widgets/language/it/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: it\n" 19 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 | 21 | #: ../widgets/DFileChooseDialog.qml:225 ../widgets/plugins/dfiledialog.cpp:176 22 | msgid "Cancel" 23 | msgstr "Cancella" 24 | 25 | #: ../widgets/DFileChooseDialog.qml:233 26 | msgid "OK" 27 | msgstr "OK" 28 | 29 | #: ../widgets/plugins/dfiledialog.cpp:17 30 | msgid "Look in" 31 | msgstr "Guarda" 32 | 33 | #: ../widgets/plugins/dfiledialog.cpp:18 34 | msgid "Files of type" 35 | msgstr "Tipi di files" 36 | 37 | #: ../widgets/plugins/dfiledialog.cpp:167 38 | msgid "Save" 39 | msgstr "Salva" 40 | 41 | #: ../widgets/plugins/dfiledialog.cpp:195 42 | msgid "Directory" 43 | msgstr "Cartella" 44 | 45 | #: ../widgets/plugins/dfiledialog.cpp:196 46 | msgid "Select" 47 | msgstr "Seleziona" 48 | 49 | #: ../widgets/plugins/dfiledialog.cpp:204 50 | msgid "File name" 51 | msgstr "Nome file" 52 | 53 | #: ../widgets/plugins/dfiledialog.cpp:167 54 | #: ../widgets/plugins/dfiledialog.cpp:205 55 | msgid "Open" 56 | msgstr "Apri" 57 | 58 | #: ../widgets/DInputActions.qml:46 59 | msgid "Copy" 60 | msgstr "Copia" 61 | 62 | #: ../widgets/DInputActions.qml:56 63 | msgid "Cut" 64 | msgstr "Taglia" 65 | 66 | #: ../widgets/DInputActions.qml:66 67 | msgid "Paste" 68 | msgstr "Incolla" 69 | 70 | #: ../widgets/DInputActions.qml:76 71 | msgid "Select all" 72 | msgstr "Seleziona tutto" 73 | -------------------------------------------------------------------------------- /locale/locale_config.ini: -------------------------------------------------------------------------------- 1 | [locale] 2 | langs=["zh_CN","zh_TW"] 3 | locale_dir=../locale 4 | project_name=deepin-qml-widgets 5 | source_dir=../widgets 6 | -------------------------------------------------------------------------------- /locale/nb.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # Kristoffer Ulseth , 2015 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: Deepin QML Widgets\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2015-01-12 14:13+0800\n" 12 | "PO-Revision-Date: 2015-03-01 19:11+0000\n" 13 | "Last-Translator: deepin_transifex \n" 14 | "Language-Team: Norwegian Bokmål (http://www.transifex.com/projects/p/deepin-qml-widgets/language/nb/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: nb\n" 19 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 | 21 | #: ../widgets/DFileChooseDialog.qml:225 ../widgets/plugins/dfiledialog.cpp:176 22 | msgid "Cancel" 23 | msgstr "Kanseller " 24 | 25 | #: ../widgets/DFileChooseDialog.qml:233 26 | msgid "OK" 27 | msgstr "OK" 28 | 29 | #: ../widgets/plugins/dfiledialog.cpp:17 30 | msgid "Look in" 31 | msgstr "Se inn" 32 | 33 | #: ../widgets/plugins/dfiledialog.cpp:18 34 | msgid "Files of type" 35 | msgstr "Filer av typen" 36 | 37 | #: ../widgets/plugins/dfiledialog.cpp:167 38 | msgid "Save" 39 | msgstr "Lagre" 40 | 41 | #: ../widgets/plugins/dfiledialog.cpp:195 42 | msgid "Directory" 43 | msgstr "Katalog" 44 | 45 | #: ../widgets/plugins/dfiledialog.cpp:196 46 | msgid "Select" 47 | msgstr "Velg" 48 | 49 | #: ../widgets/plugins/dfiledialog.cpp:204 50 | msgid "File name" 51 | msgstr "Filnavn" 52 | 53 | #: ../widgets/plugins/dfiledialog.cpp:167 54 | #: ../widgets/plugins/dfiledialog.cpp:205 55 | msgid "Open" 56 | msgstr "Åpne" 57 | 58 | #: ../widgets/DInputActions.qml:46 59 | msgid "Copy" 60 | msgstr "Kopier" 61 | 62 | #: ../widgets/DInputActions.qml:56 63 | msgid "Cut" 64 | msgstr "Klipp" 65 | 66 | #: ../widgets/DInputActions.qml:66 67 | msgid "Paste" 68 | msgstr "Lim inn" 69 | 70 | #: ../widgets/DInputActions.qml:76 71 | msgid "Select all" 72 | msgstr "Velg alle" 73 | -------------------------------------------------------------------------------- /locale/nl.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # Heimen Stoffels , 2015 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: Deepin QML Widgets\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2015-01-12 14:13+0800\n" 12 | "PO-Revision-Date: 2015-03-09 20:21+0000\n" 13 | "Last-Translator: Heimen Stoffels \n" 14 | "Language-Team: Dutch (http://www.transifex.com/projects/p/deepin-qml-widgets/language/nl/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: nl\n" 19 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 | 21 | #: ../widgets/DFileChooseDialog.qml:225 ../widgets/plugins/dfiledialog.cpp:176 22 | msgid "Cancel" 23 | msgstr "Annuleren" 24 | 25 | #: ../widgets/DFileChooseDialog.qml:233 26 | msgid "OK" 27 | msgstr "OK" 28 | 29 | #: ../widgets/plugins/dfiledialog.cpp:17 30 | msgid "Look in" 31 | msgstr "Zoeken in" 32 | 33 | #: ../widgets/plugins/dfiledialog.cpp:18 34 | msgid "Files of type" 35 | msgstr "Bestanden met type" 36 | 37 | #: ../widgets/plugins/dfiledialog.cpp:167 38 | msgid "Save" 39 | msgstr "Opslaan" 40 | 41 | #: ../widgets/plugins/dfiledialog.cpp:195 42 | msgid "Directory" 43 | msgstr "Map" 44 | 45 | #: ../widgets/plugins/dfiledialog.cpp:196 46 | msgid "Select" 47 | msgstr "Selecteren" 48 | 49 | #: ../widgets/plugins/dfiledialog.cpp:204 50 | msgid "File name" 51 | msgstr "Bestandsnaam" 52 | 53 | #: ../widgets/plugins/dfiledialog.cpp:167 54 | #: ../widgets/plugins/dfiledialog.cpp:205 55 | msgid "Open" 56 | msgstr "Openen" 57 | 58 | #: ../widgets/DInputActions.qml:46 59 | msgid "Copy" 60 | msgstr "Kopiëren" 61 | 62 | #: ../widgets/DInputActions.qml:56 63 | msgid "Cut" 64 | msgstr "Knippen" 65 | 66 | #: ../widgets/DInputActions.qml:66 67 | msgid "Paste" 68 | msgstr "Plakken" 69 | 70 | #: ../widgets/DInputActions.qml:76 71 | msgid "Select all" 72 | msgstr "Alles selecteren" 73 | -------------------------------------------------------------------------------- /locale/pt.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # Ricardo Simões , 2014 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: Deepin QML Widgets\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2015-01-12 14:13+0800\n" 12 | "PO-Revision-Date: 2015-03-23 16:58+0000\n" 13 | "Last-Translator: Ricardo Simões \n" 14 | "Language-Team: Portuguese (http://www.transifex.com/projects/p/deepin-qml-widgets/language/pt/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: pt\n" 19 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 | 21 | #: ../widgets/DFileChooseDialog.qml:225 ../widgets/plugins/dfiledialog.cpp:176 22 | msgid "Cancel" 23 | msgstr "Cancelar" 24 | 25 | #: ../widgets/DFileChooseDialog.qml:233 26 | msgid "OK" 27 | msgstr "OK" 28 | 29 | #: ../widgets/plugins/dfiledialog.cpp:17 30 | msgid "Look in" 31 | msgstr "Olhar dentro" 32 | 33 | #: ../widgets/plugins/dfiledialog.cpp:18 34 | msgid "Files of type" 35 | msgstr "Ficheiros do tipo" 36 | 37 | #: ../widgets/plugins/dfiledialog.cpp:167 38 | msgid "Save" 39 | msgstr "Guardar" 40 | 41 | #: ../widgets/plugins/dfiledialog.cpp:195 42 | msgid "Directory" 43 | msgstr "Diretoria" 44 | 45 | #: ../widgets/plugins/dfiledialog.cpp:196 46 | msgid "Select" 47 | msgstr "Selecionar" 48 | 49 | #: ../widgets/plugins/dfiledialog.cpp:204 50 | msgid "File name" 51 | msgstr "Nome de ficheiro" 52 | 53 | #: ../widgets/plugins/dfiledialog.cpp:167 54 | #: ../widgets/plugins/dfiledialog.cpp:205 55 | msgid "Open" 56 | msgstr "Abrir" 57 | 58 | #: ../widgets/DInputActions.qml:46 59 | msgid "Copy" 60 | msgstr "Copiar" 61 | 62 | #: ../widgets/DInputActions.qml:56 63 | msgid "Cut" 64 | msgstr "Cortar" 65 | 66 | #: ../widgets/DInputActions.qml:66 67 | msgid "Paste" 68 | msgstr "Colar" 69 | 70 | #: ../widgets/DInputActions.qml:76 71 | msgid "Select all" 72 | msgstr "Selecionar tudo" 73 | -------------------------------------------------------------------------------- /locale/pt_BR.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # RAFAEL GAUNA , 2014 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: Deepin QML Widgets\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2015-01-12 14:13+0800\n" 12 | "PO-Revision-Date: 2015-03-23 12:32+0000\n" 13 | "Last-Translator: deepin_transifex \n" 14 | "Language-Team: Portuguese (Brazil) (http://www.transifex.com/projects/p/deepin-qml-widgets/language/pt_BR/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: pt_BR\n" 19 | "Plural-Forms: nplurals=2; plural=(n > 1);\n" 20 | 21 | #: ../widgets/DFileChooseDialog.qml:225 ../widgets/plugins/dfiledialog.cpp:176 22 | msgid "Cancel" 23 | msgstr "Cancelar" 24 | 25 | #: ../widgets/DFileChooseDialog.qml:233 26 | msgid "OK" 27 | msgstr "OK" 28 | 29 | #: ../widgets/plugins/dfiledialog.cpp:17 30 | msgid "Look in" 31 | msgstr "Olhar" 32 | 33 | #: ../widgets/plugins/dfiledialog.cpp:18 34 | msgid "Files of type" 35 | msgstr "Arquivos do tipo" 36 | 37 | #: ../widgets/plugins/dfiledialog.cpp:167 38 | msgid "Save" 39 | msgstr "Salvar" 40 | 41 | #: ../widgets/plugins/dfiledialog.cpp:195 42 | msgid "Directory" 43 | msgstr "Diretório" 44 | 45 | #: ../widgets/plugins/dfiledialog.cpp:196 46 | msgid "Select" 47 | msgstr "Selecionar" 48 | 49 | #: ../widgets/plugins/dfiledialog.cpp:204 50 | msgid "File name" 51 | msgstr "Nome do arq." 52 | 53 | #: ../widgets/plugins/dfiledialog.cpp:167 54 | #: ../widgets/plugins/dfiledialog.cpp:205 55 | msgid "Open" 56 | msgstr "Abrir" 57 | 58 | #: ../widgets/DInputActions.qml:46 59 | msgid "Copy" 60 | msgstr "Copiar" 61 | 62 | #: ../widgets/DInputActions.qml:56 63 | msgid "Cut" 64 | msgstr "Recortar" 65 | 66 | #: ../widgets/DInputActions.qml:66 67 | msgid "Paste" 68 | msgstr "Colar" 69 | 70 | #: ../widgets/DInputActions.qml:76 71 | msgid "Select all" 72 | msgstr "Selecionar tudo" 73 | -------------------------------------------------------------------------------- /locale/sk.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # Microtus , 2014 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: Deepin QML Widgets\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2015-01-12 14:13+0800\n" 12 | "PO-Revision-Date: 2015-02-03 00:21+0000\n" 13 | "Last-Translator: deepin_transifex \n" 14 | "Language-Team: Slovak (http://www.transifex.com/projects/p/deepin-qml-widgets/language/sk/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: sk\n" 19 | "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n" 20 | 21 | #: ../widgets/DFileChooseDialog.qml:225 ../widgets/plugins/dfiledialog.cpp:176 22 | msgid "Cancel" 23 | msgstr "Zrušiť" 24 | 25 | #: ../widgets/DFileChooseDialog.qml:233 26 | msgid "OK" 27 | msgstr "OK" 28 | 29 | #: ../widgets/plugins/dfiledialog.cpp:17 30 | msgid "Look in" 31 | msgstr "Pozrieť sa" 32 | 33 | #: ../widgets/plugins/dfiledialog.cpp:18 34 | msgid "Files of type" 35 | msgstr "Súbory typu" 36 | 37 | #: ../widgets/plugins/dfiledialog.cpp:167 38 | msgid "Save" 39 | msgstr "Uložiť" 40 | 41 | #: ../widgets/plugins/dfiledialog.cpp:195 42 | msgid "Directory" 43 | msgstr "Adresár" 44 | 45 | #: ../widgets/plugins/dfiledialog.cpp:196 46 | msgid "Select" 47 | msgstr "Vybrať" 48 | 49 | #: ../widgets/plugins/dfiledialog.cpp:204 50 | msgid "File name" 51 | msgstr "Názov súboru" 52 | 53 | #: ../widgets/plugins/dfiledialog.cpp:167 54 | #: ../widgets/plugins/dfiledialog.cpp:205 55 | msgid "Open" 56 | msgstr "Otvoriť" 57 | 58 | #: ../widgets/DInputActions.qml:46 59 | msgid "Copy" 60 | msgstr "Kopírovať" 61 | 62 | #: ../widgets/DInputActions.qml:56 63 | msgid "Cut" 64 | msgstr "Vystrihnúť" 65 | 66 | #: ../widgets/DInputActions.qml:66 67 | msgid "Paste" 68 | msgstr "Prilepiť" 69 | 70 | #: ../widgets/DInputActions.qml:76 71 | msgid "Select all" 72 | msgstr "Vybrať všetko" 73 | -------------------------------------------------------------------------------- /locale/sv_SE.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # Tobias Ahlström , 2015 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: Deepin QML Widgets\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2015-01-12 14:13+0800\n" 12 | "PO-Revision-Date: 2015-03-21 18:59+0000\n" 13 | "Last-Translator: Tobias Ahlström \n" 14 | "Language-Team: Swedish (Sweden) (http://www.transifex.com/projects/p/deepin-qml-widgets/language/sv_SE/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: sv_SE\n" 19 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 | 21 | #: ../widgets/DFileChooseDialog.qml:225 ../widgets/plugins/dfiledialog.cpp:176 22 | msgid "Cancel" 23 | msgstr "Avbryt" 24 | 25 | #: ../widgets/DFileChooseDialog.qml:233 26 | msgid "OK" 27 | msgstr "Okej" 28 | 29 | #: ../widgets/plugins/dfiledialog.cpp:17 30 | msgid "Look in" 31 | msgstr "Titta i" 32 | 33 | #: ../widgets/plugins/dfiledialog.cpp:18 34 | msgid "Files of type" 35 | msgstr "Filer av typen" 36 | 37 | #: ../widgets/plugins/dfiledialog.cpp:167 38 | msgid "Save" 39 | msgstr "Spara" 40 | 41 | #: ../widgets/plugins/dfiledialog.cpp:195 42 | msgid "Directory" 43 | msgstr "Katalog" 44 | 45 | #: ../widgets/plugins/dfiledialog.cpp:196 46 | msgid "Select" 47 | msgstr "Välj" 48 | 49 | #: ../widgets/plugins/dfiledialog.cpp:204 50 | msgid "File name" 51 | msgstr "Filnamn" 52 | 53 | #: ../widgets/plugins/dfiledialog.cpp:167 54 | #: ../widgets/plugins/dfiledialog.cpp:205 55 | msgid "Open" 56 | msgstr "Öppna" 57 | 58 | #: ../widgets/DInputActions.qml:46 59 | msgid "Copy" 60 | msgstr "Kopiera" 61 | 62 | #: ../widgets/DInputActions.qml:56 63 | msgid "Cut" 64 | msgstr "Klipp ut" 65 | 66 | #: ../widgets/DInputActions.qml:66 67 | msgid "Paste" 68 | msgstr "Klistra in" 69 | 70 | #: ../widgets/DInputActions.qml:76 71 | msgid "Select all" 72 | msgstr "Välj alla" 73 | -------------------------------------------------------------------------------- /locale/tr.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # yakup , 2014 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: Deepin QML Widgets\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2015-01-12 14:13+0800\n" 12 | "PO-Revision-Date: 2015-04-06 13:52+0000\n" 13 | "Last-Translator: deepin_transifex \n" 14 | "Language-Team: Turkish (http://www.transifex.com/projects/p/deepin-qml-widgets/language/tr/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: tr\n" 19 | "Plural-Forms: nplurals=2; plural=(n > 1);\n" 20 | 21 | #: ../widgets/DFileChooseDialog.qml:225 ../widgets/plugins/dfiledialog.cpp:176 22 | msgid "Cancel" 23 | msgstr "Vazgeç" 24 | 25 | #: ../widgets/DFileChooseDialog.qml:233 26 | msgid "OK" 27 | msgstr "Tamam" 28 | 29 | #: ../widgets/plugins/dfiledialog.cpp:17 30 | msgid "Look in" 31 | msgstr "İçine bakmak" 32 | 33 | #: ../widgets/plugins/dfiledialog.cpp:18 34 | msgid "Files of type" 35 | msgstr "Dosya tipleri" 36 | 37 | #: ../widgets/plugins/dfiledialog.cpp:167 38 | msgid "Save" 39 | msgstr "Kaydet" 40 | 41 | #: ../widgets/plugins/dfiledialog.cpp:195 42 | msgid "Directory" 43 | msgstr "Dizin" 44 | 45 | #: ../widgets/plugins/dfiledialog.cpp:196 46 | msgid "Select" 47 | msgstr "Seç" 48 | 49 | #: ../widgets/plugins/dfiledialog.cpp:204 50 | msgid "File name" 51 | msgstr "Dosya adı" 52 | 53 | #: ../widgets/plugins/dfiledialog.cpp:167 54 | #: ../widgets/plugins/dfiledialog.cpp:205 55 | msgid "Open" 56 | msgstr "Aç" 57 | 58 | #: ../widgets/DInputActions.qml:46 59 | msgid "Copy" 60 | msgstr "Kopyala" 61 | 62 | #: ../widgets/DInputActions.qml:56 63 | msgid "Cut" 64 | msgstr "Kes" 65 | 66 | #: ../widgets/DInputActions.qml:66 67 | msgid "Paste" 68 | msgstr "Yapıştır" 69 | 70 | #: ../widgets/DInputActions.qml:76 71 | msgid "Select all" 72 | msgstr "Hepsini seç" 73 | -------------------------------------------------------------------------------- /locale/zh_CN.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # iceleaf , 2014 7 | # szd_liufei , 2014-2015 8 | msgid "" 9 | msgstr "" 10 | "Project-Id-Version: Deepin QML Widgets\n" 11 | "Report-Msgid-Bugs-To: \n" 12 | "POT-Creation-Date: 2015-01-12 14:13+0800\n" 13 | "PO-Revision-Date: 2015-03-24 03:31+0000\n" 14 | "Last-Translator: szd_liufei \n" 15 | "Language-Team: Chinese (China) (http://www.transifex.com/projects/p/deepin-qml-widgets/language/zh_CN/)\n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=UTF-8\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | "Language: zh_CN\n" 20 | "Plural-Forms: nplurals=1; plural=0;\n" 21 | 22 | #: ../widgets/DFileChooseDialog.qml:225 ../widgets/plugins/dfiledialog.cpp:176 23 | msgid "Cancel" 24 | msgstr "取消" 25 | 26 | #: ../widgets/DFileChooseDialog.qml:233 27 | msgid "OK" 28 | msgstr "确定 " 29 | 30 | #: ../widgets/plugins/dfiledialog.cpp:17 31 | msgid "Look in" 32 | msgstr "查看" 33 | 34 | #: ../widgets/plugins/dfiledialog.cpp:18 35 | msgid "Files of type" 36 | msgstr "文件类型" 37 | 38 | #: ../widgets/plugins/dfiledialog.cpp:167 39 | msgid "Save" 40 | msgstr "保存" 41 | 42 | #: ../widgets/plugins/dfiledialog.cpp:195 43 | msgid "Directory" 44 | msgstr "目录" 45 | 46 | #: ../widgets/plugins/dfiledialog.cpp:196 47 | msgid "Select" 48 | msgstr "选择" 49 | 50 | #: ../widgets/plugins/dfiledialog.cpp:204 51 | msgid "File name" 52 | msgstr "文件名" 53 | 54 | #: ../widgets/plugins/dfiledialog.cpp:167 55 | #: ../widgets/plugins/dfiledialog.cpp:205 56 | msgid "Open" 57 | msgstr "打开" 58 | 59 | #: ../widgets/DInputActions.qml:46 60 | msgid "Copy" 61 | msgstr "复制" 62 | 63 | #: ../widgets/DInputActions.qml:56 64 | msgid "Cut" 65 | msgstr "剪切" 66 | 67 | #: ../widgets/DInputActions.qml:66 68 | msgid "Paste" 69 | msgstr "粘贴" 70 | 71 | #: ../widgets/DInputActions.qml:76 72 | msgid "Select all" 73 | msgstr "全选" 74 | -------------------------------------------------------------------------------- /locale/zh_TW.po: -------------------------------------------------------------------------------- 1 | # SOME DESCRIPTIVE TITLE. 2 | # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER 3 | # This file is distributed under the same license as the PACKAGE package. 4 | # 5 | # Translators: 6 | # freddy4212 , 2014 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: Deepin QML Widgets\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2015-01-12 14:13+0800\n" 12 | "PO-Revision-Date: 2015-04-05 17:12+0000\n" 13 | "Last-Translator: deepin_transifex \n" 14 | "Language-Team: Chinese (Taiwan) (http://www.transifex.com/projects/p/deepin-qml-widgets/language/zh_TW/)\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Language: zh_TW\n" 19 | "Plural-Forms: nplurals=1; plural=0;\n" 20 | 21 | #: ../widgets/DFileChooseDialog.qml:225 ../widgets/plugins/dfiledialog.cpp:176 22 | msgid "Cancel" 23 | msgstr "取消" 24 | 25 | #: ../widgets/DFileChooseDialog.qml:233 26 | msgid "OK" 27 | msgstr "確定" 28 | 29 | #: ../widgets/plugins/dfiledialog.cpp:17 30 | msgid "Look in" 31 | msgstr "查看" 32 | 33 | #: ../widgets/plugins/dfiledialog.cpp:18 34 | msgid "Files of type" 35 | msgstr "檔案類型" 36 | 37 | #: ../widgets/plugins/dfiledialog.cpp:167 38 | msgid "Save" 39 | msgstr "儲存" 40 | 41 | #: ../widgets/plugins/dfiledialog.cpp:195 42 | msgid "Directory" 43 | msgstr "資料夾" 44 | 45 | #: ../widgets/plugins/dfiledialog.cpp:196 46 | msgid "Select" 47 | msgstr "選擇" 48 | 49 | #: ../widgets/plugins/dfiledialog.cpp:204 50 | msgid "File name" 51 | msgstr "檔案名稱" 52 | 53 | #: ../widgets/plugins/dfiledialog.cpp:167 54 | #: ../widgets/plugins/dfiledialog.cpp:205 55 | msgid "Open" 56 | msgstr "開啟" 57 | 58 | #: ../widgets/DInputActions.qml:46 59 | msgid "Copy" 60 | msgstr "複製" 61 | 62 | #: ../widgets/DInputActions.qml:56 63 | msgid "Cut" 64 | msgstr "剪下" 65 | 66 | #: ../widgets/DInputActions.qml:66 67 | msgid "Paste" 68 | msgstr "貼上" 69 | 70 | #: ../widgets/DInputActions.qml:76 71 | msgid "Select all" 72 | msgstr "全選" 73 | -------------------------------------------------------------------------------- /qml-gettext-plugin/.gitignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | *.cache 3 | *.o 4 | build 5 | lib 6 | mkspecs 7 | *.user 8 | -------------------------------------------------------------------------------- /qml-gettext-plugin/SubItem.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.0 11 | import QtQuick.Controls 1.0 12 | 13 | CheckBox { 14 | text: dsTr("shutdown") 15 | } 16 | 17 | 18 | -------------------------------------------------------------------------------- /qml-gettext-plugin/plugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | 11 | #ifndef __DBUS_H__ 12 | #define __DBUS_H__ 13 | 14 | 15 | #include "deepinlocale.h" 16 | #include 17 | #include 18 | 19 | class DBusPlugin: public QQmlExtensionPlugin 20 | { 21 | Q_OBJECT 22 | Q_PLUGIN_METADATA(IID "deepin.locale.tools") 23 | 24 | public: 25 | void registerTypes(const char* uri) { 26 | qmlRegisterType(uri, 1, 0, "DLocale"); 27 | } 28 | }; 29 | #endif 30 | 31 | -------------------------------------------------------------------------------- /qml-gettext-plugin/qml-gettext-plugin.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = lib 2 | CONFIC += plugin 3 | QT += qml dbus 4 | 5 | TARGET = dlocale 6 | DESTDIR = Deepin/Locale 7 | 8 | HEADERS += plugin.h deepinlocale.h 9 | 10 | target.path = $$[QT_INSTALL_QML]/Deepin/Locale 11 | 12 | qmldir.path = $$[QT_INSTALL_QML]/Deepin/Locale 13 | qmldir.files += qmldir plugins.qmltypes 14 | INSTALLS += target qmldir 15 | -------------------------------------------------------------------------------- /qml-gettext-plugin/qmldir: -------------------------------------------------------------------------------- 1 | module Deepin.Locale 2 | plugin dlocale 3 | -------------------------------------------------------------------------------- /qml-gettext-plugin/test.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import Deepin.Locale 1.0 11 | import QtQuick 2.0 12 | import QtQuick.Controls 1.0 13 | 14 | Item { 15 | DLocale { 16 | id:t 17 | domain:"DDE" //mo file. See also man 3 dgettext 18 | 19 | // NOTES: 1. LC_XX will not be used when set LANGUAGE environment 2. LANG environment is lest important(only used when LC_XX not set) 20 | } 21 | function dsTr(s) { return t.dsTr(s) } // current deepin-lupdate only recognize dsTr function, so we must create one. 22 | 23 | width: t.lang == "zh" ? 800 : 200 24 | height: 200 25 | Column { 26 | width: parent.width 27 | height: 200 28 | Text { 29 | text: "Current locale TIME :" + t.localeTIME // test read locale variable 30 | } 31 | Text { 32 | id: x 33 | text: dsTr("guest") 34 | } 35 | SubItem { } //test submodule use dsTr 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /rebuild.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | rm -rf build 4 | mkdir build 5 | cd build 6 | qmake .. 7 | make 8 | sudo make install 9 | -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/add_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/add_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/add_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/add_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/add_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/add_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/arrow_down_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/arrow_down_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/arrow_down_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/arrow_down_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/arrow_down_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/arrow_down_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/arrow_down_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/arrow_down_white.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/arrow_left_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/arrow_left_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/arrow_left_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/arrow_left_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/arrow_left_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/arrow_left_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/arrow_left_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/arrow_left_white.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/arrow_right_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/arrow_right_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/arrow_right_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/arrow_right_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/arrow_right_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/arrow_right_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/arrow_right_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/arrow_right_white.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/arrow_up_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/arrow_up_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/arrow_up_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/arrow_up_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/arrow_up_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/arrow_up_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/arrow_up_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/arrow_up_white.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/button_center_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/button_center_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/button_center_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/button_center_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/button_left_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/button_left_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/button_left_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/button_left_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/button_right_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/button_right_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/button_right_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/button_right_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/checkbox_checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/checkbox_checked.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/checkbox_checked_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/checkbox_checked_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/checkbox_checked_insensitive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/checkbox_checked_insensitive.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/checkbox_unchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/checkbox_unchecked.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/checkbox_unchecked_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/checkbox_unchecked_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/checkbox_unchecked_insensitive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/checkbox_unchecked_insensitive.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/clear_content_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/clear_content_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/clear_content_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/clear_content_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/clear_content_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/clear_content_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/clear_white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/clear_white.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/delete_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/delete_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/delete_multi_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/delete_multi_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/delete_multi_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/delete_multi_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/delete_multi_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/delete_multi_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/delete_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/delete_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/delete_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/delete_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/file_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/file_24.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/folder_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/folder_24.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/folder_up_24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/folder_up_24.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/icon_view_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/icon_view_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/icon_view_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/icon_view_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/icon_view_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/icon_view_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/list_view_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/list_view_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/list_view_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/list_view_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/list_view_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/list_view_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/loadfile_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/loadfile_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/loadfile_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/loadfile_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/loadfile_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/loadfile_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/multiselect_active_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/multiselect_active_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/multiselect_inactive_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/multiselect_inactive_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/multiselect_inactive_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/multiselect_inactive_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/password_hide_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/password_hide_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/password_hide_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/password_hide_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/password_hide_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/password_hide_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/password_show_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/password_show_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/password_show_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/password_show_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/password_show_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/password_show_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/radio_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/radio_selected.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/radio_selected_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/radio_selected_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/radio_selected_insensitive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/radio_selected_insensitive.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/radio_unselected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/radio_unselected.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/radio_unselected_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/radio_unselected_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/radio_unselected_insensitive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/radio_unselected_insensitive.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/restore_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/restore_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/restore_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/restore_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/restore_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/restore_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/search_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/search_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/search_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/search_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/search_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/search_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/slider_balance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/slider_balance.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/slider_handle.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 14 | 15 | 16 | 17 | 18 | 19 | 21 | 22 | -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/spinner_decrease.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/spinner_decrease.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/spinner_decrease_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/spinner_decrease_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/spinner_decrease_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/spinner_decrease_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/spinner_decrease_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/spinner_decrease_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/spinner_increase.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/spinner_increase.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/spinner_increase_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/spinner_increase_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/spinner_increase_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/spinner_increase_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/spinner_increase_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/spinner_increase_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/tick_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/tick_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/tick_insensitive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/tick_insensitive.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/tick_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/tick_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/transparent_button_left_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/transparent_button_left_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/transparent_button_left_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/transparent_button_left_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/transparent_button_left_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/transparent_button_left_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/transparent_button_middle_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/transparent_button_middle_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/transparent_button_middle_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/transparent_button_middle_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/transparent_button_middle_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/transparent_button_middle_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/transparent_button_right_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/transparent_button_right_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/transparent_button_right_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/transparent_button_right_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/transparent_button_right_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/transparent_button_right_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/up_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/up_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/up_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/up_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/up_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/up_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/window_close_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/window_close_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/window_close_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/window_close_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/window_close_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/window_close_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/window_max_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/window_max_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/window_max_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/window_max_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/window_max_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/window_max_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/window_min_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/window_min_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/window_min_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/window_min_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/window_min_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/window_min_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/window_option_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/window_option_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/window_option_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/window_option_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/window_option_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/window_option_press.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/window_unmax_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/window_unmax_hover.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/window_unmax_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/window_unmax_normal.png -------------------------------------------------------------------------------- /style-resource/StyleBlack/images/window_unmax_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleBlack/images/window_unmax_press.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/arrow_down_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/arrow_down_hover.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/arrow_down_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/arrow_down_normal.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/arrow_down_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/arrow_down_press.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/arrow_left_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/arrow_left_hover.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/arrow_left_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/arrow_left_normal.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/arrow_left_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/arrow_left_press.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/arrow_right_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/arrow_right_hover.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/arrow_right_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/arrow_right_normal.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/arrow_right_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/arrow_right_press.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/arrow_up_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/arrow_up_hover.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/arrow_up_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/arrow_up_normal.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/arrow_up_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/arrow_up_press.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/checkbox_checked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/checkbox_checked.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/checkbox_checked_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/checkbox_checked_hover.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/checkbox_checked_insensitive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/checkbox_checked_insensitive.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/checkbox_unchecked.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/checkbox_unchecked.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/checkbox_unchecked_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/checkbox_unchecked_hover.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/checkbox_unchecked_insensitive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/checkbox_unchecked_insensitive.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/clear_content_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/clear_content_hover.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/clear_content_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/clear_content_normal.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/clear_content_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/clear_content_press.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/delete_multi_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/delete_multi_hover.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/delete_multi_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/delete_multi_normal.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/delete_multi_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/delete_multi_press.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/multiselect_active_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/multiselect_active_normal.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/multiselect_inactive_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/multiselect_inactive_hover.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/multiselect_inactive_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/multiselect_inactive_normal.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/password_hide_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/password_hide_hover.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/password_hide_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/password_hide_normal.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/password_hide_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/password_hide_press.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/password_show_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/password_show_hover.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/password_show_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/password_show_normal.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/password_show_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/password_show_press.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/radio_selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/radio_selected.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/radio_selected_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/radio_selected_hover.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/radio_selected_insensitive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/radio_selected_insensitive.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/radio_unselected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/radio_unselected.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/radio_unselected_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/radio_unselected_hover.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/radio_unselected_insensitive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/radio_unselected_insensitive.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/restore_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/restore_hover.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/restore_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/restore_normal.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/restore_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/restore_press.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/search_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/search_hover.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/search_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/search_normal.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/search_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/search_press.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/spinner_decrease_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/spinner_decrease_hover.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/spinner_decrease_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/spinner_decrease_normal.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/spinner_decrease_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/spinner_decrease_press.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/spinner_increase_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/spinner_increase_hover.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/spinner_increase_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/spinner_increase_normal.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/spinner_increase_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/spinner_increase_press.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/tick_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/tick_hover.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/tick_insensitive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/tick_insensitive.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/tick_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/tick_normal.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/window_close_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/window_close_hover.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/window_close_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/window_close_normal.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/window_close_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/window_close_press.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/window_min_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/window_min_hover.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/window_min_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/window_min_normal.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/window_min_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/window_min_press.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/window_option_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/window_option_hover.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/window_option_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/window_option_normal.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/window_option_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/window_option_press.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/window_unmax_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/window_unmax_hover.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/window_unmax_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/window_unmax_normal.png -------------------------------------------------------------------------------- /style-resource/StyleWhite/images/window_unmax_press.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martyr-deepin/deepin-qml-widgets/8930f3e9e84bfd7492b7b476ecd36a6c5de34a97/style-resource/StyleWhite/images/window_unmax_press.png -------------------------------------------------------------------------------- /widgets/DArrowButton.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | DImageButton { 14 | readonly property string directionLeft: "left" 15 | readonly property string directionRight: "right" 16 | readonly property string directionUp: "up" 17 | readonly property string directionDown: "down" 18 | 19 | property string direction: "right" 20 | 21 | transitionEnabled: true 22 | 23 | normal_image: DPalette.imagesPath + "arrow_" + direction +"_normal.png" 24 | hover_image: DPalette.imagesPath + "arrow_" + direction +"_hover.png" 25 | press_image: DPalette.imagesPath + "arrow_" + direction + "_press.png" 26 | } 27 | -------------------------------------------------------------------------------- /widgets/DBaseLine.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.0 11 | import QtQuick.Controls 1.0 12 | import QtQuick.Layouts 1.0 13 | import Deepin.Widgets 1.0 14 | 15 | Rectangle { 16 | id: header 17 | 18 | property alias leftLoader: leftArea 19 | property alias rightLoader: rightArea 20 | property int leftMargin: 15 21 | property int rightMargin: 15 22 | 23 | height: 30 24 | width: parent.width 25 | color: DPalette.panelBgColor 26 | 27 | Loader { 28 | id: leftArea 29 | anchors.left: parent.left 30 | anchors.leftMargin: leftMargin 31 | anchors.verticalCenter: parent.verticalCenter 32 | } 33 | 34 | Loader { 35 | id: rightArea 36 | anchors.right: parent.right 37 | anchors.rightMargin: rightMargin 38 | anchors.verticalCenter: parent.verticalCenter 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /widgets/DCenterLine.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.0 11 | import QtQuick.Controls 1.0 12 | import QtQuick.Layouts 1.0 13 | import Deepin.Widgets 1.0 14 | 15 | Rectangle { 16 | id: header 17 | 18 | property alias title: title 19 | property alias content: rightArea 20 | property int leftWidth: 120 21 | property int centerPadding: 10 22 | 23 | height: 30 24 | width: parent.width 25 | color: DPalette.panelBgColor 26 | 27 | DLabel { 28 | id: title 29 | font.pixelSize: 12 30 | anchors.verticalCenter: parent.verticalCenter 31 | width: leftWidth 32 | wrapMode: Text.WordWrap 33 | horizontalAlignment: Text.AlignRight 34 | text: "Double click frequency" 35 | } 36 | 37 | Loader { 38 | id: rightArea 39 | anchors.left: title.right 40 | anchors.leftMargin: centerPadding 41 | anchors.verticalCenter: parent.verticalCenter 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /widgets/DCheckBox.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import QtQuick.Controls 1.1 12 | import QtQuick.Controls.Styles 1.1 13 | import Deepin.Widgets 1.0 14 | 15 | CheckBox { 16 | property int fontSize: 12 17 | property string imagesPath: DPalette.imagesPath 18 | 19 | text: "hello" 20 | style: CheckBoxStyle { 21 | background: Item {} 22 | indicator: Image { 23 | source: control.checked ? control.hovered ? imagesPath + "checkbox_checked_hover.png" : imagesPath + "checkbox_checked.png" 24 | : control.hovered ? imagesPath + "checkbox_unchecked_hover.png" : imagesPath + "checkbox_unchecked.png" 25 | } 26 | label: Text { 27 | color: DPalette.textNormalColor 28 | text: control.text 29 | font.pixelSize: control.fontSize 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /widgets/DColumn.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.0 11 | 12 | Item { 13 | id:root 14 | property list datas 15 | default property alias _onlyWorkaround_: root.datas 16 | width:parent.width 17 | Component { 18 | id:seperator 19 | DSeparatorHorizontal{} 20 | } 21 | Column { 22 | Repeater { 23 | model: datas 24 | delegate: Component { 25 | Column { 26 | width: root.width 27 | id: i 28 | Component.onCompleted: { 29 | if (root.datas[index].active !== false) { 30 | //Let Loader(or other Component) with empty content work with this trick 31 | i.children = root.datas[index] 32 | if (root.datas[index].width != 0) { 33 | var o = seperator.createObject(i) 34 | o.width = root.width 35 | } 36 | } 37 | } 38 | } 39 | } 40 | } 41 | } 42 | function getMethods(obj) 43 | { 44 | var res = []; 45 | for(var m in obj) { 46 | if(typeof obj[m] == "function") { 47 | res.push(m) 48 | } 49 | } 50 | return res; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /widgets/DDeleteLine.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | Item { 14 | id: root 15 | width: 300 16 | height: 100 17 | 18 | property int leftPadding: 15 19 | property int moveDelta: 50 20 | property bool active: false 21 | property alias content: loader.sourceComponent 22 | 23 | signal expanded 24 | signal shrinked 25 | signal action 26 | 27 | function expand() { 28 | out_animation.start() 29 | } 30 | 31 | function shrink() { 32 | in_animation.start() 33 | } 34 | 35 | DssMultiDeleteButton { 36 | id: button 37 | opacity: 0 38 | 39 | onClicked: { 40 | root.action() 41 | } 42 | 43 | anchors.left: parent.left 44 | anchors.leftMargin: root.leftPadding 45 | anchors.verticalCenter: parent.verticalCenter 46 | } 47 | 48 | Loader { id: loader } 49 | 50 | SequentialAnimation { 51 | id: out_animation 52 | SmoothedAnimation { target: loader; property: "x"; from: 0; to: root.moveDelta; duration: 300} 53 | SmoothedAnimation { target: button; property: "opacity"; from: 0; to: 1; duration: 3000} 54 | onStopped: { root.expanded() } 55 | } 56 | 57 | SequentialAnimation { 58 | id: in_animation 59 | SmoothedAnimation { target: button; property: "opacity"; from: 1; to: 0; duration: 300} 60 | SmoothedAnimation { target: loader; property: "x"; from: root.moveDelta; to: 0; duration: 300} 61 | onStopped: { root.shrinked() } 62 | } 63 | } -------------------------------------------------------------------------------- /widgets/DDialogBox.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.0 11 | import QtGraphicalEffects 1.0 12 | import Deepin.Widgets 1.0 13 | 14 | Rectangle { 15 | id: root 16 | 17 | property int frameRadius: radius 18 | property int shadowRadius: 10 19 | property real shadowAlpha: 0.5 20 | 21 | color: "transparent" 22 | default property alias content: rootFrame.children 23 | 24 | RectangularGlow { 25 | id: effect 26 | anchors.fill: rootFrame 27 | glowRadius: shadowRadius 28 | spread: 0.2 29 | color: Qt.rgba(0, 0, 0, shadowAlpha) 30 | cornerRadius: frameRadius + glowRadius 31 | } 32 | 33 | Rectangle{ 34 | id: rootFrame 35 | width: parent.width - (frameRadius + shadowRadius) * 2 36 | height: parent.height - (frameRadius + shadowRadius) * 2 37 | anchors.centerIn: parent 38 | radius: frameRadius 39 | 40 | color: Qt.rgba(0, 0, 0, 0.85) 41 | border.color: Qt.rgba(1, 1, 1, 0.2) 42 | border.width: 1 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /widgets/DDownArrowButton.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | Item { 14 | id: arrowButton 15 | anchors.centerIn: parent 16 | width: image.width 17 | height: image.height 18 | 19 | property bool checked: false 20 | state: checked ? "up" : "down" 21 | 22 | signal clicked 23 | 24 | property string imageKey: "down" 25 | 26 | DOpacityImageButton { 27 | id: image 28 | anchors.centerIn: parent 29 | source: DPalette.imagesPath + "arrow_" + imageKey + "_white.png" 30 | 31 | onClicked: { 32 | arrowButton.checked = !arrowButton.checked 33 | arrowButton.clicked() 34 | } 35 | 36 | } 37 | 38 | states: [ 39 | State { 40 | name: "down" 41 | PropertyChanges { target: arrowButton; imageKey: "down" } 42 | }, 43 | State { 44 | name: "up" 45 | PropertyChanges { target: arrowButton; imageKey: "up" } 46 | } 47 | ] 48 | } 49 | -------------------------------------------------------------------------------- /widgets/DDragableArea.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | 12 | MouseArea { 13 | property var window 14 | 15 | property int dragStartX 16 | property int dragStartY 17 | property int windowLastX 18 | property int windowLastY 19 | 20 | onPressed: { 21 | var pos = window.getCursorPos() 22 | 23 | windowLastX = window.x 24 | windowLastY = window.y 25 | dragStartX = pos.x 26 | dragStartY = pos.y 27 | } 28 | onPositionChanged: { 29 | if (pressed) { 30 | var pos = window.getCursorPos() 31 | window.setX(windowLastX + pos.x - dragStartX) 32 | window.setY(windowLastY + pos.y - dragStartY) 33 | windowLastX = window.x 34 | windowLastY = window.y 35 | dragStartX = pos.x 36 | dragStartY = pos.y 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /widgets/DFileChooseInput.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.0 11 | import Deepin.Widgets 1.0 12 | 13 | DTextInput { 14 | id: fileChooseInput 15 | 16 | signal fileChooseClicked 17 | 18 | textInput.anchors.rightMargin: 3 + buttonBox.width 19 | Item { 20 | id: buttonBox 21 | parent: textInputBox 22 | width: childrenRect.width 23 | height: parent.height 24 | anchors.right: parent.right 25 | z: 10 26 | 27 | Rectangle { 28 | width: 1 29 | height: parent.height 30 | color: Qt.rgba(1, 1, 1, 0.1) 31 | } 32 | 33 | Rectangle { 34 | width: parent.width - 1 35 | height: parent.height 36 | anchors.right: parent.right 37 | radius: 3 38 | gradient: Gradient { 39 | GradientStop { 40 | position: 0.0 41 | color: loadFileButton.pressed ? Qt.rgba(0, 0, 0, 0.05) : Qt.rgba(1, 1, 1, 0.05) 42 | } 43 | GradientStop { 44 | position: 1.0 45 | color: loadFileButton.pressed ? Qt.rgba(0, 0, 0, 0) : Qt.rgba(1, 1, 1, 0) 46 | } 47 | } 48 | } 49 | 50 | DImageButton { 51 | id: loadFileButton 52 | anchors.verticalCenter: parent.verticalCenter 53 | normal_image: DPalette.imagesPath + "loadfile_normal.png" 54 | hover_image: DPalette.imagesPath + "loadfile_hover.png" 55 | press_image: DPalette.imagesPath + "loadfile_press.png" 56 | onClicked: fileChooseInput.fileChooseClicked() 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /widgets/DGridView.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | 12 | GridView { 13 | DScrollBar { 14 | flickable: parent 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /widgets/DGroupBox.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.2 11 | import QtQuick.Controls 1.1 12 | import Deepin.Widgets 1.0 13 | 14 | GroupBox { 15 | id: g_box 16 | title: " " 17 | property string tTitle: "" 18 | 19 | DssH2 { 20 | text: g_box.tTitle 21 | parent: g_box 22 | } 23 | } -------------------------------------------------------------------------------- /widgets/DImageCheckBox.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import QtQuick.Controls 1.1 12 | import QtQuick.Controls.Styles 1.1 13 | import Deepin.Widgets 1.0 14 | 15 | CheckBox { 16 | property int fontSize: 12 17 | property url imageSource 18 | property int spacing: 2 19 | 20 | text: "hello" 21 | style: CheckBoxStyle { 22 | spacing: control.spacing 23 | background: Item {} 24 | indicator: Image { 25 | source: control.checked ? control.hovered ? DPalette.imagesPath + "checkbox_checked_hover.png" : DPalette.imagesPath + "checkbox_checked.png" 26 | : control.hovered ? DPalette.imagesPath + "checkbox_unchecked_hover.png" : DPalette.imagesPath + "checkbox_unchecked.png" 27 | } 28 | label: Image { 29 | source: control.imageSource 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /widgets/DLabel.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import QtQuick.Controls 1.0 12 | import Deepin.Widgets 1.0 13 | 14 | Label { 15 | focus: true 16 | color: DPalette.textNormalColor 17 | } 18 | -------------------------------------------------------------------------------- /widgets/DLinkText.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | 12 | Text { 13 | color: "#0090ff" 14 | property url refLink 15 | 16 | MouseArea { 17 | anchors.fill: parent 18 | onClicked: Qt.openUrlExternally(refLink) 19 | } 20 | } -------------------------------------------------------------------------------- /widgets/DListModelComponent.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | 12 | Component { 13 | ListModel {} 14 | } 15 | -------------------------------------------------------------------------------- /widgets/DListView.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | 12 | ListView{ 13 | DScrollBar { 14 | flickable: parent 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /widgets/DMenuItem.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | Item { 14 | id: wrapper 15 | width: 100; height: DPalette.menuItemHeight 16 | 17 | property alias label: headLabel 18 | property alias value: headLabel.text 19 | property bool itemOnHover: false //use wrapper.ListView.view.currentIndex to record index may cause crash,like deepin-movie font-list 20 | property int index: 0 21 | 22 | Rectangle { 23 | color: itemOnHover ? DPalette.popupMenuObj.hoverBgColor : DPalette.popupMenuObj.normalBgColor 24 | anchors.fill: parent 25 | } 26 | 27 | Image { 28 | id: headImg 29 | source: itemOnHover ? DPalette.imagesPath + "tick_hover.png" : DPalette.imagesPath + "tick_normal.png" 30 | anchors.verticalCenter: parent.verticalCenter 31 | anchors.left: parent.left 32 | anchors.leftMargin: DPalette.textLeftMargin 33 | visible: index == 0 34 | } 35 | 36 | DssH2 { 37 | id: headLabel 38 | anchors.left: parent.left 39 | anchors.leftMargin: DPalette.textLeftMargin * 2 + headImg.width 40 | anchors.verticalCenter: parent.verticalCenter 41 | text: "text " + index 42 | color: itemOnHover ? DPalette.popupMenuObj.hoverTextColor : DPalette.popupMenuObj.normalTextColor 43 | } 44 | } 45 | 46 | -------------------------------------------------------------------------------- /widgets/DMultipleSelectView.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | 12 | GridView { 13 | id: select_view 14 | 15 | interactive: false 16 | cellWidth: width / columns 17 | cellHeight: height / rows 18 | property bool singleSelectionMode: false 19 | 20 | property int rows: 1 21 | property int columns: 3 22 | property int viewWidth: 80 23 | property int viewHeight: 24 24 | 25 | property var selectedIndexs: [] 26 | property var selectedItems: [] 27 | 28 | signal select(int index, var item) 29 | signal deselect(int index, var item) 30 | 31 | function selectItem(index) { 32 | select_view.getDelegateInstanceAt(index).select() 33 | } 34 | 35 | function deselectItem(index) { 36 | select_view.getDelegateInstanceAt(index).deselect() 37 | } 38 | 39 | function clear() { 40 | for (var index in selectedItems) { 41 | selectedItems[index].deselect() 42 | } 43 | selectedItems = [] 44 | selectedIndexs = [] 45 | } 46 | 47 | function getDelegateInstanceAt(index) { 48 | for(var i = 0; i < contentItem.children.length; ++i) { 49 | var item = contentItem.children[i]; 50 | if ((typeof item.delegateIndex != "undefined") && item.delegateIndex == index) { 51 | return item 52 | } 53 | } 54 | return undefined 55 | } 56 | 57 | delegate: DSelectViewDelegate{} 58 | } 59 | -------------------------------------------------------------------------------- /widgets/DOpacityImageButton.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | 12 | Image { 13 | id: actionButton 14 | 15 | opacity: 0.5 16 | property alias mouseArea: mouseArea 17 | 18 | signal clicked 19 | 20 | states: State { 21 | name: "hovered" 22 | PropertyChanges { target: actionButton; opacity: 1.0 } 23 | } 24 | 25 | transitions: Transition { 26 | NumberAnimation { properties: "opacity"; duration: 350 } 27 | } 28 | 29 | MouseArea { 30 | id: mouseArea 31 | anchors.fill: actionButton 32 | hoverEnabled: true 33 | 34 | onEntered: { 35 | actionButton.state = "hovered" 36 | mouseArea.cursorShape = Qt.PointingHandCursor 37 | } 38 | 39 | onExited: { 40 | actionButton.state = "" 41 | mouseArea.cursorShape = Qt.ArrowCursor 42 | } 43 | 44 | onReleased: { 45 | actionButton.state = mouseArea.containsMouse ? "hovered" : "" 46 | } 47 | onClicked: { 48 | parent.clicked() 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /widgets/DPopupRoundItem.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import QtGraphicalEffects 1.0 12 | 13 | Item { 14 | id: container 15 | property variant target 16 | width: target.width; height: target.height 17 | property alias radius: mask.radius 18 | 19 | Rectangle { 20 | anchors.fill: container 21 | id: mask 22 | radius: container.radius 23 | antialiasing: true 24 | smooth: true 25 | } 26 | 27 | OpacityMask { 28 | anchors.fill: parent 29 | source: ShaderEffectSource { sourceItem: target; hideSource: true } 30 | maskSource: ShaderEffectSource{ sourceItem: mask; hideSource: true } 31 | } 32 | } 33 | 34 | -------------------------------------------------------------------------------- /widgets/DPopupWindow.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import QtQuick.Window 2.1 12 | import QtGraphicalEffects 1.0 13 | import Deepin.Widgets 1.0 14 | 15 | //Use DWindow or DOverrideWindow will cause DComboBox Exception crash in some situation when use it in DMenu 16 | Window { 17 | id: win 18 | width: 400 19 | height: 300 20 | color: "transparent" 21 | 22 | flags: Qt.FramelessWindowHint | Qt.WindowStaysOnTopHint | Qt.X11BypassWindowManagerHint 23 | 24 | onVisibleChanged: { 25 | if(visible){ 26 | raise() 27 | } 28 | } 29 | 30 | property var parentWindow: null 31 | 32 | function isInRect(pos, rect){ 33 | if(pos.x > rect.x && pos.x < rect.x + rect.width && pos.y > rect.y && pos.y < rect.y + rect.height){ 34 | return true 35 | } 36 | else{ 37 | return false 38 | } 39 | } 40 | 41 | Connections{ 42 | target: parentWindow 43 | onWindowFocusChanged: { 44 | if(!window && win.visible){ 45 | win.visible = false 46 | } 47 | } 48 | 49 | onMousePressed: { 50 | var pos = parentWindow.getCursorPos() 51 | if(!isInRect(pos, win)){ 52 | win.visible = false 53 | } 54 | } 55 | 56 | onWheel: { 57 | var pos = parentWindow.getCursorPos() 58 | if(!isInRect(pos, win)){ 59 | win.visible = false 60 | } 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /widgets/DRadio.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import QtQuick.Controls 1.1 12 | import QtQuick.Controls.Styles 1.1 13 | import Deepin.Widgets 1.0 14 | 15 | RadioButton { 16 | property int fontSize: 12 17 | property string imagesPath: DPalette.imagesPath 18 | 19 | style: RadioButtonStyle { 20 | background: Item {} 21 | indicator: Image { 22 | source: control.checked ? control.hovered ? imagesPath + "radio_selected_hover.png" : imagesPath + "radio_selected.png" 23 | : control.hovered ? imagesPath + "radio_unselected_hover.png" : imagesPath + "radio_unselected.png" 24 | } 25 | label: Text { 26 | color: DPalette.textNormalColor 27 | text: control.text 28 | font.pixelSize: control.fontSize 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /widgets/DRadioButtonHighlight.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import QtGraphicalEffects 1.0 12 | 13 | Rectangle { 14 | radius: 3 15 | border.color: Qt.rgba(0, 0, 0, 1) 16 | border.width: 1 17 | 18 | gradient: Gradient { 19 | GradientStop { position: 0.0; color: "#1e1e1e"} 20 | GradientStop { position: 0.8; color: "#080808"} 21 | GradientStop { position: 0.95; color: "#0e0e0e"} 22 | GradientStop { position: 1.0; color: "#2b2b2b"} 23 | } 24 | 25 | Rectangle { 26 | id: white_stroke 27 | width: parent.width - 2 28 | height: parent.height - 2 29 | border.color: Qt.rgba(1, 1, 1, 0.1) 30 | border.width: 1 31 | color: "transparent" 32 | 33 | anchors.centerIn: parent 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /widgets/DRightArrowHeader.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.0 11 | import QtQuick.Controls 1.0 12 | import QtQuick.Layouts 1.0 13 | import Deepin.Widgets 1.0 14 | 15 | DBaseLine { 16 | id: header 17 | 18 | property string text: "untitled" 19 | 20 | signal toggled 21 | 22 | leftLoader.sourceComponent: Label { 23 | id: titleLabel 24 | text: header.text 25 | color: DPalette.textNormalColor 26 | } 27 | 28 | rightLoader.sourceComponent: Image { 29 | id: arrow 30 | source: DPalette.imagesPath + "arrow_right_normal.png" 31 | MouseArea { 32 | anchors.fill:parent 33 | onClicked: { 34 | toggled() 35 | } 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /widgets/DRoundItem.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import QtGraphicalEffects 1.0 12 | 13 | Item { 14 | id: round_item 15 | width: 100 16 | height: 100 17 | 18 | property int radius: 50 19 | property color bgColor: "#1A1A1B" 20 | default property alias source: target.sourceComponent 21 | 22 | Loader { 23 | id: target 24 | } 25 | 26 | Rectangle { 27 | id: mask 28 | 29 | color: round_item.bgColor 30 | radius: round_item.radius 31 | smooth: true 32 | antialiasing: true 33 | 34 | anchors.fill: parent 35 | } 36 | 37 | OpacityMask { 38 | anchors.fill: parent 39 | 40 | source: target 41 | maskSource: mask 42 | 43 | Component.onCompleted: { 44 | target.visible = false 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /widgets/DScrollWidget.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import QtQuick.Controls 1.0 12 | import QtQuick.Controls.Styles 1.0 13 | 14 | ScrollView { 15 | id: root 16 | frameVisible: false 17 | property int rightMargin 18 | Component.onCompleted: { 19 | viewport.anchors.rightMargin = 0 20 | __scroller.rightMargin = -3 + rightMargin 21 | flickableItem.interactive = true 22 | } 23 | 24 | style: ScrollViewStyle { 25 | handleOverlap: 0 26 | handle: Item { 27 | implicitWidth: 14 28 | implicitHeight: 26 29 | Rectangle { 30 | color: styleData.hovered ? Qt.rgba(66/255.0, 66/255.0, 70/255.0, 0.8) : Qt.rgba(100/255.0, 100/255.0, 100/255.0) 31 | anchors.fill: parent 32 | anchors.topMargin: 6 33 | anchors.leftMargin: 4 34 | anchors.rightMargin: 4 35 | anchors.bottomMargin: 6 36 | radius: 3 37 | } 38 | } 39 | scrollBarBackground: Item { 40 | implicitWidth: 14 41 | implicitHeight: 26 42 | } 43 | decrementControl: Item {} 44 | incrementControl: Item {} 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /widgets/DSeparatorHorizontal.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | Item { 14 | width: parent.width 15 | height: topRec.height + bottomRec.height 16 | 17 | property color topColor: DPalette.separatorStyle.topColor 18 | property color bottomColor: DPalette.separatorStyle.bottomColor 19 | 20 | Rectangle { 21 | id: topRec 22 | anchors.top: parent.top 23 | anchors.left: parent.left 24 | width: parent.width 25 | height: DPalette.separatorStyle.topHeight 26 | color: topColor 27 | } 28 | Rectangle { 29 | id: bottomRec 30 | anchors.top: parent.top 31 | anchors.topMargin: 1 32 | anchors.left: parent.left 33 | width: parent.width 34 | height: DPalette.separatorStyle.bottomHeight 35 | color: bottomColor 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /widgets/DSeparatorVertical.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | Row { 14 | width: leftRec.width + rightRec.width 15 | height: parent.height 16 | 17 | property color leftColor: DPalette.separatorStyle.leftColor 18 | property color rightColor: DPalette.separatorStyle.rightColor 19 | 20 | Rectangle { 21 | id: leftRec 22 | width: DPalette.separatorStyle.leftWidth 23 | height: parent.height 24 | color: leftColor 25 | } 26 | Rectangle { 27 | id:rightRec 28 | width: DPalette.separatorStyle.rightWidth 29 | height: parent.height 30 | color: rightColor 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /widgets/DShortcutInput.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | DTextInput { 14 | id: input 15 | readOnly: true 16 | text: shortcut || noneString 17 | keyboardOperationsEnabled: false 18 | 19 | 20 | property string shortcut: "shortcut" 21 | property string noneString 22 | property string promoteString 23 | 24 | signal shortcutSet (string shortcut) 25 | signal shortcutDisabled 26 | 27 | function shortcutToText(shortcut) { 28 | return shortcut ? KeysUtils.getOverriddenShortcut(shortcut) : noneString 29 | } 30 | 31 | onShortcutSet: text = shortcutToText(shortcut) 32 | // below line is necessary, it will prevent other operations from breaking 33 | // the binding of hotKey to text 34 | onShortcutChanged: text = shortcutToText(shortcut) 35 | onActiveFocusChanged: text = activeFocus ? promoteString : shortcutToText(shortcut) 36 | 37 | onKeyPressed: { 38 | var modifiers = [Qt.Key_Control, Qt.Key_Shift, Qt.Key_Alt, Qt.Key_Meta, Qt.Key_AltGr, Qt.Key_Super_L, Qt.Key_Super_R] 39 | if (modifiers.indexOf(event.key) == -1) { 40 | input.focus = false 41 | if (event.key != Qt.Key_Backspace) { 42 | input.shortcutSet(KeysUtils.keyEventToString(event.modifiers, event.key)) 43 | } else { 44 | input.shortcutDisabled() 45 | } 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /widgets/DSliderRect.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import QtQuick.Controls 1.0 12 | 13 | Item { 14 | id: sliderRect 15 | property alias value: dslider.value 16 | 17 | property string leftLabel: "" 18 | property string rightLabel: "" 19 | property var rulerData: [{"label": "L", "value": 0}, {"label": "R", "value": 1}] 20 | property real realValue: dslider.value 21 | 22 | property var listModelComponent: DListModelComponent {} 23 | property var rulerModel: { 24 | var model = listModelComponent.createObject(sliderRect, {}) 25 | if(leftLabel && rightLabel){ 26 | model.append({"label": leftLabel, "value": 0}) 27 | model.append({"label": rightLabel, "value": 1}) 28 | } 29 | else{ 30 | for(var i in rulerData){ 31 | model.append({"label": rulerData[i].label, "value": rulerData[i].value}) 32 | } 33 | } 34 | return model 35 | } 36 | 37 | height: 20 + dslider.height 38 | width: 180 39 | 40 | property int paddingRuler: 2 41 | 42 | DssH4 { 43 | id: valueTip 44 | x: dslider.grooveWidth * dslider.value + dslider.handleWidth/2 - width/2 45 | text: realValue.toFixed(2) 46 | visible: dslider.pressed 47 | } 48 | 49 | DSlider { 50 | id: dslider 51 | width: sliderRect.width 52 | anchors.verticalCenter: parent.verticalCenter 53 | } 54 | 55 | Repeater{ 56 | model: rulerModel 57 | delegate: DssH4 { 58 | anchors.top: dslider.bottom 59 | anchors.topMargin: -2 60 | x: dslider.grooveWidth * value + dslider.handleWidth/2 - width/2 61 | text: label 62 | } 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /widgets/DStatusImageButton.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | 12 | Item { 13 | id: button 14 | 15 | property var statusImageList: {} 16 | property string currentStatus: "undefined" 17 | 18 | property url normal_image: statusImageList[currentStatus][0] 19 | property url hover_image: statusImageList[currentStatus][1] 20 | property url press_image: statusImageList[currentStatus][2] 21 | 22 | signal clicked 23 | 24 | width: image.width 25 | height: image.height 26 | 27 | Image { 28 | id: image 29 | source: normal_image 30 | } 31 | 32 | MouseArea { 33 | id: mouseArea 34 | anchors.fill: parent 35 | hoverEnabled: true 36 | onEntered: { image.source = hover_image } 37 | onExited: { image.source = normal_image } 38 | onPressed: { image.source = press_image } 39 | onReleased: { 40 | button.clicked() 41 | image.source= mouseArea.containsMouse ? hover_image : normal_image 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /widgets/DSwitchButtonHeader.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | Rectangle { 14 | id: header 15 | 16 | property alias text: titleArea.text 17 | property alias style: titleArea.style 18 | property alias styleColor: titleArea.styleColor 19 | property alias active: actionArea.checked 20 | property alias font: titleArea.font 21 | 22 | property int leftMargin: DPalette.leftMargin 23 | property int rightMargin: DPalette.rightMargin 24 | 25 | height: 30 26 | width: parent.width 27 | color: DPalette.panelBgColor 28 | 29 | signal clicked 30 | 31 | DssH2 { 32 | id: titleArea 33 | anchors.left: parent.left 34 | anchors.leftMargin: leftMargin 35 | anchors.verticalCenter: parent.verticalCenter 36 | } 37 | 38 | Item { 39 | anchors.right: parent.right 40 | anchors.rightMargin: rightMargin 41 | anchors.verticalCenter: parent.verticalCenter 42 | height: parent.height - 2 43 | width: actionArea.width 44 | 45 | DSwitchButton { 46 | id: actionArea 47 | anchors.centerIn: parent 48 | 49 | onClicked: { 50 | header.clicked() 51 | } 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /widgets/DTitleCloseButton.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | /**************************************************************************** 11 | ** 12 | ** Copyright (C) 2011~2015 Deepin, Inc. 13 | ** 2011~2015 Kaisheng Ye 14 | ** 15 | ** Author: Kaisheng Ye 16 | ** Maintainer: Kaisheng Ye 17 | ** 18 | ** This program is free software: you can redistribute it and/or modify 19 | ** it under the terms of the GNU General Public License as published by 20 | ** the Free Software Foundation, either version 3 of the License, or 21 | ** any later version. 22 | ** 23 | ** This program is distributed in the hope that it will be useful, 24 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of 25 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 26 | ** GNU General Public License for more details. 27 | ** 28 | ** You should have received a copy of the GNU General Public License 29 | ** along with this program. If not, see . 30 | ** 31 | ****************************************************************************/ 32 | import QtQuick 2.1 33 | import Deepin.Widgets 1.0 34 | 35 | DImageButton { 36 | normal_image: DPalette.imagesPath + "window_close_normal.png" 37 | hover_image: DPalette.imagesPath + "window_close_hover.png" 38 | press_image: DPalette.imagesPath + "window_close_press.png" 39 | } 40 | -------------------------------------------------------------------------------- /widgets/DTitleMaxUnmaxButton.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | DImageButton { 14 | property bool maximized: false 15 | normal_image: maximized ? DPalette.imagesPath + "window_unmax_normal.png" : DPalette.imagesPath + "window_max_normal.png" 16 | hover_image: maximized ? DPalette.imagesPath + "window_unmax_hover.png" : DPalette.imagesPath + "window_max_hover.png" 17 | press_image: maximized ? DPalette.imagesPath + "window_unmax_press.png" : DPalette.imagesPath + "window_max_press.png" 18 | } 19 | 20 | -------------------------------------------------------------------------------- /widgets/DTitleMinimizeButton.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | 11 | import QtQuick 2.1 12 | import Deepin.Widgets 1.0 13 | 14 | DImageButton { 15 | normal_image: DPalette.imagesPath + "window_min_normal.png" 16 | hover_image: DPalette.imagesPath + "window_min_hover.png" 17 | press_image: DPalette.imagesPath + "window_min_press.png" 18 | } 19 | 20 | -------------------------------------------------------------------------------- /widgets/DTitleOptionButton.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | DImageButton { 14 | normal_image: DPalette.imagesPath + "window_option_normal.png" 15 | hover_image: DPalette.imagesPath + "window_option_hover.png" 16 | press_image: DPalette.imagesPath + "window_option_press.png" 17 | } 18 | 19 | -------------------------------------------------------------------------------- /widgets/DWindowFrame.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import QtGraphicalEffects 1.0 12 | import Deepin.Widgets 1.0 13 | 14 | Item { 15 | id: window 16 | 17 | property int frameRadius: DPalette.normalRadius 18 | property int shadowRadius: DPalette.popupShadowObj.glowRadius 19 | property alias frame: frame 20 | 21 | default property alias content: container.children 22 | 23 | Rectangle { 24 | id: frame 25 | anchors.centerIn: parent 26 | color: DPalette.contentBgColor 27 | radius: frameRadius 28 | border.width: 1 29 | border.color: DPalette.popupShadowObj.borderColor 30 | width: window.width - (shadowRadius + frameRadius) * 2 31 | height: window.height - (shadowRadius + frameRadius) * 2 32 | 33 | Item { 34 | id: container 35 | anchors.fill: parent 36 | } 37 | } 38 | 39 | RectangularGlow { 40 | id: shadow 41 | z: -1 42 | anchors.fill: frame 43 | anchors.leftMargin: 4 44 | anchors.rightMargin: 4 45 | anchors.topMargin: DPalette.popupShadowObj.verticalOffset 46 | glowRadius: shadowRadius 47 | spread: 0.3 48 | color: DPalette.popupShadowObj.color 49 | cornerRadius: frame.radius + shadowRadius 50 | visible: true 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /widgets/DssAddButton.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | DImageButton { 14 | normal_image: DPalette.imagesPath + "add_normal.png" 15 | hover_image: DPalette.imagesPath + "add_hover.png" 16 | press_image: DPalette.imagesPath + "add_press.png" 17 | } 18 | -------------------------------------------------------------------------------- /widgets/DssAddCheckButton.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | DImageCheckButton { 14 | inactivatedNormalImage: DPalette.imagesPath + "add_normal.png" 15 | inactivatedHoverImage: DPalette.imagesPath + "add_hover.png" 16 | inactivatedPressImage: DPalette.imagesPath + "add_press.png" 17 | 18 | activatedNormalImage: inactivatedPressImage 19 | activatedHoverImage: inactivatedPressImage 20 | activatedPressImage: inactivatedPressImage 21 | } 22 | -------------------------------------------------------------------------------- /widgets/DssDeleteButton.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | DImageButton { 14 | normal_image: DPalette.imagesPath + "delete_normal.png" 15 | hover_image: DPalette.imagesPath + "delete_hover.png" 16 | press_image: DPalette.imagesPath + "delete_press.png" 17 | } 18 | -------------------------------------------------------------------------------- /widgets/DssDeleteCheckButton.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | DImageCheckButton { 14 | inactivatedNormalImage: DPalette.imagesPath + "delete_normal.png" 15 | inactivatedHoverImage: DPalette.imagesPath + "delete_hover.png" 16 | inactivatedPressImage: DPalette.imagesPath + "delete_press.png" 17 | 18 | activatedNormalImage: inactivatedPressImage 19 | activatedHoverImage: inactivatedPressImage 20 | activatedPressImage: inactivatedPressImage 21 | } 22 | -------------------------------------------------------------------------------- /widgets/DssH1.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import QtQuick.Controls 1.0 12 | 13 | DLabel { 14 | font.pixelSize: 15 15 | } 16 | -------------------------------------------------------------------------------- /widgets/DssH2.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import QtQuick.Controls 1.0 12 | 13 | DLabel { 14 | font.pixelSize: 13 15 | } 16 | -------------------------------------------------------------------------------- /widgets/DssH3.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import QtQuick.Controls 1.0 12 | 13 | DLabel { 14 | font.pixelSize: 11 15 | } 16 | -------------------------------------------------------------------------------- /widgets/DssH4.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import QtQuick.Controls 1.0 12 | 13 | DLabel { 14 | font.pixelSize: 10 15 | } 16 | -------------------------------------------------------------------------------- /widgets/DssH5.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import QtQuick.Controls 1.0 12 | 13 | DLabel { 14 | font.pixelSize: 9 15 | } 16 | -------------------------------------------------------------------------------- /widgets/DssMultiAddCheckButton.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | DImageCheckButton { 14 | inactivatedNormalImage: DPalette.imagesPath + "multiselect_inactive_normal.png" 15 | inactivatedHoverImage: DPalette.imagesPath + "multiselect_inactive_hover.png" 16 | inactivatedPressImage: DPalette.imagesPath + "multiselect_active_normal.png" 17 | 18 | activatedNormalImage: inactivatedPressImage 19 | activatedHoverImage: inactivatedPressImage 20 | activatedPressImage: inactivatedPressImage 21 | } 22 | -------------------------------------------------------------------------------- /widgets/DssMultiDeleteButton.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.1 11 | import Deepin.Widgets 1.0 12 | 13 | DImageButton { 14 | normal_image: DPalette.imagesPath + "delete_multi_normal.png" 15 | hover_image: DPalette.imagesPath + "delete_multi_hover.png" 16 | press_image: DPalette.imagesPath + "delete_multi_press.png" 17 | } 18 | -------------------------------------------------------------------------------- /widgets/DssTitle.qml: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | import QtQuick 2.0 11 | import Deepin.Widgets 1.0 12 | 13 | DBaseLine { 14 | id: dssTitle 15 | width: parent.width 16 | height: DPalette.dssTitleStyle.height 17 | 18 | signal titleClicked 19 | property string text: "" 20 | 21 | leftLoader.sourceComponent: DssH1 { 22 | id: title 23 | font.weight: Font.DemiBold 24 | color: DPalette.dssTitleStyle.color 25 | text: dssTitle.text 26 | 27 | MouseArea { 28 | anchors.fill: parent 29 | onClicked: dssTitle.titleClicked() 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /widgets/plugins/dicon.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | #ifndef DICON_H 11 | #define DICON_H 12 | 13 | #include 14 | #include 15 | 16 | class DIcon : public QQuickPaintedItem 17 | { 18 | Q_OBJECT 19 | Q_DISABLE_COPY(DIcon) 20 | 21 | Q_PROPERTY(QString theme READ theme WRITE setTheme NOTIFY themeChanged) 22 | Q_PROPERTY(QString icon READ icon WRITE setIcon NOTIFY iconChanged) 23 | 24 | public: 25 | DIcon(QQuickPaintedItem *parent = 0); 26 | ~DIcon(); 27 | 28 | const QString& theme() { return m_theme; } 29 | void setTheme(const QString& v); 30 | Q_SIGNAL void themeChanged(QString); 31 | 32 | const QString& icon() { return m_icon; } 33 | void setIcon(const QString& v); 34 | Q_SIGNAL void iconChanged(QString); 35 | 36 | void paint(QPainter *painter); 37 | 38 | QString iconNameToPath(QString qname, int size); 39 | 40 | private: 41 | QString m_icon; 42 | QString m_theme; 43 | }; 44 | 45 | #endif // DICON_H 46 | -------------------------------------------------------------------------------- /widgets/plugins/dwindow.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | #ifndef DWINDOW_H 11 | #define DWINDOW_H 12 | 13 | #include 14 | #include 15 | #include 16 | 17 | #include 18 | #include 19 | 20 | class DWindow; 21 | class DOverrideWindow; 22 | 23 | class DWindow: public QQuickWindow 24 | { 25 | Q_OBJECT 26 | Q_DISABLE_COPY(DWindow) 27 | 28 | public: 29 | DWindow(QQuickWindow *parent = 0); 30 | ~DWindow(); 31 | 32 | Q_PROPERTY(int shadowWidth READ shadowWidth WRITE setShadowWidth NOTIFY shadowWidthChanged) 33 | 34 | Q_INVOKABLE QPoint getCursorPos(); 35 | Q_INVOKABLE int getWinId(); 36 | 37 | //This signal just for Qt5 double screen switch bug 38 | //When screen switch, 39 | Q_SIGNAL void qt5ScreenChanged(); 40 | 41 | int shadowWidth(); 42 | void setShadowWidth(int); 43 | 44 | public slots: 45 | void focusChanged(QWindow * win); 46 | void handlerScreenChanged(QScreen* s); 47 | 48 | signals: 49 | void shadowWidthChanged(int shadowWidth); 50 | void windowFocusChanged(QWindow *window); 51 | void mousePressed(QPointF point); 52 | void wheel(QPointF point); 53 | 54 | protected: 55 | virtual void mousePressEvent(QMouseEvent *ev); 56 | virtual void wheelEvent(QWheelEvent *ev); 57 | 58 | private: 59 | int _shadowWidth; 60 | 61 | xcb_connection_t *_conn; 62 | 63 | private slots: 64 | void visibilityChangedSlot(QWindow::Visibility); 65 | }; 66 | 67 | class DOverrideWindow: public DWindow 68 | { 69 | Q_OBJECT 70 | Q_DISABLE_COPY(DOverrideWindow) 71 | 72 | public: 73 | DOverrideWindow(DWindow *parent = 0); 74 | ~DOverrideWindow(); 75 | 76 | }; 77 | 78 | 79 | #endif // DWINDOW_H 80 | -------------------------------------------------------------------------------- /widgets/plugins/keysutils.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | #include "keysutils.h" 11 | #include 12 | 13 | KeysUtils::KeysUtils(QObject *parent) : 14 | QObject(parent) 15 | { 16 | // add overridden keys 17 | overrideShortcut("Meta", "Super"); 18 | overrideShortcut("PgUp", "PageUp"); 19 | overrideShortcut("PgDown", "PageDown"); 20 | } 21 | 22 | void KeysUtils::overrideShortcut(QString oldShortcut, QString newShortcut) 23 | { 24 | m_overriddenShortcuts[oldShortcut] = newShortcut; 25 | } 26 | 27 | QString KeysUtils::getOverriddenShortcut(QString shortcut) 28 | { 29 | return m_overriddenShortcuts.value(shortcut, shortcut).value(); 30 | } 31 | 32 | QString KeysUtils::keyEventToString(int modifiers, int key) 33 | { 34 | QString sequence = QKeySequence(modifiers + key).toString(); 35 | return getOverriddenShortcut(sequence); 36 | } 37 | 38 | bool KeysUtils::isKeyEventEqualToString(int modifiers, int key, QString targetString) 39 | { 40 | QString sequence = QKeySequence(modifiers + key).toString(); 41 | return sequence == targetString || sequence == getOverriddenShortcut(targetString); 42 | } 43 | -------------------------------------------------------------------------------- /widgets/plugins/keysutils.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | #ifndef KEYSUTILS_H 11 | #define KEYSUTILS_H 12 | 13 | #include 14 | #include 15 | 16 | class KeysUtils : public QObject 17 | { 18 | Q_OBJECT 19 | public: 20 | explicit KeysUtils(QObject *parent = 0); 21 | 22 | public slots: 23 | // keys related 24 | void overrideShortcut(QString oldShortcut, QString newShortcut); 25 | QString getOverriddenShortcut(QString shortcut); 26 | QString keyEventToString(int modifiers, int key); 27 | bool isKeyEventEqualToString(int modifiers, int key, QString targetString); 28 | 29 | private: 30 | QVariantMap m_overriddenShortcuts; 31 | }; 32 | 33 | #endif // KEYSUTILS_H 34 | -------------------------------------------------------------------------------- /widgets/plugins/plugin.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | #ifndef DWINDOW_PLUGIN_H 11 | #define DWINDOW_PLUGIN_H 12 | 13 | #include 14 | 15 | class DockAppletPlugin : public QQmlExtensionPlugin 16 | { 17 | Q_OBJECT 18 | Q_PLUGIN_METADATA(IID "Deepin.Widgets") 19 | 20 | public: 21 | void registerTypes(const char *uri); 22 | }; 23 | 24 | #endif // DWINDOW_PLUGIN_H 25 | 26 | -------------------------------------------------------------------------------- /widgets/plugins/previewwindow.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (C) 2015 Deepin Technology Co., Ltd. 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License as published by 6 | * the Free Software Foundation; either version 3 of the License, or 7 | * (at your option) any later version. 8 | **/ 9 | 10 | #ifndef DPREVIEWWINDOW_H 11 | #define DPREVIEWWINDOW_H 12 | 13 | #include 14 | #include 15 | #include 16 | #include 17 | 18 | class DPreviewWindow : public QQuickItem 19 | { 20 | Q_OBJECT 21 | Q_DISABLE_COPY(DPreviewWindow) 22 | Q_PROPERTY(quint32 xid READ xid WRITE setXid NOTIFY xidChanged) 23 | 24 | public: 25 | DPreviewWindow(QQuickItem *parent = 0); 26 | ~DPreviewWindow(); 27 | 28 | quint32 xid() { return m_xid; } 29 | void setXid(quint32 xid); 30 | Q_SIGNAL void xidChanged(quint32); 31 | private: 32 | 33 | Q_SLOT void onXidChanged(quint32 xid); 34 | 35 | friend class Monitor; 36 | 37 | QSGNode *updatePaintNode(QSGNode *, UpdatePaintNodeData *); 38 | void markDamaged() { m_damaged=true;} 39 | void bindTexture(); 40 | quint32 pixmap() { return m_pixmap; } 41 | void updatePixmap(); 42 | void releasePixmap(); 43 | void updateWinSize(quint32 width, quint32 height); 44 | QRect getDisplayRect(); 45 | 46 | quint16 win_width; 47 | quint16 win_height; 48 | quint32 m_xid; 49 | quint32 m_texture; 50 | quint32 m_pixmap; 51 | quint32 m_glx_pixmap; 52 | quint32 m_fbconfig; 53 | bool m_damaged; 54 | }; 55 | #endif // DPREVIEWWINDOW_H 56 | 57 | -------------------------------------------------------------------------------- /widgets/widgets.pro: -------------------------------------------------------------------------------- 1 | TEMPLATE = lib 2 | TARGET = DeepinWidgets 3 | QT += qml quick gui x11extras opengl widgets 4 | CONFIG += qt plugin c++11 link_pkgconfig 5 | PKGCONFIG += xcomposite xcb-damage dtkwidget 6 | 7 | 8 | HEADERS += \ 9 | plugins/dicon.h \ 10 | plugins/dwindow.h \ 11 | plugins/plugin.h \ 12 | plugins/previewwindow.h \ 13 | plugins/dfiledialog.h \ 14 | plugins/dsinglelinetip.h\ 15 | plugins/dfilechoosedialogaide.h \ 16 | plugins/dwidgetstylecontroller.h \ 17 | plugins/keysutils.h 18 | 19 | SOURCES += \ 20 | plugins/dicon.cpp \ 21 | plugins/dwindow.cpp \ 22 | plugins/previewwindow.cpp \ 23 | plugins/plugin.cpp \ 24 | plugins/dfiledialog.cpp \ 25 | plugins/dsinglelinetip.cpp\ 26 | plugins/dfilechoosedialogaide.cpp \ 27 | plugins/dwidgetstylecontroller.cpp \ 28 | plugins/keysutils.cpp 29 | 30 | TARGET = $$qtLibraryTarget($$TARGET) 31 | uri = Deepin.Widgets 32 | 33 | qmldir.files += *.qml qmldir plugins.qmltypes 34 | styleresourcedir.files += ../style-resource/Style* 35 | 36 | unix { 37 | installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /) 38 | styleInstallPath = $$[QT_INSTALL_QML]/Deepin/StyleResources 39 | styleresourcedir.path = $$styleInstallPath 40 | qmldir.path = $$installPath 41 | target.path = $$installPath 42 | INSTALLS += qmldir styleresourcedir target 43 | } 44 | 45 | CONFIG += link_pkgconfig 46 | PKGCONFIG += gtk+-2.0 47 | PKGCONFIG += xcb 48 | --------------------------------------------------------------------------------