1
2
3
/***************************************************************************
4
*   copyright: Max Howell <max.howell@methylblue.com>, (C) 2004            *
5
*              Dan Meltzer <parallelgrapefruit@gmail.com>, (C) 2007      *
6
***************************************************************************/
7
8
9
/***************************************************************************
10
 *                                                                         *
11
 *   This program 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 2 of the License, or     *
14
 *   (at your option) any later version.                                   *
15
 *                                                                         *
16
 ***************************************************************************/
17
18
#ifndef AMAROKTOOLBAR_H
19
#define AMAROKTOOLBAR_H
20
21
#include "ActionClasses.h"
22
#include "EngineController.h"
23
24
#include <ktoolbar.h>
25
26
namespace Amarok {
27
28
    class ToolBar : public KToolBar
29
    {
30
        public:
31
            /**
32
            * Create a Toolbar with no Border.
33
            * @param parent The Main Window that
34
            * this toolbar belongs to.
35
            * @param name The QObject name of this toolbar
36
            */
37
            ToolBar( QMainWindow *parent, const char *name )
38
                : KToolBar( name, parent, Qt::TopToolBarArea, true, false, false )
39
            {
40
            }
41
42
            /**
43
             * Create a borderless toolbar that can live anywhere.
44
             * @param parent The Widget that should be the parent of this toolbar
45
             * @param name The QObject name of this toolbar
46
             */
47
            ToolBar( QWidget *parent )
48
                : KToolBar( parent, false, false )
49
            {
50
            }
51
52
        protected:
53
            virtual void paintEvent( QPaintEvent * )
54
            {
55
            }
56
57
    };
58
59
}
60
61
#endif