diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-06-15 11:57:19 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-06-15 11:57:19 +0200 |
commit | ba47b1f44f6a72f137cf3f285fe31ccb590d0dcf (patch) | |
tree | 81ca800a86b9d6ab0e0446dc5be22bf064a09983 /lib/Plugins | |
parent | f2b9b027b6ccb888829197c4b037077d5017d8eb (diff) | |
download | abrt-ba47b1f44f6a72f137cf3f285fe31ccb590d0dcf.tar.gz abrt-ba47b1f44f6a72f137cf3f285fe31ccb590d0dcf.tar.xz abrt-ba47b1f44f6a72f137cf3f285fe31ccb590d0dcf.zip |
Add a GUI config dialog for RHTSupport plugin
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Plugins')
-rw-r--r-- | lib/Plugins/Bugzilla.GTKBuilder | 4 | ||||
-rw-r--r-- | lib/Plugins/Makefile.am | 1 | ||||
-rw-r--r-- | lib/Plugins/RHTSupport.GTKBuilder | 213 | ||||
-rw-r--r-- | lib/Plugins/RHTSupport.cpp | 2 |
4 files changed, 217 insertions, 3 deletions
diff --git a/lib/Plugins/Bugzilla.GTKBuilder b/lib/Plugins/Bugzilla.GTKBuilder index a071bd7b..94dc30fa 100644 --- a/lib/Plugins/Bugzilla.GTKBuilder +++ b/lib/Plugins/Bugzilla.GTKBuilder @@ -33,7 +33,7 @@ <property name="column_spacing">12</property> <property name="row_spacing">6</property> <child> - <object class="GtkLabel" id="lBugzillaURL"> + <object class="GtkLabel" id="lURL"> <property name="visible">True</property> <property name="xalign">0</property> <property name="label" translatable="yes">Bugzilla URL:</property> @@ -67,7 +67,7 @@ </packing> </child> <child> - <object class="GtkEntry" id="conf_BugzillaURL"> + <object class="GtkEntry" id="conf_URL"> <property name="visible">True</property> <property name="can_focus">True</property> <property name="invisible_char">●</property> diff --git a/lib/Plugins/Makefile.am b/lib/Plugins/Makefile.am index 4e11770b..d1d50218 100644 --- a/lib/Plugins/Makefile.am +++ b/lib/Plugins/Makefile.am @@ -22,6 +22,7 @@ dist_pluginslib_DATA = \ Logger.GTKBuilder \ Mailx.GTKBuilder \ Bugzilla.GTKBuilder \ + RHTSupport.GTKBuilder \ TicketUploader.GTKBuilder \ Catcut.GTKBuilder \ KerneloopsReporter.GTKBuilder diff --git a/lib/Plugins/RHTSupport.GTKBuilder b/lib/Plugins/RHTSupport.GTKBuilder new file mode 100644 index 00000000..027556a4 --- /dev/null +++ b/lib/Plugins/RHTSupport.GTKBuilder @@ -0,0 +1,213 @@ +<?xml version="1.0"?> +<interface> + <requires lib="gtk+" version="2.14"/> + <!-- interface-naming-policy project-wide --> + <object class="GtkDialog" id="PluginDialog"> + <property name="border_width">12</property> + <property name="resizable">False</property> + <property name="modal">True</property> + <property name="window_position">center-on-parent</property> + <property name="icon_name">abrt</property> + <property name="type_hint">normal</property> + <property name="has_separator">False</property> + <child internal-child="vbox"> + <object class="GtkVBox" id="dialog-vbox"> + <property name="visible">True</property> + <property name="orientation">vertical</property> + <property name="spacing">12</property> + <child> + <object class="GtkFrame" id="frame1"> + <property name="visible">True</property> + <property name="label_xalign">0</property> + <property name="shadow_type">none</property> + <child> + <object class="GtkAlignment" id="alignment1"> + <property name="visible">True</property> + <property name="top_padding">6</property> + <property name="left_padding">12</property> + <child> + <object class="GtkTable" id="table1"> + <property name="visible">True</property> + <property name="n_rows">5</property> + <property name="n_columns">2</property> + <property name="column_spacing">12</property> + <property name="row_spacing">6</property> + <child> + <object class="GtkLabel" id="lURL"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">RHTSupport URL:</property> + </object> + <packing> + <property name="x_options">GTK_FILL</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="lLogin"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Login:</property> + </object> + <packing> + <property name="top_attach">1</property> + <property name="bottom_attach">2</property> + <property name="x_options">GTK_FILL</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="lPassword"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Password:</property> + </object> + <packing> + <property name="top_attach">2</property> + <property name="bottom_attach">3</property> + <property name="x_options">GTK_FILL</property> + </packing> + </child> + <child> + <object class="GtkEntry" id="conf_URL"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="invisible_char">●</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="right_attach">2</property> + </packing> + </child> + <child> + <object class="GtkEntry" id="conf_Login"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="invisible_char">●</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="right_attach">2</property> + <property name="top_attach">1</property> + <property name="bottom_attach">2</property> + </packing> + </child> + <child> + <object class="GtkEntry" id="conf_Password"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="visibility">False</property> + <property name="invisible_char">●</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="right_attach">2</property> + <property name="top_attach">2</property> + <property name="bottom_attach">3</property> + </packing> + </child> + <child> + <object class="GtkCheckButton" id="cb_Password"> + <property name="label" translatable="yes">Show password</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="xalign">0</property> + <property name="draw_indicator">True</property> + </object> + <packing> + <property name="left_attach">1</property> + <property name="right_attach">2</property> + <property name="top_attach">3</property> + <property name="bottom_attach">4</property> + </packing> + </child> + <child> + <object class="GtkLabel" id="label3"> + <property name="xalign">0</property> + </object> + <packing> + <property name="top_attach">3</property> + <property name="bottom_attach">4</property> + <property name="x_options">GTK_FILL</property> + </packing> + </child> + <child> + <object class="GtkCheckButton" id="conf_NoSSLVerify"> + <property name="label" translatable="yes">No SSL verify</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">False</property> + <property name="xalign">0</property> + <property name="draw_indicator">True</property> + </object> + <packing> + <property name="right_attach">2</property> + <property name="top_attach">4</property> + <property name="bottom_attach">5</property> + </packing> + </child> + </object> + </child> + </object> + </child> + <child type="label"> + <object class="GtkLabel" id="label2"> + <property name="visible">True</property> + <property name="label" translatable="yes"><b>RHTSupport plugin configuration</b></property> + <property name="use_markup">True</property> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + <child internal-child="action_area"> + <object class="GtkHButtonBox" id="dialog-action_area1"> + <property name="visible">True</property> + <property name="layout_style">end</property> + <child> + <object class="GtkButton" id="button2"> + <property name="label">gtk-cancel</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <property name="use_stock">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkButton" id="bApply"> + <property name="label">gtk-apply</property> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <property name="use_stock">True</property> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="pack_type">end</property> + <property name="position">0</property> + </packing> + </child> + </object> + </child> + <action-widgets> + <action-widget response="-6">button2</action-widget> + <action-widget response="-10">bApply</action-widget> + </action-widgets> + </object> + <object class="GtkAction" id="action1"/> +</interface> diff --git a/lib/Plugins/RHTSupport.cpp b/lib/Plugins/RHTSupport.cpp index 1cbf3601..01f46f13 100644 --- a/lib/Plugins/RHTSupport.cpp +++ b/lib/Plugins/RHTSupport.cpp @@ -296,4 +296,4 @@ PLUGIN_INFO(REPORTER, "Reports bugs to Red Hat support", "Denys Vlasenko <dvlasenk@redhat.com>", "https://fedorahosted.org/abrt/wiki", - "" /*PLUGINS_LIB_DIR"/RHTSupport.GTKBuilder"*/); + PLUGINS_LIB_DIR"/RHTSupport.GTKBuilder"); |