Sponsored Content
The Lounge What is on Your Mind? I'm writing a new Linux program! Post 55184 by norsk hedensk on Sunday 5th of September 2004 08:25:29 PM
Old 09-05-2004
the point is, write it for your own benefit and enjoyment, but let others be able to get it too. there are so many people out there, even though there are so many text editors already, yours may suite someone in ways that other editors dont.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

writing a program

i have written a very simple program in the vi editor, how do i now make it an executable file? (3 Replies)
Discussion started by: carlvernon
3 Replies

2. Shell Programming and Scripting

Need help on a program I'm writing

Hey guys.. I'm trying to learn how to script in bash... THIS IS NOT AN ASSIGNMENT but my instructor says to learn you must practice I'm trying to add to a program I'm writing that will print and save raw data... What syntax commands would I use to write them? And Thank you... (2 Replies)
Discussion started by: dmosheye
2 Replies

3. Shell Programming and Scripting

Having trouble writing a basic shell program

Hello. I'm trying to write a shell script that will take files that have .tar, .tar.gz, .tar.Z, .gz, .Z and .zip file extensions and uncompress and unarchive them. The script should be able to take multiple arguments. So far I can write a script using the case command that will do this but it will... (3 Replies)
Discussion started by: SeanWuzHere
3 Replies

4. Shell Programming and Scripting

writing math testing program

Can anyone create a program that would test the math skills of the user. Assume that it would test integer addition, The program should ask the question,collect the integer response, evaluate and notify the user if their answer was correct or incorrect. I would assume integers in the range... (5 Replies)
Discussion started by: ccp
5 Replies

5. UNIX for Dummies Questions & Answers

Problem with writing a program

Hi guys I'm having trouble with trying to create a script which calculates the grade of a student and the marks out of 300. The grades are: 0-49% fail 50-59% pass 60-69% credit pass 70-79% distinction 80-100% high distinction less than 0 or greater than 100 displays error message. My... (1 Reply)
Discussion started by: CompNoob
1 Replies

6. UNIX Desktop Questions & Answers

need help writing a program to look for doubles

to determine if two two doubles are equal, we check to see if their absolute difference is very close to zero. . .if two numbers are less than .00001 apart, theyre equal. keep a count field in each record (as you did in p5). once the list is complete, ask the user to see if an element is on... (2 Replies)
Discussion started by: rickym2626
2 Replies

7. Programming

writing a shell program in ubuntu

Hi all, I have an assignment from school to write a shell program in linux. the idea is to exercise fork() and execv() functions.. the shell program is supposed to be the master and every command that the user prints will run in a new process. we also need to try running the command in every... (1 Reply)
Discussion started by: r3vive
1 Replies

8. Programming

Writing C++ program Arguments and Classes

I want to write a C++ program that uses a class to do some calculations. I pass arguments to the program, some of which are used to set up class members. A class function will then perform the necessary calculations. I am wondering how I should pass the arguments from the program to set the... (2 Replies)
Discussion started by: kristinu
2 Replies

9. Homework & Coursework Questions

Help with writing a tee program in 4 hours

1. The problem statement, all variables and given/known data: Basic Assignment Write a program similar to the Unix "tee" command. Program The Unix "tee" command is used to pull out copies of a data stream. It is typically used in conjunction with pipes (analogous to a T-joint in plumbing, hence... (1 Reply)
Discussion started by: izzy077
1 Replies

10. Homework & Coursework Questions

Need help writing a shell script program

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Write the a shell script program to remove all space characters stored in the shell variable TEXT.... (7 Replies)
Discussion started by: kofine05
7 Replies
QSqlPropertyMap(3qt)													      QSqlPropertyMap(3qt)

NAME
QSqlPropertyMap - Used to map widgets to SQL fields SYNOPSIS
#include <qsqlpropertymap.h> Public Members QSqlPropertyMap () virtual ~QSqlPropertyMap () QVariant property ( QWidget * widget ) virtual void setProperty ( QWidget * widget, const QVariant & value ) void insert ( const QString & classname, const QString & property ) void remove ( const QString & classname ) Static Public Members QSqlPropertyMap * defaultMap () void installDefaultMap ( QSqlPropertyMap * map ) DESCRIPTION
The QSqlPropertyMap class is used to map widgets to SQL fields. The SQL module uses Qt object properties to insert and extract values from editor widgets. This class is used to map editors to SQL fields. This works by associating SQL editor class names to the properties used to insert and extract values to/from the editor. For example, a QLineEdit can be used to edit text strings and other data types in QDataTables or QSqlForms. Several properties are defined in QLineEdit, but only the text property is used to insert and extract text from a QLineEdit. Both QDataTable and QSqlForm use the global QSqlPropertyMap for inserting and extracting values to and from an editor widget. The global property map defines several common widgets and properties that are suitable for many applications. You can add and remove widget properties to suit your specific needs. If you want to use custom editors with your QDataTable or QSqlForm, you must install your own QSqlPropertyMap for that table or form. Example: QSqlPropertyMap *myMap = new QSqlPropertyMap(); QSqlForm *myForm = new QSqlForm( this ); MyEditor myEditor( this ); // Set the QSqlForm's record buffer to the update buffer of // a pre-existing QSqlCursor called 'cur'. myForm->setRecord( cur->primeUpdate() ); // Install the customized map myMap->insert( "MyEditor", "content" ); myForm->installPropertyMap( myMap ); // myForm now owns myMap ... // Insert a field into the form that uses a myEditor to edit the // field 'somefield' myForm->insert( &myEditor, "somefield" ); // Update myEditor with the value from the mapped database field myForm->readFields(); ... // Let the user edit the form ... // Update the database fields with the values in the form myForm->writeFields(); ... You can also replace the global QSqlPropertyMap that is used by default. (Bear in mind that QSqlPropertyMap takes ownership of the new default map.) QSqlPropertyMap *myMap = new QSqlPropertyMap; myMap->insert( "MyEditor", "content" ); QSqlPropertyMap::installDefaultMap( myMap ); ... See also QDataTable, QSqlForm, QSqlEditorFactory, and Database Classes. MEMBER FUNCTION DOCUMENTATION
QSqlPropertyMap::QSqlPropertyMap () Constructs a QSqlPropertyMap. The default property mappings used by Qt widgets are: <center>.nf </center> QSqlPropertyMap::~QSqlPropertyMap () [virtual] Destroys the QSqlPropertyMap. Note that if the QSqlPropertyMap is installed with installPropertyMap() the object it was installed into, e.g. the QSqlForm, takes ownership and will delete the QSqlPropertyMap when necessary. QSqlPropertyMap * QSqlPropertyMap::defaultMap () [static] Returns the application global QSqlPropertyMap. void QSqlPropertyMap::insert ( const QString & classname, const QString & property ) Insert a new classname/property pair, which is used for custom SQL field editors. There must be a Q_PROPERTY clause in the classname class declaration for the property. Example: sql/overview/custom1/main.cpp. void QSqlPropertyMap::installDefaultMap ( QSqlPropertyMap * map ) [static] Replaces the global default property map with map. All QDataTable and QSqlForm instantiations will use this new map for inserting and extracting values to and from editors. QSqlPropertyMap takes ownership of &#92;a map, and destroys it when it is no longer needed. QVariant QSqlPropertyMap::property ( QWidget * widget ) Returns the mapped property of widget as a QVariant. void QSqlPropertyMap::remove ( const QString & classname ) Removes classname from the map. void QSqlPropertyMap::setProperty ( QWidget * widget, const QVariant & value ) [virtual] Sets the property of widget to value. SEE ALSO
http://doc.trolltech.com/qsqlpropertymap.html http://www.trolltech.com/faq/tech.html COPYRIGHT
Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. AUTHOR
Generated automatically from the source code. BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qsqlpropertymap.3qt) and the Qt version (3.1.1). Trolltech AS 9 December 2002 QSqlPropertyMap(3qt)
All times are GMT -4. The time now is 01:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy