Debian Codegraph @

src/playlist/navigators/NavigatorConfigAction.h

raw
1 /****************************************************************************************
2 * Copyright (c) 2009 Nikolaj Hald Nielsen <[email protected]> *
3 * *
4 * This program is free software; you can redistribute it and/or modify it under *
5 * the terms of the GNU General Public License as published by the Free Software *
6 * Foundation; either version 2 of the License, or (at your option) any later *
7 * version. *
8 * *
9 * This program is distributed in the hope that it will be useful, but WITHOUT ANY *
10 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A *
11 * PARTICULAR PURPOSE. See the GNU General Pulic License for more details. *
12 * *
13 * You should have received a copy of the GNU General Public License along with *
14 * this program. If not, see <http://www.gnu.org/licenses/>. *
15 ****************************************************************************************/
16
17 #ifndef NAVIGATORCONFIGACTION_H
18 #define NAVIGATORCONFIGACTION_H
19
20 #include <QAction>
21
22
23 class NavigatorConfigAction : public QAction
24 {
25 Q_OBJECT
26 public:
27
28 /**
29 * Constructor.
30 * @param parent Parent widget.
31 */
32 explicit NavigatorConfigAction( QWidget * parent );
33
34 /**
35 * Destructor.
36 */
37 ~NavigatorConfigAction() override;
38
39 protected Q_SLOTS:
40
41 /**
42 * Set the currently active navigator based on the selected action.
43 * @param navigatorAction The action triggered.
44 */
45 void setActiveNavigator( QAction *navigatorAction );
46
47 void setFavored( QAction *favorAction );
48
49 void navigatorChanged();
50
51 private:
52
53 QAction * m_standardNavigatorAction;
54 QAction * m_onlyQueueNavigatorAction;
55 QAction * m_repeatTrackNavigatorAction;
56 QAction * m_repeatAlbumNavigatorAction;
57 QAction * m_repeatPlaylistNavigatorAction;
58 QAction * m_randomTrackNavigatorAction;
59 QAction * m_randomAlbumNavigatorAction;
60
61 QAction * m_favorNoneAction;
62 QAction * m_favorScoresAction;
63 QAction * m_favorRatingsAction;
64 QAction * m_favorLastPlayedAction;
65 };
66
67 #endif // NAVIGATORCONFIGACTION_H