Logo Search packages:      
Sourcecode: qps version File versions  Download package

pstable.h

// pstable.h                        emacs, this is written in -*-c++-*-
//
// This program is free software. See the file COPYING for details.
// Author: Mattias Engdegård, 1997-1999

#ifndef PSTABLE_H
#define PSTABLE_H

#include "htable.h"
#include "proc.h"

class Pstable : public HeadedTable
{
    Q_OBJECT
public:
    Pstable(QWidget *parent);

    void recompute_table_widths();
    void repaint_changed();
    void transfer_selection();
    void set_sortcol();
    void setProcview(Procview *pv);
    void setRows();
    void set_initial_mode(bool treemode);
    void set_mode(bool treemode);

public slots:
    void selection_update(const Svec<int> *row);
    void sortcol_change(int col);
    void subtree_folded(int row);

signals:
    void selection_changed();

protected:
    // implementation of the interface to HeadedTable
    virtual QString title(int col);
    virtual QString text(int row, int col);
    virtual int colWidth(int col);
    virtual int alignment(int col);
    virtual int leftGap(int col);
    virtual QString tipText(int col);
    virtual int rowDepth(int row);
    virtual NodeState folded(int row);
    virtual int parentRow(int row);
    virtual bool lastChild(int row);

private:
    Procview *procview;
    int leftmostchanged;      // leftmost (physical) col whose width changed,
                        // or -1
};

#endif // PSTABLE_H


Generated by  Doxygen 1.6.0   Back to index