<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi,<br>
    I want to have the menu 'Tools' -> 'Kepler'.<br>
    With one plugin I want to add the action 'Ellipse Orbit...'<br>
    and with another plugin I want o add the action 'Eccentric
    Anomaly...'?<br>
    <br>
    In the eccentric anomaly plugin I have in the 'intialize' function
    the code:<br>
    ...<br>
    <span style=" color:#800080;">        QAction</span><span style="
      color:#c0c0c0;"> </span><span style=" color:#000000;">*</span><span
      style=" color:#000000;">action</span><span style=" color:#c0c0c0;">
    </span><span style=" color:#000000;">=</span><span style="
      color:#c0c0c0;"> </span><span style=" color:#808000;">new</span><span
      style=" color:#c0c0c0;"> </span><span style=" color:#800080;">QAction</span><span
      style=" color:#000000;">(</span><span style=" color:#000000;">tr</span><span
      style=" color:#000000;">(</span><span style=" color:#008000;">"Eccentric</span><span
      style=" color:#c0c0c0;"> </span><span style=" color:#008000;">Anomaly..."</span><span
      style=" color:#000000;">),</span><span style=" color:#c0c0c0;"> </span><span
      style=" color:#808000;">this</span><span style=" color:#000000;">);</span>
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#800080;">Core</span><span style=" color:#000000;">::</span><span style=" color:#800080;">Command</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000000;">*</span><span style=" color:#000000;">cmd</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000000;">=</span><span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">Core</span><span style=" color:#000000;">::</span><span style=" color:#800080;">ActionManager</span><span style=" color:#000000;">::</span><span style=" color:#000000;">registerAction</span><span style=" color:#000000;">(</span><span style=" color:#000000;">action</span><span style=" color:#000000;">,</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">                                                             </span><span style=" color:#800080;">Constants</span><span style=" color:#000000;">::</span>ACTION_ID<span style=" color:#000000;">,</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">                                                             </span><span style=" color:#800080;">Core</span><span style=" color:#000000;">::</span><span style=" color:#800080;">Context</span><span style=" color:#000000;">(</span><span style=" color:#800080;">Core</span><span style=" color:#000000;">::</span><span style=" color:#800080;">Constants</span><span style=" color:#000000;">::</span>C_GLOBAL<span style=" color:#000000;">));</span></pre>
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#000000;">cmd</span><span style=" color:#000000;">-></span><span style=" font-style:italic; color:#000000;">setDefaultKeySequence</span><span style=" color:#000000;">(</span><span style=" color:#800080;">QKeySequence</span><span style=" color:#000000;">(</span><span style=" color:#000000;">tr</span><span style=" color:#000000;">(</span><span style=" color:#008000;">"Ctrl+Alt+Meta+A"</span><span style=" color:#000000;">)));</span></pre>
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#000000;">connect</span><span style=" color:#000000;">(</span><span style=" color:#000000;">action</span><span style=" color:#000000;">,</span><span style=" color:#c0c0c0;"> </span><span style=" color:#808000;">SIGNAL</span><span style=" color:#000000;">(</span>triggered<span style=" color:#000000;">()),</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">            </span><span style=" color:#808000;">this</span><span style=" color:#000000;">,</span><span style=" color:#c0c0c0;"> </span><span style=" color:#808000;">SLOT</span><span style=" color:#000000;">(</span>showEccAnomDialog<span style=" color:#000000;">()));</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#800080;">Core</span><span style=" color:#000000;">::</span><span style=" color:#800080;">ActionContainer</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000000;">*</span><span style=" color:#000000;">menu</span><span style=" color:#c0c0c0;"> </span><span style=" color:#000000;">=</span><span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">Core</span><span style=" color:#000000;">::</span><span style=" color:#800080;">ActionManager</span><span style=" color:#000000;">::</span><span style=" color:#000000;">createMenu</span><span style=" color:#000000;">(</span><span style=" color:#800080;">Constants</span><span style=" color:#000000;">::</span>MENU_ID<span style=" color:#000000;">);</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#000000;">menu</span><span style=" color:#000000;">-></span><span style=" font-style:italic; color:#000000;">menu</span><span style=" color:#000000;">()-></span><span style=" color:#000000;">setTitle</span><span style=" color:#000000;">(</span><span style=" color:#000000;">tr</span><span style=" color:#000000;">(</span><span style=" color:#008000;">"Kepler"</span><span style=" color:#000000;">));</span></pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#000000;">menu</span><span style=" color:#000000;">-></span><span style=" font-style:italic; color:#000000;">addAction</span><span style=" color:#000000;">(</span><span style=" color:#000000;">cmd</span><span style=" color:#000000;">);</span></pre>
    <pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">
</pre>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;">    </span><span style=" color:#800080;">Core</span><span style=" color:#000000;">::</span><span style=" color:#800080;">ActionManager</span><span style=" color:#000000;">::</span><span style=" color:#000000;">actionContainer</span><span style=" color:#000000;">(</span><span style=" color:#800080;">Core</span><span style=" color:#000000;">::</span><span style=" color:#800080;">Constants</span><span style=" color:#000000;">::</span>M_TOOLS<span style=" color:#000000;">)-></span><span style=" font-style:italic; color:#000000;">addMenu</span><span style=" color:#000000;">(</span><span style=" color:#000000;">menu</span><span style=" color:#000000;">);
...

</span><span style=" color:#000000;"></span>
</pre>
    Similar in the ellipse orbit plugin.<br>
    So, I get <b>two</b> 'Kepler' submenus, but I want only one.<br>
    <pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#000000;"></span><span style=" color:#000000;"></span></pre>
    How can I reach this?<br>
    <br>
    Thanks a lot!<br>
        Thomas Meyer<br>
    <br>
    <span style=" font-style:italic; color:#000000;"><br>
    </span>
  </body>
</html>