Advertisement
Guest User

qtcagraphplugin.cpp

a guest
Jun 24th, 2011
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.48 KB | None | 0 0
  1. #include "qtcagraphplugin.hpp"
  2. #include "qtcagraph.hpp"
  3. #include <qwt/qwt_plot.h>
  4. #include <qwt/qwt_plot_curve.h>
  5. #include <qwt/qwt_plot_zoomer.h>
  6. #include <qwt/qwt_plot_magnifier.h>
  7.  
  8.  
  9. #include <QtPlugin>
  10.  
  11. QtCAgraphPlugin::QtCAgraphPlugin(QObject* parent) : QObject(parent) {
  12. }
  13.  
  14. bool QtCAgraphPlugin::isContainer() const {
  15.     return false;
  16. }
  17.  
  18. QIcon QtCAgraphPlugin::icon() const {
  19.     return QIcon();
  20. }
  21.  
  22. QString QtCAgraphPlugin::domXml() const {
  23.     return "<ui language=\"c++\">\n"
  24.     " <widget class=\"QtCAgraph\" name=\"qtCAgraph\">\n"
  25.     "  <property name=\"geometry\">\n"
  26.     "   <rect>\n"
  27.     "    <x>0</x>\n"
  28.     "    <y>0</y>\n"
  29.     "    <width>500</width>\n"
  30.     "    <height>300</height>\n"
  31.     "   </rect>\n"
  32.     "  </property>\n"
  33.     "  <property name=\"toolTip\" >\n"
  34.     "   <string>Graph.</string>\n"
  35.     "  </property>\n"
  36.     "  <property name=\"whatsThis\" >\n"
  37.     "   <string>Graph.</string>\n"
  38.     "  </property>\n"
  39.     " </widget>\n"
  40.     "</ui>\n";
  41. }
  42.  
  43. QString QtCAgraphPlugin::group() const {
  44.     return "Display Widgets [Example]";
  45. }
  46.  
  47. QString QtCAgraphPlugin::includeFile() const {
  48.     return "qtcagraph.hpp";
  49. }
  50.  
  51. QString QtCAgraphPlugin::name() const {
  52.     return "QtCAgraph";
  53. }
  54.  
  55. QString QtCAgraphPlugin::toolTip() const {
  56.     return "QtCA Graph";
  57. }
  58.  
  59. QString QtCAgraphPlugin::whatsThis() const {
  60.     return "QtCA Graph";
  61. }
  62.  
  63. QWidget* QtCAgraphPlugin::createWidget(QWidget* parent) {
  64.     return new QtCAgraph(parent);
  65. }
  66.  
  67. Q_EXPORT_PLUGIN2(qtcagraphplugin, QtCAgraphPlugin)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement