Mailinglist Archive: zypp-devel (115 mails)

< Previous Next >
[zypp-devel] Qt widget for showing solver results.
  • From: Stefan Schubert <schubi@xxxxxxx>
  • Date: Thu, 26 Jul 2007 15:54:51 +0200
  • Message-id: <46A8A7AB.9090006@xxxxxxx>
Hi,
as I have promised in our last meeting I would like to provide more
information about
the solver QT widget.

This modal QDialog widget shows a solver result in a grafical tree in
which the user
can navigate and can get the information "who has installed whom and why".

A screenshot how it looks like can be found here:

~schubi/Export/solvertree/solver.jpg

I have made a package and checked in into autobuild:

libqdialogsolver1
libqdialogsolver1-devel

The interface is quite simple:

#ifndef QZYPPSOLVERDIALOG_H
#define QZYPPSOLVERDIALOG_H

#include <qdialog.h>
#include "zypp/solver/detail/Resolver.h"

class SolverTree;

  ///////////////////////////////////////////////////////////////////
  //
  //    CLASS NAME : QZyppSolverDialog
  //
  /**
   * Modal QDialog class which shows the solver result in
   * a graphical view.
   */

class QZyppSolverDialog : public QDialog{
    Q_OBJECT

protected:
    zypp::solver::detail::Resolver_Ptr resolver;
    SolverTree *solvertree;

public:
    /** Constructor
     * \param Resolver pointer of a valid solver run
    */   
     QZyppSolverDialog(zypp::solver::detail::Resolver_Ptr r = NULL);
   
    /** ctor
    */   
    ~QZyppSolverDialog();

    /** Selecting one item in the solvertree
     * \param \ref item which will be selected
    */       
    void selectItem(const zypp::PoolItem_Ref item);
   
private:
    QZyppSolverDialog&
    operator = (const QZyppSolverDialog &zyppSolverDialog);
    QZyppSolverDialog(const QZyppSolverDialog &zyppSolverDialog);

};

#endif

HuHa, is there any possibility of making a button in the QT-UI ? :-)

This is the first working version. Improvements, suggestions, wishes are
VERY welcome.

Greetings
Stefan

-- 
*******************************************************************************
Stefan Schubert
SUSE LINUX GmbH - Maxfeldstrasse 5 - D-90409 Nuernberg, Germany
e-mail: schubi@xxxxxxx
-------------------------------------------------------------------------------
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)


-- 
To unsubscribe, e-mail: zypp-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-devel+help@xxxxxxxxxxxx

< Previous Next >