+#define qtu( i ) (i).toUtf8().data()
+#define qta( i ) (i).toAscii().data()
+
+#define CONNECT( a, b, c, d ) connect( a, SIGNAL( b ), c, SLOT(d) )
+#define BUTTONACT( b, a ) connect( b, SIGNAL( clicked() ), this, SLOT(a) )
+#define ON_TIMEOUT( act ) CONNECT( THEDP->fixed_timer, timeout(), this, act )
+
+#define BUTTON_SET( button, text, tooltip ) \
+ button->setText( text ); \
+ button->setToolTip( tooltip );
+
+#define BUTTON_SET_ACT( button, text, tooltip, thisslot ) \
+ BUTTON_SET( button, text, tooltip ); \
+ BUTTONACT( button, thisslot );
+
+#define BUTTON_SET_IMG( button, text, image, tooltip ) \
+ BUTTON_SET( button, text, tooltip ); \
+ button->setIcon( QIcon( ":/"#image ) );
+
+#define BUTTON_SET_ACT_I( button, text, image, tooltip, thisslot ) \
+ BUTTON_SET_IMG( button, text, image, tooltip ); \
+ BUTTONACT( button, thisslot );
+
+#define VISIBLE(i) (i && i->isVisible())
+
+#define TOGGLEV( x ) { if( x->isVisible() ) x->hide(); \
+ else x->show(); }
+
+#if QT43
+ #define setLayoutMargins( a, b, c, d, e) setContentsMargins( a, b, c, d )
+#else
+ #define setLayoutMargins( a, b, c, d, e) setMargin( e )
+#endif
+
+#define getSettings() p_intf->p_sys->mainSettings
+
+enum {
+ DialogEventType = 0,
+ IMEventType = 100,
+ PLEventType = 200
+};