Main > Free Download Search >

Free gdk software for linux

gdk

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 46
Gtk 0.7009

Gtk 0.7009


Gtk enums, flags, object types, arguments and signals. more>>
Gtk enums, flags, object types, arguments and signals.

Gnome::AppBar (Gtk::HBox)

Signals
undef clear-prompt (Gnome::AppBar)
undef user-response (Gnome::AppBar)

Gnome::AppletWidget (Gtk::Plug)

Signals
undef back-change (Gnome::AppletWidget, Gtk::Enum, gpointer, gpointer)
undef change-orient (Gnome::AppletWidget, Gtk::Enum)
undef change-pixel-size (Gnome::AppletWidget, integer)
undef change-position (Gnome::AppletWidget, integer, integer)
undef do-draw (Gnome::AppletWidget)
bool save-session (Gnome::AppletWidget, string, string)
undef tooltip-state (Gnome::AppletWidget, integer)

Gnome::Calculator (Gtk::VBox)

Signals
undef result-changed (Gnome::Calculator, number)

Gnome::Canvas (Gtk::Layout)

Gnome::CanvasEllipse (Gnome::CanvasRE)

Gnome::CanvasGroup (Gnome::CanvasItem)

Arguments
x (number) [writable, readable]
y (number) [writable, readable]

Gnome::CanvasImage (Gnome::CanvasItem)

Arguments
anchor (Gtk::AnchorType) [writable, readable]
height (number) [writable, readable]
image (Gtk::GdkImlibImage) [writable, readable]
pixbuf (Gtk::Boxed) [writable]
width (number) [writable, readable]
x (number) [writable, readable]
y (number) [writable, readable]

Gnome::CanvasItem (Gtk::Object)

Signals
bool event (Gnome::CanvasItem, Gtk::Gdk::Event)

Gnome::CanvasLine (Gnome::CanvasItem)

Arguments
arrow_shape_a (number) [writable, readable]
arrow_shape_b (number) [writable, readable]
arrow_shape_c (number) [writable, readable]
cap_style (Gtk::GdkCapStyle) [writable, readable]
fill_color (string) [writable]
fill_color_gdk (Gtk::GdkColor) [writable, readable]
fill_color_rgba (unsigned) [writable, readable]
fill_stipple (Gtk::GdkWindow) [writable, readable]
first_arrowhead (bool) [writable, readable]
join_style (Gtk::GdkJoinStyle) [writable, readable]
last_arrowhead (bool) [writable, readable]
line_style (Gtk::GdkLineStyle) [writable, readable]
points (Gnome::CanvasPoints) [writable, readable]
smooth (bool) [writable, readable]
spline_steps (unsigned) [writable, readable]
width_pixels (unsigned) [writable]
width_units (number) [writable]

<<less
Download (0.43MB)
Added: 2006-07-11 License: Perl Artistic License Price:
1202 downloads
SLgtk 0.7.2

SLgtk 0.7.2


SLgtk package binds the GIMP Toolkit, also known as Gtk, to the S-Lang scripting language. more>>
SLgtk package binds the GIMP Toolkit, also known as Gtk, to the S-Lang scripting language. This application was created with the SLIRP code generator, and provides an importable module which makes most of Gtk and its constituent libraries callable directly from S-Lang scripts.
With SLgtk the S-Lang programmer now has access to a powerful, cross-platform widget set for creating sophisticated graphical user interfaces (GUIs). The package also includes bindings to GtkExtra, which are used in the vwhere visualization and filtering guilet, as well as a gdk-pixbuf loader for the FITS image file format widely used within astronomy, and an easy-to-use but powerful image compositing, display, and output tool.
Enhancements:
VWhere 1.3.9:
- When a vector is passed with the & operator VWhere will reflect the proper variable name in the Axis Expression window, instead of assigning the less-meaningful "arrayN".
imdisplay 0.3.4:
- new "panes" option added, to support display of multiple images using either horizontal or vertical tiling
- multiple animations may now be displayed, and even commingled alongside static images
- fill rule may now be specified in an option string, and now defaults to "scale" instead of "none"
- imdisplay_defaults() function added, for option persistence
- 1D images which can be reshaped to NxN are now accepted
changed S-Lang semantics of C Gdk function void gdk_window_get_frame_extents(GdkWindow, &GdkRectangle) to GdkRectantle gdk_window_get_frame_extents(GdkWindow)
- more sophisticated placement/reparenting strategies for win chaining
- rgbwidget version 0.3.0, which adds POW scaling and version info
<<less
Download (0.96MB)
Added: 2007-07-18 License: GPL (GNU General Public License) Price:
828 downloads
GTK+ 2.11.6

GTK+ 2.11.6


Gtk+ is a library for creating graphical user interfaces. more>>
GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off projects to complete application suites.
GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties.
GTK+ is based on three libraries developed by the GTK+ team:
- GLib is the low-level core library that forms the basis of GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system.
- Pango is a library for layout and rendering of text, with an emphasis on internationalization. It forms the core of text and font handling for GTK+-2.0.
- The ATK library provides a set of interfaces for accessibility. By supporting the ATK interfaces, an application or toolkit can be used with such tools as screen readers, magnifiers, and alternative input devices.
GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development.
Enhancements:
GtkBuilder:
- The gtk-builder-convert script is more versatile
- GtkBuilder suppports GdkPixbuf properties
- GtkBuilder parses, but doesnt yet implement
- Support for accelerators in actions has been added
GtkTooltips:
- The old tooltips API has been deprecated
- The has-tooltip property has getter and setter
GtkTreeView:
- Convenience API to set tooltips: gtk_tree_view_set_tooltip_row(),
- gtk_tree_view_set_tooltip_cell(), gtk_tree_view_get_tooltip_context(),
- gtk_tree_view_set_tooltip_column()
GtkIconView:
- Convenience API to set tooltips: gtk_icon_view_set_tooltip_item(),
- gtk_icon_view_set_tooltip_cell(), gtk_icon_view_get_tooltip_context(),
- gtk_icon_view_set_tooltip_column()
Bug fixes:
- 452598 crash in Evolution: Added an Evolution attac...
- 447966 Add builder support for GdkPixbuf properties
- 453033 gnome-panel crashed with SIGSEGV in idle_populate_func()
- 453365 gdk_pixbuf_get_file_info crashes on tif files
- 361781 GtkViewport size request includes xthickness/ythickness f...
- 427899 GtkFrames label may exceed the frame area
- 430049 gtk_selection_data_set_text() ignores length argument
- 436965 Add files to /po[-properties]/POTFILES.in
- 437281 gtk_button_set_image destroyes the old image
- 448604 gtk+ printbackends build fix
- 449311 GtkVolumeButton should use new tooltip API
- 451164 I translate gnome-desktop. But i have no svn account and ...
- 451575 (API) Changes needed for GtkTooltips deprecation
- 452425 Setting "tooltip-text" property to NULL has bad effects
- 452861 gtk_label_set_pattern() is not working anymore
- 452988 error handling in GtkCellLayout custom parser
- 453411 Button state not included in key events
- 453413 Key event state is not right for modifier keys
- 454654 Accelerator support for actions
- 454700 Minor update for gdk_threads_enter
- 454703 gdk_window_invalidate_rect accepts NULL
- 454830 gtk-builder-convert not converting menus
- 452056 GtkComboBox doesnt emit changed signal when active row...
- 452278 GtkBuilder API Documentation
- 453316 small documentation fix in GtkDrawingArea API documentation
- 453673 small doc quirk in gtk/gtktreeview.c
- 453930 small doc quirk in gtk/gtktooltip.c
- 454596 [patch] gdkpixbuf-scale slight api doc improvement
- 454835 [patch] example in gdk-pixbuf-scaling using deprecated gd...
- 457384 critical warning from entrycompletion
- 112404 Problem with focus when closing transient window
- 172424 Most GtkWidget events have no documentation
- 408327 Improving tooltip positioning
- 439480 translations
- 439715 GtkFileChooserrecent files option takes up 100% CPU.
- 455482 remove old tooltips work-around from uimanager
- 455721 mem leak when adding shortcut
- 455901 mem leak in path bar
- 455984 need a way to convert to bin_window coordinates
- 457720 assertion `G_IS_VALUE (value) failed progmatically "tabb...
- 458298 broken cursor movement with inline selection
- 456258 GtkScaleButton: value parameter of signal "value-changed"...
- 457774 GtkTreeView::test_expand_row and test_collapse_row
- 455645 intern action names
- Updated translations
<<less
Download (21MB)
Added: 2007-07-22 License: GPL (GNU General Public License) Price:
1380 downloads
lambda-gtk 0.1

lambda-gtk 0.1


?gtk is a cross-platform Lisp interface to the complete GTK+2 family of shared libraries. more>>
?gtk is a cross-platform Lisp interface to the complete GTK+2 family of shared libraries. ?gtk currently runs in the following Lisp environments:
PPC/Darwin OpenMCL 0.14.2-p1
x86/Linux SBCL 0.8.16
x86/Linux CMUCL 19a
and is released under the Lisp Lesser General Public License (LLGPL).
If you are familiar with Lisp function call syntax and the GTK API then programming with ?gtk is straightforward.
Main features:
- Portable GUI programming across the supported Lisp environments.
- Automatic conversion between Lisp data (booleans, numbers, strings) and their equivalent GTK types. Function arguments that involve C pointers to ints, floats and doubles are also handled automatically: foreign values are allocated and initialized by the wrappers, the pointers are passed to GTK and then dereferenced and returned to the Lisp caller as multiple values.
- Lisp names for GTKs enums, structs and functions. Lisp names are formed by substituting "-" for "_" and (possibly) converting C library prefixes into exported Lisp package prefixes (see documentation section below).
- Lisp accessor functions to read/write slot values in GTK structs. Accessors are named struct.slot but may include more than one slot name, e.g. gtk:Widget.allocation.width. The first argument to all accessors is a pointer to a struct; if the referenced slot is an array then a second required argument provides the index. The last argument to all accessors is an optional value, that, if specified, replaces the current value in the slot. For example:
(gdk:Rectangle.x rect) ; return rects x value
(gdk:Rectangle.x rect 100) ; set rects x value
- Lisp symbol package(s) that export the GTK API and a read time conditional #+:gtk in *features*.
- A small set of utilities for working with GTK pointers, callbacks and foreign storage in a portable way (see documentation below).
<<less
Download (0.37MB)
Added: 2005-08-10 License: LGPL (GNU Lesser General Public License) Price:
1535 downloads
Gtk2::api 1.145

Gtk2::api 1.145


Gtk2::api is a mapping the Gtk+ C API to perl. more>>
Gtk2::api is a mapping the Gtk+ C API to perl.

ABSTRACT
The Gtk2 module attempts to stick as close as is reasonable to the C API, to minimize the need to maintain documentation which is nearly a copy of the C API reference documentation. However, the world is not perfect, and the mappings between C and perl are not as clean and predictable as you might wish. Thus, this page described the basics of how to map the C API to the perl API, and lists various points in the API which follow neither the C API documentation nor the mapping principles.

The canonical documentation is the C API reference at http://developer.gnome.org/doc/API/gtk/ and http://developer.gnome.org/doc/API/gdk/
There are two main sections: BINDING BASICS describes the principles on which the bindings work; understanding these can lead you to guess the proper syntax to use for any given function described in the C API reference.

The second section lists various specific points of difference which dont necessarily correspond with what you expect; this section is in three main parts: missing methods, renamed methods, and different call signatures.

<<less
Download (0.64MB)
Added: 2007-07-16 License: Perl Artistic License Price:
832 downloads
pygtk2reference 2.9.0

pygtk2reference 2.9.0


pygtk2reference describes the classes of the Python PyGTK module. more>>
pygtk2reference describes the classes of the Python PyGTK module.

This document describes most of the PyGTK version 2.0 through 2.6 classes and their methods and associated functions.

Deprecated classes, functions and methods have been specifically left out of this reference though classes that have become deprecated since PyGTK 2.0 have been left in but annotated with a deprecation warning.

I have attempted to document as much of the PyGTK API as I can but there are undoubtedly errors and omissions.

This reference describes the API for PyGTK as of version 2.5.0+ and assumes that the additional API changes for version 2.6 may be significant. There will undoubtedly be changes that are not reflected in this reference.

The differences in the API between version 2.0 and previous versions are denoted in this reference with a Note that describes the availability of the object, constructor, method or function. Any of these that do not have a notation can be assumed to be available in all versions of PyGTK from 2.0 and up.

In the case of properties and signals the availability is dependent on the version of the underlying GTK+, GDK or Pango libraries. These will be annotated appropriately in a similar fashion. The source code must be consulted if this reference and your version of PyGTK seem to differ. You are encouraged to use the latest version of PyGTK that is available.
<<less
Download (1.1MB)
Added: 2006-07-10 License: (FDL) GNU Free Documentation License Price:
1201 downloads
 
Other version of pygtk2reference
pygtk2reference 2.8.1and signals the availability is dependent on the version of the underlying GTK+, GDK or Pango libraries. These will be annotated appropriately in a similar fashion. The source code must be consulted
License:(FDL) GNU Free Documentation License
Download (0.90MB)
1201 downloads
Added: 2006-07-10
Gtk2::TrayManager 0.05

Gtk2::TrayManager 0.05


Gtk2::TrayManager is a Perl bindings for EggTrayManager. more>>
Gtk2::TrayManager is a Perl bindings for EggTrayManager.

SYNOPSIS

use Gtk2 -init;
use Gtk2::TrayManager;

my $screen = Gtk2::Gdk::Screen->get_default;

if (Gtk2::TrayManager->check_running($screen)) {
print STDERR "A tray manager is already running, sorry!n";
exit 256;
}

my $tray = Gtk2::TrayManager->new;
$tray->manage_screen($screen);
$tray->set_orientation(vertical);

$tray->signal_connect(tray_icon_added, sub {
# $_[1] is a Gtk2::Socket
});

$tray->signal_connect(tray_icon_removed, sub {
# $_[1] is a Gtk2::Socket
});

The EggTrayManager library is used internally by GNOME to implement the server-side of the Notification Area (or system tray) protocol. Gtk2::TrayManager allows you to create notification area applications using Gtk2-Perl.

<<less
Download (0.011MB)
Added: 2006-07-18 License: Perl Artistic License Price:
1195 downloads
GLiv 1.9.6

GLiv 1.9.6


GLiv is an OpenGL image viewer. more>>
GLiv is an OpenGL image viewer, image loading is done via Gdk-pixbuf bundled with GTK+-2.4, rendering with OpenGL and the graphical user interface uses GTK+ with GtkGLExt.

GLiv is very fast and smooth at rotating, panning and zooming if you have an OpenGL accelerated graphics board. GLiv supports thumbnails and navigating through them using two images menus.

<<less
Download (0.18MB)
Added: 2006-11-19 License: GPL (GNU General Public License) Price:
1069 downloads
Gnome::StockIcons 1.4.2

Gnome::StockIcons 1.4.2


Gnome::StockIcons is a Gnome 1.4 stock icons in XPM format. more>>
Gnome::StockIcons is a Gnome 1.4 stock icons in XPM format.

SYNOPSIS

use Gtk;
use Gnome::StockIcons;

my ( $pixmap, $mask ) = Gtk::Gdk::Pixmap->create_from_xpm_d( $window->window,
$style,
@stock_help );

These are the Gnome 1.4 stock icons. The original PNG files are in gnome-libs-1.4.1.2.90/libgnomeui/pixmaps. All names are identical but - is replaced by _. Currenlty, this only affects calculator-font.png (@calculator_font).
The module does not strictly speaking require Gtk, but its not much use without.

EXPORT

All icons are exported as arrays. See the source for a full list

<<less
Download (0.037MB)
Added: 2006-07-13 License: GPL (GNU General Public License) Price:
1201 downloads
KMD 0.9.19

KMD 0.9.19


KMD is a graphical universal debugger. more>>
KMD is a graphical debugger written by me for The University of Manchester Computer Science Department.

It can debug hardware over serial ports such as the Manchester ARM Board or with software emulators (ARM and MIPS emulators are included in the project). Using the pipe option you can debug over the network or any other communication medium.

It can load many executable formats such as ELF and display and follow the original source even from multiple source file programs. There is support for breakpoints and watchpoints which can trap specific instructions (such as loading or executing specific instructions).

Support for other features such as FPGAs is also available, allowing loading or any control required to drive a specific hardware device. The project uses chump to allow disassembly and line assembly.

Chump also allows new architectures to be easily added without the need to recompile the system. Communication with the backend is done using two pipes/fifos using a simple set of codes. Back end communication program can be created using very little memory on the target device.

Compile:

Download the latest version of KMD. unzip the archive with

tar zxf KMD-latest.tar.gz

Enter the KMD directory

cd KMD-0.9.??

Run the configure script

./configure

Run make

make

Run
The compiled programs should be in the src directory

cd src

Run KMD and specify that you are running with the defauit configuration file (-i)
and using an emulator called jimulator which is an ARM emulator (-e ./jimulator)

./kmd -i -e ./jimulator

KMD requires the following libraries:

- GLib - Provides many useful data types, macros, type conversions, string utilities and a lexical scanner.
- GDK - A wrapper for low-level windowing functions.
- GTK - An advanced widget set.
- BFD - the Binary File Descriptor Library. (BFD comes with GCC or binutils)
libiberty - The libiberty library is a collection of subroutines used by various GNU programs. (also comes with GCC or binutils)
<<less
Download (0.24MB)
Added: 2005-04-22 License: GPL (GNU General Public License) Price:
1645 downloads
Kino 1.1.0

Kino 1.1.0


Kino is a non-linear DV editor for GNU/Linux. more>>
Kino is a non-linear DV editor for GNU/Linux. It features excellent integration with IEEE-1394 for capture, VTR control, and recording back to the camera. Kino captures video to disk in Raw DV and AVI format, in both type-1 DV and type-2 DV (separate audio stream) encodings.
You can load multiple video clips, cut and paste portions of video/audio, and save it to an edit decision list (SMIL XML format). Most edit and navigation commands are mapped to equivalent vi key commands.
Also, Kino can export the composite movie in a number of formats: DV over IEEE 1394, Raw DV, DV AVI, still frames, WAV, MP3, Ogg Vorbis, MPEG-1, MPEG-2, and MPEG-4. Still frame import and export uses gdk-pixbuf, which has support for BMG, GIF, JPEG, PNG, PPM, SVG, Targa, TIFF, and XPM. MP3 requires lame. Ogg Vorbis requires oggenc. MPEG-1 and MPEG-2 require mjpegtools or ffmpeg. MPEG-4 requires ffmpeg.
The current release introduces an experimental fx module, which is accessed from the FX tab in the main window. It provides some basic audio and video fx such as importing, filters and transitions for audio and video. It also provides some basic plug-in functionality to allow third party extension.
Currently, Kino does not support other video file formats or encodings. It does not support multiple layers or tracks of video and audio. We plan to implement most of these features, but first we chose to focus on the basics of IEEE-1394, video, audio, and file input and output. We place a lot of emphasis on quality, stability, performance, and workflow.
Main features:
General
- Free Software (GNU GPL)
- GTK+ 2.0 (GNOME) UI
- XML (SMIL like) project file format
- OSS audio
- GDK or XVideo
- online help
- Peer and developer support forums
- User interface translated to Danish, Swedish, French, Czech, and Spanish.
- Extensible project metadata system.
- Ability to "publish" project file and still frames using an extensible scripting interface.
Media Support
- DV-based (libdv codec)
- PAL or NTSC
- AVI (type1 or type2) or Raw DV files. with large AVI (OpenDML) and LFS (>2GB) support
Capture
- IEEE 1394 (Linux 1394) capture and export
- IEEE 1394 transport control (AV/C)
- USB Jog/Shuttle transport control
Editing
- Fast and frame-accurate navigation/scrubbing
- vi keybindings
- GUI transport controls, scrub bar, and shuttle control
- Storyboard view with drag-n-drop
- Trimmer with 3 point insert editing
- Fine-grain thumbnail viewer (Timeline, but not a typical NLE timeline)
- Drag-n-drop from file manager
- USB Jog/Shuttle input
- Undo/Redo up to 99X
Export
- IEEE 1394 DV Export
- Export audio as WAV, Ogg Vorbis (oggenc), MP3 (lame), or MP2 (mp2enc)
- Export (and import) multiple still frames as JPEG, PNG, TIFF, PPM, and others
- Export audio/video as MPEG-1, MPEG-2, and MPEG-4 (with mjpegtools or ffmpeg)
- Export raw DV via pipe, which is extensible with shell scripts.
Effects General
- Background generator: solid colour, gradient, colour range, noise, and image import
- Effects preview
- Effects plugin API (API not yet stable)
Video Filters
- Black/White
- Sepia tone
- Reverse (i.e. inverse or negative)
- Mirror
- Kaleidescope
- Swap (flip)
Video Transitions
- Fade to/from colour
- Dissolve
- Push Wipe
- Barn Door Wipe
- Colour Differences (and Similarities)
Audio Filters
- Silence
- Fade In/Out
Audio Transitions
- Cross-fade
- Dub (from external file)
- Mix (from external file)
<<less
Download (5.2MB)
Added: 2007-07-24 License: GPL (GNU General Public License) Price:
829 downloads
GView 0.9.1a

GView 0.9.1a


GView is a simple functional image viewing utility designed to teach newcomers the uses of the GTK / GDK libraries. more>>
GView is a simple functional image viewing utility designed to teach newcomers the uses of the GTK / GDK libraries.
GView serves many purposes. The first is as a replacement for the Eye of Gnome application. I dont know why, but EOG as installed on my box stopped working; so I wrote my own. Second is to teach others by example how to use the GTK / GDK libraries. And third is to give me something to do in my spare time.
Each Minor release of the application will include a new lesson, with the initial lesson showing how to create the application window and do something useful with it. As for what will come in consecutive lessons, only time will tell.
Main features:
- Command-line viewing of image files (.bmp, .jpeg, .gif, .png, etc)
- Ability to zoom in on image areas
- Ability to resize the image (larger or smaller) during runtime
- Images automatically resize to best fit your screens resolution
<<less
Download (0.007MB)
Added: 2005-08-05 License: GPL (GNU General Public License) Price:
2325 downloads
GFC-UI 2.3.1

GFC-UI 2.3.1


GFC-UI is a C++ interface for GTK+. more>>
GFC-UI is a C++ interface for GTK+.

The GTK+ Foundation Classes is an set of integrated C++ classes for developing GTK+ applications on UNIX-like systems such as Linux. GFC-UI is the user interface library and includes C++ wrappers for most objects in the ATK, GDK, GTK, GdkPixbuf and Pango libraries.

There is a standard string compatible UTF-8 string class, automatic memory management, an optimized virtual signal handler system and a typesafe system of C++ signal and slots. It comes with a full set of example programs, several test applications, a GNU Autotools test project, a C++ version of the GTK+ widget demonstration program, extensive reference documentation and a tutorial.

<<less
Download (0.86MB)
Added: 2005-08-10 License: GPL (GNU General Public License) Price:
1536 downloads
Gcover 0.1.3

Gcover 0.1.3


Gcover is a cd cover editor program for the Gnome community. more>>
Gcover is a cd cover editor program for the Gnome community. Its my first development under Linux/C/Gnome so dont take it too hard. There are two reasons why I release this program:
I think it is quite useful If you want to create nice covers for your "home made" cds (eg.:audio cds from mp3s or data cds).
I couldnt find any good cover editor program for Gnome.
Main features:
- Different kind of covers (One or two back pages,booklet for your front pages or simple 2 paged front)
- Title text,page text with different fonts and colors. Many text formatting opportunities(eg.:margins,alignment,columns,word warp,etc..)
- Picture for every pages with scaling options,border cutting,different interpolation modes(using the power of gdk-pixbuf),etc..
- Printing to postscript output,real printers. Print preview.
- Plain text loading to the page editor or to the internal clipboard
- And so on... Its better if you look the program
<<less
Download (0.36MB)
Added: 2006-07-19 License: GPL (GNU General Public License) Price:
1193 downloads
Gtk2::Ex::MindMapView 0.000001

Gtk2::Ex::MindMapView 0.000001


Gtk2::Ex::MindMapView is a Perl module to display mind map or outline on a Gnome2::Canvas. more>>
Gtk2::Ex::MindMapView is a Perl module to display mind map or outline on a Gnome2::Canvas.

HEIRARCHY

Glib::Object
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Layout
+----Gnome2::Canvas
+----Gtk2::Ex::MindMapView

SYNOPSIS

#!/usr/bin/perl -w
use strict; use Gtk2 -init; use Gnome2::Canvas;
use Gtk2::Ex::MindMapView; use Gtk2::Ex::MindMapView::ItemFactory;
my $window = Gtk2::Window->new();
my $scroller = Gtk2::ScrolledWindow->new();
my $view = Gtk2::Ex::MindMapView->new(aa=>1);
my $factory = Gtk2::Ex::MindMapView::ItemFactory->new(view=>$view);
$view->set_scroll_region(-350,-325,350,325);
$scroller->add($view);
$window->signal_connect(destroy=>sub { _closeapp($view); });
$window->set_default_size(900,350);
$window->add($scroller);
my $item1 = _text_item($factory, "Hello World!");
$view->add_item($item1);
my $item2 = _url_item($factory, "Google Search Engine", "http://www.google.com");
$view->add_item($item1, $item2);
my $item3 = _picture_item($factory, "./monalisa.jpeg");
$view->add_item($item1, $item3);
$view->layout();
$window->show_all();
Gtk2->main();
exit 0;
sub _closeapp { my $view = shift(@_);
$view->destroy();

Gtk2->main_quit();

return 0;
}
sub _text_item { my ($factory, $text) = @_;
my $item = $factory->create_item(border=>Gtk2::Ex::MindMapView::Border::RoundedRect,
content=>Gtk2::Ex::MindMapView::Content::EllipsisText,
text=>$text,
font_desc=>Gtk2::Pango::FontDescription->from_string("Ariel Italic 8"),
hotspot_color_gdk=>Gtk2::Gdk::Color->parse(lightgreen));

$item->signal_connect(event=>&_test_handler);

return $item;
}
sub _url_item { my ($factory, $text, $url) = @_;
my $browser = /usr/bin/firefox;

my $item = $factory->create_item(border=>Gtk2::Ex::MindMapView::Border::RoundedRect,
content=>Gtk2::Ex::MindMapView::Content::Uri,
text=>$text, uri=>$url, browser=>$browser,
text_color_gdk=>Gtk2::Gdk::Color->parse(blue),
fill_color_gdk =>Gtk2::Gdk::Color->parse(white));

$item->signal_connect(event=>&_test_handler);

return $item;
}
sub _picture_item { my ($factory, $file) = @_;
my $pixbuf = Gtk2::Gdk::Pixbuf->new_from_file($file);

my $item = $factory->create_item(border=>Gtk2::Ex::MindMapView::Border::Rectangle,
content=>Gtk2::Ex::MindMapView::Content::Picture,
pixbuf=>$pixbuf,
hotspot_color_gdk=>Gtk2::Gdk::Color->parse(lightgreen),
fill_color_gdk =>Gtk2::Gdk::Color->parse(white));

$item->signal_connect(event=>&_test_handler);

return $item;
}
sub _test_handler { my ($item, $event) = @_;
my $event_type = $event->type;

my @coords = $event->coords;

print "Event, type: $event_type coords: @coordsn";
}
1;

<<less
Download (0.049MB)
Added: 2006-11-30 License: Perl Artistic License Price:
1058 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 4
  • 1
  • 2
  • 3
  • 4