This forum has been archived. All content is frozen. Please use KDE Discuss instead.

KSelectActions

Tags: None
(comma "," separated)
nimix
Registered Member
Posts
2
Karma
0
OS

KSelectActions

Tue Aug 30, 2011 7:04 pm
Hello everyone

I'm stuck with a problem which shouldn't be too difficult to solve but I couldn't figure it out.

I have various XML files with various tags, however only the language tag is important for my purpose.
In my KDE application I want to have a menu entry called "Lectures". On the next level a KSelectAction menu should open which shows all languages. When clicking on a language another menu should open which shows the corresponding lecture files.

What works:
- loading the files
- group all files in a KSelectaction
- show all files under the menu "Lectures"

So my questions is: What is the easiest way to group all files according to their languages? How does this work with XMLGUI?

Sorry, I'm a beginner and by the way I mean KTouch.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: KSelectActions

Tue Sep 06, 2011 8:00 am
Can you please post the *ui.rc file you currently have?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
nimix
Registered Member
Posts
2
Karma
0
OS

Re: KSelectActions

Sun Oct 09, 2011 4:08 pm
Hi
Thank you for your answer.

This is the current (in development) ui-file:

Code: Select all
<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
<kpartgui name="ktouch" version="1.6.2">
<MenuBar>
  <Menu name="Training1"><text>T&amp;raining</text>
    <Action name="file_openlecture" /> 
    <Action name="training_default_lectures" />
    <Menu name="Training2"><text>T&amp;raining2</text>
       
     <Action name="training_default_language_lectures" />   
       <Action name="training_default_language_lectures2" />   
     </Menu>

   
    <Action name="file_opentext" />
    <Action name="file_editlecture" />
     <Separator/>
    <Action name="keyboard_layouts" append="save_merge"/>
    <Action name="keyboard_schemes" append="save_merge"/>
    <Action name="file_editkeyboard" />
  </Menu>
  <Menu name="Statistics"><text>S&amp;tatistics</text>
    <Action name="training_newsession" />
    <Action name="training_pause" />
     <Separator/>
    <Action name="training_stats" /> 
  </Menu>
  <Menu name="settings"><text>&amp;Settings</text>   
   <Action name="settings_current_user"  append="save_merge"/>
   <Action name="settings_setup_users"   append="save_merge"/>
   <Separator/>
   <Action name="file_editcolors" />   
  </Menu>
</MenuBar>
<ToolBar name="mainToolBar"><text>Main Toolbar</text>
  <Action name="training_newsession" />
  <Action name="training_pause" />
  <Separator/>
  <Action name="training_stats" />
</ToolBar>
</kpartgui>


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]