rUtilAnts 0.1.0.20091014

Sign up to get free protection for your applications and to get access to all the features.
data/AUTHORS ADDED
@@ -0,0 +1,3 @@
1
+ = Muriel Salvan (murielsalvan@users.sourceforge.net)
2
+ * 0.0.1.20090910
3
+ * 0.1.0.20091014
data/ChangeLog ADDED
@@ -0,0 +1,74 @@
1
+ = rUtilAnts Release History
2
+
3
+ == 0.1.0.20091014 (Alpha)
4
+
5
+ === All modules
6
+
7
+ * Refactored requires for gain in startup performances.
8
+ * Removed .rb suffixes in required files (better migration to .so if needed)
9
+ * Renamed $CT_* variables into $rUtilAnts_*
10
+
11
+ === GUI module
12
+
13
+ * Modal windows having no parent get the top window as parent if possible.
14
+ * Don't destroy modal windows having parents anymore, as it causes core dumps for applications using GarbageCollector.
15
+ * Added SafeTimers and the corresponding API and Manager.
16
+ * Give better errors in case of corrupted Bitmap files
17
+ * Progress dialogs now use a correct modal behaviour.
18
+ * Changed Progress Dialog API to generic parameters.
19
+ * Progress dialog now respond to events and can be cancelled.
20
+ * Added ProgressBars functionnality (both text and bitmap)
21
+ * Forgot to remove some debugging traces.
22
+ * Bug correction: On Linux, first call to end_modal did not close ProgressDialogs during the on_idle event.
23
+ * Bug correction: Forgot to destroy orphan windows.
24
+ * Bug correction: When dialogs with no parent were used, random crashes occured on the application
25
+ * Bug correction: Corrected wrong placement of panels in progress dialogs.
26
+ * Bug correction: Some favicons were not retrieved correctly when URLs were having suffices.
27
+ * Bug correction: getBitmapFromURL was missing some extensions.
28
+
29
+ === Logging module
30
+
31
+ * Added a way to specify the log file in Logging module.
32
+ * Bug correction: logBug did not check availability of showModal correctly.
33
+
34
+ === Misc module
35
+
36
+ * ZLib is tried in the default application local download paths if not already present.
37
+ * extractZipFile returns a complete error instead of boolean.
38
+ * Fixed typo in the rubyzip dependency.
39
+ * extractZipFile overwrites already existing files instead of failing.
40
+ * extractZipFile checks for its dependencies using RDI.
41
+
42
+ === Platform module
43
+
44
+ * Prohibited filenames for Linux platform completed.
45
+ * Bug correction: On Linux, sending messages using xmessage did not work for complex strings.
46
+
47
+ === Plugins module
48
+
49
+ * getPluginInstance and accessPlugin can take a new parameter (RDIContextModifiers) to store applied context modifiers in case of installed dependencies.
50
+ * Added more precisions in error encountered.
51
+ * Added more precise exception classes
52
+ * getPluginInstance returns errors instead of displaying them using logErr
53
+ * Added some metadata to plugins' description (plugin and category names).
54
+ * Added the possibility for descriptions to precise :Enabled property.
55
+ * Changed some signatures to be more generic.
56
+ * Added the possibility to include disabled plugins in lists.
57
+ * Added getPluginsDescriptions in the API
58
+ * Documented description's symbols used by rUtilAnts.
59
+ * Added a way to get RDI Installer's main instance for dependencies insurance.
60
+ * Bug correction: accessPlugin did not give Parameters correctly to getPluginInstance.
61
+ * Bug correction: When asking for Plugins needing no dependency to be installed, getPluginInstance rejected plugins that have dependencies all resolved.
62
+
63
+ === URLAccess module
64
+
65
+ * HTTP: Check for HTTP errors before giving content.
66
+ * Bug correction: Missing RedirectionError excpetion declaration.
67
+
68
+ === URLCache module
69
+
70
+ * Bug correction: When net library was not required, ending a Bitmap in error issued a bug.
71
+
72
+ == 0.0.1.20090910 (Alpha)
73
+
74
+ * Initial public release
data/Credits ADDED
@@ -0,0 +1,14 @@
1
+ = Projects used by rUtilAnts
2
+
3
+ == Ruby
4
+ * Yukihiro « matz » Matsumoto (http://www.rubyist.net/~matz/)
5
+ * http://www.ruby-lang.org/
6
+ * Thanks a lot Matz for this truly wonderful language !
7
+
8
+ == WxRuby
9
+ * Sean Long (http://rubyforge.org/users/seanlong/)
10
+ * Alex Fenton (http://rubyforge.org/users/brokentoy/)
11
+ * http://wxruby.rubyforge.org
12
+ * Used as the GUI framework
13
+
14
+ = People that helped a lot in developing rUtilAnts
data/LICENSE ADDED
@@ -0,0 +1,31 @@
1
+
2
+ The license stated herein is a copy of the BSD License (modified on July 1999).
3
+ The AUTHOR mentionned below refers to the list of people involved in the
4
+ creation and modification of any file included in the delivered package.
5
+ This list is found in the file named AUTHORS.
6
+ The AUTHORS and LICENSE files have to be included in any release of software
7
+ embedding source code of this package, or using it as a derivative software.
8
+
9
+ Copyright (c) 2009 Muriel Salvan (murielsalvan@users.sourceforge.net)
10
+
11
+ Redistribution and use in source and binary forms, with or without
12
+ modification, are permitted provided that the following conditions are met:
13
+
14
+ 1. Redistributions of source code must retain the above copyright notice,
15
+ this list of conditions and the following disclaimer.
16
+ 2. Redistributions in binary form must reproduce the above copyright notice,
17
+ this list of conditions and the following disclaimer in the documentation
18
+ and/or other materials provided with the distribution.
19
+ 3. The name of the author may not be used to endorse or promote products
20
+ derived from this software without specific prior written permission.
21
+
22
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
23
+ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
24
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
25
+ EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
26
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
27
+ OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
30
+ IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
31
+ OF SUCH DAMAGE.
data/README ADDED
@@ -0,0 +1,18 @@
1
+ -- This file is best viewed when processed by rdoc.
2
+ ++
3
+
4
+ = rUtilAnts
5
+
6
+ Library that ships several mini-libraries for everyday development activity.
7
+
8
+ == Where is the documentation ?
9
+
10
+ Check the website at http://rutilants.sourceforge.net
11
+
12
+ == Who wrote it ?
13
+
14
+ Check the AUTHORS[link:files/AUTHORS.html] file.
15
+
16
+ == What is the license ?
17
+
18
+ You can find out in the LICENSE[link:files/LICENSE.html] file.
data/TODO ADDED
@@ -0,0 +1,10 @@
1
+ * Documentation
2
+ ** Write a complete User Guide.
3
+ ** Write a complete Developer Guide.
4
+ ** Create FAQ
5
+
6
+ * Testing
7
+ ** Create a Regression
8
+
9
+ * Development
10
+ ** Implement Send bug reports in BugReportDialog
Binary file
@@ -0,0 +1,104 @@
1
+ #--
2
+ # Copyright (c) 2009 Muriel Salvan (murielsalvan@users.sourceforge.net)
3
+ # Licensed under the terms specified in LICENSE file. No warranty is provided.
4
+ #++
5
+
6
+ module RUtilAnts
7
+
8
+ module GUI
9
+
10
+ # About Dialog
11
+ class BugReportDialog < Wx::Dialog
12
+
13
+ # Constructor
14
+ #
15
+ # Parameters:
16
+ # * *iParent* (<em>Wx::Window</em>): The parent
17
+ # * *iMsg* (_String_): The bug message
18
+ # * *iBugTrackerURL* (_String_): The Bug tracker URL
19
+ def initialize(iParent, iMsg, iBugTrackerURL)
20
+ super(iParent,
21
+ :title => 'Bug',
22
+ :style => Wx::DEFAULT_DIALOG_STYLE|Wx::RESIZE_BORDER|Wx::MAXIMIZE_BOX
23
+ )
24
+
25
+ # Create components
26
+ lSTMessage = Wx::StaticText.new(
27
+ self,
28
+ Wx::ID_ANY,
29
+ "A bug has just occurred.
30
+ Normally you should never see this message, but this application is not bug-less.
31
+ We are sorry for the inconvenience caused.
32
+ If you want to help improving this application, please inform us of this bug:
33
+ take the time to open a ticket at the bugs tracker, or click the \"Send report\" button below.
34
+ We will always try our best to correct bugs.
35
+ Thanks.",
36
+ :style => Wx::ALIGN_CENTRE
37
+ )
38
+ lTCMessage = Wx::TextCtrl.new(self, Wx::ID_ANY, '',
39
+ :style => Wx::TE_MULTILINE|Wx::TE_READONLY|Wx::TE_RICH|Wx::TE_RICH2|Wx::TE_AUTO_URL
40
+ )
41
+ lTCMessage.append_text(iMsg)
42
+ lTCMessage.set_selection(0, 0)
43
+ lBitmap, lError = getBitmapFromURL("#{File.dirname(__FILE__)}/Bug.png")
44
+ lSBIcon = Wx::StaticBitmap.new(self, Wx::ID_ANY, lBitmap)
45
+ lBClose = Wx::Button.new(self, Wx::ID_OK, 'Close')
46
+ lBSend = Wx::Button.new(self, Wx::ID_ANY, 'Send Bug report')
47
+ lHCTrackerURL = Wx::HyperlinkCtrl.new(self, Wx::ID_ANY, 'Bug tracker', iBugTrackerURL,
48
+ :style => Wx::NO_BORDER|Wx::HL_ALIGN_CENTRE|Wx::HL_CONTEXTMENU
49
+ )
50
+
51
+ # Put everything in sizers
52
+ lMainSizer = Wx::BoxSizer.new(Wx::VERTICAL)
53
+
54
+ lTopSizer = Wx::BoxSizer.new(Wx::HORIZONTAL)
55
+ lTopSizer.add_item(lSBIcon,
56
+ :border => 4,
57
+ :flag => Wx::ALIGN_CENTRE|Wx::ALL,
58
+ :proportion => 0
59
+ )
60
+
61
+ lTopRightSizer = Wx::BoxSizer.new(Wx::VERTICAL)
62
+ lTopRightSizer.add_item(lSTMessage, :flag => Wx::ALIGN_CENTRE, :proportion => 0)
63
+ lTopRightSizer.add_item(lTCMessage, :flag => Wx::GROW, :proportion => 1)
64
+
65
+ lTopSizer.add_item(lTopRightSizer, :flag => Wx::GROW, :proportion => 1)
66
+
67
+ lBottomSizer = Wx::BoxSizer.new(Wx::HORIZONTAL)
68
+ lBottomSizer.add_item(lHCTrackerURL, :flag => Wx::ALIGN_CENTRE, :proportion => 0)
69
+ lBottomSizer.add_item([8,0], :proportion => 1)
70
+ lBottomSizer.add_item(lBSend, :flag => Wx::ALIGN_CENTRE, :proportion => 0)
71
+ lBottomSizer.add_item(lBClose, :flag => Wx::ALIGN_CENTRE, :proportion => 0)
72
+
73
+ lMainSizer.add_item(lTopSizer, :flag => Wx::GROW, :proportion => 1)
74
+ lMainSizer.add_item(lBottomSizer,
75
+ :border => 4,
76
+ :flag => Wx::GROW|Wx::ALL,
77
+ :proportion => 0
78
+ )
79
+
80
+ self.sizer = lMainSizer
81
+
82
+ self.fit
83
+
84
+ # Events
85
+ evt_button(lBClose) do |iEvent|
86
+ self.end_modal(Wx::ID_OK)
87
+ end
88
+ evt_button(lBSend) do |iEvent|
89
+ # TODO: Implement it
90
+ showModal(Wx::MessageDialog, self,
91
+ 'This is not implemented yet. Sorry. Please use the link to the bug tracker and copy/paste the content of this bug in it. Thanks.',
92
+ :style => Wx::ID_OK
93
+ ) do |iModalResult, iDialog|
94
+ # Nothing to do
95
+ end
96
+ end
97
+
98
+ end
99
+
100
+ end
101
+
102
+ end
103
+
104
+ end