gtk2/gtk/gtkcoloreditor.ui
2013-04-08 21:19:29 +09:00

358 lines
15 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface domain="gtk30">
<!-- interface-requires gtkprivate 3.10 -->
<!-- interface-requires gtk+ 3.10 -->
<object class="GtkAdjustment" id="a_adj">
<property name="upper">1</property>
<property name="step_increment">0.01</property>
<property name="page_increment">0.10000000000000001</property>
<signal name="value-changed" handler="hsv_changed" object="GtkColorEditor" swapped="yes"/>
</object>
<object class="GtkAdjustment" id="h_adj">
<property name="upper">1</property>
<property name="step_increment">0.01</property>
<property name="page_increment">0.10000000000000001</property>
<signal name="value-changed" handler="hsv_changed" object="GtkColorEditor" swapped="yes"/>
</object>
<object class="GtkAdjustment" id="s_adj">
<property name="upper">1</property>
<property name="step_increment">0.01</property>
<property name="page_increment">0.10000000000000001</property>
<signal name="value-changed" handler="hsv_changed" object="GtkColorEditor" swapped="yes"/>
</object>
<object class="GtkAdjustment" id="v_adj">
<property name="upper">1</property>
<property name="step_increment">0.01</property>
<property name="page_increment">0.10000000000000001</property>
<signal name="value-changed" handler="hsv_changed" object="GtkColorEditor" swapped="yes"/>
</object>
<template class="GtkColorEditor" parent="GtkBox">
<property name="can_focus">False</property>
<signal name="notify::visible" handler="dismiss_current_popup" swapped="no"/>
<child>
<object class="GtkOverlay" id="overlay">
<property name="visible">True</property>
<property name="can_focus">False</property>
<signal name="get-child-position" handler="get_child_position" swapped="no"/>
<child>
<object class="GtkGrid" id="grid">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_left">30</property>
<property name="margin_right">30</property>
<property name="row_spacing">12</property>
<property name="column_spacing">12</property>
<child>
<object class="GtkColorSwatch" id="swatch">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="rgba">rgb(255,255,255)</property>
<property name="selectable">False</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="entry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char"></property>
<child internal-child="accessible">
<object class="AtkObject" id="entry-atkobject">
<property name="AtkObject::accessible-name" translatable="yes">Color Name</property>
</object>
</child>
<signal name="activate" handler="entry_apply" swapped="no"/>
<signal name="focus-out-event" handler="entry_focus_out" swapped="no"/>
<signal name="notify::text" handler="entry_text_changed" swapped="no"/>
</object>
<packing>
<property name="left_attach">2</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkColorScale" id="h_slider">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="orientation">vertical</property>
<property name="adjustment">h_adj</property>
<property name="draw_value">False</property>
<signal name="popup-menu" handler="popup_edit" swapped="no"/>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkColorScale" id="a_slider">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="adjustment">a_adj</property>
<property name="draw_value">False</property>
<property name="scale_type">1</property>
<style>
<class name="scale-has-marks-above"/>
</style>
<signal name="popup-menu" handler="popup_edit" swapped="no"/>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">2</property>
<property name="width">2</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkColorPlane" id="sv_plane">
<property name="width_request">300</property>
<property name="height_request">300</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="h_adjustment">h_adj</property>
<property name="s_adjustment">s_adj</property>
<property name="v_adjustment">v_adj</property>
<signal name="popup-menu" handler="popup_edit" swapped="no"/>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
<property name="width">2</property>
<property name="height">1</property>
</packing>
</child>
<child>
<placeholder/>
</child>
<child>
<placeholder/>
</child>
</object>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
</template>
<object class="GtkBox" id="a_popup">
<property name="can_focus">False</property>
<property name="no_show_all">True</property>
<style>
<class name="tooltip"/>
</style>
<signal name="draw" handler="popup_draw" swapped="no"/>
<child>
<object class="GtkGrid" id="grid4">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_left">12</property>
<property name="margin_right">12</property>
<property name="margin_top">12</property>
<property name="margin_bottom">12</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkLabel" id="label4">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes" context="Color channel">A</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkSpinButton" id="a_entry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char"></property>
<property name="invisible_char_set">True</property>
<property name="climb_rate">1</property>
<child internal-child="accessible">
<object class="AtkObject" id="a_entry-atkobject">
<property name="AtkObject::accessible-name" translatable="yes">Alpha</property>
</object>
</child>
<signal name="key-press-event" handler="popup_key_press" swapped="no"/>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
</object>
<object class="GtkBox" id="h_popup">
<property name="can_focus">False</property>
<property name="no_show_all">True</property>
<style>
<class name="tooltip"/>
</style>
<signal name="draw" handler="popup_draw" swapped="no"/>
<child>
<object class="GtkGrid" id="grid3">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_left">12</property>
<property name="margin_right">12</property>
<property name="margin_top">12</property>
<property name="margin_bottom">12</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkLabel" id="label3">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes" context="Color channel">H</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkSpinButton" id="h_entry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char"></property>
<property name="invisible_char_set">True</property>
<property name="climb_rate">1</property>
<child internal-child="accessible">
<object class="AtkObject" id="h_entry-atkobject">
<property name="AtkObject::accessible-name" translatable="yes">Hue</property>
</object>
</child>
<signal name="key-press-event" handler="popup_key_press" swapped="no"/>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
</object>
<object class="GtkBox" id="sv_popup">
<property name="can_focus">False</property>
<property name="no_show_all">True</property>
<style>
<class name="tooltip"/>
</style>
<signal name="draw" handler="popup_draw" swapped="no"/>
<child>
<object class="GtkGrid" id="grid2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_left">12</property>
<property name="margin_right">12</property>
<property name="margin_top">12</property>
<property name="margin_bottom">12</property>
<property name="row_spacing">6</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes" context="Color Channel">S</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes" context="Color Channel">V</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkSpinButton" id="s_entry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char"></property>
<property name="climb_rate">1</property>
<child internal-child="accessible">
<object class="AtkObject" id="s_entry-atkobject">
<property name="AtkObject::accessible-name" translatable="yes">Saturation</property>
</object>
</child>
<signal name="key-press-event" handler="popup_key_press" swapped="no"/>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkSpinButton" id="v_entry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="invisible_char"></property>
<property name="invisible_char_set">True</property>
<property name="climb_rate">1</property>
<child internal-child="accessible">
<object class="AtkObject" id="v_entry-atkobject">
<property name="AtkObject::accessible-name" translatable="yes">Value</property>
</object>
</child>
<signal name="key-press-event" handler="popup_key_press" swapped="no"/>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">1</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
</object>
</interface>