1 |
/* |
/* |
2 |
rdesktop: A Remote Desktop Protocol client. |
rdesktop: A Remote Desktop Protocol client. |
3 |
User interface services - X Window System |
User interface services - X Window System |
4 |
Copyright (C) Matthew Chapman 1999-2004 |
Copyright (C) Jay Sorg 2004 |
|
qte.cpp by Jay Sorg |
|
5 |
|
|
6 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
7 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
20 |
|
|
21 |
//#define SHARP |
//#define SHARP |
22 |
|
|
|
#include "../rdesktop.h" |
|
23 |
#ifdef SHARP |
#ifdef SHARP |
24 |
#include <qpe/qpeapplication.h> |
#include <qpe/qpeapplication.h> |
25 |
#else |
#else |
39 |
#include <qfile.h> |
#include <qfile.h> |
40 |
#include <qcheckbox.h> |
#include <qcheckbox.h> |
41 |
#include <qpopupmenu.h> |
#include <qpopupmenu.h> |
|
#include "qtewin.h" |
|
42 |
#include <stdlib.h> |
#include <stdlib.h> |
43 |
#include <stdarg.h> // va_list va_start va_end |
#include <stdarg.h> // va_list va_start va_end |
44 |
|
|
45 |
|
#include "../rdesktop.h" |
46 |
|
#include "qtewin.h" |
47 |
|
|
48 |
|
/* types */ |
49 |
|
struct QColorMap |
50 |
|
{ |
51 |
|
uint32 RGBColors[256]; |
52 |
|
int NumColors; |
53 |
|
}; |
54 |
|
|
55 |
|
struct bitmap |
56 |
|
{ |
57 |
|
int w; |
58 |
|
int h; |
59 |
|
uint8* data; |
60 |
|
}; |
61 |
|
|
62 |
uint32 g_flags = 0; |
uint32 g_flags = 0; |
63 |
char g_server[64] = ""; |
char g_server[64] = ""; |
64 |
char g_domain[16] = ""; |
char g_domain[16] = ""; |
93 |
#else |
#else |
94 |
QApplication* g_App = 0; |
QApplication* g_App = 0; |
95 |
#endif |
#endif |
96 |
QMyMainWindow* g_MW = 0; |
static QMyMainWindow *g_MW = 0; |
97 |
QMyScrollView* g_SV = 0; |
static QMyScrollView *g_SV = 0; |
98 |
struct QColorMap |
static struct QColorMap *g_CM = 0; |
99 |
{ |
static uint8 *g_BS = 0; |
100 |
uint32 RGBColors[256]; |
|
101 |
int NumColors; |
static int g_clipx = 0; |
102 |
}; |
static int g_clipy = 0; |
103 |
struct QColorMap* g_CM = 0; |
static int g_clipcx = 0; |
104 |
uint8* g_BS = 0; |
static int g_clipcy = 0; |
|
|
|
|
int g_clipx = 0; |
|
|
int g_clipy = 0; |
|
|
int g_clipcx = 0; |
|
|
int g_clipcy = 0; |
|
|
|
|
|
struct bitmap |
|
|
{ |
|
|
int w; |
|
|
int h; |
|
|
uint8* data; |
|
|
}; |
|
|
|
|
|
int owncolmap = False; |
|
105 |
|
|
106 |
//***************************************************************************** |
//***************************************************************************** |
107 |
void CleanString(QString* Item) |
void CleanString(QString* Item) |