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

List:       kde-commits
Subject:    kdenonbeta/krecipes/src
From:       Jason Kivlighn <confederacy2 () excite ! com>
Date:       2004-05-04 23:33:39
Message-ID: 20040504233339.E39AA9A4C () office ! kde ! org
[Download RAW message or body]

CVS commit by jkivlighn: 

-In the page setup dialog, prepend "Authors:" and "Categories:" to the authors and \
                categories layout boxes text.  This matches it up with the HTML view.
-Only save a layout if there are changes.  Otherwise, silently do nothing when save \
is pressed.

-As maintainer, I suppose bug reports should go to me: <mizunoami44 at users dot \
sourceforge dot net>


  M +1 -1      main.cpp   1.17
  M +9 -6      gui/pagesetupdialog.cpp   1.13
  M +569 -567  gui/setupdisplay.cpp   1.20


--- kdenonbeta/krecipes/src/main.cpp  #1.16:1.17
@@ -24,5 +24,5 @@ int main(int argc, char **argv)
 {
     KAboutData about("krecipes", I18N_NOOP("Krecipes"), version, description,
-                     KAboutData::License_GPL, I18N_NOOP("(C) 2003 Unai \
Garro\n\n___________\n\n\nThis product is RecipeML compatible.\n You can get more \
information about this file format in:\n http://www.formatdata.com/recipeml"), 0, 0, \
"ugarro@users.sourceforge.net"); +                     KAboutData::License_GPL, \
I18N_NOOP("(C) 2003 Unai Garro\n\n___________\n\n\nThis product is RecipeML \
compatible.\n You can get more information about this file format in:\n \
http://www.formatdata.com/recipeml"), 0, 0, "mizunoami44@users.sourceforge.net");  \
                about.addAuthor( "Unai Garro", 0, "ugarro@users.sourceforge.net" );
     about.addAuthor( "Jason Kivlighn", 0, "mizunoami44@users.sourceforge.net" );    \
about.addAuthor( "Cyril Bosselut", 0, "bosselut@b1project.com" );

--- kdenonbeta/krecipes/src/gui/pagesetupdialog.cpp  #1.12:1.13
@@ -159,4 +159,6 @@ void PageSetupDialog::reloadLayout()
 void PageSetupDialog::saveLayout()
 {
+        if ( setup_display->hasChanges() )
+        {
         if ( have_write_perm )
                 setup_display->saveLayout( active_filename );
@@ -169,4 +171,5 @@ void PageSetupDialog::saveLayout()
                 }
         }
+        }
 }
 

--- kdenonbeta/krecipes/src/gui/setupdisplay.cpp  #1.19:1.20
@@ -281,5 +281,5 @@ void SetupDisplay::createWidgets( const 
 
         //=======================SERVINGS======================//
-        servings_box = new QLabel(QString(i18n("Servings: \
%1")).arg(sample.persons),this,"servings"); +        servings_box = new \
QLabel(QString("<b>%1:</b> \
%2").arg(i18n("Servings")).arg(sample.persons),this,"servings");  \
servings_box->setFrameShape( QFrame::Box );  \
QToolTip::add(servings_box,i18n("Servings")); @@ -310,4 +310,5 @@ void \
SetupDisplay::createWidgets( const   if ( authors.isNull() )
                 authors = i18n("Author 1, Author 2, ...");
+        authors.prepend( QString("<b>%1: </b>").arg(i18n("Authors")) );
 
         authors_box = new QLabel(authors,this,"authors");
@@ -327,4 +328,5 @@ void SetupDisplay::createWidgets( const 
         if ( categories.isNull() )
                 categories = i18n("Category 1, Category 2, ...");
+        categories.prepend( QString("<b>%1: </b>").arg(i18n("Categories")) );
 
         categories_box = new QLabel(categories,this,"categories");


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

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