[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeextragear-3/krecipes/src
From: Jason Kivlighn <confederacy2 () excite ! com>
Date: 2004-08-30 23:07:41
Message-ID: 20040830230741.047F1900E () office ! kde ! org
[Download RAW message or body]
CVS commit by jkivlighn:
-Better streamlined interface to entering recipes
-Less left margin for lists in recipe HTML
M +4 -4 krecipesview.cpp 1.160
M +9 -0 dialogs/recipeinputdialog.cpp 1.108
M +2 -0 exporters/htmlexporter.cpp 1.32
--- kdeextragear-3/krecipes/src/krecipesview.cpp #1.159:1.160
@@ -422,6 +422,6 @@ case 1: // Edit
{
switch( KMessageBox::questionYesNoCancel( this,
- QString(i18n("Recipe \"%1\" contains unsaved changes.\n"
- "Do you want to save changes made to this recipe before editing \
another recipe?")).arg(recipeButton->title()), + QString(i18n("A \
recipe contains unsaved changes.\n" + "Do you want to save changes \
made to this recipe before editing another recipe?")), i18n("Unsaved changes") ) )
{
@@ -474,6 +474,6 @@ if ( !inputPanel->everythingSaved() )
{
switch( KMessageBox::questionYesNoCancel( this,
- QString(i18n("Recipe \"%1\" contains unsaved changes.\n"
- "Do you want to save changes made to this recipe before creating a new \
recipe?")).arg(recipeButton->title()), + QString(i18n("A recipe contains \
unsaved changes.\n" + "Do you want to save changes made to this recipe \
before creating a new recipe?")), i18n("Unsaved changes") ) )
{
--- kdeextragear-3/krecipes/src/dialogs/recipeinputdialog.cpp #1.107:1.108
@@ -323,4 +323,5 @@ il=new KIconLoader;
instructionsEdit = new KTextEdit( instructionsTab );
instructionsEdit->setSizePolicy(QSizePolicy(QSizePolicy::MinimumExpanding,QSizePolicy::MinimumExpanding));
+ instructionsEdit->setTabChangesFocus ( true );
instructionsLayout->addWidget(instructionsEdit);
@@ -750,4 +751,5 @@ bool RecipeInputDialog::checkAmountEdit(
KMessageBox::error( this, i18n("Invalid input"),
i18n("Amount field contains invalid input.") );
+ amountEdit->setFocus();
amountEdit->selectAll();
return false;
@@ -760,4 +762,5 @@ bool RecipeInputDialog::checkBounds()
{
KMessageBox::error(this,QString(i18n("Ingredient name cannot be \
longer than %1 characters.")).arg(database->maxIngredientNameLength())); + \
ingredientBox->lineEdit()->setFocus(); ingredientBox->lineEdit()->selectAll();
return false;
@@ -767,4 +770,5 @@ bool RecipeInputDialog::checkBounds()
{
KMessageBox::error(this,QString(i18n("Unit name cannot be longer \
than %1 characters.")).arg(database->maxUnitNameLength())); + \
unitBox->lineEdit()->setFocus(); unitBox->lineEdit()->selectAll();
return false;
@@ -774,4 +778,5 @@ bool RecipeInputDialog::checkBounds()
{
KMessageBox::error(this,QString(i18n("Preparation method cannot be \
longer than %1 characters.")).arg(database->maxPrepMethodNameLength())); + \
prepMethodBox->lineEdit()->setFocus(); prepMethodBox->lineEdit()->selectAll();
return false;
@@ -992,4 +997,8 @@ servingsNumInput->setValue(1);
//Set back to the first page
tabWidget->setCurrentPage(0);
+
+//Set focus to the title
+titleEdit->setFocus();
+titleEdit->selectAll();
}
--- kdeextragear-3/krecipes/src/exporters/htmlexporter.cpp #1.31:1.32
@@ -403,4 +403,6 @@ QString HTMLExporter::generateCSSClasses
}
+ css += "UL { padding-left: 1.25em; }\n";
+
return css;
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic