~jocave/checkbox/hybrid-amd-gpu-mods

« back to all changes in this revision

Viewing changes to qt/frontend/treemodel.h

  • Committer: Zygmunt Krynicki
  • Date: 2013-05-17 13:54:25 UTC
  • mto: This revision was merged to the branch mainline in revision 2130.
  • Revision ID: zygmunt.krynicki@canonical.com-20130517135425-cxcenxx5t0qrtbxd
checkbox-ng: add CheckBoxNG sub-project

CheckBoxNG (or lowercase as checkbox-ng, pypi:checkbox-ng) is a clean
implementation of CheckBox on top of PlainBox. It provides a new
executable, 'checkbox' that has some of the same commands that were
previously implemented in the plainbox package.

In particular CheckBoxNG comes with the 'checkbox sru' command
(the same one as in plainbox). Later on this sub-command will be removed
from plainbox.

CheckBoxNG depends on plainbox >= 0.3

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@canonical.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef TREEMODEL_H
 
2
#define TREEMODEL_H
 
3
 
 
4
#include <QStandardItemModel>
 
5
#include <QErrorMessage>
 
6
 
 
7
class TreeModel : public QStandardItemModel
 
8
{
 
9
public:
 
10
    TreeModel();
 
11
    void warn();
 
12
    bool setData(const QModelIndex &index, const QVariant &value, int role = Qt::EditRole);
 
13
    void setInteraction(bool value);
 
14
    void selectAll(bool select = true);
 
15
    void changeAllChildren(QStandardItem *item, const QVariant &value, int role);
 
16
    void enableAllChildren(bool enable, QStandardItem *item);
 
17
    bool allInStatus(Qt::CheckState wanted_status);
 
18
    QErrorMessage *m_messageBox;
 
19
    QString deselect_warning;
 
20
};
 
21
 
 
22
#endif // TREEMODEL_H