author | sandman <sandman> | 2002-10-06 03:26:59 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-10-06 03:26:59 (UTC) |
commit | a1ebad08d462e682554d39a9beabce125a374452 (patch) (unidiff) | |
tree | 254d7ddc5b257b278172af4952b2bec27b5df3b5 /library | |
parent | 2c16c8767fa5c16c0eeebc7008202a68a61a5308 (diff) | |
download | opie-a1ebad08d462e682554d39a9beabce125a374452.zip opie-a1ebad08d462e682554d39a9beabce125a374452.tar.gz opie-a1ebad08d462e682554d39a9beabce125a374452.tar.bz2 |
- support "Rotation" setting in .desktop applnk file
- changed properties dialog to make Rotation editable
- fixed a long-standing QPE bug:
launcher expects AppLnk::file() to return QString::null for *all real*
applnks (as opposed to doclnks) -- but AppLnk itself initializes this
field to the name of the dir, where the applnk is stored.
This is why qcop "QPE/System" "linkChanged(QString)" xyz.desktop cleared
a whole launcher tab
I hope I didn't break anything with this change ;)
-rw-r--r-- | library/applnk.cpp | 24 | ||||
-rw-r--r-- | library/applnk.h | 1 | ||||
-rw-r--r-- | library/lnkproperties.cpp | 29 | ||||
-rw-r--r-- | library/lnkpropertiesbase_p.ui | 354 |
4 files changed, 357 insertions, 51 deletions
diff --git a/library/applnk.cpp b/library/applnk.cpp index 44f3f58..a56da5d 100644 --- a/library/applnk.cpp +++ b/library/applnk.cpp | |||
@@ -363,25 +363,28 @@ AppLnk::AppLnk( const QString &file ) | |||
363 | mExec = config.readEntry( "Exec" ); | 363 | mExec = config.readEntry( "Exec" ); |
364 | mType = config.readEntry( "Type", QString::null ); | 364 | mType = config.readEntry( "Type", QString::null ); |
365 | mIconFile = config.readEntry( "Icon", QString::null ); | 365 | mIconFile = config.readEntry( "Icon", QString::null ); |
366 | mRotation = config.readEntry( "Rotation", "" ); | 366 | mRotation = config.readEntry( "Rotation", "" ); |
367 | mComment = config.readEntry( "Comment", QString::null ); | 367 | mComment = config.readEntry( "Comment", QString::null ); |
368 | // MIME types are case-insensitive. | 368 | // MIME types are case-insensitive. |
369 | mMimeTypes = config.readListEntry( "MimeType", ';' ); | 369 | mMimeTypes = config.readListEntry( "MimeType", ';' ); |
370 | for (QStringList::Iterator it=mMimeTypes.begin(); it!=mMimeTypes.end(); ++it) | 370 | for (QStringList::Iterator it=mMimeTypes.begin(); it!=mMimeTypes.end(); ++it) |
371 | *it = (*it).lower(); | 371 | *it = (*it).lower(); |
372 | mMimeTypeIcons = config.readListEntry( "MimeTypeIcons", ';' ); | 372 | mMimeTypeIcons = config.readListEntry( "MimeTypeIcons", ';' ); |
373 | mLinkFile = file; | 373 | mLinkFile = file; |
374 | mFile = config.readEntry("File", QString::null); | 374 | mFile = config.readEntry("File", QString::null); |
375 | if ( mFile[0] != '/' ) { | 375 | if ( !mExec. isEmpty ( )) { |
376 | mFile = QString::null; | ||
377 | } | ||
378 | else if ( mFile[0] != '/' ) { | ||
376 | int slash = file.findRev('/'); | 379 | int slash = file.findRev('/'); |
377 | if ( slash >= 0 ) { | 380 | if ( slash >= 0 ) { |
378 | mFile = file.left(slash) + '/' + mFile; | 381 | mFile = file.left(slash) + '/' + mFile; |
379 | } | 382 | } |
380 | } | 383 | } |
381 | d->mCatList = config.readListEntry("Categories", ';'); | 384 | d->mCatList = config.readListEntry("Categories", ';'); |
382 | if ( d->mCatList[0].toInt() < -1 ) { | 385 | if ( d->mCatList[0].toInt() < -1 ) { |
383 | // numeric cats in file! convert to text | 386 | // numeric cats in file! convert to text |
384 | Categories cat( 0 ); | 387 | Categories cat( 0 ); |
385 | cat.load( categoryFileName() ); | 388 | cat.load( categoryFileName() ); |
386 | d->mCat.resize( d->mCatList.count() ); | 389 | d->mCat.resize( d->mCatList.count() ); |
387 | int i; | 390 | int i; |
@@ -511,33 +514,34 @@ QString AppLnk::type() const | |||
511 | } | 514 | } |
512 | } | 515 | } |
513 | return mType; | 516 | return mType; |
514 | } | 517 | } |
515 | 518 | ||
516 | /*! | 519 | /*! |
517 | Returns the file associated with the AppLnk. | 520 | Returns the file associated with the AppLnk. |
518 | 521 | ||
519 | \sa exec() name() | 522 | \sa exec() name() |
520 | */ | 523 | */ |
521 | QString AppLnk::file() const | 524 | QString AppLnk::file() const |
522 | { | 525 | { |
523 | if ( mFile.isNull() ) { | 526 | if ( mExec.isEmpty ( ) && mFile.isNull() ) { |
524 | AppLnk* that = (AppLnk*)this; | 527 | AppLnk* that = (AppLnk*)this; |
525 | QString ext = MimeType(mType).extension(); | 528 | QString ext = MimeType(mType).extension(); |
526 | if ( !ext.isEmpty() ) | 529 | if ( !ext.isEmpty() ) |
527 | ext = "." + ext; | 530 | ext = "." + ext; |
528 | if ( !mLinkFile.isEmpty() ) { | 531 | if ( !mLinkFile.isEmpty() ) { |
529 | that->mFile = | 532 | that->mFile = |
530 | mLinkFile.right(8)==".desktop" // 8 = strlen(".desktop") | 533 | mLinkFile.right(8)==".desktop" // 8 = strlen(".desktop") |
531 | ? mLinkFile.left(mLinkFile.length()-8) : mLinkFile; | 534 | ? mLinkFile.left(mLinkFile.length()-8) : mLinkFile; |
535 | qDebug("mFile now == %s", mFile.latin1()); | ||
532 | } else if ( mType.contains('/') ) { | 536 | } else if ( mType.contains('/') ) { |
533 | that->mFile = | 537 | that->mFile = |
534 | QString(getenv("HOME"))+"/Documents/"+mType+"/"+safeFileName(that->mName); | 538 | QString(getenv("HOME"))+"/Documents/"+mType+"/"+safeFileName(that->mName); |
535 | /* | 539 | /* |
536 | * A file with the same name or a .desktop file already exists | 540 | * A file with the same name or a .desktop file already exists |
537 | */ | 541 | */ |
538 | if ( QFile::exists(that->mFile+ext) || QFile::exists(that->mFile+".desktop") ) { | 542 | if ( QFile::exists(that->mFile+ext) || QFile::exists(that->mFile+".desktop") ) { |
539 | int n=1; | 543 | int n=1; |
540 | QString nn; | 544 | QString nn; |
541 | while (QFile::exists((nn=(that->mFile+"_"+QString::number(n)))+ext) | 545 | while (QFile::exists((nn=(that->mFile+"_"+QString::number(n)))+ext) |
542 | || QFile::exists(nn+".desktop")) | 546 | || QFile::exists(nn+".desktop")) |
543 | n++; | 547 | n++; |
@@ -688,24 +692,36 @@ void AppLnk::invoke(const QStringList& args) const | |||
688 | } | 692 | } |
689 | 693 | ||
690 | /*! | 694 | /*! |
691 | Sets the Exec property to \a exec. | 695 | Sets the Exec property to \a exec. |
692 | 696 | ||
693 | \sa exec() name() | 697 | \sa exec() name() |
694 | */ | 698 | */ |
695 | void AppLnk::setExec( const QString& exec ) | 699 | void AppLnk::setExec( const QString& exec ) |
696 | { | 700 | { |
697 | mExec = exec; | 701 | mExec = exec; |
698 | } | 702 | } |
699 | 703 | ||
704 | #if 0 // this was inlined for better BC | ||
705 | /*! | ||
706 | Sets the Rotation property to \a rot. | ||
707 | |||
708 | \sa rotation() | ||
709 | */ | ||
710 | void AppLnk::setRotation ( const QString &rot ) | ||
711 | { | ||
712 | mRotation = rot; | ||
713 | } | ||
714 | #endif | ||
715 | |||
700 | /*! | 716 | /*! |
701 | Sets the Name property to \a docname. | 717 | Sets the Name property to \a docname. |
702 | 718 | ||
703 | \sa name() | 719 | \sa name() |
704 | */ | 720 | */ |
705 | void AppLnk::setName( const QString& docname ) | 721 | void AppLnk::setName( const QString& docname ) |
706 | { | 722 | { |
707 | mName = docname; | 723 | mName = docname; |
708 | } | 724 | } |
709 | 725 | ||
710 | /*! | 726 | /*! |
711 | Sets the File property to \a filename. | 727 | Sets the File property to \a filename. |
@@ -826,24 +842,28 @@ bool AppLnk::writeLink() const | |||
826 | } | 842 | } |
827 | 843 | ||
828 | /*! | 844 | /*! |
829 | \internal | 845 | \internal |
830 | */ | 846 | */ |
831 | void AppLnk::storeLink() const | 847 | void AppLnk::storeLink() const |
832 | { | 848 | { |
833 | Config config( mLinkFile, Config::File ); | 849 | Config config( mLinkFile, Config::File ); |
834 | config.setGroup("Desktop Entry"); | 850 | config.setGroup("Desktop Entry"); |
835 | config.writeEntry("Name",mName); | 851 | config.writeEntry("Name",mName); |
836 | if ( !mIconFile.isNull() ) config.writeEntry("Icon",mIconFile); | 852 | if ( !mIconFile.isNull() ) config.writeEntry("Icon",mIconFile); |
837 | config.writeEntry("Type",type()); | 853 | config.writeEntry("Type",type()); |
854 | if(!rotation().isEmpty()) | ||
855 | config.writeEntry("Rotation",rotation()); | ||
856 | else | ||
857 | config.removeEntry("Rotation"); | ||
838 | if ( !mComment.isNull() ) config.writeEntry("Comment",mComment); | 858 | if ( !mComment.isNull() ) config.writeEntry("Comment",mComment); |
839 | QString f = file(); | 859 | QString f = file(); |
840 | int i = 0; | 860 | int i = 0; |
841 | while ( i < (int)f.length() && i < (int)mLinkFile.length() && f[i] == mLinkFile[i] ) | 861 | while ( i < (int)f.length() && i < (int)mLinkFile.length() && f[i] == mLinkFile[i] ) |
842 | i++; | 862 | i++; |
843 | while ( i && f[i] != '/' ) | 863 | while ( i && f[i] != '/' ) |
844 | i--; | 864 | i--; |
845 | // simple case where in the same directory | 865 | // simple case where in the same directory |
846 | if ( mLinkFile.find( '/', i + 1 ) < 0 ) | 866 | if ( mLinkFile.find( '/', i + 1 ) < 0 ) |
847 | f = f.mid(i+1); | 867 | f = f.mid(i+1); |
848 | // ### could do relative ie ../../otherDocs/file.doc | 868 | // ### could do relative ie ../../otherDocs/file.doc |
849 | config.writeEntry("File",f); | 869 | config.writeEntry("File",f); |
diff --git a/library/applnk.h b/library/applnk.h index 71b62ef..b92ddba 100644 --- a/library/applnk.h +++ b/library/applnk.h | |||
@@ -64,24 +64,25 @@ public: | |||
64 | 64 | ||
65 | void execute() const; | 65 | void execute() const; |
66 | void execute(const QStringList& args) const; | 66 | void execute(const QStringList& args) const; |
67 | void removeFiles(); | 67 | void removeFiles(); |
68 | void removeLinkFile(); | 68 | void removeLinkFile(); |
69 | 69 | ||
70 | void setName( const QString& docname ); | 70 | void setName( const QString& docname ); |
71 | void setExec( const QString& exec ); | 71 | void setExec( const QString& exec ); |
72 | void setFile( const QString& filename ); | 72 | void setFile( const QString& filename ); |
73 | void setLinkFile( const QString& filename ); | 73 | void setLinkFile( const QString& filename ); |
74 | void setComment( const QString& comment ); | 74 | void setComment( const QString& comment ); |
75 | void setType( const QString& mimetype ); | 75 | void setType( const QString& mimetype ); |
76 | inline void setRotation ( const QString &rotation ) { mRotation = rot; } // inline for BC | ||
76 | void setIcon( const QString& iconname ); | 77 | void setIcon( const QString& iconname ); |
77 | void setCategories( const QArray<int> &v ); | 78 | void setCategories( const QArray<int> &v ); |
78 | bool writeLink() const; | 79 | bool writeLink() const; |
79 | 80 | ||
80 | void setProperty(const QString& key, const QString& value); | 81 | void setProperty(const QString& key, const QString& value); |
81 | QString property(const QString& key) const; | 82 | QString property(const QString& key) const; |
82 | 83 | ||
83 | #ifdef QTOPIA_INTERNAL_PRELOADACCESS | 84 | #ifdef QTOPIA_INTERNAL_PRELOADACCESS |
84 | bool isPreloaded() const; | 85 | bool isPreloaded() const; |
85 | void setPreloaded(bool yesNo); | 86 | void setPreloaded(bool yesNo); |
86 | #endif | 87 | #endif |
87 | 88 | ||
diff --git a/library/lnkproperties.cpp b/library/lnkproperties.cpp index 983c677..0b30a9a 100644 --- a/library/lnkproperties.cpp +++ b/library/lnkproperties.cpp | |||
@@ -17,48 +17,50 @@ | |||
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | // WARNING: Do *NOT* define this yourself. The SL5xxx from SHARP does NOT | 21 | // WARNING: Do *NOT* define this yourself. The SL5xxx from SHARP does NOT |
22 | // have this class. | 22 | // have this class. |
23 | #define QTOPIA_INTERNAL_FSLP | 23 | #define QTOPIA_INTERNAL_FSLP |
24 | #include "lnkproperties.h" | 24 | #include "lnkproperties.h" |
25 | #include "lnkproperties.h" | 25 | #include "lnkproperties.h" |
26 | #include "lnkpropertiesbase_p.h" | 26 | #include "lnkpropertiesbase_p.h" |
27 | #include "ir.h" | 27 | #include "ir.h" |
28 | 28 | ||
29 | #include <qpe/qpeapplication.h> | ||
29 | #include <qpe/applnk.h> | 30 | #include <qpe/applnk.h> |
30 | #include <qpe/global.h> | 31 | #include <qpe/global.h> |
31 | #include <qpe/categorywidget.h> | 32 | #include <qpe/categorywidget.h> |
32 | #ifdef QWS | 33 | #ifdef QWS |
33 | #include <qpe/qcopenvelope_qws.h> | 34 | #include <qpe/qcopenvelope_qws.h> |
34 | #endif | 35 | #endif |
35 | #include <qpe/filemanager.h> | 36 | #include <qpe/filemanager.h> |
36 | #include <qpe/config.h> | 37 | #include <qpe/config.h> |
37 | #include <qpe/storage.h> | 38 | #include <qpe/storage.h> |
38 | #include <qpe/qpemessagebox.h> | 39 | #include <qpe/qpemessagebox.h> |
39 | 40 | ||
40 | #include <qlineedit.h> | 41 | #include <qlineedit.h> |
41 | #include <qtoolbutton.h> | 42 | #include <qtoolbutton.h> |
42 | #include <qpushbutton.h> | 43 | #include <qpushbutton.h> |
43 | #include <qgroupbox.h> | 44 | #include <qgroupbox.h> |
44 | #include <qcheckbox.h> | 45 | #include <qcheckbox.h> |
45 | #include <qlabel.h> | 46 | #include <qlabel.h> |
46 | #include <qlayout.h> | 47 | #include <qlayout.h> |
47 | #include <qfile.h> | 48 | #include <qfile.h> |
48 | #include <qfileinfo.h> | 49 | #include <qfileinfo.h> |
49 | #include <qmessagebox.h> | 50 | #include <qmessagebox.h> |
50 | #include <qsize.h> | 51 | #include <qsize.h> |
51 | #include <qcombobox.h> | 52 | #include <qcombobox.h> |
52 | #include <qregexp.h> | 53 | #include <qregexp.h> |
54 | #include <qbuttongroup.h> | ||
53 | 55 | ||
54 | #include <stdlib.h> | 56 | #include <stdlib.h> |
55 | 57 | ||
56 | LnkProperties::LnkProperties( AppLnk* l, QWidget* parent ) | 58 | LnkProperties::LnkProperties( AppLnk* l, QWidget* parent ) |
57 | : QDialog( parent, 0, TRUE ), lnk(l), fileSize( 0 ) | 59 | : QDialog( parent, 0, TRUE ), lnk(l), fileSize( 0 ) |
58 | { | 60 | { |
59 | setCaption( tr("Properties") ); | 61 | setCaption( tr("Properties") ); |
60 | 62 | ||
61 | QVBoxLayout *vbox = new QVBoxLayout( this ); | 63 | QVBoxLayout *vbox = new QVBoxLayout( this ); |
62 | d = new LnkPropertiesBase( this ); | 64 | d = new LnkPropertiesBase( this ); |
63 | vbox->add( d ); | 65 | vbox->add( d ); |
64 | 66 | ||
@@ -76,49 +78,58 @@ LnkProperties::LnkProperties( AppLnk* l, QWidget* parent ) | |||
76 | d->commentLabel->hide(); | 78 | d->commentLabel->hide(); |
77 | } else { | 79 | } else { |
78 | d->comment->setText( l->comment() ); | 80 | d->comment->setText( l->comment() ); |
79 | } | 81 | } |
80 | 82 | ||
81 | connect(d->beam,SIGNAL(clicked()),this,SLOT(beamLnk())); | 83 | connect(d->beam,SIGNAL(clicked()),this,SLOT(beamLnk())); |
82 | if ( lnk->type().contains('/') ) { // A document? (#### better predicate needed) | 84 | if ( lnk->type().contains('/') ) { // A document? (#### better predicate needed) |
83 | connect(d->unlink,SIGNAL(clicked()),this,SLOT(unlinkLnk())); | 85 | connect(d->unlink,SIGNAL(clicked()),this,SLOT(unlinkLnk())); |
84 | connect(d->duplicate,SIGNAL(clicked()),this,SLOT(duplicateLnk())); | 86 | connect(d->duplicate,SIGNAL(clicked()),this,SLOT(duplicateLnk())); |
85 | 87 | ||
86 | d->docname->setReadOnly( FALSE ); | 88 | d->docname->setReadOnly( FALSE ); |
87 | d->preload->hide(); | 89 | d->preload->hide(); |
88 | d->spacer->hide(); | 90 | d->rotate->hide(); |
91 | d->rotateButtons->hide(); | ||
92 | d->labelspacer->hide(); | ||
89 | 93 | ||
90 | // ### THIS MUST GO, FIX WIERD BUG in QLAYOUT | 94 | // ### THIS MUST GO, FIX WIERD BUG in QLAYOUT |
91 | d->categoryEdit->kludge(); | 95 | d->categoryEdit->kludge(); |
92 | 96 | ||
93 | d->categoryEdit->setCategories( lnk->categories(), | 97 | d->categoryEdit->setCategories( lnk->categories(), |
94 | "Document View", | 98 | "Document View", |
95 | tr("Document View") ); | 99 | tr("Document View") ); |
96 | setupLocations(); | 100 | setupLocations(); |
97 | } else { | 101 | } else { |
98 | d->unlink->hide(); | 102 | d->unlink->hide(); |
99 | d->duplicate->hide(); | 103 | d->duplicate->hide(); |
100 | d->beam->hide(); | 104 | d->beam->hide(); |
101 | d->hline->hide(); | 105 | d->hline->hide(); |
102 | d->locationLabel->hide(); | 106 | d->locationLabel->hide(); |
103 | d->locationCombo->hide(); | 107 | d->locationCombo->hide(); |
104 | 108 | ||
105 | // Can't edit categories, since the app .desktop files are global, | 109 | // Can't edit categories, since the app .desktop files are global, |
106 | // possibly read-only. | 110 | // possibly read-only. |
107 | d->categoryEdit->hide(); | 111 | d->categoryEdit->hide(); |
108 | 112 | ||
109 | d->docname->setReadOnly( TRUE ); | 113 | d->docname->setReadOnly( TRUE ); |
110 | 114 | ||
111 | if ( l->property("CanFastload") == "0" ) | 115 | if ( l->property("CanFastload") == "0" ) |
112 | d->preload->hide(); | 116 | d->preload->hide(); |
117 | if ( !l->property("Rotation"). isEmpty ()) { | ||
118 | d->rotate->setChecked ( true ); | ||
119 | d->rotateButtons->setButton(((QPEApplication::defaultRotation()+l->rotation().toInt())%360)/90); | ||
120 | } | ||
121 | else { | ||
122 | d->rotateButtons->setEnabled(false); | ||
123 | } | ||
113 | 124 | ||
114 | Config cfg("Launcher"); | 125 | Config cfg("Launcher"); |
115 | cfg.setGroup("Preload"); | 126 | cfg.setGroup("Preload"); |
116 | QStringList apps = cfg.readListEntry("Apps",','); | 127 | QStringList apps = cfg.readListEntry("Apps",','); |
117 | d->preload->setChecked( apps.contains(l->exec()) ); | 128 | d->preload->setChecked( apps.contains(l->exec()) ); |
118 | if ( Global::isBuiltinCommand(lnk->exec()) ) | 129 | if ( Global::isBuiltinCommand(lnk->exec()) ) |
119 | d->preload->hide(); // builtins are always fast | 130 | d->preload->hide(); // builtins are always fast |
120 | 131 | ||
121 | currentLocation = 0; // apps not movable (yet) | 132 | currentLocation = 0; // apps not movable (yet) |
122 | } | 133 | } |
123 | } | 134 | } |
124 | 135 | ||
@@ -266,24 +277,40 @@ void LnkProperties::done(int ok) | |||
266 | bool changed=FALSE; | 277 | bool changed=FALSE; |
267 | if ( lnk->name() != d->docname->text() ) { | 278 | if ( lnk->name() != d->docname->text() ) { |
268 | lnk->setName(d->docname->text()); | 279 | lnk->setName(d->docname->text()); |
269 | changed=TRUE; | 280 | changed=TRUE; |
270 | } | 281 | } |
271 | if ( d->categoryEdit->isVisible() ) { | 282 | if ( d->categoryEdit->isVisible() ) { |
272 | QArray<int> tmp = d->categoryEdit->newCategories(); | 283 | QArray<int> tmp = d->categoryEdit->newCategories(); |
273 | if ( lnk->categories() != tmp ) { | 284 | if ( lnk->categories() != tmp ) { |
274 | lnk->setCategories( tmp ); | 285 | lnk->setCategories( tmp ); |
275 | changed = TRUE; | 286 | changed = TRUE; |
276 | } | 287 | } |
277 | } | 288 | } |
289 | if ( !d->rotate->isHidden()) { | ||
290 | QString newrot; | ||
291 | |||
292 | if (d->rotate->isChecked()) { | ||
293 | int rot=0; | ||
294 | for(; rot<4; rot++) { | ||
295 | if (d->rotateButtons->find(rot)->isOn()) | ||
296 | break; | ||
297 | } | ||
298 | newrot = QString::number((QPEApplication::defaultRotation()+rot*90)%360); | ||
299 | } | ||
300 | if (newrot !=lnk->rotation()) { | ||
301 | lnk->setRotation(newrot); | ||
302 | changed = TRUE; | ||
303 | } | ||
304 | } | ||
278 | if ( d->preload->isHidden() && d->locationCombo->currentItem() != currentLocation ) { | 305 | if ( d->preload->isHidden() && d->locationCombo->currentItem() != currentLocation ) { |
279 | moveLnk(); | 306 | moveLnk(); |
280 | } else if ( changed ) { | 307 | } else if ( changed ) { |
281 | lnk->writeLink(); | 308 | lnk->writeLink(); |
282 | } | 309 | } |
283 | 310 | ||
284 | if ( !d->preload->isHidden() ) { | 311 | if ( !d->preload->isHidden() ) { |
285 | Config cfg("Launcher"); | 312 | Config cfg("Launcher"); |
286 | cfg.setGroup("Preload"); | 313 | cfg.setGroup("Preload"); |
287 | QStringList apps = cfg.readListEntry("Apps",','); | 314 | QStringList apps = cfg.readListEntry("Apps",','); |
288 | QString exe = lnk->exec(); | 315 | QString exe = lnk->exec(); |
289 | if ( apps.contains(exe) != d->preload->isChecked() ) { | 316 | if ( apps.contains(exe) != d->preload->isChecked() ) { |
diff --git a/library/lnkpropertiesbase_p.ui b/library/lnkpropertiesbase_p.ui index e7139e7..c2271f1 100644 --- a/library/lnkpropertiesbase_p.ui +++ b/library/lnkpropertiesbase_p.ui | |||
@@ -2,44 +2,48 @@ | |||
2 | <class>LnkPropertiesBase</class> | 2 | <class>LnkPropertiesBase</class> |
3 | <widget> | 3 | <widget> |
4 | <class>QWidget</class> | 4 | <class>QWidget</class> |
5 | <property stdset="1"> | 5 | <property stdset="1"> |
6 | <name>name</name> | 6 | <name>name</name> |
7 | <cstring>Form1</cstring> | 7 | <cstring>Form1</cstring> |
8 | </property> | 8 | </property> |
9 | <property stdset="1"> | 9 | <property stdset="1"> |
10 | <name>geometry</name> | 10 | <name>geometry</name> |
11 | <rect> | 11 | <rect> |
12 | <x>0</x> | 12 | <x>0</x> |
13 | <y>0</y> | 13 | <y>0</y> |
14 | <width>289</width> | 14 | <width>267</width> |
15 | <height>449</height> | 15 | <height>450</height> |
16 | </rect> | 16 | </rect> |
17 | </property> | 17 | </property> |
18 | <property stdset="1"> | 18 | <property stdset="1"> |
19 | <name>sizePolicy</name> | 19 | <name>sizePolicy</name> |
20 | <sizepolicy> | 20 | <sizepolicy> |
21 | <hsizetype>5</hsizetype> | 21 | <hsizetype>5</hsizetype> |
22 | <vsizetype>5</vsizetype> | 22 | <vsizetype>5</vsizetype> |
23 | </sizepolicy> | 23 | </sizepolicy> |
24 | </property> | 24 | </property> |
25 | <property stdset="1"> | 25 | <property stdset="1"> |
26 | <name>font</name> | 26 | <name>font</name> |
27 | <font> | 27 | <font> |
28 | </font> | 28 | </font> |
29 | </property> | 29 | </property> |
30 | <property stdset="1"> | 30 | <property stdset="1"> |
31 | <name>caption</name> | 31 | <name>caption</name> |
32 | <string>Details</string> | 32 | <string>Details</string> |
33 | </property> | 33 | </property> |
34 | <property stdset="1"> | ||
35 | <name>icon</name> | ||
36 | <pixmap>image0</pixmap> | ||
37 | </property> | ||
34 | <property> | 38 | <property> |
35 | <name>layoutMargin</name> | 39 | <name>layoutMargin</name> |
36 | </property> | 40 | </property> |
37 | <property> | 41 | <property> |
38 | <name>layoutSpacing</name> | 42 | <name>layoutSpacing</name> |
39 | </property> | 43 | </property> |
40 | <vbox> | 44 | <vbox> |
41 | <property stdset="1"> | 45 | <property stdset="1"> |
42 | <name>margin</name> | 46 | <name>margin</name> |
43 | <number>0</number> | 47 | <number>0</number> |
44 | </property> | 48 | </property> |
45 | <property stdset="1"> | 49 | <property stdset="1"> |
@@ -70,187 +74,406 @@ | |||
70 | <property> | 74 | <property> |
71 | <name>layoutSpacing</name> | 75 | <name>layoutSpacing</name> |
72 | </property> | 76 | </property> |
73 | <grid> | 77 | <grid> |
74 | <property stdset="1"> | 78 | <property stdset="1"> |
75 | <name>margin</name> | 79 | <name>margin</name> |
76 | <number>3</number> | 80 | <number>3</number> |
77 | </property> | 81 | </property> |
78 | <property stdset="1"> | 82 | <property stdset="1"> |
79 | <name>spacing</name> | 83 | <name>spacing</name> |
80 | <number>3</number> | 84 | <number>3</number> |
81 | </property> | 85 | </property> |
82 | <widget row="6" column="0" rowspan="1" colspan="2" > | 86 | <widget row="8" column="0" rowspan="1" colspan="2" > |
83 | <class>CategoryWidget</class> | 87 | <class>CategoryWidget</class> |
84 | <property stdset="1"> | 88 | <property stdset="1"> |
85 | <name>name</name> | 89 | <name>name</name> |
86 | <cstring>categoryEdit</cstring> | 90 | <cstring>categoryEdit</cstring> |
87 | </property> | 91 | </property> |
88 | <property stdset="1"> | 92 | <property stdset="1"> |
89 | <name>sizePolicy</name> | 93 | <name>sizePolicy</name> |
90 | <sizepolicy> | 94 | <sizepolicy> |
91 | <hsizetype>1</hsizetype> | 95 | <hsizetype>1</hsizetype> |
92 | <vsizetype>7</vsizetype> | 96 | <vsizetype>7</vsizetype> |
93 | </sizepolicy> | 97 | </sizepolicy> |
94 | </property> | 98 | </property> |
95 | </widget> | 99 | </widget> |
96 | <widget row="5" column="0" rowspan="1" colspan="2" > | 100 | <widget row="5" column="0" rowspan="1" colspan="2" > |
97 | <class>QLabel</class> | 101 | <class>QCheckBox</class> |
102 | <property stdset="1"> | ||
103 | <name>name</name> | ||
104 | <cstring>rotate</cstring> | ||
105 | </property> | ||
106 | <property stdset="1"> | ||
107 | <name>text</name> | ||
108 | <string>Use custom rotation</string> | ||
109 | </property> | ||
110 | <property> | ||
111 | <name>layoutMargin</name> | ||
112 | </property> | ||
113 | <property> | ||
114 | <name>layoutSpacing</name> | ||
115 | </property> | ||
116 | <property> | ||
117 | <name>whatsThis</name> | ||
118 | <string>Preload this application so that it is available instantly.</string> | ||
119 | </property> | ||
120 | </widget> | ||
121 | <widget row="0" column="1" > | ||
122 | <class>QLineEdit</class> | ||
98 | <property stdset="1"> | 123 | <property stdset="1"> |
99 | <name>name</name> | 124 | <name>name</name> |
100 | <cstring>spacer</cstring> | 125 | <cstring>docname</cstring> |
101 | </property> | 126 | </property> |
102 | <property stdset="1"> | 127 | <property stdset="1"> |
103 | <name>sizePolicy</name> | 128 | <name>sizePolicy</name> |
104 | <sizepolicy> | 129 | <sizepolicy> |
105 | <hsizetype>1</hsizetype> | 130 | <hsizetype>7</hsizetype> |
106 | <vsizetype>7</vsizetype> | 131 | <vsizetype>0</vsizetype> |
107 | </sizepolicy> | 132 | </sizepolicy> |
108 | </property> | 133 | </property> |
109 | <property stdset="1"> | 134 | <property stdset="1"> |
110 | <name>text</name> | 135 | <name>text</name> |
111 | <string></string> | 136 | <string></string> |
112 | </property> | 137 | </property> |
138 | <property> | ||
139 | <name>whatsThis</name> | ||
140 | <string>The name of this document.</string> | ||
141 | </property> | ||
113 | </widget> | 142 | </widget> |
114 | <widget row="3" column="0" > | 143 | <widget row="1" column="1" > |
115 | <class>QLabel</class> | 144 | <class>QComboBox</class> |
116 | <property stdset="1"> | 145 | <property stdset="1"> |
117 | <name>name</name> | 146 | <name>name</name> |
118 | <cstring>commentLabel</cstring> | 147 | <cstring>locationCombo</cstring> |
119 | </property> | 148 | </property> |
120 | <property stdset="1"> | 149 | <property stdset="1"> |
121 | <name>text</name> | 150 | <name>sizePolicy</name> |
122 | <string>Comment:</string> | 151 | <sizepolicy> |
152 | <hsizetype>7</hsizetype> | ||
153 | <vsizetype>0</vsizetype> | ||
154 | </sizepolicy> | ||
155 | </property> | ||
156 | <property> | ||
157 | <name>whatsThis</name> | ||
158 | <string>The media the document resides on.</string> | ||
123 | </property> | 159 | </property> |
124 | </widget> | 160 | </widget> |
125 | <widget row="2" column="0" > | 161 | <widget row="2" column="0" > |
126 | <class>QLabel</class> | 162 | <class>QLabel</class> |
127 | <property stdset="1"> | 163 | <property stdset="1"> |
128 | <name>name</name> | 164 | <name>name</name> |
129 | <cstring>typeLabel</cstring> | 165 | <cstring>typeLabel</cstring> |
130 | </property> | 166 | </property> |
131 | <property stdset="1"> | 167 | <property stdset="1"> |
132 | <name>focusPolicy</name> | 168 | <name>focusPolicy</name> |
133 | <enum>NoFocus</enum> | 169 | <enum>NoFocus</enum> |
134 | </property> | 170 | </property> |
135 | <property stdset="1"> | 171 | <property stdset="1"> |
136 | <name>text</name> | 172 | <name>text</name> |
137 | <string>Type:</string> | 173 | <string>Type:</string> |
138 | </property> | 174 | </property> |
139 | <property> | 175 | <property> |
140 | <name>layoutMargin</name> | 176 | <name>layoutMargin</name> |
141 | </property> | 177 | </property> |
142 | <property> | 178 | <property> |
143 | <name>layoutSpacing</name> | 179 | <name>layoutSpacing</name> |
144 | </property> | 180 | </property> |
145 | </widget> | 181 | </widget> |
146 | <widget row="1" column="1" > | 182 | <widget row="2" column="1" > |
147 | <class>QComboBox</class> | 183 | <class>QLabel</class> |
148 | <property stdset="1"> | 184 | <property stdset="1"> |
149 | <name>name</name> | 185 | <name>name</name> |
150 | <cstring>locationCombo</cstring> | 186 | <cstring>type</cstring> |
151 | </property> | 187 | </property> |
152 | <property stdset="1"> | 188 | <property stdset="1"> |
153 | <name>sizePolicy</name> | 189 | <name>text</name> |
154 | <sizepolicy> | 190 | <string></string> |
155 | <hsizetype>7</hsizetype> | ||
156 | <vsizetype>0</vsizetype> | ||
157 | </sizepolicy> | ||
158 | </property> | ||
159 | <property> | ||
160 | <name>whatsThis</name> | ||
161 | <string>The media the document resides on.</string> | ||
162 | </property> | 191 | </property> |
163 | </widget> | 192 | </widget> |
164 | <widget row="0" column="1" > | 193 | <widget row="1" column="0" > |
165 | <class>QLineEdit</class> | 194 | <class>QLabel</class> |
166 | <property stdset="1"> | 195 | <property stdset="1"> |
167 | <name>name</name> | 196 | <name>name</name> |
168 | <cstring>docname</cstring> | 197 | <cstring>locationLabel</cstring> |
169 | </property> | 198 | </property> |
170 | <property stdset="1"> | 199 | <property stdset="1"> |
171 | <name>sizePolicy</name> | 200 | <name>sizePolicy</name> |
172 | <sizepolicy> | 201 | <sizepolicy> |
173 | <hsizetype>7</hsizetype> | 202 | <hsizetype>1</hsizetype> |
174 | <vsizetype>0</vsizetype> | 203 | <vsizetype>1</vsizetype> |
175 | </sizepolicy> | 204 | </sizepolicy> |
176 | </property> | 205 | </property> |
177 | <property stdset="1"> | 206 | <property stdset="1"> |
178 | <name>text</name> | 207 | <name>caption</name> |
179 | <string></string> | 208 | <string></string> |
180 | </property> | 209 | </property> |
210 | <property stdset="1"> | ||
211 | <name>text</name> | ||
212 | <string>Location:</string> | ||
213 | </property> | ||
181 | <property> | 214 | <property> |
182 | <name>whatsThis</name> | 215 | <name>layoutMargin</name> |
183 | <string>The name of this document.</string> | 216 | </property> |
217 | <property> | ||
218 | <name>layoutSpacing</name> | ||
184 | </property> | 219 | </property> |
185 | </widget> | 220 | </widget> |
186 | <widget row="0" column="0" > | 221 | <widget row="0" column="0" > |
187 | <class>QLabel</class> | 222 | <class>QLabel</class> |
188 | <property stdset="1"> | 223 | <property stdset="1"> |
189 | <name>name</name> | 224 | <name>name</name> |
190 | <cstring>TextLabel1</cstring> | 225 | <cstring>TextLabel1</cstring> |
191 | </property> | 226 | </property> |
192 | <property stdset="1"> | 227 | <property stdset="1"> |
193 | <name>frameShadow</name> | 228 | <name>frameShadow</name> |
194 | <enum>MShadow</enum> | 229 | <enum>MShadow</enum> |
195 | </property> | 230 | </property> |
196 | <property stdset="1"> | 231 | <property stdset="1"> |
197 | <name>text</name> | 232 | <name>text</name> |
198 | <string>Name:</string> | 233 | <string>Name:</string> |
199 | </property> | 234 | </property> |
200 | </widget> | 235 | </widget> |
201 | <widget row="1" column="0" > | 236 | <widget row="3" column="1" > |
202 | <class>QLabel</class> | 237 | <class>QLabel</class> |
203 | <property stdset="1"> | 238 | <property stdset="1"> |
204 | <name>name</name> | 239 | <name>name</name> |
205 | <cstring>locationLabel</cstring> | 240 | <cstring>comment</cstring> |
206 | </property> | 241 | </property> |
207 | <property stdset="1"> | 242 | <property stdset="1"> |
208 | <name>sizePolicy</name> | 243 | <name>text</name> |
209 | <sizepolicy> | 244 | <string></string> |
210 | <hsizetype>1</hsizetype> | ||
211 | <vsizetype>1</vsizetype> | ||
212 | </sizepolicy> | ||
213 | </property> | 245 | </property> |
246 | </widget> | ||
247 | <widget row="6" column="0" rowspan="1" colspan="2" > | ||
248 | <class>QButtonGroup</class> | ||
214 | <property stdset="1"> | 249 | <property stdset="1"> |
215 | <name>caption</name> | 250 | <name>name</name> |
251 | <cstring>rotateButtons</cstring> | ||
252 | </property> | ||
253 | <property stdset="1"> | ||
254 | <name>frameShape</name> | ||
255 | <enum>NoFrame</enum> | ||
256 | </property> | ||
257 | <property stdset="1"> | ||
258 | <name>title</name> | ||
216 | <string></string> | 259 | <string></string> |
217 | </property> | 260 | </property> |
218 | <property stdset="1"> | 261 | <property stdset="1"> |
219 | <name>text</name> | 262 | <name>exclusive</name> |
220 | <string>Location:</string> | 263 | <bool>true</bool> |
221 | </property> | 264 | </property> |
222 | <property> | 265 | <property> |
223 | <name>layoutMargin</name> | 266 | <name>layoutMargin</name> |
224 | </property> | 267 | </property> |
225 | <property> | 268 | <property> |
226 | <name>layoutSpacing</name> | 269 | <name>layoutSpacing</name> |
227 | </property> | 270 | </property> |
271 | <hbox> | ||
272 | <property stdset="1"> | ||
273 | <name>margin</name> | ||
274 | <number>0</number> | ||
275 | </property> | ||
276 | <property stdset="1"> | ||
277 | <name>spacing</name> | ||
278 | <number>3</number> | ||
279 | </property> | ||
280 | <spacer> | ||
281 | <property> | ||
282 | <name>name</name> | ||
283 | <cstring>s1</cstring> | ||
284 | </property> | ||
285 | <property stdset="1"> | ||
286 | <name>orientation</name> | ||
287 | <enum>Horizontal</enum> | ||
288 | </property> | ||
289 | <property stdset="1"> | ||
290 | <name>sizeType</name> | ||
291 | <enum>Fixed</enum> | ||
292 | </property> | ||
293 | <property> | ||
294 | <name>sizeHint</name> | ||
295 | <size> | ||
296 | <width>20</width> | ||
297 | <height>28</height> | ||
298 | </size> | ||
299 | </property> | ||
300 | </spacer> | ||
301 | <widget> | ||
302 | <class>QToolButton</class> | ||
303 | <property stdset="1"> | ||
304 | <name>name</name> | ||
305 | <cstring>ToolButton1</cstring> | ||
306 | </property> | ||
307 | <property stdset="1"> | ||
308 | <name>text</name> | ||
309 | <string></string> | ||
310 | </property> | ||
311 | <property stdset="1"> | ||
312 | <name>pixmap</name> | ||
313 | <pixmap>image0</pixmap> | ||
314 | </property> | ||
315 | <property stdset="1"> | ||
316 | <name>toggleButton</name> | ||
317 | <bool>true</bool> | ||
318 | </property> | ||
319 | <property stdset="1"> | ||
320 | <name>on</name> | ||
321 | <bool>false</bool> | ||
322 | </property> | ||
323 | <property stdset="1"> | ||
324 | <name>usesBigPixmap</name> | ||
325 | <bool>true</bool> | ||
326 | </property> | ||
327 | <property stdset="1"> | ||
328 | <name>toggleButton</name> | ||
329 | <bool>true</bool> | ||
330 | </property> | ||
331 | <property stdset="1"> | ||
332 | <name>on</name> | ||
333 | <bool>false</bool> | ||
334 | </property> | ||
335 | <property stdset="1"> | ||
336 | <name>buttonGroupId</name> | ||
337 | <number>0</number> | ||
338 | </property> | ||
228 | </widget> | 339 | </widget> |
229 | <widget row="2" column="1" > | 340 | <widget> |
230 | <class>QLabel</class> | 341 | <class>QToolButton</class> |
231 | <property stdset="1"> | 342 | <property stdset="1"> |
232 | <name>name</name> | 343 | <name>name</name> |
233 | <cstring>type</cstring> | 344 | <cstring>ToolButton2</cstring> |
234 | </property> | 345 | </property> |
235 | <property stdset="1"> | 346 | <property stdset="1"> |
236 | <name>text</name> | 347 | <name>text</name> |
237 | <string></string> | 348 | <string></string> |
238 | </property> | 349 | </property> |
350 | <property stdset="1"> | ||
351 | <name>pixmap</name> | ||
352 | <pixmap>image1</pixmap> | ||
353 | </property> | ||
354 | <property stdset="1"> | ||
355 | <name>toggleButton</name> | ||
356 | <bool>true</bool> | ||
357 | </property> | ||
358 | <property stdset="1"> | ||
359 | <name>usesBigPixmap</name> | ||
360 | <bool>true</bool> | ||
361 | </property> | ||
362 | <property stdset="1"> | ||
363 | <name>toggleButton</name> | ||
364 | <bool>true</bool> | ||
365 | </property> | ||
366 | <property stdset="1"> | ||
367 | <name>buttonGroupId</name> | ||
368 | <number>1</number> | ||
369 | </property> | ||
239 | </widget> | 370 | </widget> |
240 | <widget row="3" column="1" > | 371 | <widget> |
372 | <class>QToolButton</class> | ||
373 | <property stdset="1"> | ||
374 | <name>name</name> | ||
375 | <cstring>ToolButton3</cstring> | ||
376 | </property> | ||
377 | <property stdset="1"> | ||
378 | <name>text</name> | ||
379 | <string></string> | ||
380 | </property> | ||
381 | <property stdset="1"> | ||
382 | <name>pixmap</name> | ||
383 | <pixmap>image2</pixmap> | ||
384 | </property> | ||
385 | <property stdset="1"> | ||
386 | <name>toggleButton</name> | ||
387 | <bool>true</bool> | ||
388 | </property> | ||
389 | <property stdset="1"> | ||
390 | <name>usesBigPixmap</name> | ||
391 | <bool>true</bool> | ||
392 | </property> | ||
393 | <property stdset="1"> | ||
394 | <name>toggleButton</name> | ||
395 | <bool>true</bool> | ||
396 | </property> | ||
397 | <property stdset="1"> | ||
398 | <name>buttonGroupId</name> | ||
399 | <number>2</number> | ||
400 | </property> | ||
401 | </widget> | ||
402 | <widget> | ||
403 | <class>QToolButton</class> | ||
404 | <property stdset="1"> | ||
405 | <name>name</name> | ||
406 | <cstring>ToolButton4</cstring> | ||
407 | </property> | ||
408 | <property stdset="1"> | ||
409 | <name>text</name> | ||
410 | <string></string> | ||
411 | </property> | ||
412 | <property stdset="1"> | ||
413 | <name>pixmap</name> | ||
414 | <pixmap>image3</pixmap> | ||
415 | </property> | ||
416 | <property stdset="1"> | ||
417 | <name>toggleButton</name> | ||
418 | <bool>true</bool> | ||
419 | </property> | ||
420 | <property stdset="1"> | ||
421 | <name>usesBigPixmap</name> | ||
422 | <bool>true</bool> | ||
423 | </property> | ||
424 | <property stdset="1"> | ||
425 | <name>toggleButton</name> | ||
426 | <bool>true</bool> | ||
427 | </property> | ||
428 | <property stdset="1"> | ||
429 | <name>buttonGroupId</name> | ||
430 | <number>3</number> | ||
431 | </property> | ||
432 | </widget> | ||
433 | <spacer> | ||
434 | <property> | ||
435 | <name>name</name> | ||
436 | <cstring>s4</cstring> | ||
437 | </property> | ||
438 | <property stdset="1"> | ||
439 | <name>orientation</name> | ||
440 | <enum>Horizontal</enum> | ||
441 | </property> | ||
442 | <property stdset="1"> | ||
443 | <name>sizeType</name> | ||
444 | <enum>MinimumExpanding</enum> | ||
445 | </property> | ||
446 | <property> | ||
447 | <name>sizeHint</name> | ||
448 | <size> | ||
449 | <width>20</width> | ||
450 | <height>20</height> | ||
451 | </size> | ||
452 | </property> | ||
453 | </spacer> | ||
454 | </hbox> | ||
455 | </widget> | ||
456 | <widget row="7" column="0" rowspan="1" colspan="2" > | ||
241 | <class>QLabel</class> | 457 | <class>QLabel</class> |
242 | <property stdset="1"> | 458 | <property stdset="1"> |
243 | <name>name</name> | 459 | <name>name</name> |
244 | <cstring>comment</cstring> | 460 | <cstring>labelspacer</cstring> |
461 | </property> | ||
462 | <property stdset="1"> | ||
463 | <name>sizePolicy</name> | ||
464 | <sizepolicy> | ||
465 | <hsizetype>1</hsizetype> | ||
466 | <vsizetype>7</vsizetype> | ||
467 | </sizepolicy> | ||
245 | </property> | 468 | </property> |
246 | <property stdset="1"> | 469 | <property stdset="1"> |
247 | <name>text</name> | 470 | <name>text</name> |
248 | <string></string> | 471 | <string></string> |
249 | </property> | 472 | </property> |
250 | </widget> | 473 | </widget> |
251 | <widget row="4" column="0" rowspan="1" colspan="2" > | 474 | <widget row="4" column="0" rowspan="1" colspan="2" > |
252 | <class>QCheckBox</class> | 475 | <class>QCheckBox</class> |
253 | <property stdset="1"> | 476 | <property stdset="1"> |
254 | <name>name</name> | 477 | <name>name</name> |
255 | <cstring>preload</cstring> | 478 | <cstring>preload</cstring> |
256 | </property> | 479 | </property> |
@@ -260,24 +483,35 @@ | |||
260 | </property> | 483 | </property> |
261 | <property> | 484 | <property> |
262 | <name>layoutMargin</name> | 485 | <name>layoutMargin</name> |
263 | </property> | 486 | </property> |
264 | <property> | 487 | <property> |
265 | <name>layoutSpacing</name> | 488 | <name>layoutSpacing</name> |
266 | </property> | 489 | </property> |
267 | <property> | 490 | <property> |
268 | <name>whatsThis</name> | 491 | <name>whatsThis</name> |
269 | <string>Preload this application so that it is available instantly.</string> | 492 | <string>Preload this application so that it is available instantly.</string> |
270 | </property> | 493 | </property> |
271 | </widget> | 494 | </widget> |
495 | <widget row="3" column="0" > | ||
496 | <class>QLabel</class> | ||
497 | <property stdset="1"> | ||
498 | <name>name</name> | ||
499 | <cstring>commentLabel</cstring> | ||
500 | </property> | ||
501 | <property stdset="1"> | ||
502 | <name>text</name> | ||
503 | <string>Comment:</string> | ||
504 | </property> | ||
505 | </widget> | ||
272 | </grid> | 506 | </grid> |
273 | </widget> | 507 | </widget> |
274 | <widget> | 508 | <widget> |
275 | <class>Line</class> | 509 | <class>Line</class> |
276 | <property stdset="1"> | 510 | <property stdset="1"> |
277 | <name>name</name> | 511 | <name>name</name> |
278 | <cstring>hline</cstring> | 512 | <cstring>hline</cstring> |
279 | </property> | 513 | </property> |
280 | <property stdset="1"> | 514 | <property stdset="1"> |
281 | <name>frameShadow</name> | 515 | <name>frameShadow</name> |
282 | <enum>Sunken</enum> | 516 | <enum>Sunken</enum> |
283 | </property> | 517 | </property> |
@@ -394,30 +628,54 @@ | |||
394 | <customwidget> | 628 | <customwidget> |
395 | <class>CategoryWidget</class> | 629 | <class>CategoryWidget</class> |
396 | <header location="global">qpe/categorywidget.h</header> | 630 | <header location="global">qpe/categorywidget.h</header> |
397 | <sizehint> | 631 | <sizehint> |
398 | <width>-1</width> | 632 | <width>-1</width> |
399 | <height>-1</height> | 633 | <height>-1</height> |
400 | </sizehint> | 634 | </sizehint> |
401 | <container>0</container> | 635 | <container>0</container> |
402 | <sizepolicy> | 636 | <sizepolicy> |
403 | <hordata>7</hordata> | 637 | <hordata>7</hordata> |
404 | <verdata>7</verdata> | 638 | <verdata>7</verdata> |
405 | </sizepolicy> | 639 | </sizepolicy> |
406 | <pixmap>image0</pixmap> | 640 | <pixmap>image4</pixmap> |
407 | </customwidget> | 641 | </customwidget> |
408 | </customwidgets> | 642 | </customwidgets> |
409 | <images> | 643 | <images> |
410 | <image> | 644 | <image> |
411 | <name>image0</name> | 645 | <name>image0</name> |
646 | <data format="XPM.GZ" length="1226">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523236520022230543251d2e253d856405bffcbc54105b19c856360003b014013032d4282b2b13366708a951067908240fa6a00a95612cb01a6528d04362e92158e0a40213830510c4546598dd103570b72098482ea3ae1ac2eec1ef2f6565d4f051c6123e3035f8c1a81a2aa8a9b5e60200f6abd263</data> | ||
647 | </image> | ||
648 | <image> | ||
649 | <name>image1</name> | ||
650 | <data format="XPM.GZ" length="1226">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523236520022230543251d2e253d856405bffcbc54105b19c856360003b01416a0ac8c6053a2061960aa019b806c0ca61a65a81a7c764125e9a486b07b40d2cacaf8fd0555a4875f0d0620cf1c22dc33d8c2197fda504605e4ab41b5129f7b3001b630c46317f16a88cb17c814add5d02ecdd75a730100b509d263</data> | ||
651 | </image> | ||
652 | <image> | ||
653 | <name>image2</name> | ||
654 | <data format="XPM.GZ" length="1226">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523236520022230543251d2e253d856405bffcbc54105b19c856360003b0140130aa863a6a9495f5f49441002c02664030840d53a3ac0c53a40c67c25950bb60d27a70857a08268a7b20164059082695d510e31e62fc85193e7aa8e1832568a1eaf1c6c5e053a34c500d0a18b66a6aadb9001be4d263</data> | ||
655 | </image> | ||
656 | <image> | ||
657 | <name>image3</name> | ||
658 | <data format="XPM.GZ" length="1226">789cd3d7528808f055d0d2e72a2e492cc94c5648ce482c52d04a29cdcdad8c8eb5ade6523236520022230543251d2e253d856405bffcbc54105b19c856360003b014125006013d5480a64659198b22543510697445e86a9029daaad183ba87809bb1788c7435d8019a392872cad8d5a002b2d510e777648ad66a08a70d62d2185169152b1819699ec870c634869cf48c1e7cc4aba9b5e602005d86d263</data> | ||
659 | </image> | ||
660 | <image> | ||
661 | <name>image4</name> | ||
412 | <data format="XPM.GZ" length="646">789c6dd2c10ac2300c00d07bbf2234b7229d1be245fc04c5a3201e4615f430059d0711ff5ddb2e6bb236ec90eed134cb5a19d8ef36602af5ecdbfeeac05dda0798d3abebde87e3faa374d3807fa0d633a52d38d8de6f679fe33fc776e196f53cd010188256a3600a292882096246517815ca99884606e18044a3a40d91824820924265a7923a2e8bcd05f33db1173e002913175f2a6be6d3294871a2d95fa00e8a94ee017b69d339d90df1e77c57ea072ede6758</data> | 662 | <data format="XPM.GZ" length="646">789c6dd2c10ac2300c00d07bbf2234b7229d1be245fc04c5a3201e4615f430059d0711ff5ddb2e6bb236ec90eed134cb5a19d8ef36602af5ecdbfeeac05dda0798d3abebde87e3faa374d3807fa0d633a52d38d8de6f679fe33fc776e196f53cd010188256a3600a292882096246517815ca99884606e18044a3a40d91824820924265a7923a2e8bcd05f33db1173e002913175f2a6be6d3294871a2d95fa00e8a94ee017b69d339d90df1e77c57ea072ede6758</data> |
413 | </image> | 663 | </image> |
414 | </images> | 664 | </images> |
665 | <connections> | ||
666 | <connection> | ||
667 | <sender>rotate</sender> | ||
668 | <signal>toggled(bool)</signal> | ||
669 | <receiver>rotateButtons</receiver> | ||
670 | <slot>setEnabled(bool)</slot> | ||
671 | </connection> | ||
672 | </connections> | ||
415 | <tabstops> | 673 | <tabstops> |
416 | <tabstop>docname</tabstop> | 674 | <tabstop>docname</tabstop> |
417 | <tabstop>preload</tabstop> | 675 | <tabstop>preload</tabstop> |
418 | <tabstop>locationCombo</tabstop> | 676 | <tabstop>locationCombo</tabstop> |
419 | <tabstop>unlink</tabstop> | 677 | <tabstop>unlink</tabstop> |
420 | <tabstop>duplicate</tabstop> | 678 | <tabstop>duplicate</tabstop> |
421 | <tabstop>beam</tabstop> | 679 | <tabstop>beam</tabstop> |
422 | </tabstops> | 680 | </tabstops> |
423 | </UI> | 681 | </UI> |