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

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

Serving Software Downloads in 956 Categories, Downloaded 50.057.668 Times

Gtk::CListModel 0.7009

  Date Added: January 18, 2010  |  Visits: 812

Gtk::CListModel

Report Broken Link
Printer Friendly Version


Product Homepage
Download (88 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
USER REVIEWS
More Reviews or Write Review


GTK::CLISTMODEL RELATED
E-Mail Tools  -  Yukatan data model 1.0
Yukatan data model project is the schema definition of the Yukatan webmail database. The PostgreSQL database structures defined in this file can be used as a backend store of an email message handling application. The database should be created...
35.84 KB  
Development Editors  -  SPASE Data Model Tools 1.0.1
SPASE Model is a collection of tools for working with the structured data model information. Tools can convert the relational version of the data model into various expressions, including XSD, XMI and PDF documentation.
276.48 KB  
Multimedia  -  phpCDLabelPS 0.0.4
Creating labels for your data/MP3 CDs using PHP and PostScript (output will be a postscript file), controled by a frontend and a PostScript template.
 
Audio Tools  -  phpCDLabelPS 0.0.4
phpCDLabelPS creates labels for your data/MP3 CDs using PHP and PostScript (output will be a postscript file). It is controled by a frontend and a PostScript template. To install, just extract all files somewhere in your webtree. Then point your...
13.31 KB  
Libraries  -  Tiny Marbles 1.0 Final
Tiny Marbles provides persistence for dynamic objects, through a data model that you can create, modify and extend at runtime. It is useful for developers who need to create rapid prototypes with an unknown model and developers of applications...
8.5 MB  
Business  -  Power*Architect for Linux 0.9.15
Data Architects, DBA's, Analysts and Designers rely on Data Modeling tools to facilitate and simplify their data Modeling efforts, while maximizing the use of their resources. The Power*Architect allows these busy highly technical resources to...
15.66 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  
Libraries  -  XML::Compile::Schema::XmlReader 0.18
XML::Compile::Schema::XmlReader Perl module contains bricks to translate XML to HASH. SYNOPSIS my $schema = XML::Compile::Schema- >new(...); my $code = $schema- >compile(READER = > ...); The translator understands schemas, but does not...
122.88 KB  
Libraries  -  SOAP::Data 0.69
SOAP::Data is a Perl class that provides the means by which to explicitly manipulate and control all aspects of the way in which Perl data gets expressed as SOAP data entities. The SOAP::Data class provides the means by which to explicitly...
235.52 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.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...
3.88 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