I've just committed a skeleton chunk of code that hooks up a Gtkmm-based dialog for layers. This is in dialogs/layer-properties.*.
I won't have time to work on this for a couple days so if someone else would like a simple but important coding task, it'd be quite valued to fill it in.
The dialog can be popped up via the Layers->Rename Layer item in the menu. As you'll see, the dialog's currently empty.
The job is to hook up an entry box, make it display the name of the currently selected layer, and add a couple buttons to Apply/Close. In the handler for the apply() routine, make it take the text out of the entry box and set the layer name appropriately.
Some resources:
* debugdialog.* is a similar Gtkmm dialog you can look at for syntax and such. * The item-properties.cpp file includes code for renaming objects. Look at the sp_item_widget_label_changed(), for instance. You can probably adapt the renaming logic from this. * The gtkmm.org website has examples and reference info that will be of use if you're new to Gtkmm.
I'll be happy to answer questions, and will be able to put in time on this this weekend if there's still work left to do.
I think this is the last development task (aside from bug fixing) required before we can enter a hard freeze, so the sooner this can be done, the sooner we can get the release out.
Bryce
On Thu, 18 Nov 2004, Bryce Harrington wrote:
I think this is the last development task (aside from bug fixing) required before we can enter a hard freeze, so the sooner this can be done, the sooner we can get the release out.
Well, we also need to get the layer and object locking behavior fixed. Maybe that falls under bug fixing, though.
-mental
participants (2)
-
Bryce Harrington
-
MenTaLguY