Projects/KNS2/Packager: Difference between revisions
No edit summary |
No edit summary |
||
Line 19: | Line 19: | ||
* '''Plasmagik::PackageType''' -> Predefined list of package types. See packaging.txt for the complete list. | * '''Plasmagik::PackageType''' -> Predefined list of package types. See packaging.txt for the complete list. | ||
* '''setPackageType(Plasmagik::PackageType, bool clearFirst)''' If clearFirst == true, clearProgrammingLanuages() will be called. | * '''setPackageType(Plasmagik::PackageType, bool clearFirst)''' If clearFirst == true, clearProgrammingLanuages() will be called. | ||
* '''setProgrammingLanguages(QString/QStringList | * '''setProgrammingLanguages(QString/QStringList languages)''' If languages is QString, languages are separated by '|'. It will call clearProgrammingLanguages(). | ||
* '''QString/QStringList programmingLanguages()''' | * '''QString/QStringList programmingLanguages()''' | ||
* '''addProgrammingLanguages(QString/QStringList | * '''addProgrammingLanguages(QString/QStringList languages)''' Same as setProgammingLanguages, but it won't call clearProgrammingLanguages() first, and will add languages to the end. | ||
* '''clearProgrammingLanguages()''' It will remove any language previously set. | * '''clearProgrammingLanguages()''' It will remove any language previously set. | ||
* '''setIcon(QIcon icon)''' Sets the icon for the dialog | |||
* '''setPackageExtension(QString extension)''' Sets the provided extension as the one used when saving the package. It will be passed as-is to KFileDialog. | |||
* '''setText(Plasmagik::Label label, QString text)''' You can customize GUI strings with that function | |||
==== Improvements proposed ==== | ==== Improvements proposed ==== | ||
* Renaming *ProgrammingLanguages --> *Languages | * Renaming *ProgrammingLanguages --> *Languages | ||
* setPackageExtension(QString extension) with mimetype instead of string? | |||
=== Networking control API === | === Networking control API === | ||
* '''TODO!''' | * '''TODO!''' |
Revision as of 17:13, 12 March 2007
Note
Names are just temporary. Please don't trust this page as probably most of the things are going to heavily change during this 1 month developement marathone.
The Packager
This task is mostly done, this is the API I came out with:
The syntax I'd like to came up with is:
Plasmagik packager;
packager.setPackageType(...);
packager.setSomething();
packager.show();
or something like that
Packaging control API
- Plasmagik::PackageType -> Predefined list of package types. See packaging.txt for the complete list.
- setPackageType(Plasmagik::PackageType, bool clearFirst) If clearFirst == true, clearProgrammingLanuages() will be called.
- setProgrammingLanguages(QString/QStringList languages) If languages is QString, languages are separated by '|'. It will call clearProgrammingLanguages().
- QString/QStringList programmingLanguages()
- addProgrammingLanguages(QString/QStringList languages) Same as setProgammingLanguages, but it won't call clearProgrammingLanguages() first, and will add languages to the end.
- clearProgrammingLanguages() It will remove any language previously set.
- setIcon(QIcon icon) Sets the icon for the dialog
- setPackageExtension(QString extension) Sets the provided extension as the one used when saving the package. It will be passed as-is to KFileDialog.
- setText(Plasmagik::Label label, QString text) You can customize GUI strings with that function
Improvements proposed
- Renaming *ProgrammingLanguages --> *Languages
- setPackageExtension(QString extension) with mimetype instead of string?
Networking control API
- TODO!