Permalink
Browse files

Create PanelDiscover

  • Loading branch information...
3unjee committed Aug 30, 2018
1 parent a44e37e commit 11849a1e50bd81548fed165cbe9427f8c83ff977
Showing with 587 additions and 286 deletions.
  1. +2 −0 MotionBox.pro
  2. +2 −2 content/AreaContextualApplication.qml
  3. +1 −1 content/AreaDrag.qml
  4. +1 −1 content/BarControls.qml
  5. +34 −6 content/BarTop.qml
  6. +1 −1 content/BarWindowApplication.qml
  7. +1 −1 content/BasePageSettings.qml
  8. +1 −1 content/ButtonLogo.qml
  9. +1 −1 content/ButtonPianoTitle.qml
  10. +1 −1 content/ButtonsBrowse.qml
  11. +119 −0 content/ComponentDiscover.qml
  12. +1 −1 content/ComponentFolder.qml
  13. +1 −1 content/ComponentLibraryItem.qml
  14. +3 −3 content/ComponentTrack.qml
  15. +24 −15 content/Gui.qml
  16. +1 −1 content/ItemNew.qml
  17. +1 −1 content/ItemTabMini.qml
  18. +2 −10 content/LineEditSearch.qml
  19. +1 −1 content/ListFolder.qml
  20. +3 −3 content/ListPlaylist.qml
  21. +1 −1 content/Main.qml
  22. +1 −1 content/PageAbout.qml
  23. +1 −1 content/PageAboutCredits.qml
  24. +1 −1 content/PageAboutMain.qml
  25. +1 −1 content/PageAboutMessage.qml
  26. +1 −1 content/PageAboutText.qml
  27. +1 −1 content/PageSettings.qml
  28. +1 −1 content/PageSettingsMain.qml
  29. +1 −1 content/PageSettingsProxy.qml
  30. +1 −1 content/PageSettingsTorrent.qml
  31. +1 −1 content/PanelAdd.qml
  32. +3 −22 content/PanelApplication.qml
  33. +29 −14 content/PanelBrowse.qml
  34. +10 −5 content/PanelCover.qml
  35. +208 −0 content/PanelDiscover.qml
  36. +1 −1 content/PanelFolder.qml
  37. +1 −1 content/PanelLibrary.qml
  38. +1 −1 content/PanelPlayer.qml
  39. +49 −21 content/PanelPreview.qml
  40. +9 −7 content/PanelRelated.qml
  41. +23 −136 content/PanelSearch.qml
  42. +1 −1 content/PanelSettings.qml
  43. +1 −1 content/PanelShare.qml
  44. +6 −2 content/PanelTracks.qml
  45. +1 −1 content/ScrollFolder.qml
  46. +1 −1 content/ScrollFolderCreate.qml
  47. +1 −1 content/ScrollPlaylist.qml
  48. +1 −1 content/ScrollPlaylistCreate.qml
  49. +1 −1 content/Splash.qml
  50. +8 −3 content/StyleApplication.qml
  51. +1 −1 content/TextLogo.qml
  52. +5 −1 dist/changes/1.4.1.md
  53. +1 −1 dist/doc/fr/shortcuts.md
  54. +1 −1 dist/doc/shortcuts.md
  55. +9 −0 src/controllers/ControllerCore.cpp
  56. +3 −0 src/controllers/ControllerCore.h
@@ -77,6 +77,7 @@ OTHER_FILES += configure.sh \
content/ItemTabMini.qml \
content/TextLogo.qml \
content/PanelApplication.qml \
content/PanelDiscover.qml \
content/PanelSearch.qml \
content/PanelLibrary.qml \
content/PanelFolder.qml \
@@ -102,6 +103,7 @@ OTHER_FILES += configure.sh \
content/ScrollFolderCreate.qml \
content/ScrollPlaylist.qml \
content/ScrollPlaylistCreate.qml \
content/ComponentDiscover.qml \
content/ComponentLibraryItem.qml \
content/ComponentTrack.qml \
content/ComponentFolder.qml \
@@ -14,7 +14,7 @@
*/
//=================================================================================================

import QtQuick 1.1
import QtQuick 1.0
import Sky 1.0

AreaContextual
@@ -459,7 +459,7 @@ AreaContextual
{
var title = pItem.playlist.trackTitle(pIndex);

pBrowse(title);
pBrowse(core.getQuery(title));
}
else if (id == 2) // Webpage
{
@@ -14,7 +14,7 @@
*/
//=================================================================================================

import QtQuick 1.1
import QtQuick 1.0
import Sky 1.0

MouseArea
@@ -14,7 +14,7 @@
*/
//=================================================================================================

import QtQuick 1.1
import QtQuick 1.0
import Sky 1.0

MouseArea
@@ -14,7 +14,7 @@
*/
//=================================================================================================

import QtQuick 1.1
import QtQuick 1.0
import Sky 1.0

MouseArea
@@ -42,12 +42,13 @@ MouseArea
//---------------------------------------------------------------------------------------------

property alias buttonApplication: buttonApplication
property alias buttonDiscover : buttonDiscover

property alias lineEditSearch: lineEditSearch

property alias buttonBackward: buttonBackward
property alias buttonForward : buttonForward

property alias lineEditSearch: lineEditSearch

property alias itemTabs: itemTabs

property alias buttonAdd: buttonAdd
@@ -260,6 +261,8 @@ MouseArea

if (actionCue.tryPush(actionTabOpen)) return;

panelDiscover.collapse();

var index;

if (playlist)
@@ -393,8 +396,18 @@ MouseArea

visible: (gui.isMini == false)

checkable: true
checked : panelDiscover.isExposed

icon : st.icon32x32_url
iconSourceSize: st.size32x32

onPressed:
{
gui.restoreBars();

panelDiscover.toggleExpose();
}
}

ButtonPianoIcon
@@ -440,7 +453,12 @@ MouseArea

icon: st.icon32x32_goBackward

onClicked: currentTab.setPreviousBookmark()
onClicked:
{
panelDiscover.collapse();

currentTab.setPreviousBookmark();
}
}

ButtonPianoIcon
@@ -459,7 +477,12 @@ MouseArea

icon: st.icon32x32_goForward

onClicked: currentTab.setNextBookmark()
onClicked:
{
panelDiscover.collapse();

currentTab.setNextBookmark();
}
}

LineEditSearch
@@ -516,7 +539,12 @@ MouseArea
// Events
//-------------------------------------------------------------------------------------

onTabClicked: wall.updateCurrentPage()
onTabClicked:
{
panelDiscover.collapse();

wall.updateCurrentPage();
}

onTabDoubleClicked:
{
@@ -14,7 +14,7 @@
*/
//=================================================================================================

import QtQuick 1.1
import QtQuick 1.0
import Sky 1.0

BarWindow
@@ -14,7 +14,7 @@
*/
//=================================================================================================

import QtQuick 1.1
import QtQuick 1.0
import Sky 1.0

MouseArea
@@ -14,7 +14,7 @@
*/
//=================================================================================================

import QtQuick 1.1
import QtQuick 1.0
import Sky 1.0

ButtonImage
@@ -14,7 +14,7 @@
*/
//=================================================================================================

import QtQuick 1.1
import QtQuick 1.0
import Sky 1.0

BaseButtonPiano
@@ -14,7 +14,7 @@
*/
//=================================================================================================

import QtQuick 1.1
import QtQuick 1.0
import Sky 1.0

Item
@@ -0,0 +1,119 @@
//=================================================================================================
/*
Copyright (C) 2015-2017 MotionBox authors united with omega. <http://omega.gg/about>
Author: Benjamin Arnaud. <http://bunjee.me> <bunjee@omega.gg>
This file is part of MotionBox.
- GNU General Public License Usage:
This file may be used under the terms of the GNU General Public License version 3 as published
by the Free Software Foundation and appearing in the LICENSE.md file included in the packaging
of this file. Please review the following information to ensure the GNU General Public License
requirements will be met: https://www.gnu.org/licenses/gpl.html.
*/
//=================================================================================================

import QtQuick 1.0
import Sky 1.0

ContextualItem
{
//---------------------------------------------------------------------------------------------
// Settings
//---------------------------------------------------------------------------------------------

height: st.componentDiscover_height

filter: null

background.visible: true

background.gradient: Gradient
{
GradientStop
{
position: 0.0

color:
{
if (isCurrent)
{
if (pressed || isReturnPressed)
{
return st.itemList_colorSelectFocusA;
}
else if (containsMouse)
{
return st.itemList_colorSelectHoverA;
}
else return st.itemList_colorSelectA;
}
else if (pressed)
{
return st.itemList_colorSelectFocusA;
}
else if (containsMouse)
{
return st.itemList_colorHoverA;
}
else return st.itemList_colorA;
}
}

GradientStop
{
position: 1.0

color:
{
if (isCurrent)
{
if (pressed || isReturnPressed)
{
return st.itemList_colorSelectFocusB;
}
else if (containsMouse)
{
return st.itemList_colorSelectHoverB;
}
else return st.itemList_colorSelectB;
}
else if (pressed)
{
return st.itemList_colorSelectFocusB;
}
else if (containsMouse)
{
return st.itemList_colorHoverB;
}
else return st.itemList_colorB;
}
}
}

itemText.leftMargin: (itemIcon.width) ? st.contextualItem_padding + pIconWidth
: st.contextualItem_padding

itemText.font.pixelSize: st.dp16

//---------------------------------------------------------------------------------------------
// Childs
//---------------------------------------------------------------------------------------------

Icon
{
anchors.right: parent.right

anchors.verticalCenter: background.verticalCenter

opacity: (isEnabled) ? 1.0 : st.icon_opacityDisable

source : st.icon_slideRight
sourceSize: st.size32x32

style: Sk.IconSunken

filter: st.icon_filter
}
}
@@ -14,7 +14,7 @@
*/
//=================================================================================================

import QtQuick 1.1
import QtQuick 1.0
import Sky 1.0

ComponentLibraryItem
@@ -14,7 +14,7 @@
*/
//=================================================================================================

import QtQuick 1.1
import QtQuick 1.0
import Sky 1.0

ItemList
@@ -14,7 +14,7 @@
*/
//=================================================================================================

import QtQuick 1.1
import QtQuick 1.0
import Sky 1.0

ComponentLibraryItem
@@ -27,11 +27,11 @@ ComponentLibraryItem

height: itemSize

iconWidth: st.dp42
iconWidth: st.dp56

iconHeight: (isCurrent) ? st.dp24 : st.dp32

iconSourceSize: (isCurrent) ? st.size24x24 : st.size42x32
iconSourceSize: (isCurrent) ? st.size24x24 : st.size56x32

//---------------------------------------------------------------------------------------------

Oops, something went wrong.

0 comments on commit 11849a1

Please sign in to comment.