AxisWidgetPlugin.cxx
Go to the documentation of this file.
1 /* HippoPlot AxisWidgetPlugin implementation
2  *
3  * Copyright (C) 2003 The Board of Trustees of The Leland Stanford
4  * Junior University. All Rights Reserved.
5  *
6  * $Id: AxisWidgetPlugin.cxx,v 1.8 2005/11/06 19:41:39 pfkeb Exp $
7  */
8 
9 #include <qglobal.h> // for version
10 #if QT_VERSION < 0x040000
11 
12 #include "AxisWidgetPlugin.h"
13 #include "AxisWidget.h"
14 
15 namespace hippodraw {
16 
18 {
19 }
20 
22 {
23  QStringList list;
24  list << "AxisWidget";
25  return list;
26 }
27 
28 QWidget* AxisWidgetPlugin::create( const QString &key, QWidget* parent, const char* name )
29 {
30  if ( key == "AxisWidget" )
31  return new AxisWidget( parent, name );
32  return 0;
33 }
34 
35 QString AxisWidgetPlugin::group( const QString& feature ) const
36 {
37  if ( feature == "AxisWidget" )
38  return "Input";
39  return QString::null;
40 }
41 
42 //QIconSet AxisWidgetPlugin::iconSet( const QString& ) const
43 //{
44 // return QIconSet( QPixmap( filechooser_pixmap ) );
45 //}
46 
48 {
49  if ( feature == "AxisWidget" )
50  return "AxisWidget.h";
51  return QString::null;
52 }
53 
54 QString AxisWidgetPlugin::toolTip( const QString& feature ) const
55 {
56  if ( feature == "AxisWidget" )
57  return "Axis Widget";
58  return QString::null;
59 }
60 
62 {
63  if ( feature == "AxisWidget" )
64  return "A widget that provides axes text boxes and sliders"
65  " and zoom/pan checkbox.";
66  return QString::null;
67 }
68 
70 {
71  return true;
72 }
73 #endif
74 
75 #if QT_VERSION < 0x040000
76 Q_EXPORT_PLUGIN( AxisWidgetPlugin )
77 #else
78 // Q_EXPORT_PLUGIN( AxisWidgetPlugin ) Need to learn replacement
79 #endif
80 
81 #if QT_VERSION < 0x040000
82 } // namespace hippodra
83 #endif

Generated for HippoDraw Class Library by doxygen