[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: XML Gui help
From:       "Robert D. Williams" <rwilliams () jrc-utah ! com>
Date:       2000-04-10 19:31:56
[Download RAW message or body]

On Mon, 10 Apr 2000, Robert D. Williams wrote:
> I want to add a new menu called 'Project' after 'File'.
>
> My ui.rc file:
> <!DOCTYPE kpartgui>
> <kpartgui name="manipulate">
>  <MenuBar>
>    <Menu name="project"><text>&amp;Project</text>
>      <Action name="project_format"/>
>    </Menu>
>  </MenuBar>
> </kpartgui>
>
> And the code to setup the new menu bar:
> (void) new KAction( i18n("&Format"), "format",
>                         0, this,
>                         SLOT(projectFormat()), actionCollection(),
>                         "project_format");
>
> The new menu does not show up.  Where have I messed up?
>
> For the Project menu to be inserted will I need to add a blank File Menu?
> I looked at the tutorial, but it does not answer this question.  Is there
> some place where I can find out have to add a new Menu to the MenuBar?

By the way I used kapptemplate to generate my source.


-- 
Robert Williams       rwilliams@jrc-utah.com
Jarob Consulting      rwilliams@kde.org
Provo, Utah           rwilliams71@excite.com
USA

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic