rock_widget_collection  0.1
Public Member Functions | List of all members
SonarWidgetPlugin Class Reference

#include <SonarWidgetPlugin.h>

Inherits QObject, and QDesignerCustomWidgetInterface.

Public Member Functions

 SonarWidgetPlugin (QObject *parent=0)
 
virtual ~SonarWidgetPlugin ()
 
bool isContainer () const
 
bool isInitialized () const
 
QIcon icon () const
 
QString domXml () const
 
QString group () const
 
QString includeFile () const
 
QString name () const
 
QString toolTip () const
 
QString whatsThis () const
 
QWidget * createWidget (QWidget *parent)
 
void initialize (QDesignerFormEditorInterface *core)
 

Detailed Description

Definition at line 7 of file SonarWidgetPlugin.h.

Constructor & Destructor Documentation

◆ SonarWidgetPlugin()

SonarWidgetPlugin::SonarWidgetPlugin ( QObject *  parent = 0)

Definition at line 4 of file SonarWidgetPlugin.cc.

5  : QObject(parent)
6 {
7  initialized = false;
8 }

◆ ~SonarWidgetPlugin()

SonarWidgetPlugin::~SonarWidgetPlugin ( )
virtual

Definition at line 10 of file SonarWidgetPlugin.cc.

11 {
12 }

Member Function Documentation

◆ createWidget()

QWidget * SonarWidgetPlugin::createWidget ( QWidget *  parent)

Definition at line 72 of file SonarWidgetPlugin.cc.

73 {
74  return new SonarWidget(parent);
75 }

◆ domXml()

QString SonarWidgetPlugin::domXml ( ) const

Definition at line 29 of file SonarWidgetPlugin.cc.

30 {
31  return "<ui language=\"c++\">\n"
32  " <widget class=\"SonarWidget\" name=\"SonarWidget\">\n"
33  " <property name=\"geometry\">\n"
34  " <rect>\n"
35  " <x>0</x>\n"
36  " <y>0</y>\n"
37  " <width>300</width>\n"
38  " <height>120</height>\n"
39  " </rect>\n"
40  " </property>\n"
41 // " <property name=\"toolTip\" >\n"
42 // " <string>SonarWidget</string>\n"
43 // " </property>\n"
44 // " <property name=\"whatsThis\" >\n"
45 // " <string>SonarWidget</string>\n"
46 // " </property>\n"
47  " </widget>\n"
48  "</ui>\n";
49 }

◆ group()

QString SonarWidgetPlugin::group ( ) const

Definition at line 51 of file SonarWidgetPlugin.cc.

51  {
52  return "Rock-Robotics";
53 }

◆ icon()

QIcon SonarWidgetPlugin::icon ( ) const

Definition at line 24 of file SonarWidgetPlugin.cc.

25 {
26  return QIcon("");
27 }

◆ includeFile()

QString SonarWidgetPlugin::includeFile ( ) const

Definition at line 55 of file SonarWidgetPlugin.cc.

55  {
56  return "SonarWidget/SonarWidget.h";
57 }

◆ initialize()

void SonarWidgetPlugin::initialize ( QDesignerFormEditorInterface *  core)

Definition at line 77 of file SonarWidgetPlugin.cc.

78 {
79  if (initialized)
80  return;
81  initialized = true;
82 }

◆ isContainer()

bool SonarWidgetPlugin::isContainer ( ) const

Definition at line 14 of file SonarWidgetPlugin.cc.

15 {
16  return false;
17 }

◆ isInitialized()

bool SonarWidgetPlugin::isInitialized ( ) const

Definition at line 19 of file SonarWidgetPlugin.cc.

20 {
21  return initialized;
22 }

◆ name()

QString SonarWidgetPlugin::name ( ) const

Definition at line 59 of file SonarWidgetPlugin.cc.

59  {
60  return "SonarWidget";
61 }

◆ toolTip()

QString SonarWidgetPlugin::toolTip ( ) const

Definition at line 63 of file SonarWidgetPlugin.cc.

63  {
64  return whatsThis();
65 }
QString whatsThis() const

◆ whatsThis()

QString SonarWidgetPlugin::whatsThis ( ) const

Definition at line 67 of file SonarWidgetPlugin.cc.

68 {
69  return "";
70 }

The documentation for this class was generated from the following files: