AxisWidgetPlugin.cxx

Go to the documentation of this file.
00001 /* HippoPlot AxisWidgetPlugin implementation
00002  *
00003  * Copyright (C) 2003   The Board of Trustees of The Leland Stanford
00004  * Junior University.  All Rights Reserved.
00005  *
00006  * $Id: AxisWidgetPlugin_8cxx-source.html,v 1.40 2008/03/24 19:27:27 pfkeb Exp $
00007  */
00008 
00009 #include <qglobal.h> // for version
00010 #if QT_VERSION < 0x040000
00011 
00012 #include "AxisWidgetPlugin.h"
00013 #include "AxisWidget.h"
00014 
00015 namespace hippodraw {
00016 
00017 AxisWidgetPlugin::AxisWidgetPlugin()
00018 {
00019 }
00020 
00021 QStringList AxisWidgetPlugin::keys() const
00022 {
00023     QStringList list;
00024     list << "AxisWidget";
00025     return list;
00026 }
00027 
00028 QWidget* AxisWidgetPlugin::create( const QString &key, QWidget* parent, const char* name )
00029 {
00030     if ( key == "AxisWidget" )
00031         return new AxisWidget( parent, name );
00032     return 0;
00033 }
00034 
00035 QString AxisWidgetPlugin::group( const QString& feature ) const
00036 {
00037     if ( feature == "AxisWidget" )
00038         return "Input";
00039     return QString::null;
00040 }
00041 
00042 //QIconSet AxisWidgetPlugin::iconSet( const QString& ) const
00043 //{
00044 //   return QIconSet( QPixmap( filechooser_pixmap ) );
00045 //}
00046 
00047 QString AxisWidgetPlugin::includeFile( const QString& feature ) const
00048 {
00049     if ( feature == "AxisWidget" )
00050         return "AxisWidget.h";
00051     return QString::null;
00052 }
00053 
00054 QString AxisWidgetPlugin::toolTip( const QString& feature ) const
00055 {
00056     if ( feature == "AxisWidget" )
00057         return "Axis Widget";
00058     return QString::null;
00059 }
00060 
00061 QString AxisWidgetPlugin::whatsThis( const QString& feature ) const
00062 {
00063     if ( feature == "AxisWidget" )
00064         return "A widget that provides axes text boxes and sliders" 
00065           " and zoom/pan checkbox.";
00066     return QString::null;
00067 }
00068 
00069 bool AxisWidgetPlugin::isContainer( const QString& ) const
00070 {
00071   return true;
00072 }
00073 #endif
00074 
00075 #if QT_VERSION < 0x040000
00076 Q_EXPORT_PLUGIN( AxisWidgetPlugin )
00077 #else
00078 // Q_EXPORT_PLUGIN( AxisWidgetPlugin )  Need to learn replacement
00079 #endif
00080 
00081 #if QT_VERSION < 0x040000
00082 } // namespace hippodra
00083 #endif

Generated for HippoDraw Class Library by doxygen