1 | /* $Id: CocoaDockIconPreview.h 24377 2009-11-05 11:18:52Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | *
|
---|
4 | * VBox frontends: Qt GUI ("VirtualBox"):
|
---|
5 | * CocoaDockIconPreview class declaration
|
---|
6 | */
|
---|
7 |
|
---|
8 | /*
|
---|
9 | * Copyright (C) 2009 Sun Microsystems, Inc.
|
---|
10 | *
|
---|
11 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
12 | * available from http://www.virtualbox.org. This file is free software;
|
---|
13 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
14 | * General Public License (GPL) as published by the Free Software
|
---|
15 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
16 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
17 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
18 | *
|
---|
19 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
|
---|
20 | * Clara, CA 95054 USA or visit http://www.sun.com if you need
|
---|
21 | * additional information or have any questions.
|
---|
22 | */
|
---|
23 |
|
---|
24 | #ifndef ___CocoaDockIconPreview_h___
|
---|
25 | #define ___CocoaDockIconPreview_h___
|
---|
26 |
|
---|
27 | /* Qt includes */
|
---|
28 | #include "AbstractDockIconPreview.h"
|
---|
29 |
|
---|
30 | class CocoaDockIconPreviewPrivate;
|
---|
31 |
|
---|
32 | class CocoaDockIconPreview: public AbstractDockIconPreview
|
---|
33 | {
|
---|
34 | public:
|
---|
35 | CocoaDockIconPreview (VBoxConsoleWnd *aMainWnd, const QPixmap& aOverlayImage);
|
---|
36 | ~CocoaDockIconPreview();
|
---|
37 |
|
---|
38 | virtual void updateDockOverlay();
|
---|
39 | virtual void updateDockPreview (CGImageRef aVMImage);
|
---|
40 | virtual void updateDockPreview (VBoxFrameBuffer *aFrameBuffer);
|
---|
41 |
|
---|
42 | virtual void setOriginalSize (int aWidth, int aHeight);
|
---|
43 |
|
---|
44 | private:
|
---|
45 | CocoaDockIconPreviewPrivate *d;
|
---|
46 | };
|
---|
47 |
|
---|
48 | #endif /* ___CocoaDockIconPreview_h___ */
|
---|
49 |
|
---|