Index: trunk/GnssCenter/main/mainwin.cpp
===================================================================
--- trunk/GnssCenter/main/mainwin.cpp	(revision 5055)
+++ trunk/GnssCenter/main/mainwin.cpp	(revision 5056)
@@ -44,13 +44,10 @@
     QPluginLoader loader(pluginsDir.absoluteFilePath(fileName));
     QObject* object = loader.instance();
-    qDebug() << pluginsDir.absoluteFilePath(fileName) << object;
     if (object) {
       t_pluginFactoryInterface* plugin = qobject_cast<t_pluginFactoryInterface*>(object);
-      qDebug() << "Plugin: " << plugin;  
       if (plugin) {
-        for (int ii = 1; ii <= 2; ii++) {
-          t_pluginInterface* widget = plugin->create();
-          widget->show();
-        }
+        t_pluginAction* action = new t_pluginAction(this, plugin);
+        _menuPlugins->addAction(action);
+        connect(action, SIGNAL(triggered()), SLOT(slotStartPlugin()));
       }
     }
@@ -83,33 +80,33 @@
   // Create Actions
   // --------------
-  _actFontSel = new QAction(tr("Select &Font"),this);
-  connect(_actFontSel, SIGNAL(triggered()), SLOT(slotFontSel()));
+  QAction* actFontSel = new QAction(tr("Select &Font"),this);
+  connect(actFontSel, SIGNAL(triggered()), SLOT(slotFontSel()));
 
-  _actSaveOpt = new QAction(tr("&Save && Reread Configuration"),this);
-  connect(_actSaveOpt, SIGNAL(triggered()), SLOT(slotSaveOptions()));
+  QAction* actSaveOpt = new QAction(tr("&Save && Reread Configuration"),this);
+  connect(actSaveOpt, SIGNAL(triggered()), SLOT(slotSaveOptions()));
 
-  _actQuit  = new QAction(tr("&Quit"),this);
-  connect(_actQuit, SIGNAL(triggered()), SLOT(close()));
+  QAction* actQuit  = new QAction(tr("&Quit"),this);
+  connect(actQuit, SIGNAL(triggered()), SLOT(close()));
 
-  _actHelp = new QAction(tr("&Help Contents"),this);
-  connect(_actHelp, SIGNAL(triggered()), SLOT(slotHelp()));
+  QAction* actHelp = new QAction(tr("&Help Contents"),this);
+  connect(actHelp, SIGNAL(triggered()), SLOT(slotHelp()));
 
-  _actAbout = new QAction(tr("&About"),this);
-  connect(_actAbout, SIGNAL(triggered()), SLOT(slotAbout()));
+  QAction* actAbout = new QAction(tr("&About"),this);
+  connect(actAbout, SIGNAL(triggered()), SLOT(slotAbout()));
 
   // Create Menu
   // -----------
   _menuFile = menuBar()->addMenu(tr("&File"));
-  _menuFile->addAction(_actFontSel);
+  _menuFile->addAction(actFontSel);
   _menuFile->addSeparator();
-  _menuFile->addAction(_actSaveOpt);
+  _menuFile->addAction(actSaveOpt);
   _menuFile->addSeparator();
-  _menuFile->addAction(_actQuit);
+  _menuFile->addAction(actQuit);
 
   _menuPlugins = menuBar()->addMenu(tr("&Plugins"));
 
   _menuHlp = menuBar()->addMenu(tr("&Help"));
-  _menuHlp->addAction(_actHelp);
-  _menuHlp->addAction(_actAbout);
+  _menuHlp->addAction(actHelp);
+  _menuHlp->addAction(actAbout);
 }
 
@@ -136,4 +133,5 @@
 ////////////////////////////////////////////////////////////////////////////
 void t_mainWin::slotStartPlugin() {
+  qDebug() << "slotStartPlugin" << sender();
 //  t_svgMap* svgMap = new t_svgMap();
 //  QMdiSubWindow* win = _mdi->addSubWindow(svgMap);
Index: trunk/GnssCenter/main/mainwin.h
===================================================================
--- trunk/GnssCenter/main/mainwin.h	(revision 5055)
+++ trunk/GnssCenter/main/mainwin.h	(revision 5056)
@@ -44,10 +44,4 @@
   QMenu*     _menuHlp;
 
-  QAction*   _actFontSel;
-  QAction*   _actSaveOpt;
-  QAction*   _actQuit;
-  QAction*   _actHelp;
-  QAction*   _actAbout;
-
   QToolBar*  _fileToolBar;
   QToolBar*  _editToolBar;
