/usr/include/BALL/VIEW/WIDGETS/regularData2DWidget.h is in libballview1.4-dev 1.4.3~beta1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | // -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_VIEW_WIDGETS_REGULARDATA2DWIDGET_H
#define BALL_VIEW_WIDGETS_REGULARDATA2DWIDGET_H
#ifndef BALL_VIEW_KERNEL_MODULARWIDGET_H
# include <BALL/VIEW/KERNEL/modularWidget.h>
#endif
#ifndef BALL_VIEW_WIDGETS_CANVASWIDGET_H
# include <BALL/VIEW/WIDGETS/canvasWidget.h>
#endif
#ifndef BALL_DATATYPE_REGULARDATA2D_H
# include <BALL/DATATYPE/regularData2D.h>
#endif
#ifndef BALL_VIEW_WIDGETS_DOCKWIDGET_H
# include <BALL/VIEW/WIDGETS/dockWidget.h>
#endif
#include <QtGui/QColor>
//Added by qt3to4:
#include <QContextMenuEvent>
#include <QResizeEvent>
namespace BALL
{
namespace VIEW
{
/** Widget used to display two-dimensional data.
\ingroup ViewWidgets
*/
class BALL_VIEW_EXPORT RegularData2DWidget
: public CanvasWidget,
public ModularWidget
{
Q_OBJECT
public:
BALL_EMBEDDABLE(RegularData2DWidget, ModularWidget)
///
RegularData2DWidget(const RegularData2D* data, QWidget *parent = 0);
///
~RegularData2DWidget();
/** Handles messages sent by other registered ConnectionObject instances.
\param message the pointer to the message that should be processed
*/
virtual void onNotify(Message *message);
public slots:
/// Creator of a plot
void createPlot();
protected:
RegularData2DWidget(RegularData2DWidget* widget);
const RegularData2D* data_;
QColor diagram_color_;
QColor background_color_;
QColor axis_color_;
};
///
class BALL_VIEW_EXPORT DockableRegularData2DWidget
: public DockWidget
{
Q_OBJECT
public:
///
DockableRegularData2DWidget(const RegularData2D* data, QWidget *parent=0 );
///
~DockableRegularData2DWidget();
///
void plot();
public slots:
///
virtual void zoomToFit();
///
virtual void zoomIn();
///
virtual void zoomOut();
protected slots:
virtual void resizeEvent(QResizeEvent* e);
virtual void contextMenuEvent(QContextMenuEvent* e);
protected:
DockableRegularData2DWidget(const DockableRegularData2DWidget& dockcanwid);
QSize sizeHint() const;
RegularData2DWidget canWidget_;
};
} //end of namespace VIEW
}//end of namespace BALL
#endif // BALL_VIEW_WIDGETS_DOCKWIDGET_H
|