Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r54925 - in /branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src: YQPackageSelector.cc YQPkgFilterTab.cc
  • From: sh-sh-sh@xxxxxxxxxxxxxxxx
  • Date: Thu, 22 Jan 2009 18:37:22 -0000
  • Message-id: <E1LQ4Qc-0005fj-7c@xxxxxxxxxxxxxxxx>
Author: sh-sh-sh
Date: Thu Jan 22 19:37:21 2009
New Revision: 54925

URL: http://svn.opensuse.org/viewcvs/yast?rev=54925&view=rev
Log:
preconfig

Modified:
branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src/YQPackageSelector.cc
branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src/YQPkgFilterTab.cc

Modified: branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src/YQPackageSelector.cc
URL:
http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src/YQPackageSelector.cc?rev=54925&r1=54924&r2=54925&view=diff
==============================================================================
--- branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src/YQPackageSelector.cc
(original)
+++ branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src/YQPackageSelector.cc Thu Jan
22 19:37:21 2009
@@ -252,7 +252,9 @@
{
_updateProblemFilterView = new YQPkgUpdateProblemFilterView( parent
);
YUI_CHECK_NEW( _updateProblemFilterView );
- _filters->addPage( _( "Update Problems" ), _updateProblemFilterView
);
+ _filters->addPage( _( "Update Problems" ), _updateProblemFilterView,
+ "update_problems", // internal name
+ true ); // showAlways
}
}

@@ -279,7 +281,7 @@
{
_patternList = new YQPkgPatternList( parent, true );
YUI_CHECK_NEW( _patternList );
- _filters->addPage( _( "Patterns" ), _patternList );
+ _filters->addPage( _( "Patterns" ), _patternList, "patterns" );

connect( _patternList, SIGNAL( statusChanged()
),
this, SLOT ( autoResolveDependencies()
) );
@@ -301,7 +303,7 @@

_rpmGroupTagsFilterView = new YQPkgRpmGroupTagsFilterView( parent );
YUI_CHECK_NEW( _rpmGroupTagsFilterView );
- _filters->addPage( _( "Package Groups" ), _rpmGroupTagsFilterView );
+ _filters->addPage( _( "Package Groups" ), _rpmGroupTagsFilterView,
"package_groups" );

connect( this, SIGNAL( loadData() ),
_rpmGroupTagsFilterView, SLOT ( filter() ) );
@@ -313,7 +315,7 @@
_langList = new YQPkgLangList( parent );
YUI_CHECK_NEW( _langList );

- _filters->addPage( _( "Languages" ), _langList );
+ _filters->addPage( _( "Languages" ), _langList, "languages" );
_langList->setSizePolicy( QSizePolicy( QSizePolicy::Ignored,
QSizePolicy::Ignored ) ); // hor/vert

connect( _langList, SIGNAL( statusChanged()
),
@@ -329,7 +331,7 @@

_repoFilterView = new YQPkgRepoFilterView( parent );
YUI_CHECK_NEW( _repoFilterView );
- _filters->addPage( _( "Repositories" ), _repoFilterView );
+ _filters->addPage( _( "Repositories" ), _repoFilterView, "repos" );


//
@@ -338,25 +340,27 @@

_searchFilterView = new YQPkgSearchFilterView( parent );
YUI_CHECK_NEW( _searchFilterView );
- _filters->addPage( _( "Search" ), _searchFilterView );
+ _filters->addPage( _( "Search" ), _searchFilterView, "search",
+ true ); // showAlways


- //
- // Status change view
- //
-
- _statusFilterView = new YQPkgStatusFilterView( parent );
- YUI_CHECK_NEW( _statusFilterView );
- _filters->addPage( _( "Installation Summary" ), _statusFilterView );
-

+ _filters->addPage( _( "Keywords" ), new QLabel( "Keywords\nfilter\n\nfor
future use", this ), "keywords" );
#if 0
// DEBUG

- _filters->addPage( _( "Keywords" ), new QLabel( "Keywords\nfilter\n\nfor
future use", 0 ) );
- _filters->addPage( _( "MIME Types" ), new QLabel( "MIME
Types\nfilter\n\nfor future use" , 0 ) );
+ _filters->addPage( _( "Keywords" ), new QLabel( "Keywords\nfilter\n\nfor
future use", this ) );
+ _filters->addPage( _( "MIME Types" ), new QLabel( "MIME
Types\nfilter\n\nfor future use" , this ) );
#endif

+ //
+ // Status change view
+ //
+
+ _statusFilterView = new YQPkgStatusFilterView( parent );
+ YUI_CHECK_NEW( _statusFilterView );
+ _filters->addPage( _( "Installation Summary" ), _statusFilterView,
"inst_summary",
+ true ); // showAlways
}


@@ -970,13 +974,17 @@
{
_patchFilterView = new YQPkgPatchFilterView( this );
YUI_CHECK_NEW( _patchFilterView );
- _filters->addPage( _( "Patches" ), _patchFilterView );
+ _filters->addPage( _( "Patches" ), _patchFilterView, "patches" );

_patchList = _patchFilterView->patchList();
YUI_CHECK_PTR( _patchList );

connectPatchList();
}
+ else
+ {
+ _filters->showPage( _patchFilterView );
+ }
}



Modified: branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src/YQPkgFilterTab.cc
URL:
http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src/YQPkgFilterTab.cc?rev=54925&r1=54924&r2=54925&view=diff
==============================================================================
--- branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src/YQPkgFilterTab.cc (original)
+++ branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src/YQPkgFilterTab.cc Thu Jan 22
19:37:21 2009
@@ -127,6 +127,11 @@
buttonBoxLayout->setContentsMargins( 0, 0, 0, 0 );

#if VIEW_BUTTON_LEFT
+
+ // Translators: Button with pop-up menu to open a new page (very much like
+ // in a web browser) with another package filter view or to switch to an
+ // existing one if it's open already
+
priv->viewButton = new QPushButton( _( "&View" ), this );
YUI_CHECK_NEW( priv->viewButton );
setCornerWidget( priv->viewButton, Qt::TopLeftCorner );
@@ -144,7 +149,7 @@
connect( menu, SIGNAL( triggered( QAction * ) ),
this, SLOT ( showPage ( QAction * ) ) );

-
+ // Button to close the current package filter view page
priv->closeButton = new QPushButton( _( "&Close" ), buttonBox );
YUI_CHECK_NEW( priv->closeButton );
buttonBoxLayout->addWidget( priv->closeButton );

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages