From de3ea32632f277d56c6bacb1d996fcc1d08c4e50 Mon Sep 17 00:00:00 2001 From: kriss Date: Wed, 2 Jul 2008 16:02:26 +0000 Subject: [PATCH] 0.1 - grid of dots git-svn-id: http://www.neo1973-germany.de/svn@77 46df4e5c-bc4e-4628-a0fc-830ba316316d --- .../tags/0.1/doc/2d_slider-screenshot-0.1.jpg | Bin 0 -> 41409 bytes 2D_Slider/tags/0.1/src/COPYING | 340 ++++++++++++++++++ 2D_Slider/tags/0.1/src/point.png | Bin 0 -> 447 bytes 2D_Slider/tags/0.1/src/point_inv.png | Bin 0 -> 443 bytes 2D_Slider/tags/0.1/src/slider_2d.py | 303 ++++++++++++++++ 2D_Slider/tags/0.1/src/slider_2d_test.py | 63 ++++ 6 files changed, 706 insertions(+) create mode 100644 2D_Slider/tags/0.1/doc/2d_slider-screenshot-0.1.jpg create mode 100644 2D_Slider/tags/0.1/src/COPYING create mode 100644 2D_Slider/tags/0.1/src/point.png create mode 100644 2D_Slider/tags/0.1/src/point_inv.png create mode 100644 2D_Slider/tags/0.1/src/slider_2d.py create mode 100644 2D_Slider/tags/0.1/src/slider_2d_test.py diff --git a/2D_Slider/tags/0.1/doc/2d_slider-screenshot-0.1.jpg b/2D_Slider/tags/0.1/doc/2d_slider-screenshot-0.1.jpg new file mode 100644 index 0000000000000000000000000000000000000000..73447ebc77895b364c4f1e04cf50721db42e6e35 GIT binary patch literal 41409 zcmeFa1z1#F*EfEKZs|rEhm=MTbm;Cbr5nVd1Q8IBZUz`aq#LAD5h>{yq)`M(6;VMH zQ2CEOk2Bog_gvqt@AbU(zr>5}hT)vE&)RG66~DFCKAAgt0g$RGsVV^=5C|{>OaS0y z1)x^E;p_kanwkI)004N%Z{*j>H-JJOYH#grZ^z>2?Cr#&tg5MVvIxin7|3fupzkfl z_b)8W?=3bK7A6)BHV)2@Z(Mvl99(={92`7CJbZ%hU&tO2Apz0%AHLt@AD3caV`5?x z;Nsx^_>;=b zg^3Bm``%(1wrjomVgZ&-Xz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u^2IV5DIh~7d_=n zDBIOzy38+o^R_;b+KZX3t+&trv_>*9F`zJXa<06Y*R-~K?AP=XTU`z}VR%n<`^kAg zs+rEUj*N1bOsqKA>=kj*hZ9GE@9(lT|h`{1-Wi* z?1L+%Mft_M0@>wSpqfPAX|`V%%mbpU5^3SG*iqXr&rnsDFt1Tln($k_kl!7#yQ4Ib)QSiGEsh%5jyh=E;`K}Af-K_c+r z4xr0|G_Sa*UIV*~o0?e_QmcSbKc+OHApax*<^SpIe=G1uR=#gf^xy*_Lz0@4HD5H* zxZO5!lA^Uu&jPpTt%*tWi~wfGRFBC_`adFDbmLof_S2XMNgHqdA56KwuheemC*_$#U~ z*nsl8(kfy#d+y1=s9RA+SnS5dLSe30XjK8L=V?oYSIsNF_%jncCgF=uRQ gU&CsN$6UwO1`gkHMFZs6zFof2NGJ=3-}7bQU-6rq6951J literal 0 HcmV?d00001 diff --git a/2D_Slider/tags/0.1/src/COPYING b/2D_Slider/tags/0.1/src/COPYING new file mode 100644 index 0000000..d60c31a --- /dev/null +++ b/2D_Slider/tags/0.1/src/COPYING @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/2D_Slider/tags/0.1/src/point.png b/2D_Slider/tags/0.1/src/point.png new file mode 100644 index 0000000000000000000000000000000000000000..704f91dbeb12f45f7c191cba6f86db5af60d5ee3 GIT binary patch literal 447 zcmeAS@N?(olHy`uVBq!ia0vp^AT}2V8<6ZZI=>f4F%}28J29*~C-V}>VN3FMcVYMs zf(!O8p9~b?EbxddW?wc6x=<11Hv2m#DP{xdAc};NL&u>+vs;FL8O)6gM*hZ^$=_G z#=M@j!uk%65}K6z7x*XK{lK|kvTWoN)e43hR_oHl-{%!|9ivKqaCe&T+8}|kRV6aZRfQ_2G5*Lkoqe|Y z{&)GX)mPnhyB6K7`18d_%A>`w$s>RzbGt@Y<>B3*)fP3XOlaDs?(xmbV%pOs7vIM1 zoN_KRXadK?32SUm8*kq@^~2`-x0marf4F%}28J29*~C-V}>VN3FMcVYMs zf(!O8p9~b?EbxddW?Y%ztQhdf=DZW?$m89#dSi$ zLN7yv=Qr$Y7uM^$+u^Se{aW~dvOqjzxTm>g=%Y4M(Fwb6XUb$Ie?Di=w1{@zE>!!H| g`dl*cWq828=tE#a#Ns|vU@$Uxy85}Sb4q9e0Qjw`bpQYW literal 0 HcmV?d00001 diff --git a/2D_Slider/tags/0.1/src/slider_2d.py b/2D_Slider/tags/0.1/src/slider_2d.py new file mode 100644 index 0000000..79031fb --- /dev/null +++ b/2D_Slider/tags/0.1/src/slider_2d.py @@ -0,0 +1,303 @@ +""" + * 2d_slider.py + * widget to allow for 2D selection of values + * + * (C) 2008 by Kristian Mueller + * All Rights Reserved + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +""" + +import os +import gtk + +IMAGE_DIRECTORY = os.path.join(os.path.realpath(os.path.curdir), "./") +POINT_IMAGE = os.path.join(IMAGE_DIRECTORY, "point.png") +POINT_INV_IMAGE = os.path.join(IMAGE_DIRECTORY, "point_inv.png") +IMAGE_SIZE_X = 10 +IMAGE_SIZE_Y = 10 + + +class slider_2d(gtk.HBox): + """ + Widget to allow for two dimensional selection of values + """ + + def __init__(self, x_range = (0, 10), y_range = (0, 10), + bg_color = "#222222", fg_color = "#555566"): + gtk.HBox.__init__(self, False, 0) + + self.x_range = x_range + self.y_range = y_range + self.x_resolution = x_range[1] - x_range[0] + self.y_resolution = y_range[1] - y_range[0] + self.bg_color = bg_color + self.fg_color = fg_color + + self.x_value = int(x_range[1] - x_range[0] / 2) + self.y_value = int(x_range[1] - x_range[0] / 2) + self.mouse_x_position = -1 + self.mouse_y_position = -1 + self.clicked = False + + self.area = gtk.DrawingArea() + self.area.set_size_request(400, 300) + style = self.area.get_style() + self.gc = style.fg_gc[gtk.STATE_NORMAL] + self.area.set_events(gtk.gdk.POINTER_MOTION_MASK | + gtk.gdk.POINTER_MOTION_HINT_MASK ) + self.area.add_events(gtk.gdk.BUTTON_MOTION_MASK | \ + gtk.gdk.BUTTON_PRESS_MASK | \ + gtk.gdk.BUTTON_RELEASE_MASK) + self.area.connect("expose-event", self.area_expose_cb) + self.area.connect("button-press-event", self.area_click_cb) + self.area.connect("button-release-event", self.area_unclick_cb) + self.area.connect("motion-notify-event", self.area_mousemove_cb) + + self.x_value_changed_callback = 0 + self.y_value_changed_callback = 0 + + # define Horizontal and Vertical Rulers + self.hruler = gtk.HRuler() + self.vruler = gtk.VRuler() + self.hruler.set_range(x_range[0], x_range[1], x_range[0], x_range[1]) + self.vruler.set_range(y_range[0], y_range[1], y_range[0], y_range[1]) + + def motion_notify(ruler, event): + return ruler.emit("motion_notify_event", event) + + self.area.connect_object("motion_notify_event", motion_notify, + self.hruler) + self.area.connect_object("motion_notify_event", motion_notify, + self.vruler) + + def size_allocate_cb(wid, allocation): + x, y, width, height = allocation + lower, upper, position, max_size = self.hruler.get_range() + self.hruler.set_range(lower, self.x_resolution, position, max_size) + lower, upper, position, max_size = self.vruler.get_range() + self.vruler.set_range(lower, self.y_resolution, position, max_size) + self.width = width + self.height = height + self.area.connect('size-allocate', size_allocate_cb) + + + self.table = gtk.Table(2,2) + self.table.attach(self.hruler, 1, 2, 0, 1, yoptions=0) + self.table.attach(self.vruler, 0, 1, 1, 2, xoptions=0) + self.table.attach(self.area, 1, 2, 1, 2) + + self.add(self.table) + + + def connect(self, event_name, callback): + if event_name == "x_value_changed_event": + self.x_value_changed_callback = callback + elif event_name == "y_value_changed_event": + self.y_value_changed_callback = callback + else: + super(slider_2d, self).connect(event_name, callback) + + + ############################################################################ + ## callbacks to draw 2D Slider ############################################# + ############################################################################ + def area_expose_cb(self, area, event): + self.redraw() + + def area_click_cb(self, area, event): + self.clicked = True + self.put_value_point(area) + + def area_unclick_cb(self, area, event): + self.clicked = False + self.put_value_point(area) + + def area_mousemove_cb(self, area, event): + pos = area.get_pointer() + + x_max = self.width * 1.0 -1 + y_max = self.height * 1.0 -1 + x_spacing = x_max / self.x_resolution + y_spacing = y_max / self.y_resolution + + # get position of point in grid + x = int((pos[0] + x_spacing/2) / x_spacing) + y = int((pos[1] + y_spacing/2) / y_spacing) + + if self.mouse_x_position != x or self.mouse_y_position != y: + self.redraw_area(self.mouse_x_position, self.mouse_y_position) + self.mouse_x_position = x + self.mouse_y_position = y + self.show_inv_point(x, y) + + if self.clicked: + self.put_value_point(area) + + + def put_value_point(self, area): + """ + actually setting a new value + """ + pos = area.get_pointer() + + x_max = self.width * 1.0 -1 + y_max = self.height * 1.0 -1 + x_spacing = x_max / self.x_resolution + y_spacing = y_max / self.y_resolution + + # get position of point in grid + x = int((pos[0] + x_spacing/2) / x_spacing) + y = int((pos[1] + y_spacing/2) / y_spacing) + + if (self.x_value != x or self.y_value != y) \ + and x in range(self.x_range[0], self.x_range[1]+1)\ + and y in range(self.y_range[0], self.y_range[1]+1): + backup_x = self.x_value + backup_y = self.y_value + self.x_value = x + self.y_value = y + self.redraw_area(backup_x, backup_y) + self.show_point(self.x_value, self.y_value) + + # here we call the callbacks! + if backup_x != self.x_value: + self.x_value_changed_callback(self.x_value) + if backup_y != self.y_value: + self.y_value_changed_callback(self.y_value) + + + ############################################################################ + ## actually writing to our area ############################################ + ############################################################################ + + def redraw(self): + """ + writing all elements to drawing area + (clears screen, draws grid, draws value) + """ + + # get gc + style = self.area.get_style() + self.gc = style.fg_gc[gtk.STATE_NORMAL] + + # clear screen + if self.gc: + fg_backup = self.gc.foreground + self.gc.foreground = self.area.window.get_colormap()\ + .alloc_color(self.bg_color) + # 1) clear screen + self.area.window.draw_rectangle(self.gc, True, 0, 0, -1, -1) + self.gc.foreground = fg_backup + + backup_fb = self.gc.foreground + try: + self.gc.foreground = self.area.window.get_colormap()\ + .alloc_color(self.fg_color) + self.gc.set_line_attributes(1, \ + gtk.gdk.LINE_SOLID, gtk.gdk.CAP_ROUND, \ + gtk.gdk.CAP_ROUND) + + # 2) draw grid + x_max = self.width * 1.0 -1 + y_max = self.height * 1.0 -1 + x_spacing = x_max / self.x_resolution + y_spacing = y_max / self.y_resolution + for i in range(self.x_resolution+2): + self.area.window.draw_line(self.gc, int(x_spacing * i), 0, int(x_spacing * i), int(y_max)) + + for i in range(self.y_resolution+2): + self.area.window.draw_line(self.gc, 0, int(y_spacing * i), int(x_max), int(y_spacing * i)) + finally: + self.gc.foreground = backup_fb + self.show_point(self.x_value, self.y_value) + + def draw_pixmap(self, x, y, img): + """ + loads and draws image to our area + """ + + pixmap, mask = gtk.gdk.pixmap_create_from_xpm(self.area.window, \ + self.area.window.get_colormap().alloc_color(self.bg_color), img) + + self.area.window.draw_drawable(self.gc, pixmap, 0, 0, \ + int(x-5), int(y-5), -1, -1) + + def show_point(self, x_value, y_value): + """ + shows the value-marker at a specific place + """ + x_max = self.width * 1.0 -1 + y_max = self.height * 1.0 -1 + x_spacing = x_max / self.x_resolution + y_spacing = y_max / self.y_resolution + + self.draw_pixmap(x_spacing * x_value, y_spacing * y_value, POINT_IMAGE) + + def show_inv_point(self, x_value, y_value): + """ + shows the inverted value-marker (mouse indicator) at a specific place + """ + x_max = self.width * 1.0 -1 + y_max = self.height * 1.0 -1 + x_spacing = x_max / self.x_resolution + y_spacing = y_max / self.y_resolution + + self.draw_pixmap(x_spacing * int(x_value), y_spacing * int(y_value),\ + POINT_INV_IMAGE) + + def redraw_area(self, x_value, y_value): + """ + redraws the area of a value marker, without clearing out the whole + screen - to prevent flickering + """ + + x_max = self.width * 1.0 -1 + y_max = self.height * 1.0 -1 + x_spacing = x_max / self.x_resolution + y_spacing = y_max / self.y_resolution + + start_x = int((x_spacing * x_value) - (IMAGE_SIZE_X / 2)) + start_y = int((y_spacing * y_value) - (IMAGE_SIZE_Y / 2)) + + fg_backup = self.gc.foreground + self.gc.foreground = self.area.window.get_colormap()\ + .alloc_color(self.bg_color) + self.area.window.draw_rectangle(self.gc, True, \ + start_x, start_y, IMAGE_SIZE_X, IMAGE_SIZE_Y) + self.gc.foreground = fg_backup + + # easyest way for now: redraw all lines + backup_fb = self.gc.foreground + try: + self.gc.foreground = self.area.window.get_colormap()\ + .alloc_color(self.fg_color) + self.gc.set_line_attributes(1, \ + gtk.gdk.LINE_SOLID, gtk.gdk.CAP_ROUND, \ + gtk.gdk.CAP_ROUND) + + # 2) draw grid + x_max = self.width * 1.0 -1 + y_max = self.height * 1.0 -1 + x_spacing = x_max / self.x_resolution + y_spacing = y_max / self.y_resolution + for i in range(self.x_resolution+2): + self.area.window.draw_line(self.gc, int(x_spacing * i), 0, int(x_spacing * i), int(y_max)) + for i in range(self.y_resolution+2): + self.area.window.draw_line(self.gc, 0, int(y_spacing * i), int(x_max), int(y_spacing * i)) + finally: + self.gc.foreground = backup_fb + + self.show_point(self.x_value, self.y_value) diff --git a/2D_Slider/tags/0.1/src/slider_2d_test.py b/2D_Slider/tags/0.1/src/slider_2d_test.py new file mode 100644 index 0000000..b7dc68a --- /dev/null +++ b/2D_Slider/tags/0.1/src/slider_2d_test.py @@ -0,0 +1,63 @@ +""" + * 2d_slider_test.py + * 2D slider widget - test program + * + * (C) 2008 by Kristian Mueller + * All Rights Reserved + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +""" + +import gtk +import slider_2d + +def delete_event(widget, event, data=None): + print("closing") + gtk.main_quit() + +def x_changed_callback(new_x_value): + value_x_label.set_text("Value X: %s" % new_x_value) + +def y_changed_callback(new_y_value): + value_y_label.set_text("Value Y: %s" % new_y_value) + + +## main program ## +window = gtk.Window(gtk.WINDOW_TOPLEVEL) +window.set_title("2D Slider Test Program") +window.connect("delete_event", delete_event) +window.set_border_width(0) +window.set_default_size(450, 335) + +value_x_label = gtk.Label("Value X: none") +value_y_label = gtk.Label("Value Y: none") + +init_box = gtk.VBox() +init_box.set_border_width(35) + +slider_2d = slider_2d.slider_2d(\ + x_range = (0, 20), y_range = (0, 15)) + +slider_2d.connect('x_value_changed_event', x_changed_callback) +slider_2d.connect('y_value_changed_event', y_changed_callback) + +init_box.pack_start(slider_2d, True, True, 0) +init_box.pack_start(value_x_label, False, False, 0) +init_box.pack_start(value_y_label, False, False, 0) +init_box.show_all() +window.add(init_box) +window.show_all() + +gtk.main()