mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-23 17:17:38 +00:00
committed by
Norman Feske
parent
572592b0f3
commit
7b54eaaee1
@ -0,0 +1,57 @@
|
||||
/*
|
||||
* \brief A Qt Widget that shows a nitpicker view
|
||||
* \author Christian Prochaska
|
||||
* \date 2010-08-26
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2010-2013 Genode Labs GmbH
|
||||
*
|
||||
* This file is part of the Genode OS framework, which is distributed
|
||||
* under the terms of the GNU General Public License version 2.
|
||||
*/
|
||||
|
||||
#ifndef QNITPICKERVIEWWIDGET_H
|
||||
#define QNITPICKERVIEWWIDGET_H
|
||||
|
||||
#include <QtWidgets>
|
||||
#if 0
|
||||
#include <qwindowsystem_qws.h>
|
||||
#endif
|
||||
|
||||
#include <nitpicker_view/capability.h>
|
||||
#include <nitpicker_view/client.h>
|
||||
|
||||
class QNitpickerViewWidget : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
private:
|
||||
QHash<QScrollBar*, bool> _scrollbars;
|
||||
|
||||
private slots:
|
||||
#if 0
|
||||
void windowEvent(QWSWindow *window,
|
||||
QWSServer::WindowEvent eventType);
|
||||
#endif
|
||||
void valueChanged();
|
||||
void destroyed(QObject *obj = 0);
|
||||
|
||||
protected:
|
||||
Nitpicker::View_client *vc;
|
||||
int orig_w;
|
||||
int orig_h;
|
||||
int orig_buf_x;
|
||||
int orig_buf_y;
|
||||
|
||||
virtual void showEvent(QShowEvent *event);
|
||||
virtual void hideEvent(QHideEvent *event);
|
||||
virtual void paintEvent(QPaintEvent *event);
|
||||
|
||||
public:
|
||||
QNitpickerViewWidget(QWidget *parent =0);
|
||||
~QNitpickerViewWidget();
|
||||
void setNitpickerView(Nitpicker::View_capability view, int buf_x, int buf_y, int w, int h);
|
||||
};
|
||||
|
||||
#endif // QNITPICKERVIEWWIDGET_H
|
Reference in New Issue
Block a user