2010-03-24 00:11:46 +01:00
|
|
|
/* This file is part of Clementine.
|
2010-11-20 14:27:10 +01:00
|
|
|
Copyright 2010, David Sansome <me@davidsansome.com>
|
2010-03-24 00:11:46 +01:00
|
|
|
|
|
|
|
Clementine is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
Clementine is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with Clementine. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2009-12-24 20:16:07 +01:00
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
2010-04-14 23:27:27 +02:00
|
|
|
#include <boost/scoped_ptr.hpp>
|
|
|
|
|
2009-12-24 20:16:07 +01:00
|
|
|
#include <QMainWindow>
|
2010-02-27 09:57:43 +01:00
|
|
|
#include <QSettings>
|
2009-12-24 20:16:07 +01:00
|
|
|
#include <QSystemTrayIcon>
|
|
|
|
|
2010-06-11 00:48:23 +02:00
|
|
|
#include "config.h"
|
2010-06-14 15:27:45 +02:00
|
|
|
#include "core/mac_startup.h"
|
2012-01-06 22:27:02 +01:00
|
|
|
#include "core/tagreaderclient.h"
|
2010-04-15 14:39:34 +02:00
|
|
|
#include "engines/engine_fwd.h"
|
2010-05-10 23:50:31 +02:00
|
|
|
#include "library/librarymodel.h"
|
|
|
|
#include "playlist/playlistitem.h"
|
2010-08-27 17:42:58 +02:00
|
|
|
#include "ui/settingsdialog.h"
|
2009-12-24 20:16:07 +01:00
|
|
|
|
2010-02-03 21:45:32 +01:00
|
|
|
class About;
|
2010-02-24 23:26:01 +01:00
|
|
|
class AddStreamDialog;
|
2011-04-27 21:10:37 +02:00
|
|
|
class AlbumCoverManager;
|
2012-01-09 20:08:09 +01:00
|
|
|
class Appearance;
|
2012-02-12 14:41:50 +01:00
|
|
|
class Application;
|
2010-10-02 18:23:33 +02:00
|
|
|
class ArtistInfoView;
|
2010-12-03 14:53:43 +01:00
|
|
|
class BackgroundStreams;
|
2010-04-13 00:44:29 +02:00
|
|
|
class CommandlineOptions;
|
2011-07-23 20:34:41 +02:00
|
|
|
class CoverProviders;
|
2010-05-09 02:10:26 +02:00
|
|
|
class Database;
|
2010-06-26 14:41:18 +02:00
|
|
|
class DeviceManager;
|
2010-10-01 21:27:01 +02:00
|
|
|
class DeviceView;
|
2010-05-22 22:06:19 +02:00
|
|
|
class EditTagDialog;
|
|
|
|
class Equalizer;
|
2010-05-31 22:49:44 +02:00
|
|
|
class ErrorDialog;
|
2010-10-01 21:27:01 +02:00
|
|
|
class FileView;
|
2011-09-24 15:44:23 +02:00
|
|
|
class GlobalSearch;
|
2012-06-04 19:18:37 +02:00
|
|
|
class GlobalSearchView;
|
2010-05-22 22:06:19 +02:00
|
|
|
class GlobalShortcuts;
|
|
|
|
class GroupByDialog;
|
|
|
|
class Library;
|
2010-10-01 21:27:01 +02:00
|
|
|
class LibraryViewContainer;
|
2011-01-24 22:16:26 +01:00
|
|
|
class MimeData;
|
2010-05-22 22:06:19 +02:00
|
|
|
class MultiLoadingIndicator;
|
2010-06-24 18:26:49 +02:00
|
|
|
class OrganiseDialog;
|
2010-05-22 22:06:19 +02:00
|
|
|
class OSD;
|
|
|
|
class Player;
|
|
|
|
class PlaylistBackend;
|
2012-10-31 07:04:22 +01:00
|
|
|
class PlaylistListContainer;
|
2010-05-22 22:06:19 +02:00
|
|
|
class PlaylistManager;
|
2010-07-11 17:37:40 +02:00
|
|
|
class QueueManager;
|
2011-07-15 15:27:50 +02:00
|
|
|
class InternetItem;
|
|
|
|
class InternetModel;
|
|
|
|
class InternetViewContainer;
|
2011-02-19 19:24:11 +01:00
|
|
|
class Remote;
|
2010-05-22 22:06:19 +02:00
|
|
|
class Song;
|
2010-10-02 15:37:10 +02:00
|
|
|
class SongInfoBase;
|
2010-10-10 18:09:20 +02:00
|
|
|
class SongInfoView;
|
2010-05-22 22:06:19 +02:00
|
|
|
class SystemTrayIcon;
|
2011-03-06 15:07:41 +01:00
|
|
|
class TagFetcher;
|
2010-06-23 15:21:30 +02:00
|
|
|
class TaskManager;
|
2011-03-06 15:07:41 +01:00
|
|
|
class TrackSelectionDialog;
|
2010-05-22 22:06:19 +02:00
|
|
|
class TranscodeDialog;
|
2010-06-06 16:06:23 +02:00
|
|
|
class VisualisationContainer;
|
2010-08-25 15:51:30 +02:00
|
|
|
class WiimotedevShortcuts;
|
2011-01-16 01:39:51 +01:00
|
|
|
class Windows7ThumbBar;
|
2010-05-10 23:50:31 +02:00
|
|
|
class Ui_MainWindow;
|
2009-12-24 20:16:07 +01:00
|
|
|
|
|
|
|
class QSortFilterProxyModel;
|
|
|
|
|
2010-06-14 15:27:45 +02:00
|
|
|
class MainWindow : public QMainWindow, public PlatformInterface {
|
2009-12-24 20:16:07 +01:00
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2012-02-12 14:41:50 +01:00
|
|
|
MainWindow(Application* app,
|
2011-01-04 12:33:22 +01:00
|
|
|
SystemTrayIcon* tray_icon,
|
|
|
|
OSD* osd,
|
|
|
|
QWidget *parent = 0);
|
2009-12-24 20:16:07 +01:00
|
|
|
~MainWindow();
|
|
|
|
|
2010-04-07 01:46:34 +02:00
|
|
|
static const char* kSettingsGroup;
|
2010-05-03 20:52:35 +02:00
|
|
|
static const char* kAllFilesFilterSpec;
|
2010-04-07 01:46:34 +02:00
|
|
|
|
|
|
|
// Don't change the values
|
|
|
|
enum StartupBehaviour {
|
|
|
|
Startup_Remember = 1,
|
|
|
|
Startup_AlwaysShow = 2,
|
|
|
|
Startup_AlwaysHide = 3,
|
|
|
|
};
|
|
|
|
|
2011-01-24 22:16:26 +01:00
|
|
|
// Don't change the values
|
|
|
|
enum AddBehaviour {
|
|
|
|
AddBehaviour_Append = 1,
|
|
|
|
AddBehaviour_Enqueue = 2,
|
|
|
|
AddBehaviour_Load = 3,
|
2011-02-09 18:51:59 +01:00
|
|
|
AddBehaviour_OpenInNew = 4
|
2011-01-24 22:16:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
// Don't change the values
|
|
|
|
enum PlayBehaviour {
|
|
|
|
PlayBehaviour_Never = 1,
|
|
|
|
PlayBehaviour_IfStopped = 2,
|
|
|
|
PlayBehaviour_Always = 3,
|
|
|
|
};
|
|
|
|
|
2009-12-24 20:16:07 +01:00
|
|
|
void SetHiddenInTray(bool hidden);
|
2010-04-13 00:44:29 +02:00
|
|
|
void CommandlineOptionsReceived(const CommandlineOptions& options);
|
2009-12-24 20:16:07 +01:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void resizeEvent(QResizeEvent* event);
|
|
|
|
void closeEvent(QCloseEvent* event);
|
|
|
|
|
2011-01-15 21:51:48 +01:00
|
|
|
#ifdef Q_OS_WIN32
|
|
|
|
bool winEvent(MSG* message, long* result);
|
|
|
|
#endif
|
|
|
|
|
2010-06-15 23:56:33 +02:00
|
|
|
// PlatformInterface
|
2010-06-14 15:27:45 +02:00
|
|
|
void Activate();
|
2010-06-15 23:56:33 +02:00
|
|
|
bool LoadUrl(const QString& url);
|
2010-04-14 23:27:27 +02:00
|
|
|
|
2009-12-24 20:16:07 +01:00
|
|
|
private slots:
|
2009-12-24 21:27:32 +01:00
|
|
|
void FilePathChanged(const QString& path);
|
2011-06-08 16:48:43 +02:00
|
|
|
|
2009-12-24 20:16:07 +01:00
|
|
|
void MediaStopped();
|
|
|
|
void MediaPaused();
|
|
|
|
void MediaPlaying();
|
2010-10-17 21:27:31 +02:00
|
|
|
void TrackSkipped(PlaylistItemPtr item);
|
2011-06-05 10:21:17 +02:00
|
|
|
void ForceShowOSD(const Song& song, const bool toggle);
|
2009-12-24 20:16:07 +01:00
|
|
|
|
2010-01-15 17:22:19 +01:00
|
|
|
void PlaylistRightClick(const QPoint& global_pos, const QModelIndex& index);
|
2010-11-28 16:14:48 +01:00
|
|
|
void PlaylistCurrentChanged(const QModelIndex& current);
|
|
|
|
void PlaylistViewSelectionModelChanged();
|
2010-01-15 17:22:19 +01:00
|
|
|
void PlaylistPlay();
|
|
|
|
void PlaylistStopAfter();
|
2010-07-11 17:37:40 +02:00
|
|
|
void PlaylistQueue();
|
2010-03-24 17:36:44 +01:00
|
|
|
void PlaylistRemoveCurrent();
|
2010-04-11 19:58:58 +02:00
|
|
|
void PlaylistEditFinished(const QModelIndex& index);
|
2010-01-16 17:12:47 +01:00
|
|
|
void EditTracks();
|
2010-12-21 14:42:06 +01:00
|
|
|
void EditTagDialogAccepted();
|
2010-03-22 23:46:53 +01:00
|
|
|
void RenumberTracks();
|
2010-03-24 01:12:52 +01:00
|
|
|
void SelectionSetValue();
|
2010-03-26 00:48:58 +01:00
|
|
|
void EditValue();
|
2011-03-06 15:07:41 +01:00
|
|
|
void AutoCompleteTags();
|
|
|
|
void AutoCompleteTagsAccepted();
|
2010-05-20 23:21:55 +02:00
|
|
|
void PlaylistUndoRedoChanged(QAction* undo, QAction* redo);
|
2010-01-15 17:22:19 +01:00
|
|
|
|
2010-06-25 01:36:39 +02:00
|
|
|
void PlaylistCopyToLibrary();
|
|
|
|
void PlaylistMoveToLibrary();
|
2010-08-08 15:06:52 +02:00
|
|
|
void PlaylistCopyToDevice();
|
2010-06-25 01:36:39 +02:00
|
|
|
void PlaylistOrganiseSelected(bool copy);
|
|
|
|
void PlaylistDelete();
|
2011-03-06 14:10:14 +01:00
|
|
|
void PlaylistOpenInBrowser();
|
2010-06-25 01:36:39 +02:00
|
|
|
|
2011-02-06 14:18:18 +01:00
|
|
|
void ChangeLibraryQueryMode(QAction* action);
|
|
|
|
|
2009-12-24 20:16:07 +01:00
|
|
|
void PlayIndex(const QModelIndex& index);
|
|
|
|
void StopAfterCurrent();
|
|
|
|
|
2010-11-23 20:38:15 +01:00
|
|
|
void SongChanged(const Song& song);
|
2010-11-21 22:36:27 +01:00
|
|
|
void VolumeChanged(int volume);
|
|
|
|
|
2010-06-24 18:26:49 +02:00
|
|
|
void CopyFilesToLibrary(const QList<QUrl>& urls);
|
|
|
|
void MoveFilesToLibrary(const QList<QUrl>& urls);
|
2010-09-18 11:54:33 +02:00
|
|
|
void CopyFilesToDevice(const QList<QUrl>& urls);
|
2012-01-29 19:44:00 +01:00
|
|
|
void EditFileTags(const QList<QUrl>& urls);
|
2010-06-24 18:26:49 +02:00
|
|
|
|
2011-01-10 23:26:13 +01:00
|
|
|
void AddToPlaylist(QMimeData* data);
|
2011-03-20 18:38:15 +01:00
|
|
|
void AddToPlaylist(QAction* action);
|
2010-07-18 00:53:27 +02:00
|
|
|
|
2009-12-24 20:16:07 +01:00
|
|
|
void VolumeWheelEvent(int delta);
|
2010-06-22 13:52:55 +02:00
|
|
|
void ToggleShowHide();
|
2009-12-24 20:16:07 +01:00
|
|
|
|
2011-03-21 16:15:17 +01:00
|
|
|
void Seeked(qlonglong microseconds);
|
2009-12-29 20:57:33 +01:00
|
|
|
void UpdateTrackPosition();
|
|
|
|
|
2011-04-07 18:25:52 +02:00
|
|
|
//Handle visibility of LastFM icons
|
2010-04-07 21:26:49 +02:00
|
|
|
void LastFMButtonVisibilityChanged(bool value);
|
2011-04-07 18:25:52 +02:00
|
|
|
void ScrobbleButtonVisibilityChanged(bool value);
|
|
|
|
void SetToggleScrobblingIcon(bool value);
|
2010-12-18 18:28:02 +01:00
|
|
|
#ifdef HAVE_LIBLASTFM
|
|
|
|
void ScrobblingEnabledChanged(bool value);
|
2009-12-29 21:48:50 +01:00
|
|
|
void Love();
|
2011-04-16 17:27:34 +02:00
|
|
|
void ScrobbledRadioStream();
|
2010-12-18 18:28:02 +01:00
|
|
|
#endif
|
2009-12-29 21:48:50 +01:00
|
|
|
|
2010-06-16 21:21:15 +02:00
|
|
|
void TaskCountChanged(int count);
|
2010-06-15 20:24:08 +02:00
|
|
|
|
2010-06-09 17:38:00 +02:00
|
|
|
void ShowLibraryConfig();
|
2010-04-07 01:46:34 +02:00
|
|
|
void ReloadSettings();
|
2011-01-02 15:50:17 +01:00
|
|
|
void ReloadAllSettings();
|
2011-06-08 16:48:43 +02:00
|
|
|
void RefreshStyleSheet();
|
2010-06-17 19:08:56 +02:00
|
|
|
void SetHiddenInTray() { SetHiddenInTray(true); }
|
2010-02-26 19:22:44 +01:00
|
|
|
|
2010-05-11 22:02:19 +02:00
|
|
|
void AddFile();
|
|
|
|
void AddFolder();
|
2010-02-24 23:26:01 +01:00
|
|
|
void AddStream();
|
|
|
|
void AddStreamAccepted();
|
2011-06-10 01:08:43 +02:00
|
|
|
void AddCDTracks();
|
2012-03-12 15:11:24 +01:00
|
|
|
void AddPodcast();
|
2010-02-24 23:26:01 +01:00
|
|
|
|
2010-04-13 00:44:29 +02:00
|
|
|
void CommandlineOptionsReceived(const QByteArray& serialized_options);
|
|
|
|
|
2010-04-15 17:23:12 +02:00
|
|
|
void CheckForUpdates();
|
|
|
|
|
2010-06-18 02:06:59 +02:00
|
|
|
void NowPlayingWidgetPositionChanged(bool above_status_bar);
|
|
|
|
|
2012-01-06 22:27:02 +01:00
|
|
|
void SongSaveComplete(TagReaderReply* reply,
|
|
|
|
const QPersistentModelIndex& index);
|
2010-08-02 16:22:05 +02:00
|
|
|
|
2010-08-27 17:42:58 +02:00
|
|
|
void ShowCoverManager();
|
2011-04-27 21:10:37 +02:00
|
|
|
#ifdef HAVE_LIBLASTFM
|
2012-06-25 12:30:53 +02:00
|
|
|
void ScrobbleSubmitted();
|
|
|
|
void ScrobbleError(int value);
|
2010-12-18 18:28:02 +01:00
|
|
|
#endif
|
2010-08-27 17:42:58 +02:00
|
|
|
void ShowAboutDialog();
|
|
|
|
void ShowTranscodeDialog();
|
2010-08-27 21:09:03 +02:00
|
|
|
void ShowErrorDialog(const QString& message);
|
|
|
|
void ShowQueueManager();
|
|
|
|
void ShowVisualisations();
|
2010-08-27 17:42:58 +02:00
|
|
|
void EnsureSettingsDialogCreated();
|
|
|
|
void EnsureEditTagDialogCreated();
|
|
|
|
void OpenSettingsDialog();
|
|
|
|
void OpenSettingsDialogAtPage(SettingsDialog::Page page);
|
2010-10-16 16:45:23 +02:00
|
|
|
void ShowSongInfoConfig();
|
2010-08-27 17:42:58 +02:00
|
|
|
|
2009-12-24 20:16:07 +01:00
|
|
|
void SaveGeometry();
|
2010-10-09 20:18:06 +02:00
|
|
|
|
2010-12-04 17:19:30 +01:00
|
|
|
void AddSongInfoGenerator(smart_playlists::GeneratorPtr gen);
|
|
|
|
|
2010-12-11 11:54:42 +01:00
|
|
|
void DeleteFinished(const SongList& songs_with_errors);
|
|
|
|
|
2011-01-04 12:33:22 +01:00
|
|
|
void Raise();
|
|
|
|
|
2011-02-16 23:43:05 +01:00
|
|
|
void Exit();
|
|
|
|
|
2011-05-22 23:15:11 +02:00
|
|
|
void HandleNotificationPreview(OSD::Behaviour type, QString line1, QString line2);
|
|
|
|
|
2012-03-11 18:57:15 +01:00
|
|
|
void ScrollToInternetIndex(const QModelIndex& index);
|
2012-06-16 22:17:13 +02:00
|
|
|
void FocusGlobalSearchField();
|
|
|
|
void DoGlobalSearch(const QString& query);
|
2012-03-11 18:57:15 +01:00
|
|
|
|
2012-09-26 18:36:47 +02:00
|
|
|
void ShowConsole();
|
|
|
|
|
2010-10-09 20:18:06 +02:00
|
|
|
private:
|
2010-10-02 15:37:10 +02:00
|
|
|
void ConnectInfoView(SongInfoBase* view);
|
2010-03-06 16:33:57 +01:00
|
|
|
|
2011-01-24 22:16:26 +01:00
|
|
|
void ApplyAddBehaviour(AddBehaviour b, MimeData* data) const;
|
|
|
|
void ApplyPlayBehaviour(PlayBehaviour b, MimeData* data) const;
|
|
|
|
|
2011-02-25 21:10:41 +01:00
|
|
|
void CheckFullRescanRevisions();
|
|
|
|
|
2011-04-07 18:25:52 +02:00
|
|
|
//creates the icon by painting the full one depending on the current position
|
|
|
|
QPixmap CreateOverlayedIcon(int position, int scrobble_point);
|
|
|
|
|
2009-12-24 20:16:07 +01:00
|
|
|
private:
|
2010-05-10 23:50:31 +02:00
|
|
|
Ui_MainWindow* ui_;
|
2011-01-16 01:39:51 +01:00
|
|
|
Windows7ThumbBar* thumbbar_;
|
2010-08-27 17:42:58 +02:00
|
|
|
|
2012-02-12 14:41:50 +01:00
|
|
|
Application* app_;
|
2009-12-29 20:57:33 +01:00
|
|
|
SystemTrayIcon* tray_icon_;
|
2010-01-08 15:52:05 +01:00
|
|
|
OSD* osd_;
|
2010-04-14 23:27:27 +02:00
|
|
|
boost::scoped_ptr<EditTagDialog> edit_tag_dialog_;
|
|
|
|
boost::scoped_ptr<About> about_dialog_;
|
2009-12-24 20:16:07 +01:00
|
|
|
|
2010-03-21 20:02:56 +01:00
|
|
|
GlobalShortcuts* global_shortcuts_;
|
2011-02-19 19:24:11 +01:00
|
|
|
Remote* remote_;
|
2009-12-24 20:16:07 +01:00
|
|
|
|
2012-06-04 19:18:37 +02:00
|
|
|
GlobalSearchView* global_search_view_;
|
2010-10-01 21:27:01 +02:00
|
|
|
LibraryViewContainer* library_view_;
|
|
|
|
FileView* file_view_;
|
2012-10-31 07:04:22 +01:00
|
|
|
PlaylistListContainer* playlist_list_;
|
2011-07-15 15:27:50 +02:00
|
|
|
InternetViewContainer* internet_view_;
|
2010-10-01 21:27:01 +02:00
|
|
|
DeviceView* device_view_;
|
2010-10-10 18:09:20 +02:00
|
|
|
SongInfoView* song_info_view_;
|
2010-10-02 18:23:33 +02:00
|
|
|
ArtistInfoView* artist_info_view_;
|
2010-10-01 21:27:01 +02:00
|
|
|
|
2010-04-14 23:27:27 +02:00
|
|
|
boost::scoped_ptr<SettingsDialog> settings_dialog_;
|
|
|
|
boost::scoped_ptr<AddStreamDialog> add_stream_dialog_;
|
2010-04-14 23:58:51 +02:00
|
|
|
boost::scoped_ptr<AlbumCoverManager> cover_manager_;
|
|
|
|
boost::scoped_ptr<Equalizer> equalizer_;
|
2010-05-03 20:52:35 +02:00
|
|
|
boost::scoped_ptr<TranscodeDialog> transcode_dialog_;
|
2010-05-31 22:49:44 +02:00
|
|
|
boost::scoped_ptr<ErrorDialog> error_dialog_;
|
2010-06-24 18:26:49 +02:00
|
|
|
boost::scoped_ptr<OrganiseDialog> organise_dialog_;
|
2010-07-11 17:37:40 +02:00
|
|
|
boost::scoped_ptr<QueueManager> queue_manager_;
|
2010-06-11 00:48:23 +02:00
|
|
|
|
2011-03-06 15:07:41 +01:00
|
|
|
boost::scoped_ptr<TagFetcher> tag_fetcher_;
|
|
|
|
boost::scoped_ptr<TrackSelectionDialog> track_selection_dialog_;
|
|
|
|
PlaylistItemList autocomplete_tag_items_;
|
2010-12-31 19:13:28 +01:00
|
|
|
|
2010-06-11 00:48:23 +02:00
|
|
|
#ifdef ENABLE_VISUALISATIONS
|
2010-06-06 16:06:23 +02:00
|
|
|
boost::scoped_ptr<VisualisationContainer> visualisation_;
|
2010-06-11 00:48:23 +02:00
|
|
|
#endif
|
2010-02-03 19:32:48 +01:00
|
|
|
|
2011-03-12 22:19:32 +01:00
|
|
|
#ifdef HAVE_WIIMOTEDEV
|
2010-08-30 19:31:42 +02:00
|
|
|
boost::scoped_ptr<WiimotedevShortcuts> wiimotedev_shortcuts_;
|
2010-08-23 19:42:51 +02:00
|
|
|
#endif
|
|
|
|
|
2011-02-06 14:18:18 +01:00
|
|
|
QAction* library_show_all_;
|
|
|
|
QAction* library_show_duplicates_;
|
|
|
|
QAction* library_show_untagged_;
|
|
|
|
|
2010-01-15 17:22:19 +01:00
|
|
|
QMenu* playlist_menu_;
|
|
|
|
QAction* playlist_play_pause_;
|
|
|
|
QAction* playlist_stop_after_;
|
2010-05-20 23:21:55 +02:00
|
|
|
QAction* playlist_undoredo_;
|
2010-06-25 01:36:39 +02:00
|
|
|
QAction* playlist_organise_;
|
|
|
|
QAction* playlist_copy_to_library_;
|
|
|
|
QAction* playlist_move_to_library_;
|
2010-08-08 15:06:52 +02:00
|
|
|
QAction* playlist_copy_to_device_;
|
2010-06-25 01:36:39 +02:00
|
|
|
QAction* playlist_delete_;
|
2011-03-06 14:10:14 +01:00
|
|
|
QAction* playlist_open_in_browser_;
|
2010-07-11 17:37:40 +02:00
|
|
|
QAction* playlist_queue_;
|
2011-03-20 18:38:15 +01:00
|
|
|
QAction* playlist_add_to_another_;
|
2011-11-06 16:12:44 +01:00
|
|
|
QList<QAction*> playlistitem_actions_;
|
2012-07-29 03:11:00 +02:00
|
|
|
QAction* playlistitem_actions_separator_;
|
2010-01-15 17:22:19 +01:00
|
|
|
QModelIndex playlist_menu_index_;
|
|
|
|
|
2009-12-24 20:16:07 +01:00
|
|
|
QSortFilterProxyModel* library_sort_model_;
|
|
|
|
|
2009-12-29 20:57:33 +01:00
|
|
|
QTimer* track_position_timer_;
|
2010-02-27 17:52:18 +01:00
|
|
|
QSettings settings_;
|
2010-04-19 16:10:31 +02:00
|
|
|
|
|
|
|
bool was_maximized_;
|
2011-01-24 22:16:26 +01:00
|
|
|
AddBehaviour doubleclick_addmode_;
|
|
|
|
PlayBehaviour doubleclick_playmode_;
|
|
|
|
PlayBehaviour menu_playmode_;
|
2010-12-03 14:53:43 +01:00
|
|
|
|
|
|
|
BackgroundStreams* background_streams_;
|
2009-12-24 20:16:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MAINWINDOW_H
|