Hello community,
here is the log from the commit of package yast2-qt
checked in at Tue Dec 11 00:52:05 CET 2007.
--------
--- yast2-qt/yast2-qt.changes 2007-12-05 20:45:18.000000000 +0100
+++ /mounts/work_src_done/STABLE/yast2-qt/yast2-qt.changes 2007-12-10 18:44:35.949190000 +0100
@@ -1,0 +2,9 @@
+Mon Dec 10 18:39:34 CET 2007 - sh@suse.de
+
+- Moved file and directory dialogs from YQUI to YQApplication:
+ - askForExistingDirectory()
+ - askForExistingFile()
+ - askForSaveFile()
+- V 2.16.8
+
+-------------------------------------------------------------------
Old:
----
yast2-qt-2.16.7.tar.bz2
New:
----
yast2-qt-2.16.8.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-qt.spec ++++++
--- /var/tmp/diff_new_pack.q22048/_old 2007-12-11 00:51:56.000000000 +0100
+++ /var/tmp/diff_new_pack.q22048/_new 2007-12-11 00:51:56.000000000 +0100
@@ -1,5 +1,5 @@
#
-# spec file for package yast2-qt (Version 2.16.7)
+# spec file for package yast2-qt (Version 2.16.8)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
@@ -11,17 +11,17 @@
# norootforbuild
Name: yast2-qt
-Version: 2.16.7
+Version: 2.16.8
Release: 1
License: GPL v2 or later
Group: System/YaST
BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Source0: yast2-qt-2.16.7.tar.bz2
+Source0: yast2-qt-2.16.8.tar.bz2
Prefix: /usr
BuildRequires: boost-devel curl-devel dbus-1-devel docbook-xsl-stylesheets doxygen hal-devel libdrm-devel libjpeg-devel libxcrypt-devel libxslt libzypp-devel perl-XML-Writer qt3-devel rpm-devel sgml-skel update-desktop-files yast2-core-devel yast2-devtools
Summary: YaST2 - Graphical User Interface
-BuildRequires: yast2-core-devel >= 2.16.11
-Requires: yast2-core >= 2.16.11
+BuildRequires: yast2-core-devel >= 2.16.15
+Requires: yast2-core >= 2.16.15
Requires: libzypp >= 3.11.8
Provides: yast2_ui
Provides: y2base:/var/lib/YaST2/servers/qt
@@ -44,7 +44,7 @@
Stefan Hundhammer
%prep
-%setup -n yast2-qt-2.16.7
+%setup -n yast2-qt-2.16.8
%build
%{prefix}/bin/y2tool y2autoconf
@@ -89,6 +89,12 @@
/usr/share/YaST2/data/lang_fonts
%doc %{prefix}/share/doc/packages/yast2-qt
%changelog
+* Mon Dec 10 2007 - sh@suse.de
+- Moved file and directory dialogs from YQUI to YQApplication:
+ - askForExistingDirectory()
+ - askForExistingFile()
+ - askForSaveFile()
+- V 2.16.8
* Wed Dec 05 2007 - sh@suse.de
- Moved main dialog handling out of YQUI and into a new class
YQMainWinDock
++++++ yast2-qt-2.16.7.tar.bz2 -> yast2-qt-2.16.8.tar.bz2 ++++++
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.16.7/src/pkg/YQPackageSelector.cc new/yast2-qt-2.16.8/src/pkg/YQPackageSelector.cc
--- old/yast2-qt-2.16.7/src/pkg/YQPackageSelector.cc 2007-11-27 19:07:34.000000000 +0100
+++ new/yast2-qt-2.16.8/src/pkg/YQPackageSelector.cc 2007-12-10 17:47:11.000000000 +0100
@@ -79,6 +79,7 @@
#include "QY2ComboTabWidget.h"
#include "YQDialog.h"
+#include "YQApplication.h"
#include "utf8.h"
#include "YQUI.h"
#include "YEvent.h"
@@ -1057,9 +1058,9 @@
void
YQPackageSelector::pkgExport()
{
- QString filename = YQUI::ui()->askForSaveFileName( QString( DEFAULT_EXPORT_FILE_NAME ), // startsWith
- QString( "*.xml;;*" ), // filter
- _( "Save Package List" ) );
+ QString filename = YQApplication::askForSaveFileName( QString( DEFAULT_EXPORT_FILE_NAME ), // startsWith
+ QString( "*.xml;;*" ), // filter
+ _( "Save Package List" ) );
if ( ! filename.isEmpty() )
{
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.16.7/src/pkg/YQPackageSelector.h new/yast2-qt-2.16.8/src/pkg/YQPackageSelector.h
--- old/yast2-qt-2.16.7/src/pkg/YQPackageSelector.h 2007-11-16 12:41:12.000000000 +0100
+++ new/yast2-qt-2.16.8/src/pkg/YQPackageSelector.h 2007-12-10 13:15:04.000000000 +0100
@@ -22,7 +22,6 @@
#include
#include
-#include
#include "YQPackageSelectorBase.h"
#include "YQPkgObjList.h"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.16.7/src/pkg/YQPatternSelector.h new/yast2-qt-2.16.8/src/pkg/YQPatternSelector.h
--- old/yast2-qt-2.16.7/src/pkg/YQPatternSelector.h 2007-11-16 12:41:12.000000000 +0100
+++ new/yast2-qt-2.16.8/src/pkg/YQPatternSelector.h 2007-12-10 13:15:07.000000000 +0100
@@ -22,7 +22,6 @@
#include
#include
-#include
#include "YQPackageSelectorBase.h"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.16.7/src/pkg/YQPkgConflictList.cc new/yast2-qt-2.16.8/src/pkg/YQPkgConflictList.cc
--- old/yast2-qt-2.16.7/src/pkg/YQPkgConflictList.cc 2007-12-05 19:18:03.000000000 +0100
+++ new/yast2-qt-2.16.8/src/pkg/YQPkgConflictList.cc 2007-12-10 17:45:47.000000000 +0100
@@ -120,9 +120,9 @@
void
YQPkgConflictList::askSaveToFile() const
{
- QString filename = YQUI::ui()->askForSaveFileName( "conflicts.txt", // startsWith
- "*.txt", // filter
- _( "Save Conflicts List" ) );
+ QString filename = YQApplication::askForSaveFileName( "conflicts.txt", // startsWith
+ "*.txt", // filter
+ _( "Save Conflicts List" ) );
if ( ! filename.isEmpty() )
saveToFile( filename, true );
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.16.7/src/pkg/YQPkgList.cc new/yast2-qt-2.16.8/src/pkg/YQPkgList.cc
--- old/yast2-qt-2.16.7/src/pkg/YQPkgList.cc 2007-11-16 12:41:12.000000000 +0100
+++ new/yast2-qt-2.16.8/src/pkg/YQPkgList.cc 2007-12-10 17:46:20.000000000 +0100
@@ -33,6 +33,7 @@
#include "YQUI.h"
#include "YQi18n.h"
#include "YQIconPool.h"
+#include "YQApplication.h"
YQPkgList::YQPkgList( QWidget * parent )
@@ -350,9 +351,9 @@
void
YQPkgList::askExportList() const
{
- QString filename = YQUI::ui()->askForSaveFileName( "pkglist.txt", // startsWith
- "*.txt", // filter
- _( "Export Package List" ) );
+ QString filename = YQApplication::askForSaveFileName( "pkglist.txt", // startsWith
+ "*.txt", // filter
+ _( "Export Package List" ) );
if ( ! filename.isEmpty() )
exportList( filename, true );
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.16.7/src/pkg/YQSimplePatchSelector.h new/yast2-qt-2.16.8/src/pkg/YQSimplePatchSelector.h
--- old/yast2-qt-2.16.7/src/pkg/YQSimplePatchSelector.h 2007-11-16 12:41:12.000000000 +0100
+++ new/yast2-qt-2.16.8/src/pkg/YQSimplePatchSelector.h 2007-12-10 13:15:10.000000000 +0100
@@ -22,7 +22,6 @@
#include
#include
-#include
#include "YQPackageSelectorBase.h"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.16.7/src/QY2ListView.cc new/yast2-qt-2.16.8/src/QY2ListView.cc
--- old/yast2-qt-2.16.7/src/QY2ListView.cc 2007-11-16 12:41:12.000000000 +0100
+++ new/yast2-qt-2.16.8/src/QY2ListView.cc 2007-12-10 11:59:58.000000000 +0100
@@ -316,6 +316,7 @@
{
_sortByInsertionSequence = sortByInsertionSequence;
sort();
+ header()->setClickEnabled( ! _sortByInsertionSequence );
}
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.16.7/src/YQApplication.cc new/yast2-qt-2.16.8/src/YQApplication.cc
--- old/yast2-qt-2.16.7/src/YQApplication.cc 2007-11-22 20:45:23.000000000 +0100
+++ new/yast2-qt-2.16.8/src/YQApplication.cc 2007-12-10 17:54:59.000000000 +0100
@@ -10,20 +10,27 @@
| (C) SuSE GmbH |
\----------------------------------------------------------------------/
- File: YQApplication.cc
+ File: YQApplication.cc
- Author: Stefan Hundhammer
+ Author: Stefan Hundhammer
+ Textdomain "packages-qt"
/-*/
+#include // access()
#include
#include
#include
+#include
+#include
#define y2log_component "qt-ui"
#include
+#include "utf8.h"
+#include "YQi18n.h"
+
#include "YQApplication.h"
@@ -40,10 +47,10 @@
, _autoHeadingFontSize( -1 )
{
y2debug( "YQApplication constructor start" );
-
+
setIconBasePath( ICONDIR "/icons/22x22/apps/" );
loadPredefinedQtTranslations();
-
+
y2debug( "YQApplication constructor end" );
}
@@ -78,7 +85,7 @@
QString language = QLocale::system().name();
QString transFile = QString( "qt_%1.qm")
- .arg( language.lower().replace('_','-') );
+ .arg( language.lower().replace('_','-') );
if ( path.isEmpty() )
{
@@ -89,7 +96,7 @@
if ( ! _qtTranslations )
_qtTranslations = new QTranslator();
-
+
_qtTranslations->load( transFile, path );
if ( _qtTranslations->isEmpty() )
@@ -144,17 +151,17 @@
}
QString lang = language.c_str();
-
+
if ( ! encoding.empty() )
lang += QString( "." ) + encoding.c_str();
-
+
QString key;
if ( ! _langFonts->hasKey( fontKey( lang ) ) ) // Try with encoding ("zh_CN.UTF8" etc.)
{
lang = language.c_str(); // Try without encoding ("zh_CN")
- if ( ! _langFonts->hasKey( fontKey( lang ) ) )
+ if ( ! _langFonts->hasKey( fontKey( lang ) ) )
lang.replace( QRegExp( "_.*$" ), "" ); // Cut off trailing country ("_CN")
}
@@ -296,7 +303,7 @@
_currentFont = 0;
_headingFont = 0;
- _boldFont = 0;
+ _boldFont = 0;
}
@@ -320,55 +327,174 @@
#endif
int x = 800;
int y = 600;
-
- int normal = 10;
- int heading = 12;
+
+ int normal = 10;
+ int heading = 12;
if ( x >= 800 && y >= 600 )
{
normal = 10;
- heading = 12;
+ heading = 12;
}
if ( x >= 1024 && y >= 768 )
{
normal = 12;
- heading = 14;
+ heading = 14;
}
if ( x >= 1280 && y >= 1024 )
{
normal = 14;
- heading = 18;
+ heading = 18;
}
if ( x >= 1400 )
{
normal = 16;
- heading = 20;
+ heading = 20;
}
if ( x >= 1600 )
{
normal = 18;
- heading = 24;
+ heading = 24;
}
if ( x >= 2048 ) // Sounds futuristic? Just wait one or two years...
{
normal = 20;
- heading = 28;
+ heading = 28;
}
- _autoNormalFontSize = normal;
+ _autoNormalFontSize = normal;
_autoHeadingFontSize = heading;
y2milestone( "Selecting auto fonts - normal: %d, heading: %d (bold)",
_autoNormalFontSize, _autoHeadingFontSize );
}
-
+
+string
+YQApplication::askForExistingDirectory( const string & startDir,
+ const string & headline )
+{
+#if 0
+ normalCursor();
+#endif
+
+ QString dirName =
+ QFileDialog::getExistingDirectory( fromUTF8( startDir ),
+ 0, // parent
+ "dir_selector", // name
+ fromUTF8( headline ) ); // caption
+#if 0
+ busyCursor();
+#endif
+
+ return toUTF8( dirName );
+}
+
+
+string
+YQApplication::askForExistingFile( const string & startWith,
+ const string & filter,
+ const string & headline )
+{
+#if 0
+ normalCursor();
+#endif
+
+ QString fileName =
+ QFileDialog::getOpenFileName( fromUTF8( startWith ),
+ fromUTF8( filter ),
+ 0, // parent
+ "file_selector", // name
+ fromUTF8( headline ) ); // caption
+
+#if 0
+ busyCursor();
+#endif
+
+ return toUTF8( fileName );
+}
+
+
+string
+YQApplication::askForSaveFileName( const string & startWith,
+ const string & filter,
+ const string & headline )
+{
+#if 0
+ normalCursor();
+#endif
+
+ QString fileName = askForSaveFileName( fromUTF8( startWith ),
+ fromUTF8( filter ),
+ fromUTF8( headline ) );
+#if 0
+ busyCursor();
+#endif
+
+ return toUTF8( fileName );
+}
+
+
+
+QString
+YQApplication::askForSaveFileName( const QString & startWith,
+ const QString & filter,
+ const QString & headline )
+{
+ QString fileName;
+ bool tryAgain = false;
+
+ do
+ {
+ // Leave the mouse cursor alone - this function might be called from
+ // some other widget, not only from UI::AskForSaveFileName().
+
+ fileName = QFileDialog::getSaveFileName( startWith,
+ filter,
+ 0, // parent
+ "file_selector", // name
+ headline ); // caption
+
+ if ( fileName.isEmpty() ) // this includes fileName.isNull()
+ return QString::null;
+
+
+ if ( access( (const char *) fileName, F_OK ) == 0 ) // file exists?
+ {
+ QString msg;
+
+ if ( access( (const char *) fileName, W_OK ) == 0 )
+ {
+ // Confirm if the user wishes to overwrite an existing file
+ msg = ( _( "%1 exists! Really overwrite?" ) ).arg( fileName );
+ }
+ else
+ {
+ // Confirm if the user wishes to overwrite a write-protected file %1
+ msg = ( _( "%1 exists and is write-protected!\nReally overwrite?" ) ).arg( fileName );
+ }
+
+ int buttonNo = QMessageBox::information( 0, // parent widget
+ // Translators: Window title for confirmation dialog
+ _( "Confirm" ),
+ msg,
+ _( "C&ontinue" ),
+ _( "&Cancel" ) );
+ tryAgain = ( buttonNo != 0 );
+ }
+
+ } while ( tryAgain );
+
+ return fileName;
+}
+
+
#include "YQApplication.moc"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.16.7/src/YQApplication.h new/yast2-qt-2.16.8/src/YQApplication.h
--- old/yast2-qt-2.16.7/src/YQApplication.h 2007-11-22 20:55:26.000000000 +0100
+++ new/yast2-qt-2.16.8/src/YQApplication.h 2007-12-10 17:43:42.000000000 +0100
@@ -124,6 +124,72 @@
**/
void setAutoFonts( bool useAutoFonts );
+ /**
+ * Open a directory selection box and prompt the user for an existing
+ * directory.
+ *
+ * 'startDir' is the initial directory that is displayed.
+ *
+ * 'headline' is an explanatory text for the directory selection box.
+ * Graphical UIs may omit that if no window manager is running.
+ *
+ * Returns the selected directory name
+ * or an empty string if the user canceled the operation.
+ *
+ * Implemented from YApplication.
+ **/
+ virtual string askForExistingDirectory( const string & startDir,
+ const string & headline );
+
+ /**
+ * Open a file selection box and prompt the user for an existing file.
+ *
+ * 'startWith' is the initial directory or file.
+ *
+ * 'filter' is one or more blank-separated file patterns, e.g.
+ * "*.png *.jpg"
+ *
+ * 'headline' is an explanatory text for the file selection box.
+ * Graphical UIs may omit that if no window manager is running.
+ *
+ * Returns the selected file name
+ * or an empty string if the user canceled the operation.
+ *
+ * Implemented from YApplication.
+ **/
+ virtual string askForExistingFile( const string & startWith,
+ const string & filter,
+ const string & headline );
+
+ /**
+ * Open a file selection box and prompt the user for a file to save data
+ * to. Automatically asks for confirmation if the user selects an existing
+ * file.
+ *
+ * 'startWith' is the initial directory or file.
+ *
+ * 'filter' is one or more blank-separated file patterns, e.g.
+ * "*.png *.jpg"
+ *
+ * 'headline' is an explanatory text for the file selection box.
+ * Graphical UIs may omit that if no window manager is running.
+ *
+ * Returns the selected file name
+ * or an empty string if the user canceled the operation.
+ *
+ * Implemented from YApplication.
+ **/
+ virtual string askForSaveFileName( const string & startWith,
+ const string & filter,
+ const string & headline );
+ /**
+ * Lower-level version that works with QStrings and does not change
+ * the mouse cursor.
+ **/
+ static QString askForSaveFileName( const QString & startWith,
+ const QString & filter,
+ const QString & headline );
+
protected:
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.16.7/src/YQTable.h new/yast2-qt-2.16.8/src/YQTable.h
--- old/yast2-qt-2.16.7/src/YQTable.h 2007-11-16 12:41:12.000000000 +0100
+++ new/yast2-qt-2.16.8/src/YQTable.h 2007-12-10 13:12:52.000000000 +0100
@@ -20,8 +20,6 @@
#define YQTable_h
#include
-#include
-
#include "YTable.h"
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.16.7/src/YQUI_builtins.cc new/yast2-qt-2.16.8/src/YQUI_builtins.cc
--- old/yast2-qt-2.16.7/src/YQUI_builtins.cc 2007-12-05 19:31:50.000000000 +0100
+++ new/yast2-qt-2.16.8/src/YQUI_builtins.cc 2007-12-10 17:56:25.000000000 +0100
@@ -25,13 +25,13 @@
#include
#include
-#include
-#include
#include
#include
+#include
+#include
#include
+#include
-#include
#define y2log_component "qt-ui"
#include
@@ -41,6 +41,7 @@
#include "YUISymbols.h"
#include "YQDialog.h"
#include "YQSignalBlocker.h"
+#include "YQApplication.h"
#include "utf8.h"
#include "YQi18n.h"
@@ -173,7 +174,9 @@
{
YQSignalBlocker sigBlocker( &_user_input_timer );
- fileName = askForSaveFileName( fileName, QString( "*.png" ) , _( "Save screen shot to..." ) );
+ fileName = YQApplication::askForSaveFileName( fileName,
+ QString( "*.png" ) ,
+ _( "Save screen shot to..." ) );
}
if ( fileName.isEmpty() )
@@ -221,9 +224,9 @@
void YQUI::askSaveLogs()
{
- QString fileName = askForSaveFileName( "/tmp/y2logs.tgz", // startWith
- "*.tgz *.tar.gz", // filter
- "Save y2logs to..." ); // headline
+ QString fileName = YQApplication::askForSaveFileName( QString( "/tmp/y2logs.tgz" ), // startWith
+ QString( "*.tgz *.tar.gz" ), // filter
+ QString( "Save y2logs to..." ) ); // headline
if ( ! fileName.isEmpty() )
{
@@ -357,115 +360,4 @@
-YCPValue YQUI::askForExistingDirectory( const YCPString & startDir,
- const YCPString & headline )
-{
- normalCursor();
-
- QString dir_name =
- QFileDialog::getExistingDirectory( fromUTF8( startDir->value() ),
- _main_win, // parent
- "dir_selector", // name
- fromUTF8( headline->value() ) ); // caption
- busyCursor();
-
- if ( dir_name.isEmpty() ) // this includes dir_name.isNull()
- return YCPVoid(); // nothing selected -> return 'nil'
-
- return YCPString( toUTF8( dir_name ) );
-}
-
-
-YCPValue YQUI::askForExistingFile( const YCPString & startWith,
- const YCPString & filter,
- const YCPString & headline )
-{
- normalCursor();
-
- QString file_name =
- QFileDialog::getOpenFileName( fromUTF8( startWith->value() ),
- fromUTF8( filter->value() ),
- _main_win, // parent
- "file_selector", // name
- fromUTF8( headline->value() ) ); // caption
- busyCursor();
-
- if ( file_name.isEmpty() ) // this includes file_name.isNull()
- return YCPVoid(); // nothing selected -> return 'nil'
-
- return YCPString( toUTF8( file_name ) );
-}
-
-
-YCPValue YQUI::askForSaveFileName( const YCPString & startWith,
- const YCPString & filter,
- const YCPString & headline )
-{
- normalCursor();
-
- QString file_name = askForSaveFileName( fromUTF8( startWith->value() ),
- fromUTF8( filter->value() ),
- fromUTF8( headline->value() ) );
- busyCursor();
-
- if ( file_name.isEmpty() ) // this includes file_name.isNull()
- return YCPVoid(); // nothing selected -> return 'nil'
-
- return YCPString( toUTF8( file_name ) );
-}
-
-
-
-QString YQUI::askForSaveFileName( const QString & startWith,
- const QString & filter,
- const QString & headline )
-{
- QString file_name;
- bool try_again = false;
-
- do
- {
- // Leave the mouse cursor alone - this function might be called from
- // some other widget, not only from UI::AskForSaveFileName().
-
- file_name = QFileDialog::getSaveFileName( startWith,
- filter,
- _main_win, // parent
- "file_selector", // name
- headline ); // caption
-
- if ( file_name.isEmpty() ) // this includes file_name.isNull()
- return QString::null;
-
-
- if ( access( (const char *) file_name, F_OK ) == 0 ) // file exists?
- {
- QString msg;
-
- if ( access( (const char *) file_name, W_OK ) == 0 )
- {
- // Confirm if the user wishes to overwrite an existing file
- msg = ( _( "%1 exists! Really overwrite?" ) ).arg( file_name );
- }
- else
- {
- // Confirm if the user wishes to overwrite a write-protected file %1
- msg = ( _( "%1 exists and is write-protected!\nReally overwrite?" ) ).arg( file_name );
- }
-
- int button_no = QMessageBox::information( _main_win,
- // Window title for confirmation dialog
- _( "Confirm" ),
- msg,
- _( "C&ontinue" ),
- _( "&Cancel" ) );
- try_again = ( button_no != 0 );
- }
-
- } while ( try_again );
-
- return file_name;
-}
-
-
// EOF
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.16.7/src/YQUI_core.cc new/yast2-qt-2.16.8/src/YQUI_core.cc
--- old/yast2-qt-2.16.7/src/YQUI_core.cc 2007-12-05 20:38:09.000000000 +0100
+++ new/yast2-qt-2.16.8/src/YQUI_core.cc 2007-12-10 13:16:36.000000000 +0100
@@ -26,9 +26,6 @@
#include
#include
-#include
-#include
-
#define y2log_component "qt-ui"
#include
@@ -67,6 +64,7 @@
_usingVisionImpairedPalette = false;
_leftHandedMouse = false;
_askedForLeftHandedMouse = false;
+ _noborder = false;
screenShotNameTemplate = "";
qInstallMsgHandler( qMessageHandler );
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.16.7/src/YQUI.h new/yast2-qt-2.16.8/src/YQUI.h
--- old/yast2-qt-2.16.7/src/YQUI.h 2007-12-05 20:33:04.000000000 +0100
+++ new/yast2-qt-2.16.8/src/YQUI.h 2007-12-10 17:43:58.000000000 +0100
@@ -315,67 +315,6 @@
public:
/**
- *
- * Open a directory selection box and prompt the user for an existing directory.
- * [Reimplemented from YUI]
- *
- * 'startDir' is the initial directory that is displayed.
- *
- * 'headline' is an explanatory text for the directory selection box.
- * Graphical UIs may omit that if no window manager is running.
- *
- * Returns the selected directory name
- * or 'nil' (YCPVoid() ) if the user canceled the operation.
- **/
- YCPValue askForExistingDirectory ( const YCPString & startDir,
- const YCPString & headline );
-
- /**
- * Open a file selection box and prompt the user for an existing file.
- * [Reimplemented from YUI]
- *
- * 'startWith' is the initial directory or file.
- *
- * 'filter' is one or more blank-separated file patterns, e.g. "*.png *.jpg"
- *
- * 'headline' is an explanatory text for the file selection box.
- * Graphical UIs may omit that if no window manager is running.
- *
- * Returns the selected file name
- * or 'nil' (YCPVoid() ) if the user canceled the operation.
- **/
- YCPValue askForExistingFile ( const YCPString & startWith,
- const YCPString & filter,
- const YCPString & headline );
-
- /**
- * Open a file selection box and prompt the user for a file to save data to.
- * Automatically asks for confirmation if the user selects an existing file.
- * [Reimplemented from YUI]
- *
- * 'startWith' is the initial directory or file.
- *
- * 'filter' is one or more blank-separated file patterns, e.g. "*.png *.jpg"
- *
- * 'headline' is an explanatory text for the file selection box.
- * Graphical UIs may omit that if no window manager is running.
- *
- * Returns the selected file name
- * or 'nil' (YCPVoid() ) if the user canceled the operation.
- **/
- YCPValue askForSaveFileName ( const YCPString & startWith,
- const YCPString & filter,
- const YCPString & headline );
-
- /**
- * Lower-level version that works with QStrings and does not change
- * the mouse cursor.
- **/
- QString askForSaveFileName( const QString & startWith,
- const QString & filter,
- const QString & headline );
-
- /**
* Initialize and set a textdomain for gettext()
**/
static void setTextdomain( const char * domain );
diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/yast2-qt-2.16.7/VERSION new/yast2-qt-2.16.8/VERSION
--- old/yast2-qt-2.16.7/VERSION 2007-12-05 20:41:12.000000000 +0100
+++ new/yast2-qt-2.16.8/VERSION 2007-12-10 18:39:31.000000000 +0100
@@ -1 +1 @@
-2.16.7
+2.16.8
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Remember to have fun...
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org