Programming
The class definition of the dll file should look like this:
#define SLESTESTCUSTOMWIDGET_EXPORT Q_DECL_EXPORT
class SLESTESTCUSTOMWIDGET_EXPORT SlEsTestCustomWidget : public QWidget
{
Q_OBJECT
....
....
}
7.4.3
Structure of the custom widget interface
Description
The library is supplemented by an interface in order to display the custom widget in the
dialog. This contains macro definitions with which "Run MyScreens" initiates the custom
widget. The interface is available in the form of a cpp file. The file name can be freely
selected, e.g.:
sleswidgetfactory.cpp
Programming
The interface is defined as follows:
#include "slestestcustomwidget.h"
....
//Makros
....
WIDGET_CLASS_EXPORT(SlEsTestCustomWi
dget)
SINUMERIK Integrate Run MyScreens (BE2)
Programming Manual, 03/2013, 6FC5397-1DP40-3BA1
; The header file for the relevant custom
widgets is inserted at the beginning of the
file
; Macro definitions are not changed
; The relevant custom widget is declared at
the end of the file
Graphic and logic elements
7.4 Custom widgets
145