RSS/Atom feed Twitter
Site is read-only, email is disabled

Can I have tabs and Apply button in the plugin GUI?

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

5 of 5 messages available
Toggle history

Please log in to manage your subscriptions.

Can I have tabs and Apply button in the plugin GUI? Louise Hoffman 28 Sep 14:21
  Can I have tabs and Apply button in the plugin GUI? Martin Nordholts 28 Sep 18:31
   Can I have tabs and Apply button in the plugin GUI? Louise Hoffman 28 Sep 18:46
    Can I have tabs and Apply button in the plugin GUI? Martin Nordholts 28 Sep 19:05
     Can I have tabs and Apply button in the plugin GUI? Louise Hoffman 28 Sep 19:49
Louise Hoffman
2009-09-28 14:21:45 UTC (over 15 years ago)

Can I have tabs and Apply button in the plugin GUI?

Dear developers,

Can someone tell if this GUI design is possible?

http://pastebin.com/m1ccbcd06

The reason I would like to have tabs is because of the work flow, and the values in the Modify tab will be different depending to the loaded audio[0] file.

If tabs is possible, can I also have the Apply button?

And if so, will the Apply button apply changes to all tabs or just the active tab?

Hugs,
Louise

[0] The user loads audio files, and the plugin convert it to graphics/spectrogram.

Martin Nordholts
2009-09-28 18:31:36 UTC (over 15 years ago)

Can I have tabs and Apply button in the plugin GUI?

On 09/28/2009 02:21 PM, Louise Hoffman wrote:

Dear developers,

Can someone tell if this GUI design is possible?

http://pastebin.com/m1ccbcd06

The reason I would like to have tabs is because of the work flow, and the values in the Modify tab will be different depending to the loaded audio[0] file.

If tabs is possible, can I also have the Apply button?

And if so, will the Apply button apply changes to all tabs or just the active tab?

Hugs,
Louise

Hi Louise

Yes it's possible, you can create any GTK+ interface in plug-ins. To get tabs you'd use GtkNotebook. You can hook any code to an Apply button, including code that takes the active tab into account.

Hugs,
Martin

Louise Hoffman
2009-09-28 18:46:12 UTC (over 15 years ago)

Can I have tabs and Apply button in the plugin GUI?

Yes it's possible, you can create any GTK+ interface in plug-ins. To get tabs you'd use GtkNotebook. You can hook any code to an Apply button, including code that takes the active tab into account.

Hi Martin,

Thank you very much for the detailed answer. That is just perfect =)

Can I ask another question?

Right now when I start GIMP, all plugins can not be opened, because there is no canvas. Once the user have defined an image size in File->New all the plugins become available.

Is it possible that my plugin can be opened without a canvas?

The reason for this is, that it would be very convenient if the user could set image size in the plugin, and once the user presses Apply, GIMP creates the canvas.

Can that be done? And if so, do you have a link to the API's that allow me to do that?

Hugs,
Louise

Martin Nordholts
2009-09-28 19:05:30 UTC (over 15 years ago)

Can I have tabs and Apply button in the plugin GUI?

On 09/28/2009 06:46 PM, Louise Hoffman wrote:

Yes it's possible, you can create any GTK+ interface in plug-ins. To get tabs you'd use GtkNotebook. You can hook any code to an Apply button, including code that takes the active tab into account.

Is it possible that my plugin can be opened without a canvas?

Yes, just pass NULL to the image_type argument to gimp_install_procedure() [1] That's how file plug-ins and plug-ins under File -> Create for example is able to run without any image opened.

Hugs, Martin

[1] http://developer.gimp.org/api/2.0/libgimp/libgimp-gimp.html#gimp-install-procedure

Louise Hoffman
2009-09-28 19:49:29 UTC (over 15 years ago)

Can I have tabs and Apply button in the plugin GUI?

Yes, just pass NULL to the image_type argument to gimp_install_procedure() [1] That's how file plug-ins and plug-ins under File -> Create for example is able to run without any image opened.

That's much better than I expected =)

I will start on that tomorrow.

Thanks a lot =)

Hugs, Louise