Merge pull request #189 from derfian/remove-uiports

Remove uiports
This commit is contained in:
Henrik Andersson 2017-11-15 07:58:40 +01:00 committed by GitHub
commit 93a2ecdc59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 0 additions and 8653 deletions

View File

@ -1,25 +0,0 @@
#
# nanoxrdesktop makefile
#
# These two following lines must point to the currently installed version of
# nano-X. You can override them on the make command line to point at your
# installation without changing this file.
#
NXINCLUDES=/usr/local/nanox/src/include
NXLIBS=/usr/local/nanox/src/lib/libnano-X.a
CC = gcc
CFLAGS = -Os -Wall -I$(NXINCLUDES)
RESTOBJ = ../tcp.o ../iso.o ../mcs.o ../secure.o ../rdp.o ../rdp5.o ../orders.o ../cache.o ../mppc.o ../licence.o ../bitmap.o ../channels.o ../pstcache.o
LDFLAGS = -lcrypto
all: nanoxrd
nanoxrd: $(RESTOBJ) nanoxwin.o
$(CC) -o nanoxrdesktop nanoxwin.o $(NXLIBS) $(RESTOBJ) $(LDFLAGS)
strip nanoxrdesktop
clean:
rm -f nanoxrdesktop
rm -f *.o
rm -f ../*.o

View File

@ -1,86 +0,0 @@
#
# qtrdesktop makefile
# qt should be installed in /usr/local/qt or /usr/lib/qt3
# set QTBDIR to this location
QTBDIR = /usr/lib/qt3
CC = g++
CPPFLAGS = -O2 -Wall -I$(QTBDIR)/include -I..
# the next line is for sound
#CPPFLAGS += -DWITH_RDPSND
RESTOBJ = tcp.o iso.o mcs.o secure.o rdp.o rdp5.o
RESTOBJ += orders.o cache.o mppc.o licence.o bitmap.o
RESTOBJ += channels.o pstcache.o ssl.o
# the next line is for sound
#RESTOBJ += rdpsnd.o rdpsnd_oss.o rdpsnd_dsp.o
LD2FLAGS = -L$(QTBDIR)/lib -L/usr/X11R6/lib
LDFLAGS = -lcrypto -lqt-mt -lXext -lX11 -lm
MOCFILE = $(QTBDIR)/bin/moc
all: qtrd
qtrd: $(RESTOBJ) qtwin.o
$(MOCFILE) qtwin.h > moc_qtwin.cpp
$(CC) $(CPPFLAGS) -c moc_qtwin.cpp
$(CC) -o qtrdesktop $(LD2FLAGS) qtwin.o moc_qtwin.o $(RESTOBJ) $(LDFLAGS)
strip qtrdesktop
clean:
rm -f qtrdesktop
rm -f *.o
rm -f ../*.o
rm -f moc_qtwin.cpp
# common files
tcp.o: ../tcp.c
$(CC) $(CPPFLAGS) -c ../tcp.c
iso.o: ../iso.c
$(CC) $(CPPFLAGS) -c ../iso.c
mcs.o: ../mcs.c
$(CC) $(CPPFLAGS) -c ../mcs.c
secure.o: ../secure.c
$(CC) $(CPPFLAGS) -c ../secure.c
rdp.o: ../rdp.c
$(CC) $(CPPFLAGS) -c ../rdp.c
rdp5.o: ../rdp5.c
$(CC) $(CPPFLAGS) -c ../rdp5.c
orders.o: ../orders.c
$(CC) $(CPPFLAGS) -c ../orders.c
cache.o: ../cache.c
$(CC) $(CPPFLAGS) -c ../cache.c
mppc.o: ../mppc.c
$(CC) $(CPPFLAGS) -c ../mppc.c
licence.o: ../licence.c
$(CC) $(CPPFLAGS) -c ../licence.c
bitmap.o: ../bitmap.c
$(CC) $(CPPFLAGS) -c ../bitmap.c
channels.o: ../channels.c
$(CC) $(CPPFLAGS) -c ../channels.c
pstcache.o: ../pstcache.c
$(CC) $(CPPFLAGS) -c ../pstcache.c
ssl.o: ../ssl.c
$(CC) $(CPPFLAGS) -c ../ssl.c
rdpsnd.o: ../rdpsnd.c
$(CC) $(CPPFLAGS) -c ../rdpsnd.c
rdpsnd_oss.o: ../rdpsnd_oss.c
$(CC) $(CPPFLAGS) -c ../rdpsnd_oss.c
rdpsnd_dsp.o: ../rdpsnd_dsp.c
$(CC) $(CPPFLAGS) -c ../rdpsnd_dsp.c

View File

@ -1,24 +0,0 @@
#
# qterdesktop makefile
# qt should be installed in /usr/local/qt
#
CC = g++
CPPFLAGS = -DQWS -fno-exceptions -fno-rtti -Wall -Os -Wall -I/usr/local/qt/include -DWITH_RDPSND -DNO_DEBUG
RESTOBJ = ../tcp.o ../iso.o ../mcs.o ../secure.o ../rdp.o ../rdp5.o ../orders.o ../cache.o ../mppc.o ../licence.o ../bitmap.o ../channels.o ../pstcache.o ../rdpsnd.o ../rdpsnd_oss.o
LD2FLAGS = -L/usr/local/qt/lib
LDFLAGS = -lcrypto -lqte
MOCFILE = /usr/local/qt/bin/moc
all: qtrd
qtrd: $(RESTOBJ) qtewin.o
$(MOCFILE) qtewin.h > moc_qtewin.cpp
$(CC) $(CPPFLAGS) -c moc_qtewin.cpp
$(CC) -o qterdesktop $(LD2FLAGS) qtewin.o moc_qtewin.o $(RESTOBJ) $(LDFLAGS)
strip qterdesktop
clean:
rm -f qterdesktop
rm -f *.o
rm -f ../*.o
rm -f moc_qtewin.cpp

View File

@ -1,36 +0,0 @@
CC = gcc
CFLAGS = -Os -DWITH_OPENSSL -DL_ENDIAN -Wall
RESTOBJ = ../tcp.o ../iso.o ../mcs.o ../secure.o ../rdp.o ../rdp5.o ../orders.o ../cache.o ../mppc.o ../licence.o ../bitmap.o ../channels.o ../pstcache.o ../ssl.o
LDFLAGS = -lvga -lcrypto
#LDFLAGS = -lm /usr/local/lib/libvga.a /usr/lib/libcrypto.a
#LDFLAGS = -lvga /usr/lib/libcrypto.a
all: svgard
svgard: svgawin.o $(RESTOBJ)
$(CC) -o svgardesktop svgawin.o $(RESTOBJ) $(LDFLAGS)
strip svgardesktop
#rest: $(RESTOBJ)
#rest: tcp.o iso.o mcs.o secure.o rdp.o rdp5.o orders.o cache.o mppc.o licence.o bitmap.o channels.o pstcache.o
rest: ../tcp.c ../iso.c ../mcs.c ../secure.c ../rdp.c ../rdp5.c ../orders.c ../cache.c ../mppc.c ../licence.c ../bitmap.c ../channels.c ../pstcache.c
$(CC) $(CFLAGS) -c ../tcp.c -o ../tcp.o
$(CC) $(CFLAGS) -c ../iso.c -o ../iso.o
$(CC) $(CFLAGS) -c ../mcs.c -o ../mcs.o
$(CC) $(CFLAGS) -c ../secure.c -o ../secue.o
$(CC) $(CFLAGS) -c ../rdp.c -o ../rdp.o
$(CC) $(CFLAGS) -c ../rdp5.c -o ../rdp5.o
$(CC) $(CFLAGS) -c ../orders.c -o ../orders.o
$(CC) $(CFLAGS) -c ../cache.c -o ../cache.o
$(CC) $(CFLAGS) -c ../mppc.c -o ../mppc.o
$(CC) $(CFLAGS) -c ../licence.c -o ../licence.o
$(CC) $(CFLAGS) -c ../bitmap.c -o ../bitmap.o
$(CC) $(CFLAGS) -c ../channels.c -o ../channels.o
$(CC) $(CFLAGS) -c ../pstcache.c -o ../pstcache.o
svgawin.o: svgawin.c
$(CC) $(CFLAGS) -c $*.c
clean:
rm -f svgardesktop
rm -f *.o
rm -f ../*.o

View File

@ -1,18 +0,0 @@
#
# xxxrdesktop makefile
#
CC = gcc
CFLAGS = -O2 -Wall
RESTOBJ = ../tcp.o ../iso.o ../mcs.o ../secure.o ../rdp.o ../rdp5.o ../orders.o ../cache.o ../mppc.o ../licence.o ../bitmap.o ../channels.o ../pstcache.o ../ssl.o
LDFLAGS = -lcrypto
all: xxxrd
xxxrd: $(RESTOBJ) xxxwin.o
$(CC) -o xxxrdesktop xxxwin.o $(RESTOBJ) $(LDFLAGS)
strip xxxrdesktop
clean:
rm -f xxxrdesktop
rm -f *.o
rm -f ../*.o

View File

@ -1,9 +0,0 @@
This is the nanox ui port
tested with versions 0.90
makefile_nanox can be edited to change file locations
run make -f makefile_nanox in this directory to compile it
nanoxreadme.txt - notes, this file
makefile_nanox - makefile
nanoxwin.cpp - ui lib

File diff suppressed because it is too large Load Diff

View File

@ -1,12 +0,0 @@
This is the Qt/Emb ui port
qt should be installed in /usr/local/qt
you may need to have LD_LIBRARY_PATH and QTDIR defined to run qtrdesktop
tested with versions 2.3, 3.1
makefile_qte can be edited to change file locations
run make -f makefile_qte in this directory to compile it
qtereadme.txt - notes, this file
makefile_qte - makefile
qtewin.cpp - ui lib
qtewin.h - header

File diff suppressed because it is too large Load Diff

View File

@ -1,107 +0,0 @@
#include <qwidget.h>
#include <qscrollview.h>
#include <qdialog.h>
#include <qlistbox.h>
#include <qlineedit.h>
#include <qcombobox.h>
#include <qlabel.h>
#include <qcheckbox.h>
#include <qpopupmenu.h>
class QMyConnectionItem
{
public:
QString ServerName;
QString UserName;
QString ServerIP;
int Width;
int Height;
int FullScreen;
};
class QMyDialog: public QDialog
{
Q_OBJECT
public:
QMyDialog(QWidget*);
~QMyDialog();
public:
QListBox* ListBox;
QPushButton* OKButton;
QPushButton* CancelButton;
QLabel* Label1;
QLineEdit* ServerNameEdit;
QLabel* Label2;
QLineEdit* UserNameEdit;
QLabel* Label3;
QLineEdit* IPEdit;
QLineEdit* WidthEdit;
QLineEdit* HeightEdit;
QComboBox* WidthHeightBox;
QPushButton* AddButton;
QPushButton* EditButton;
QPushButton* SaveButton;
QPushButton* RemoveButton;
QCheckBox* FullScreenCheckBox;
public slots:
void ComboChanged(int);
void OKClicked();
void CancelClicked();
void AddClicked();
void EditClicked();
void SaveClicked();
void RemoveClicked();
void ListBoxChanged();
void ListBoxSelected(int);
public:
QString ServerName;
QString UserName;
QString ServerIP;
int Width;
int Height;
int FullScreen;
QMyConnectionItem* ConnectionList[10];
};
class QMyScrollView: public QScrollView
{
Q_OBJECT
public:
QMyScrollView();
~QMyScrollView();
void keyPressEvent(QKeyEvent*);
void keyReleaseEvent(QKeyEvent*);
void showEvent(QShowEvent*);
void show();
void polish();
void timerEvent(QTimerEvent*);
public:
int timer_id;
int sound_timer_id;
};
class QMyMainWindow: public QWidget
{
Q_OBJECT
public:
QMyMainWindow();
~QMyMainWindow();
void paintEvent(QPaintEvent*);
void mouseMoveEvent(QMouseEvent*);
void mousePressEvent(QMouseEvent*);
void mouseReleaseEvent(QMouseEvent*);
void wheelEvent(QWheelEvent*);
void closeEvent(QCloseEvent*);
void timerEvent(QTimerEvent*);
public slots:
void dataReceived();
void soundSend();
void MemuClicked(int);
public:
QPopupMenu* PopupMenu;
int timer_id;
int mx;
int my;
};

View File

@ -1,12 +0,0 @@
This is the Qt/X11 ui port
qt should be installed in /usr/local/qt
you may need to have LD_LIBRARY_PATH defined to run qtrdesktop
tested with versions 2.3.2, 3.1.2
makefile_qt can be edited to change file locations
run make -f makefile_qt in this directory to compile it
qtreadme.txt - notes, this file
makefile_qt - makefile
qtwin.cpp - ui lib
qtwin.h - header

File diff suppressed because it is too large Load Diff

View File

@ -1,32 +0,0 @@
#include <qwidget.h>
#include <qscrollview.h>
class QMyScrollView: public QScrollView
{
Q_OBJECT
public:
void keyPressEvent(QKeyEvent*);
void keyReleaseEvent(QKeyEvent*);
};
class QMyMainWindow: public QWidget
{
Q_OBJECT
public:
QMyMainWindow();
~QMyMainWindow();
void paintEvent(QPaintEvent*);
void mouseMoveEvent(QMouseEvent*);
void mousePressEvent(QMouseEvent*);
void mouseReleaseEvent(QMouseEvent*);
void wheelEvent(QWheelEvent*);
void keyPressEvent(QKeyEvent*);
void keyReleaseEvent(QKeyEvent*);
void closeEvent(QCloseEvent*);
bool event(QEvent*);
public slots:
void dataReceived();
void soundSend();
};

View File

@ -1,17 +0,0 @@
This directory contains information on uiports.
uiports are different graphics libraries using the same core
rdesktop files.
This directory is provided to include information and examples
on how to do a new uiport. Not all ports of rdesktop can
be included.
see xxxreadme.txt for info on a blank empty uiport
see qtreadme.txt for info on the Qt/X11 uiport
see qtereadme.txt for info on the Qt embedded uiport
see svgareadme.txt for info on the svga uiport
see nanoxreadme.txt for info on the nanox uiport

View File

@ -1,39 +0,0 @@
This is the svga ui port
send any fixes or improvements to me Jay Sorg(j@american-data.com)
svgalib should be installed
tested with versions 1.4.3, 1.9.x
thanks to
Donald Gordon - original work
Peter Nikolow - misc fixes
run make -f makefile_svga to compile it
svgareadme.txt - notes, this file
makefile_svga - makefile
svgawin.c - ui lib
svgalib has some support for acceleration but most drivers
do not support it. I hope they fix this.
The ones that do are Cirus Logic and ATI Mach 32 cards.
If running on really slow hardware(486), use one of these cards,
it improves performance a lot.
run ./svgardesktop with no parameters to see a list of
command line options
You will need to modify the libvga.config file most likely.
Its in /etc/vga.
Here is what mine looks like.
BOF
mouse imps2
mouse_fake_kbd_event 112 113
mouse_accel_mult 1.5
mouse_accel_type normal
HorizSync 31.5 56.0
VertRefresh 50 90
nosigint
EOF
The mouse_fake_kbd_event line makes the wheel mouse work.
Jay

File diff suppressed because it is too large Load Diff

View File

@ -1,365 +0,0 @@
/* -*- c-basic-offset: 8 -*-
rdesktop: A Remote Desktop Protocol client.
User interface services - Generic
Copyright (C) Jay Sorg 2004-2007
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "../rdesktop.h"
extern int g_tcp_port_rdp; /* in tcp.c */
RD_BOOL g_use_rdp5 = False;
char g_hostname[16];
char g_username[64];
int g_height = 600;
int g_width = 800;
int g_server_depth = 8;
RD_BOOL g_encryption = True;
RD_BOOL g_desktop_save = True;
RD_BOOL g_polygon_ellipse_orders = False;
RD_BOOL g_bitmap_cache = True;
RD_BOOL g_bitmap_cache_persist_enable = False;
RD_BOOL g_bitmap_cache_precache = True;
uint32 g_rdp5_performanceflags = 0;
RD_BOOL g_console_session = False;
uint32 g_keylayout = 0x409; /* Defaults to US keyboard layout */
int g_keyboard_type = 0x4; /* Defaults to US keyboard layout */
int g_keyboard_subtype = 0x0; /* Defaults to US keyboard layout */
int g_keyboard_functionkeys = 0xc; /* Defaults to US keyboard layout */
/* Session Directory redirection */
RD_BOOL g_redirect = False;
RD_BOOL g_numlock_sync = False;
char g_redirect_server[64];
char g_redirect_domain[16];
char g_redirect_password[64];
char g_redirect_username[64];
char g_redirect_cookie[128];
uint32 g_redirect_flags = 0;
char g_codepage[16] = "";
/*****************************************************************************/
void ui_bell(void)
{
}
/*****************************************************************************/
int ui_select(int in)
{
return 1;
}
/*****************************************************************************/
void ui_destroy_cursor(void* cursor)
{
}
/*****************************************************************************/
void* ui_create_glyph(int width, int height, uint8* data)
{
return 0;
}
/*****************************************************************************/
void ui_destroy_glyph(void* glyph)
{
}
/*****************************************************************************/
void ui_destroy_bitmap(void* bmp)
{
}
/*****************************************************************************/
void ui_reset_clip(void)
{
}
/*****************************************************************************/
void ui_set_clip(int x, int y, int cx, int cy)
{
}
/*****************************************************************************/
void* ui_create_colourmap(COLOURMAP * colours)
{
return 0;
}
/*****************************************************************************/
void ui_set_colourmap(void* map)
{
}
/*****************************************************************************/
RD_HBITMAP ui_create_bitmap(int width, int height, uint8* data)
{
return 0;
}
/*****************************************************************************/
void ui_draw_text(uint8 font, uint8 flags, uint8 opcode, int mixmode,
int x, int y,
int clipx, int clipy, int clipcx, int clipcy,
int boxx, int boxy, int boxcx, int boxcy, BRUSH * brush,
int bgcolour, int fgcolour, uint8* text, uint8 length)
{
}
/*****************************************************************************/
void ui_line(uint8 opcode, int startx, int starty, int endx, int endy,
PEN * pen)
{
}
/*****************************************************************************/
void ui_triblt(uint8 opcode, int x, int y, int cx, int cy,
RD_HBITMAP src, int srcx, int srcy,
BRUSH* brush, int bgcolour, int fgcolour)
{
}
/*****************************************************************************/
void ui_memblt(uint8 opcode, int x, int y, int cx, int cy,
RD_HBITMAP src, int srcx, int srcy)
{
}
/*****************************************************************************/
void ui_desktop_restore(uint32 offset, int x, int y, int cx, int cy)
{
}
/*****************************************************************************/
void ui_desktop_save(uint32 offset, int x, int y, int cx, int cy)
{
}
/*****************************************************************************/
void ui_rect(int x, int y, int cx, int cy, int colour)
{
}
/*****************************************************************************/
void ui_screenblt(uint8 opcode, int x, int y, int cx, int cy,
int srcx, int srcy)
{
}
/*****************************************************************************/
void ui_patblt(uint8 opcode, int x, int y, int cx, int cy,
BRUSH * brush, int bgcolour, int fgcolour)
{
}
/*****************************************************************************/
void ui_destblt(uint8 opcode, int x, int y, int cx, int cy)
{
}
/*****************************************************************************/
void ui_move_pointer(int x, int y)
{
}
/*****************************************************************************/
void ui_set_null_cursor(void)
{
}
/*****************************************************************************/
void ui_paint_bitmap(int x, int y, int cx, int cy,
int width, int height, uint8* data)
{
}
/*****************************************************************************/
void ui_set_cursor(RD_HCURSOR cursor)
{
}
/*****************************************************************************/
RD_HCURSOR ui_create_cursor(unsigned int x, unsigned int y,
int width, int height,
uint8* andmask, uint8* xormask)
{
return 0;
}
/*****************************************************************************/
uint16 ui_get_numlock_state(unsigned int state)
{
return 0;
}
/*****************************************************************************/
unsigned int read_keyboard_state(void)
{
return 0;
}
/*****************************************************************************/
void ui_resize_window(void)
{
}
/*****************************************************************************/
void ui_begin_update(void)
{
}
/*****************************************************************************/
void ui_end_update(void)
{
}
/*****************************************************************************/
void ui_polygon(uint8 opcode, uint8 fillmode, RD_POINT * point, int npoints,
BRUSH * brush, int bgcolour, int fgcolour)
{
}
/*****************************************************************************/
/* todo, use qt function for this (QPainter::drawPolyline) */
void ui_polyline(uint8 opcode, RD_POINT * points, int npoints, PEN * pen)
{
int i, x, y, dx, dy;
if (npoints > 0)
{
x = points[0].x;
y = points[0].y;
for (i = 1; i < npoints; i++)
{
dx = points[i].x;
dy = points[i].y;
ui_line(opcode, x, y, x + dx, y + dy, pen);
x = x + dx;
y = y + dy;
}
}
}
/*****************************************************************************/
void ui_ellipse(uint8 opcode, uint8 fillmode,
int x, int y, int cx, int cy,
BRUSH * brush, int bgcolour, int fgcolour)
{
}
/*****************************************************************************/
void generate_random(uint8* random)
{
}
/*****************************************************************************/
void save_licence(uint8* data, int length)
{
}
/*****************************************************************************/
int load_licence(uint8** data)
{
return 0;
}
/*****************************************************************************/
void* xrealloc(void* in, int size)
{
return 0;
}
/*****************************************************************************/
void* xmalloc(int size)
{
return 0;
}
/*****************************************************************************/
void xfree(void* in)
{
}
/*****************************************************************************/
char * xstrdup(const char * s)
{
char * mem = strdup(s);
if (mem == NULL)
{
perror("strdup");
exit(1);
}
return mem;
}
/*****************************************************************************/
void warning(char* format, ...)
{
}
/*****************************************************************************/
void unimpl(char* format, ...)
{
}
/*****************************************************************************/
void error(char* format, ...)
{
}
/*****************************************************************************/
RD_BOOL rd_pstcache_mkdir(void)
{
return 0;
}
/*****************************************************************************/
int rd_open_file(char *filename)
{
return 0;
}
/*****************************************************************************/
void rd_close_file(int fd)
{
return;
}
/*****************************************************************************/
int rd_read_file(int fd, void *ptr, int len)
{
return 0;
}
/*****************************************************************************/
int rd_write_file(int fd, void* ptr, int len)
{
return 0;
}
/*****************************************************************************/
int rd_lseek_file(int fd, int offset)
{
return 0;
}
/*****************************************************************************/
RD_BOOL rd_lock_file(int fd, int start, int len)
{
return False;
}
/*****************************************************************************/
int main(int c, char** p)
{
return 0;
}