Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.983.528 Times

Gtk::CListModel 0.7009

  Date Added: January 18, 2010  |  Visits: 617

Gtk::CListModel

Report Broken Link
Printer Friendly Version


Product Homepage
Download (71 downloads)

Gtk::CListModel is a simple data model with Gtk::Clist views. SINOPSYS my $model = tie @data, Gtk::CListModel, titles => ["Fruit", "Price", "Quantity"]; # all data manipulation is done on @data now push @data, ["Oranges", 5, 16]; # Create a view (a Gtk::Clist widget) to represent the data # Include only some of the data in the view (fruit type and price) # Also, do not include fruits that cost more than 6 price units. my $clist = $model->create_view(main, titles => [Fruit, Price], filter => sub {$_[1] > 6? () : @_}); Gtk::CListModel lets you keep your data in a perl array and easily create a numer of different views on that data using Gtk::CList widgets. The views can show only some of the columns, or a subset of the data or even munge the data with user-defined filters. All the data manipulations will be performed on a tied array and the changes will be propagated to the views created for that data. To create the model use tie: my $model = tie @data, Gtk::CListModel, titles => ["head1", "head2",...]; The titles attribute should be an array reference with the titles of the columns of data. They will be used also for the default titles in the views. You can also provide the initial data using the data attribute. Remember that the data elements you insert and retreive from the @data array are array references with as many items as the columns in the model. The order is the one defined by the titles attribute. Later you can manipulate the @data array with the usual perl array operators, push, splice and so on. METHODS create_view ($name[, %options]) Create a Gtk::Clist widget that represents the data in the model. The name can be used later to disconnect the view from the data. Options can be one of the following: titles An array reference of the titles of the columns to display in the list in the order they should appear in the view. The default is the titles specified at the model creation. filter A function that can manipulate the data just before it is inserted in the Gtk::CList. The function will receive the data and can either make a copy and modify the data or return an empty list. In the latter case the data will not be added to the view or, if the corresponding row was already present, it will be removed from the view. postfilter A function that receives the view, the row and the data that was just inserted/modified in the view. By default all the data is inserted in the views as text. This filter can be used to display pixmaps, for example or do any other kind of manipulations on the Gtk::CList row. remove_view ($name) Disconnect the named view from the data. The current data displayed in the view will not be affected, but changes in the model will not propagate to this view anymore. map_row ($clist, $row) Get the index in the data array cooresponding to the row displayed in the Gtk::CList widget..

Requirements: No special requirements
Platforms: Linux
Keyword: Array Clistmodel Create Data Data Model Gtkclistmodel Libraries Model Programming Titles View Will Be
Users rating: 0/10

License: Freeware Size: 440.32 KB
GTK::CLISTMODEL RELATED
Utilities  -  edix 0.5.0
Edix is an environmental monitoring data system that is a web enabled system that will be able to record and display all information required for an effective environmental monitoring plan of any organization.
1.11 MB  
Games  -  1x1Trainer 1.2
The 1x1 Trainer is a learning game for children who are trying to master the tables up to ten. There are two ways to play: The Trainer, where you need to create an account to play and all your learning progress will be saved online...
1.4 MB  
Database Tools  -  K Database Magic 2.8.3.1
Database Desktop, SQL manager, merge data, data comparison and many more function in one software. It accomodate a simple admittance to datasets like other database handling products. Firstly it doesn't concentrate maintenance of datasets, but...
6.29 MB  
MS Office Add-Ins  -  CONVERT 7.03
The freeware program CONVERT from KilletSoft converts data files to other data formats and character sets. For the import in MySQL or SQL databases the 'CREATE TABLE' script can be generated. Thus the import of the data in any data base management...
5.74 MB  
Libraries  -  libreplay 0.5
libreplay library will save the output of realplay in a raw format, so you can do what you want with this uncompressed data later in time. When you use realplay, sometimes you would like to save the sound that you ear, to be able to listen to it...
5.12 KB  
Networking  -  wp-create views 1.0
The Views plugin provides a flexible method for wordpress site designers to control how content of posts and comments are presented. This tool is essentially a smart query builder that, given enough information, can build the proper query, execute...
10 KB  
Business  -  Contactify 1.4.0.0
Have you ever needed to create a contact in your phone due to receiving a business card that you did not want to reference again? Well, now you can do it on the fly! Use your camera to snap a picture and the text will be processed. You have the...
1024 KB  
Libraries  -  Data::TreeDumper 0.33
Data::TreeDumper is an improved replacement for Data::Dumper. Powerful filtering capability. SYNOPSIS use Data::TreeDumper ; my $sub = sub {} ; my $s = { A => { a => { } , bbbbbb => $sub , c123 => $sub , d => $sub } , C => {...
26.62 KB  
Libraries  -  Data::Secs2 0.09
Data::Secs2 is a Perl module to pack, unpack, format, transform from Perl data SEMI E5-94 nested data. SYNOPSIS ##### # Subroutine interface # use Data::Secs2 qw(arrayify config listify neuterify numberify perlify perl_typify secsify...
98.3 KB  
Libraries  -  Data::Str2Num 0.07
Data::Str2Num - int str to int; float str to float, else undef. SYNOPSIS ##### # Subroutine interface # use Data::Str2Num qw(config str2float str2int str2integer); $float = str2float($string, [@options]); (@strings, @floats) =...
56.32 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB