Changeset View
Changeset View
Standalone View
Standalone View
src/MainWindow.cpp
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
42 | #include "browsers/playlistbrowser/PodcastCategory.h" | 42 | #include "browsers/playlistbrowser/PodcastCategory.h" | ||
43 | #include "browsers/servicebrowser/ServiceBrowser.h" | 43 | #include "browsers/servicebrowser/ServiceBrowser.h" | ||
44 | #include "context/ContextDock.h" | 44 | #include "context/ContextDock.h" | ||
45 | #include "core/meta/Statistics.h" | 45 | #include "core/meta/Statistics.h" | ||
46 | #include "core/support/Amarok.h" | 46 | #include "core/support/Amarok.h" | ||
47 | #include "core/support/Components.h" | 47 | #include "core/support/Components.h" | ||
48 | #include "core/support/Debug.h" | 48 | #include "core/support/Debug.h" | ||
49 | #include "core-impl/collections/support/CollectionManager.h" | 49 | #include "core-impl/collections/support/CollectionManager.h" | ||
50 | #include "core-impl/collections/support/MemoryCollection.h" | ||||
50 | #include "covermanager/CoverManager.h" // for actions | 51 | #include "covermanager/CoverManager.h" // for actions | ||
51 | #include "dialogs/DiagnosticDialog.h" | 52 | #include "dialogs/DiagnosticDialog.h" | ||
52 | #include "dialogs/EqualizerDialog.h" | 53 | #include "dialogs/EqualizerDialog.h" | ||
53 | #include "moodbar/MoodbarManager.h" | 54 | #include "moodbar/MoodbarManager.h" | ||
54 | #include "network/NetworkAccessManagerProxy.h" | 55 | #include "network/NetworkAccessManagerProxy.h" | ||
55 | #ifdef DEBUG_BUILD_TYPE | 56 | #ifdef DEBUG_BUILD_TYPE | ||
56 | #include "network/NetworkAccessViewer.h" | 57 | #include "network/NetworkAccessViewer.h" | ||
57 | #endif // DEBUG_BUILD_TYPE | 58 | #endif // DEBUG_BUILD_TYPE | ||
58 | #include "playlist/PlaylistActions.h" | 59 | #include "playlist/PlaylistActions.h" | ||
59 | #include "playlist/PlaylistController.h" | 60 | #include "playlist/PlaylistController.h" | ||
60 | #include "playlist/PlaylistDock.h" | 61 | #include "playlist/PlaylistDock.h" | ||
61 | #include "playlist/PlaylistModelStack.h" | 62 | #include "playlist/PlaylistModelStack.h" | ||
62 | #include "playlist/ProgressiveSearchWidget.h" | 63 | #include "playlist/ProgressiveSearchWidget.h" | ||
63 | #include "playlist/layouts/LayoutConfigAction.h" | 64 | #include "playlist/layouts/LayoutConfigAction.h" | ||
64 | #include "playlistmanager/PlaylistManager.h" | 65 | #include "playlistmanager/PlaylistManager.h" | ||
65 | #include "playlistmanager/file/PlaylistFileProvider.h" | 66 | #include "playlistmanager/file/PlaylistFileProvider.h" | ||
66 | #include "services/scriptable/ScriptableService.h" | | |||
67 | #include "statsyncing/Controller.h" | 67 | #include "statsyncing/Controller.h" | ||
68 | #include "toolbar/MainToolbar.h" | 68 | #include "toolbar/MainToolbar.h" | ||
69 | #include "toolbar/SlimToolbar.h" | 69 | #include "toolbar/SlimToolbar.h" | ||
70 | #include "widgets/Osd.h" | 70 | #include "widgets/Osd.h" | ||
71 | 71 | | |||
72 | #include <QAction> //m_actionCollection | 72 | #include <QAction> //m_actionCollection | ||
73 | #include <QApplication> //qApp | 73 | #include <QApplication> //qApp | ||
74 | #include <QCheckBox> | 74 | #include <QCheckBox> | ||
▲ Show 20 Lines • Show All 204 Lines • ▼ Show 20 Line(s) | 248 | { | |||
279 | FileBrowser *fileBrowser = new FileBrowser( "files", 0 ); | 279 | FileBrowser *fileBrowser = new FileBrowser( "files", 0 ); | ||
280 | fileBrowser->setPrettyName( i18n("Files") ); | 280 | fileBrowser->setPrettyName( i18n("Files") ); | ||
281 | fileBrowser->setIcon( QIcon::fromTheme( "folder-amarok" ) ); | 281 | fileBrowser->setIcon( QIcon::fromTheme( "folder-amarok" ) ); | ||
282 | 282 | | |||
283 | fileBrowser->setShortDescription( i18n( "Browse local hard drive for content" ) ); | 283 | fileBrowser->setShortDescription( i18n( "Browse local hard drive for content" ) ); | ||
284 | m_browserDock->list()->addCategory( fileBrowser ); | 284 | m_browserDock->list()->addCategory( fileBrowser ); | ||
285 | PERF_LOG( "Created FileBrowser" ) | 285 | PERF_LOG( "Created FileBrowser" ) | ||
286 | 286 | | |||
287 | serviceBrowser->setScriptableServiceManager( The::scriptableServiceManager() ); | | |||
288 | PERF_LOG( "ScriptableServiceManager done" ) | | |||
289 | | ||||
290 | PERF_LOG( "Creating Podcast Category" ) | 287 | PERF_LOG( "Creating Podcast Category" ) | ||
291 | m_browserDock->list()->addCategory( The::podcastCategory() ); | 288 | m_browserDock->list()->addCategory( The::podcastCategory() ); | ||
292 | PERF_LOG( "Created Podcast Category" ) | 289 | PERF_LOG( "Created Podcast Category" ) | ||
293 | 290 | | |||
294 | // If Amarok is started for the first time, set initial dock widget sizes | 291 | // If Amarok is started for the first time, set initial dock widget sizes | ||
295 | if( !Amarok::config( "MainWindow" ).hasKey( "State" ) ) | 292 | if( !Amarok::config( "MainWindow" ).hasKey( "State" ) ) | ||
296 | QTimer::singleShot( 0, this, &MainWindow::setDefaultDockSizes ); | 293 | QTimer::singleShot( 0, this, &MainWindow::setDefaultDockSizes ); | ||
297 | 294 | | |||
▲ Show 20 Lines • Show All 1090 Lines • Show Last 20 Lines |