[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/utils/krecipes
From:       Jason Kivlighn <jkivlighn () gmail ! com>
Date:       2005-08-23 18:14:57
Message-ID: 1124820897.949494.16672.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 452560 by jkivlighn:

Install Krecipes mimetypes.  These include *.kre,*.kreml, and *.krecbk.  Now Krecipes \
files will have an icon and a "Type" description (e.g. Right-click and file and hit \
"Properties"; there will be a description of what the file is.)


 M  +3 -0      data/Makefile.am  
 A             data/x-krecipes-backup.desktop  
 A             data/x-krecipes-recipes.desktop  
 M  +3 -1      icons/Makefile.am  
 AM            icons/cr128-mime-krecipes_file.png  
 AM            icons/cr16-mime-krecipes_file.png  
 AM            icons/cr32-mime-krecipes_file.png  
 AM            icons/cr64-mime-krecipes_file.png  
 M  +8 -2      src/krecipes.cpp  


--- trunk/extragear/utils/krecipes/data/Makefile.am #452559:452560
@@ -1,2 +1,5 @@
 basedir = $(kde_datadir)/krecipes/data
 base_DATA = data.sql abbrev.txt samples-en_US.kreml samples-cs_CZ.kreml
+
+mimetypedir = $(kde_mimedir)/application
+mimetype_DATA = x-krecipes-backup.desktop x-krecipes-recipes.desktop
--- trunk/extragear/utils/krecipes/icons/Makefile.am #452559:452560
@@ -1,2 +1,4 @@
 krecipesdir   = $(kde_datadir)/krecipes/icons
-krecipes_ICON = AUTO
\ No newline at end of file
+krecipes_ICON = AUTO
+
+KDE_ICON = krecipes_file
** trunk/extragear/utils/krecipes/icons/cr128-mime-krecipes_file.png #property \
                changes
Name: svn:mime-type
   + application/octet-stream
** trunk/extragear/utils/krecipes/icons/cr16-mime-krecipes_file.png #property changes
Name: svn:mime-type
   + application/octet-stream
** trunk/extragear/utils/krecipes/icons/cr32-mime-krecipes_file.png #property changes
Name: svn:mime-type
   + application/octet-stream
** trunk/extragear/utils/krecipes/icons/cr64-mime-krecipes_file.png #property changes
Name: svn:mime-type
   + application/octet-stream
--- trunk/extragear/utils/krecipes/src/krecipes.cpp #452559:452560
@@ -384,7 +384,10 @@
 
 void Krecipes::backupSlot()
 {
-	QString fileName = \
KFileDialog::getSaveFileName(QString::null,QString::null,this,i18n("Save Backup \
As...")); +	QString fileName = KFileDialog::getSaveFileName(QString::null,
+		QString("*.krecbk|%1 (*.krecbk)\n").arg("Krecipes Backup File"),
+		this,i18n("Save Backup As..."));
+
 	int overwrite = KMessageBox::Yes;
 	if ( QFile::exists(fileName) ) {
 		overwrite = KMessageBox::warningYesNo( this, QString( i18n( "File \"%1\" exists.  \
Are you sure you want to overwrite it?" ) ).arg( fileName ) ); @@ -399,7 +402,10 @@
 
 void Krecipes::restoreSlot()
 {
-	QString filename = \
KFileDialog::getOpenFileName(QString::null,QString::null,this,i18n("Restore \
Backup")); +	QString filename = KFileDialog::getOpenFileName(QString::null,
+		QString("*.krecbk|%1 (*.krecbk)\n").arg("Krecipes Backup File"),
+		this,i18n("Restore Backup"));
+
 	if ( !filename.isNull() ) {
 		switch ( KMessageBox::warningContinueCancel(this,i18n("<b>Restoring this file will \
erase all data currently in the database!</b>.<br /><br />If you want to keep the \
recipes in your database, click \"Cancel\" and first export your recipes.  These can \
then be imported once the restore is complete.<br /><br />Are you sure you want to \
proceed?"),QString::null,KStdGuiItem::cont(),"RestoreWarning") ) {  case \
KMessageBox::Continue: {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic