~x2go/x2go/x2goclient_master

« back to all changes in this revision

Viewing changes to embedwidget.h

  • Committer: Reinhard Tartler
  • Author(s): Oleksander Schneyder
  • Date: 2011-01-27 20:43:11 UTC
  • Revision ID: git-v1:af42fa37d555c1031810a868db687f39c2f9e574
Imported x2goclient_3.01-16.tar.gz

Summary: Imported x2goclient_3.01-16.tar.gz
Keywords:

Imported x2goclient_3.01-16.tar.gz
into Git repository

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//
2
 
// C++ Interface: embedwidget
3
 
//
4
 
// Description:
5
 
//
6
 
//
7
 
// Author: Oleksandr Shneyder <oleksandr.shneyder@obviously-nice.de>, (C) 2009
8
 
//
9
 
// Copyright: See COPYING file that comes with this distribution
10
 
//
11
 
//
12
 
#ifndef EMBEDWIDGET_H
13
 
#define EMBEDWIDGET_H
14
 
#include "x2goclientconfig.h"
15
 
 
16
 
 
17
 
#ifndef Q_OS_DARWIN
18
 
 
19
 
 
20
 
class QVBoxLayout;
21
 
#ifndef Q_OS_WIN
22
 
// class QX11EmbedWidget;
23
 
class QX11EmbedContainer;
24
 
#endif
25
 
 
26
 
class QTimer;
27
 
 
28
 
class EmbedWidget
29
 
{
30
 
        public:
31
 
                EmbedWidget ();
32
 
                ~EmbedWidget();
33
 
/*              void embedInto ( long winId );
34
 
                void slotUpdateEmbed();*/
35
 
                long findWindow ( QString text );
36
 
                void embedWindow ( long wndId );
37
 
                void detachClient();
38
 
        private:
39
 
                long parentId;
40
 
                long childId;
41
 
                QSize oldParentSize;
42
 
                QTimer *updateTimer;
43
 
 
44
 
#ifdef Q_OS_LINUX
45
 
//              QX11EmbedWidget* qx11embedWidget;
46
 
                QX11EmbedContainer* embedContainer;
47
 
                QVBoxLayout* mainLay;
48
 
#endif
49
 
#ifdef Q_OS_WIN
50
 
                QWidget* embedContainer;
51
 
                QPoint oldParentPos;
52
 
                QPoint oldChildPos;
53
 
                QSize oldContainerSize;
54
 
#endif
55
 
        private:
56
 
                QSize getWindowSize ( long winId );
57
 
#ifdef Q_OS_LINUX
58
 
                long X11FindWindow ( QString text, long rootWin=0 );
59
 
#endif
60
 
#ifdef Q_OS_WIN
61
 
                void moveEmbed ( int x, int y );
62
 
                void moveEmbedChild ( int x, int y );
63
 
#endif
64
 
        protected:
65
 
                void initWidgets();
66
 
//              void closeEmbedWidget();
67
 
};
68
 
#endif //(Q_OS_DARWIN)
69
 
#endif