BuildLogViewer/AtAGlance.h
author John Kern <johnk@symbian.org>
Thu, 26 Aug 2010 14:34:34 -0700
changeset 40 edc0144719a1
parent 3 e6d1a78b6db9
permissions -rwxr-xr-x
removed invariant from data() and rowCount(). Performance should be ok now.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
     1
#ifndef ATAGLANCE_H
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
     2
#define ATAGLANCE_H
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
     3
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
     4
#include <QDomElement>
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
     5
#include <QWidget>
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
     6
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
     7
#include "BuildStatus.h"
3
e6d1a78b6db9 wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents: 1
diff changeset
     8
#include "ui_BuildResults.h"
1
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
     9
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    10
/*
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    11
  * This class presents the status for a given build.  It gets the
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    12
  * appropriate data from the model.
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    13
  */
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    14
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    15
class AtAGlance : public QWidget
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    16
{
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    17
    Q_OBJECT
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    18
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    19
public:
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    20
    AtAGlance(QString filename, QWidget *parent = 0 );
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    21
    ~AtAGlance();
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    22
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    23
    void traveAndPopulate();
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    24
    void decideOnLayout();
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    25
private:
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    26
    void traveAndPopulate(QDomElement e);
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    27
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    28
private:
3
e6d1a78b6db9 wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents: 1
diff changeset
    29
    Ui::BuildResultsForm *ui;
1
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    30
    QDomDocument *m_log;
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    31
    BuildStatus *m_buildStatus;
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    32
};
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    33
8e9c5760ce6f working on a status view
John Kern <johnk@symbian.org>
parents:
diff changeset
    34
#endif // ATAGLANCE_H