>I am experimenting with implementing a split-table feature (which is >accessible through command "inset-modify tabular split-above-row").
I'm not sure inset-modify is the correct LFUN for this, as you basically create a new inset instead of modifying the current one. >I also plan to implement split-below-row, split-before-column and >split-after-column. Please let me know if users might find this useful >and lyx-devel will accept this. It might be a useful feature, however I don't know whether we want 4 extra menu items. The menus are already horribly clumsy. >I have almost succeeded with split-row-above: I am not able to insert a >newline between the two InsetTabular fragments. How can I achieve this? Dispatch a "break-paragraph", or call Text::breakParagraph. >Once I complete this, I'll submit the patch for your consideration for inclusion. Please send your patch as soon as possible, because then we can help you in case you're on the wrong track >Also, what modifications do I have to make for these features to show up in >the UI? I propose menu items: > > Edit->Rows & Columns->Split table {{above,below} row, {before,after} column} You add them to stdmenus.inc and stdcontext.inc. >Also, how do I go about creating buttons and hooking up button-press events to >lyx-actions? I am quite familiar with LyX code now (and have been working with >Qt for a while now). I see lib/ui/*.{inc,ui} files that seem to contain primitives for >generating the UI but in my experiments with modifying them I haven't >succeeded in being able to introduce changes in the menus. This should work. What did you do ? Vincent