pans
2016-12-15 87e3ee273b2f84081ac45926be9d8e5be3166eaa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
 * Copyright(C) 2010,Custom Co., Ltd 
 *    FileName: FramePlayWnd.h
 * Description: 
 *     Version: 1.0
 *      Author: panyadong
 * Create Date: 2010-6-24
 * Modification History£º
 */
#ifndef FRAMEPLAYWND_H
#define FRAMEPLAYWND_H
 
#include <QFrame>
#include "ui_FramePlayWnd.h"
#include "DemoPublic.h"
 
//²¥·ÅÇøÓò
typedef struct tagPlayRect
{
    int iX;
    int iY;
    int iWidth;
    int iHeight;
}CLIENT_PLAY_RECT, *LPCLIENT_PLAY_RECT;
 
//Ìṩ²¥·Å´°¿Ú»òÇøÓò
class CFramePlayWnd : public QFrame
{
    Q_OBJECT
 
public:
    CFramePlayWnd(QWidget *parent = 0);
    ~CFramePlayWnd();
 
    WId GetPlayWndId();
    int GetPlayRect(CLIENT_PLAY_RECT* pPlayRect);
 
public slots:
 
protected:
    void resizeEvent(QResizeEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);
 
signals:
    //sigle click signal
    void SingleClickSig();
 
private:
    Ui::CFramePlayWndClass ui;
 
    QFrame *m_pframePlay; //windowsÏÂ×÷Ϊ²¥·Å´°¿Ú
 
    int m_iBorderWidth;
    int m_iBorderHeiht;
 
    int m_bSelected;
};
 
#endif // FRAMEPLAYWND_H