~dantti/apper/master

« back to all changes in this revision

Viewing changes to ApperKCM/ApperKCM.h

  • Committer: Daniel Nicoletti
  • Date: 2011-01-05 15:13:18 UTC
  • Revision ID: git-v1:c8cace8f335ae3326195756765bdc3b3f842b693
Biggest Apper changes done

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/***************************************************************************
2
 
 *   Copyright (C) 2008-2010 by Daniel Nicoletti                           *
 
2
 *   Copyright (C) 2008-2011 by Daniel Nicoletti                           *
3
3
 *   dantti85-pk@yahoo.com.br                                              *
4
4
 *                                                                         *
5
5
 *   This program is free software; you can redistribute it and/or modify  *
44
44
class ApperKCM : public KCModule, Ui::ApperKCM
45
45
{
46
46
    Q_OBJECT
 
47
    Q_PROPERTY(QString page READ page WRITE setPage USER true)
47
48
public:
48
49
    ApperKCM(QWidget *parent, const QVariantList &args);
49
50
    ~ApperKCM();
 
51
    
 
52
    QString page() const;
 
53
    void setPage(const QString &page);
50
54
 
51
55
signals:
52
56
    void changed(bool state);
76
80
    void changed();
77
81
 
78
82
private:
79
 
    bool canChangePage(bool changed);
 
83
    bool canChangePage();
80
84
    void setCurrentActionEnabled(bool state);
81
85
    void setCurrentAction(QAction *action);
82
86
    void setCurrentActionCancel(bool cancel);