rugui 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog +54 -0
- data/Rakefile +4 -42
- data/lib/rugui/tasks/release_framework.rake +39 -0
- data/lib/rugui/version.rb +1 -1
- data/rugui_generators/controller/USAGE +1 -0
- data/rugui_generators/controller/controller_generator.rb +35 -0
- data/rugui_generators/controller/templates/controller.erb +3 -0
- data/rugui_generators/generators_support.rb +75 -0
- data/rugui_generators/model/USAGE +1 -0
- data/rugui_generators/model/model_generator.rb +35 -0
- data/rugui_generators/model/templates/model.erb +3 -0
- data/rugui_generators/pack/USAGE +1 -0
- data/rugui_generators/pack/pack_generator.rb +40 -0
- data/rugui_generators/pack/templates/README +3 -0
- data/rugui_generators/rugui/USAGE +1 -0
- data/rugui_generators/rugui/rugui_generator.rb +163 -0
- data/rugui_generators/rugui/templates/GTK/application_controller.rb +4 -0
- data/rugui_generators/rugui/templates/GTK/application_view.rb +4 -0
- data/rugui_generators/rugui/templates/GTK/application_view_helper.rb +4 -0
- data/rugui_generators/rugui/templates/GTK/environment.rb +39 -0
- data/rugui_generators/rugui/templates/GTK/main.rc +23 -0
- data/rugui_generators/rugui/templates/GTK/main_controller.rb +17 -0
- data/rugui_generators/rugui/templates/GTK/main_view.glade +33 -0
- data/rugui_generators/rugui/templates/GTK/main_view.rb +10 -0
- data/rugui_generators/rugui/templates/GTK/main_view_helper.rb +3 -0
- data/rugui_generators/rugui/templates/Qt4/application_controller.rb +4 -0
- data/rugui_generators/rugui/templates/Qt4/application_view.rb +4 -0
- data/rugui_generators/rugui/templates/Qt4/application_view_helper.rb +4 -0
- data/rugui_generators/rugui/templates/Qt4/environment.rb +39 -0
- data/rugui_generators/rugui/templates/Qt4/main_controller.rb +13 -0
- data/rugui_generators/rugui/templates/Qt4/main_view.rb +10 -0
- data/rugui_generators/rugui/templates/Qt4/main_view.ui +37 -0
- data/rugui_generators/rugui/templates/Qt4/main_view_helper.rb +3 -0
- data/rugui_generators/rugui/templates/README +3 -0
- data/rugui_generators/rugui/templates/Rakefile +7 -0
- data/rugui_generators/rugui/templates/boot.rb +81 -0
- data/rugui_generators/rugui/templates/development.rb.sample +21 -0
- data/rugui_generators/rugui/templates/main.rb +11 -0
- data/rugui_generators/rugui/templates/main_executable.bat.erb +8 -0
- data/rugui_generators/rugui/templates/main_executable.erb +17 -0
- data/rugui_generators/rugui/templates/production.rb.sample +21 -0
- data/rugui_generators/rugui/templates/rcov.opts +1 -0
- data/rugui_generators/rugui/templates/spec.opts +4 -0
- data/rugui_generators/rugui/templates/spec_helper.rb +12 -0
- data/rugui_generators/rugui/templates/test.rb.sample +21 -0
- data/rugui_generators/rugui/templates/test_helper.rb +12 -0
- data/rugui_generators/view/USAGE +1 -0
- data/rugui_generators/view/templates/toplevels/about_dialog.glade +32 -0
- data/rugui_generators/view/templates/toplevels/assistant.glade +30 -0
- data/rugui_generators/view/templates/toplevels/color_selection_dialog.glade +60 -0
- data/rugui_generators/view/templates/toplevels/dialog_box.glade +35 -0
- data/rugui_generators/view/templates/toplevels/file_chooser_dialog.glade +35 -0
- data/rugui_generators/view/templates/toplevels/font_selection_dialog.glade +58 -0
- data/rugui_generators/view/templates/toplevels/input_dialog.glade +35 -0
- data/rugui_generators/view/templates/toplevels/message_dialog.glade +35 -0
- data/rugui_generators/view/templates/toplevels/recent_chooser_dialog.glade +33 -0
- data/rugui_generators/view/templates/toplevels/window.glade +11 -0
- data/rugui_generators/view/templates/view.erb +11 -0
- data/rugui_generators/view/templates/view.glade +4 -0
- data/rugui_generators/view/templates/view.ui +18 -0
- data/rugui_generators/view/templates/view_helper.erb +3 -0
- data/rugui_generators/view/view_generator.rb +36 -0
- data/script/console +10 -0
- data/script/destroy +14 -0
- data/script/generate +14 -0
- metadata +67 -5
- data/VERSION.yml +0 -4
@@ -0,0 +1,33 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
|
3
|
+
<!--Generated with glade3 3.4.5 on Wed Mar 25 10:29:59 2009 -->
|
4
|
+
<glade-interface>
|
5
|
+
<widget class="GtkWindow" id="main_window">
|
6
|
+
<property name="visible">True</property>
|
7
|
+
<property name="title" translatable="yes">Hello World!</property>
|
8
|
+
<child>
|
9
|
+
<widget class="GtkVBox" id="main_container">
|
10
|
+
<property name="visible">True</property>
|
11
|
+
<child>
|
12
|
+
<widget class="GtkLabel" id="message_label">
|
13
|
+
<property name="visible">True</property>
|
14
|
+
<property name="label" translatable="yes">Just a simple label</property>
|
15
|
+
</widget>
|
16
|
+
</child>
|
17
|
+
<child>
|
18
|
+
<widget class="GtkButton" id="hello_button">
|
19
|
+
<property name="visible">True</property>
|
20
|
+
<property name="can_focus">True</property>
|
21
|
+
<property name="receives_default">True</property>
|
22
|
+
<property name="label" translatable="yes">Click Me</property>
|
23
|
+
<property name="response_id">0</property>
|
24
|
+
<signal name="clicked" handler="on_hello_button_clicked"/>
|
25
|
+
</widget>
|
26
|
+
<packing>
|
27
|
+
<property name="position">1</property>
|
28
|
+
</packing>
|
29
|
+
</child>
|
30
|
+
</widget>
|
31
|
+
</child>
|
32
|
+
</widget>
|
33
|
+
</glade-interface>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# Uncomment below to force the RuGUI application into production mode
|
2
|
+
# ENV['RUGUI_ENV'] ||= 'production'
|
3
|
+
|
4
|
+
# Bootstrap the RuGUI environment, and default configuration
|
5
|
+
require File.join(File.dirname(__FILE__), 'boot')
|
6
|
+
|
7
|
+
RuGUI::Initializer.run do |config|
|
8
|
+
# Settings in config/environments/* take precedence over those specified here.
|
9
|
+
# Application configuration should go into files in config/initializers
|
10
|
+
# -- all .rb files in that directory are automatically loaded.
|
11
|
+
# See RuGUI::Configuration for more options.
|
12
|
+
|
13
|
+
# Changes the framework adapter. Currently the only implemented framework
|
14
|
+
# adapters are GTK and Qt4. Defaults to GTK.
|
15
|
+
config.framework_adapter = 'Qt4'
|
16
|
+
|
17
|
+
# Add additional load paths for your own custom dirs
|
18
|
+
# config.load_paths += %W( #{APPLICATION_ROOT}/extras )
|
19
|
+
|
20
|
+
# The log output, by default it is :stdout, but can be :stderr or any valid
|
21
|
+
# filename. Defaults to :stdout.
|
22
|
+
#config.logger[:output] = :stdout
|
23
|
+
|
24
|
+
# The level for logging. You can use :debug, :info, :warn, :error or :fatal
|
25
|
+
# That is the sequence of severity. Defaults to :info.
|
26
|
+
#config.logger[:level] = :info
|
27
|
+
|
28
|
+
# The format of timestamp. See the formatting for Time.strftime
|
29
|
+
#
|
30
|
+
# See with more details here:
|
31
|
+
# http://www.rubybrain.com/api/ruby-1.8.7/doc/index.html?a=M000253&name=strftime
|
32
|
+
#config.logger[:format] = "%Y-%m-%d %H:%M:%S"
|
33
|
+
|
34
|
+
# Specify gems that this application depends on.
|
35
|
+
# They can then be installed with "rake gems:install" on new installations.
|
36
|
+
# config.gem "bj"
|
37
|
+
# config.gem "hapricot", :version => '>0.8', :source => "http://code.whytheluckystiff.net"
|
38
|
+
# config.gem "aws-s3", :lib => "aws/s3"
|
39
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# The main controller for the application.
|
2
|
+
#
|
3
|
+
# NOTE: This controller doesn't inherit from ApplicationController, instead, it
|
4
|
+
# inherits from RuGUI::BaseMainController. Use it only as a starting point.
|
5
|
+
# Commonly it is used only to register global models and controllers, as well as
|
6
|
+
# the main view, but this is entirely up to you.
|
7
|
+
class MainController < RuGUI::BaseMainController
|
8
|
+
# Add your stuff here.
|
9
|
+
|
10
|
+
def setup_views
|
11
|
+
register_view :main_view
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<ui version="4.0" >
|
2
|
+
<class>main_window</class>
|
3
|
+
<widget class="QWidget" name="main_window" >
|
4
|
+
<property name="geometry" >
|
5
|
+
<rect>
|
6
|
+
<x>0</x>
|
7
|
+
<y>0</y>
|
8
|
+
<width>120</width>
|
9
|
+
<height>70</height>
|
10
|
+
</rect>
|
11
|
+
</property>
|
12
|
+
<property name="windowTitle" >
|
13
|
+
<string>Hello, World!</string>
|
14
|
+
</property>
|
15
|
+
<layout class="QVBoxLayout" name="verticalLayout" >
|
16
|
+
<item>
|
17
|
+
<widget class="QLabel" name="message_label" >
|
18
|
+
<property name="text" >
|
19
|
+
<string>Just a simple label</string>
|
20
|
+
</property>
|
21
|
+
<property name="alignment" >
|
22
|
+
<set>Qt::AlignCenter</set>
|
23
|
+
</property>
|
24
|
+
</widget>
|
25
|
+
</item>
|
26
|
+
<item>
|
27
|
+
<widget class="QPushButton" name="hello_button" >
|
28
|
+
<property name="text" >
|
29
|
+
<string>Click Me</string>
|
30
|
+
</property>
|
31
|
+
</widget>
|
32
|
+
</item>
|
33
|
+
</layout>
|
34
|
+
</widget>
|
35
|
+
<resources/>
|
36
|
+
<connections/>
|
37
|
+
</ui>
|
@@ -0,0 +1,81 @@
|
|
1
|
+
# Do not change this file!
|
2
|
+
#
|
3
|
+
# This was mainly copied (but modified a little bit) from the rails framework
|
4
|
+
# initializers, but made less picky about gem loading.
|
5
|
+
|
6
|
+
APPLICATION_ROOT = File.expand_path("#{File.dirname(__FILE__)}/..") unless defined?(APPLICATION_ROOT)
|
7
|
+
|
8
|
+
module RuGUI
|
9
|
+
class << self
|
10
|
+
def boot!
|
11
|
+
unless booted?
|
12
|
+
preinitialize
|
13
|
+
pick_boot.run
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
def booted?
|
18
|
+
defined? RuGUI::Initializer
|
19
|
+
end
|
20
|
+
|
21
|
+
def pick_boot
|
22
|
+
(vendor_rugui? ? VendorBoot : GemBoot).new
|
23
|
+
end
|
24
|
+
|
25
|
+
def vendor_rugui?
|
26
|
+
File.exist?("#{APPLICATION_ROOT}/vendor/rugui")
|
27
|
+
end
|
28
|
+
|
29
|
+
def preinitialize
|
30
|
+
load(preinitializer_path) if File.exist?(preinitializer_path)
|
31
|
+
end
|
32
|
+
|
33
|
+
def preinitializer_path
|
34
|
+
"#{APPLICATION_ROOT}/config/preinitializer.rb"
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
class Boot
|
39
|
+
def run
|
40
|
+
load_initializer
|
41
|
+
RuGUI::Initializer.run(:set_load_path)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
class VendorBoot < Boot
|
46
|
+
def load_initializer
|
47
|
+
require "#{APPLICATION_ROOT}/vendor/rugui/lib/rugui/initializer"
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
class GemBoot < Boot
|
52
|
+
def load_initializer
|
53
|
+
self.class.load_rubygems
|
54
|
+
load_rugui
|
55
|
+
require 'rugui/initializer'
|
56
|
+
end
|
57
|
+
|
58
|
+
def load_rugui
|
59
|
+
require 'rugui'
|
60
|
+
rescue Gem::LoadError
|
61
|
+
$stderr.puts %(Missing the RuGUI gem. Please `gem install rugui`.)
|
62
|
+
exit 1
|
63
|
+
end
|
64
|
+
|
65
|
+
class << self
|
66
|
+
def rubygems_version
|
67
|
+
Gem::RubyGemsVersion if defined? Gem::RubyGemsVersion
|
68
|
+
end
|
69
|
+
|
70
|
+
def load_rubygems
|
71
|
+
require 'rubygems'
|
72
|
+
rescue LoadError
|
73
|
+
$stderr.puts %(RuGUI requires RubyGems. Please install RubyGems and try again: http://rubygems.rubyforge.org)
|
74
|
+
exit 1
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
80
|
+
# All that for this:
|
81
|
+
RuGUI.boot!
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# This is a sample configuration file suited for a development environment.
|
2
|
+
|
3
|
+
# Setting output for logging. You can use :stdout, :stderr or the name of log
|
4
|
+
# file. Defaults to :stdout.
|
5
|
+
#
|
6
|
+
# Ex:
|
7
|
+
# config.logger[:output] = :stdout
|
8
|
+
# config.logger[:output] = :stderr
|
9
|
+
# config.logger[:output] = "development.log" # or the name of log file.
|
10
|
+
#
|
11
|
+
config.logger[:output] = :stdout
|
12
|
+
|
13
|
+
# The level for logging. You can use :debug, :info, :warn, :error or :fatal
|
14
|
+
# That is the sequence of severity. Defaults to :info.
|
15
|
+
config.logger[:level] = :info
|
16
|
+
|
17
|
+
# The format of timestamp. See the formatting for Time.strftime
|
18
|
+
#
|
19
|
+
# See with more details here:
|
20
|
+
# http://www.rubybrain.com/api/ruby-1.8.7/doc/index.html?a=M000253&name=strftime
|
21
|
+
config.logger[:format] = "%Y-%m-%d %H:%M:%S"
|
@@ -0,0 +1,11 @@
|
|
1
|
+
#! /usr/bin/ruby
|
2
|
+
|
3
|
+
#
|
4
|
+
# You can run this application by running this file.
|
5
|
+
# Do not modify it, unless you know what you are doing.
|
6
|
+
#
|
7
|
+
|
8
|
+
require File.join(File.dirname(__FILE__), '..', 'config', 'environment')
|
9
|
+
|
10
|
+
main_controller = MainController.new
|
11
|
+
main_controller.run
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# ATTENTION: This is just a sample, it it not tested at all!
|
2
|
+
|
3
|
+
@set APPLICATION_ROOT=<%= application_root %>
|
4
|
+
@set APPLICATION_EXECUTABLE=%APPLICATION_ROOT%\app\main.rb
|
5
|
+
@set RUBY_EXECUTABLE=c:\ruby\1.8\ruby
|
6
|
+
@set RUGUI_ENV=production
|
7
|
+
|
8
|
+
"%RUBY_EXECUTABLE%" "%APPLICATION_EXECUTABLE%" %1 %2 %3 %4 %5 %6 %7
|
@@ -0,0 +1,17 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
DIRNAME=`echo \`dirname \$0\``
|
4
|
+
RESULT=`echo \`dirname \$0\` | grep ^/`
|
5
|
+
|
6
|
+
if [ "${DIRNAME}" = "${RESULT}" ]; then
|
7
|
+
SCRIPT_ROOT=`dirname $0`
|
8
|
+
else
|
9
|
+
SCRIPT_ROOT=`echo -n \`pwd\` ;( [ \`dirname \$0\` == '.' ] && echo ) || echo /\`dirname \$0\``
|
10
|
+
fi
|
11
|
+
|
12
|
+
APPLICATION_ROOT="${SCRIPT_ROOT}/.."
|
13
|
+
APPLICATION_EXECUTABLE="${APPLICATION_ROOT}/app/main.rb"
|
14
|
+
RUBY_EXECUTABLE=/usr/bin/ruby
|
15
|
+
RUGUI_ENV=production
|
16
|
+
|
17
|
+
"${RUBY_EXECUTABLE}" "${APPLICATION_EXECUTABLE}"
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# This is a sample configuration file suited for a production environment.
|
2
|
+
|
3
|
+
# Setting output for logging. You can use :stdout, :stderr or the name of log
|
4
|
+
# file. Defaults to :stdout.
|
5
|
+
#
|
6
|
+
# Ex:
|
7
|
+
# config.logger[:output] = :stdout
|
8
|
+
# config.logger[:output] = :stderr
|
9
|
+
# config.logger[:output] = "development.log" # or the name of log file located at APPLICATION_ROOT/log.
|
10
|
+
#
|
11
|
+
config.logger[:output] = "production.log"
|
12
|
+
|
13
|
+
# The level for logging. You can use :debug, :info, :warn, :error or :fatal
|
14
|
+
# That is the sequence of severity. Defaults to :info.
|
15
|
+
config.logger[:level] = :info
|
16
|
+
|
17
|
+
# The format of timestamp. See the formatting for Time.strftime
|
18
|
+
#
|
19
|
+
# See with more details here:
|
20
|
+
# http://www.rubybrain.com/api/ruby-1.8.7/doc/index.html?a=M000253&name=strftime
|
21
|
+
config.logger[:format] = "%Y-%m-%d %H:%M:%S"
|
@@ -0,0 +1 @@
|
|
1
|
+
--exclude "spec/*,gems/*"
|
@@ -0,0 +1,12 @@
|
|
1
|
+
$:.unshift File.join(File.dirname(__FILE__),'..','lib')
|
2
|
+
|
3
|
+
require 'spec'
|
4
|
+
|
5
|
+
# Forcing the 'test' environment.
|
6
|
+
ENV["RUGUI_ENV"] = "test"
|
7
|
+
|
8
|
+
require File.join(File.dirname(__FILE__), '..', 'config', 'environment')
|
9
|
+
|
10
|
+
Spec::Runner.configure do |config|
|
11
|
+
# Add spec runner configurations here.
|
12
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# This is a sample configuration file suited for a test environment.
|
2
|
+
|
3
|
+
# Setting output for logging. You can use :stdout, :stderr or the name of log
|
4
|
+
# file. Defaults to :stdout.
|
5
|
+
#
|
6
|
+
# Ex:
|
7
|
+
# config.logger[:output] = :stdout
|
8
|
+
# config.logger[:output] = :stderr
|
9
|
+
# config.logger[:output] = "development.log" # or the name of log file.
|
10
|
+
#
|
11
|
+
config.logger[:output] = :stdout
|
12
|
+
|
13
|
+
# The level for logging. You can use :debug, :info, :warn, :error or :fatal
|
14
|
+
# That is the sequence of severity. Defaults to :info.
|
15
|
+
config.logger[:level] = :error
|
16
|
+
|
17
|
+
# The format of timestamp. See the formatting for Time.strftime
|
18
|
+
#
|
19
|
+
# See with more details here:
|
20
|
+
# http://www.rubybrain.com/api/ruby-1.8.7/doc/index.html?a=M000253&name=strftime
|
21
|
+
config.logger[:format] = "%Y-%m-%d %H:%M:%S"
|
@@ -0,0 +1,12 @@
|
|
1
|
+
$:.unshift File.join(File.dirname(__FILE__),'..','lib')
|
2
|
+
|
3
|
+
require 'test/unit'
|
4
|
+
|
5
|
+
# Forcing the 'test' environment.
|
6
|
+
ENV["RUGUI_ENV"] = "test"
|
7
|
+
|
8
|
+
require File.join(File.dirname(__FILE__), '..', 'config', 'environment')
|
9
|
+
|
10
|
+
class Test::Unit::TestCase
|
11
|
+
# Add more helper methods to be used by all tests here...
|
12
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
|
3
|
+
<glade-interface>
|
4
|
+
<widget class="GtkAboutDialog" id="aboutdialog1">
|
5
|
+
<property name="border_width">5</property>
|
6
|
+
<property name="title" translatable="yes">About Glade</property>
|
7
|
+
<property name="resizable">False</property>
|
8
|
+
<property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property>
|
9
|
+
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
|
10
|
+
<property name="has_separator">False</property>
|
11
|
+
<property name="program_name">Glade</property>
|
12
|
+
<child internal-child="vbox">
|
13
|
+
<widget class="GtkVBox" id="dialog-vbox1">
|
14
|
+
<property name="visible">True</property>
|
15
|
+
<property name="spacing">2</property>
|
16
|
+
<child>
|
17
|
+
<placeholder/>
|
18
|
+
</child>
|
19
|
+
<child internal-child="action_area">
|
20
|
+
<widget class="GtkHButtonBox" id="dialog-action_area1">
|
21
|
+
<property name="visible">True</property>
|
22
|
+
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
23
|
+
</widget>
|
24
|
+
<packing>
|
25
|
+
<property name="expand">False</property>
|
26
|
+
<property name="pack_type">GTK_PACK_END</property>
|
27
|
+
</packing>
|
28
|
+
</child>
|
29
|
+
</widget>
|
30
|
+
</child>
|
31
|
+
</widget>
|
32
|
+
</glade-interface>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
|
3
|
+
<glade-interface>
|
4
|
+
<widget class="GtkAssistant" id="assistant1">
|
5
|
+
<child>
|
6
|
+
<widget class="GtkLabel" id="label1">
|
7
|
+
<property name="visible">True</property>
|
8
|
+
<property name="label" translatable="yes">Introduction page</property>
|
9
|
+
</widget>
|
10
|
+
<packing>
|
11
|
+
<property name="page_type">GTK_ASSISTANT_PAGE_INTRO</property>
|
12
|
+
</packing>
|
13
|
+
</child>
|
14
|
+
<child>
|
15
|
+
<widget class="GtkLabel" id="label2">
|
16
|
+
<property name="visible">True</property>
|
17
|
+
<property name="label" translatable="yes">Content page</property>
|
18
|
+
</widget>
|
19
|
+
</child>
|
20
|
+
<child>
|
21
|
+
<widget class="GtkLabel" id="label3">
|
22
|
+
<property name="visible">True</property>
|
23
|
+
<property name="label" translatable="yes">Confirmation page</property>
|
24
|
+
</widget>
|
25
|
+
<packing>
|
26
|
+
<property name="page_type">GTK_ASSISTANT_PAGE_CONFIRM</property>
|
27
|
+
</packing>
|
28
|
+
</child>
|
29
|
+
</widget>
|
30
|
+
</glade-interface>
|
@@ -0,0 +1,60 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
|
3
|
+
<glade-interface>
|
4
|
+
<widget class="GtkColorSelectionDialog" id="colorselectiondialog1">
|
5
|
+
<property name="border_width">5</property>
|
6
|
+
<property name="title" translatable="yes">Color Selection</property>
|
7
|
+
<property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property>
|
8
|
+
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
|
9
|
+
<child internal-child="color_selection">
|
10
|
+
<widget class="GtkColorSelection" id="colorsel-color_selection1">
|
11
|
+
<property name="visible">True</property>
|
12
|
+
<property name="border_width">5</property>
|
13
|
+
<property name="current_color">#ffffffffffff</property>
|
14
|
+
<child>
|
15
|
+
<placeholder/>
|
16
|
+
</child>
|
17
|
+
<child>
|
18
|
+
<placeholder/>
|
19
|
+
</child>
|
20
|
+
</widget>
|
21
|
+
</child>
|
22
|
+
<child internal-child="help_button">
|
23
|
+
<widget class="GtkButton" id="colorsel-help_button1">
|
24
|
+
<property name="visible">True</property>
|
25
|
+
<property name="can_focus">True</property>
|
26
|
+
<property name="can_default">True</property>
|
27
|
+
<property name="receives_default">True</property>
|
28
|
+
<property name="label" translatable="yes">gtk-help</property>
|
29
|
+
<property name="use_underline">True</property>
|
30
|
+
<property name="use_stock">True</property>
|
31
|
+
<property name="response_id">0</property>
|
32
|
+
</widget>
|
33
|
+
</child>
|
34
|
+
<child internal-child="cancel_button">
|
35
|
+
<widget class="GtkButton" id="colorsel-cancel_button1">
|
36
|
+
<property name="visible">True</property>
|
37
|
+
<property name="can_focus">True</property>
|
38
|
+
<property name="can_default">True</property>
|
39
|
+
<property name="receives_default">True</property>
|
40
|
+
<property name="label" translatable="yes">gtk-cancel</property>
|
41
|
+
<property name="use_underline">True</property>
|
42
|
+
<property name="use_stock">True</property>
|
43
|
+
<property name="response_id">0</property>
|
44
|
+
</widget>
|
45
|
+
</child>
|
46
|
+
<child internal-child="ok_button">
|
47
|
+
<widget class="GtkButton" id="colorsel-ok_button1">
|
48
|
+
<property name="visible">True</property>
|
49
|
+
<property name="can_focus">True</property>
|
50
|
+
<property name="can_default">True</property>
|
51
|
+
<property name="has_default">True</property>
|
52
|
+
<property name="receives_default">True</property>
|
53
|
+
<property name="label" translatable="yes">gtk-ok</property>
|
54
|
+
<property name="use_underline">True</property>
|
55
|
+
<property name="use_stock">True</property>
|
56
|
+
<property name="response_id">0</property>
|
57
|
+
</widget>
|
58
|
+
</child>
|
59
|
+
</widget>
|
60
|
+
</glade-interface>
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
|
3
|
+
<glade-interface>
|
4
|
+
<widget class="GtkDialog" id="dialog1">
|
5
|
+
<property name="border_width">5</property>
|
6
|
+
<property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property>
|
7
|
+
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
|
8
|
+
<property name="has_separator">False</property>
|
9
|
+
<child internal-child="vbox">
|
10
|
+
<widget class="GtkVBox" id="dialog-vbox1">
|
11
|
+
<property name="visible">True</property>
|
12
|
+
<property name="spacing">2</property>
|
13
|
+
<child>
|
14
|
+
<placeholder/>
|
15
|
+
</child>
|
16
|
+
<child internal-child="action_area">
|
17
|
+
<widget class="GtkHButtonBox" id="dialog-action_area1">
|
18
|
+
<property name="visible">True</property>
|
19
|
+
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
20
|
+
<child>
|
21
|
+
<placeholder/>
|
22
|
+
</child>
|
23
|
+
<child>
|
24
|
+
<placeholder/>
|
25
|
+
</child>
|
26
|
+
</widget>
|
27
|
+
<packing>
|
28
|
+
<property name="expand">False</property>
|
29
|
+
<property name="pack_type">GTK_PACK_END</property>
|
30
|
+
</packing>
|
31
|
+
</child>
|
32
|
+
</widget>
|
33
|
+
</child>
|
34
|
+
</widget>
|
35
|
+
</glade-interface>
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<!DOCTYPE glade-interface SYSTEM "glade-2.0.dtd">
|
3
|
+
<glade-interface>
|
4
|
+
<widget class="GtkFileChooserDialog" id="filechooserdialog1">
|
5
|
+
<property name="border_width">5</property>
|
6
|
+
<property name="window_position">GTK_WIN_POS_CENTER_ON_PARENT</property>
|
7
|
+
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
|
8
|
+
<property name="has_separator">False</property>
|
9
|
+
<child internal-child="vbox">
|
10
|
+
<widget class="GtkVBox" id="dialog-vbox1">
|
11
|
+
<property name="visible">True</property>
|
12
|
+
<property name="spacing">2</property>
|
13
|
+
<child>
|
14
|
+
<placeholder/>
|
15
|
+
</child>
|
16
|
+
<child internal-child="action_area">
|
17
|
+
<widget class="GtkHButtonBox" id="dialog-action_area1">
|
18
|
+
<property name="visible">True</property>
|
19
|
+
<property name="layout_style">GTK_BUTTONBOX_END</property>
|
20
|
+
<child>
|
21
|
+
<placeholder/>
|
22
|
+
</child>
|
23
|
+
<child>
|
24
|
+
<placeholder/>
|
25
|
+
</child>
|
26
|
+
</widget>
|
27
|
+
<packing>
|
28
|
+
<property name="expand">False</property>
|
29
|
+
<property name="pack_type">GTK_PACK_END</property>
|
30
|
+
</packing>
|
31
|
+
</child>
|
32
|
+
</widget>
|
33
|
+
</child>
|
34
|
+
</widget>
|
35
|
+
</glade-interface>
|