~ubuntu-branches/ubuntu/edgy/koffice/edgy-updates

« back to all changes in this revision

Viewing changes to lib/kscript/kscript_ext_qbutton.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Burton
  • Date: 2004-05-09 11:33:00 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20040509113300-xi5t1z4yxe7n03x7
Tags: upstream-1.3.1
ImportĀ upstreamĀ versionĀ 1.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef __KSCRIPT_EXT_QBUTTON_H__
2
 
#define __KSCRIPT_EXT_QBUTTON_H__
3
 
 
4
 
#include "kscript_class.h"
5
 
#include "kscript_ext_qwidget.h"
6
 
 
7
 
class QButton;
8
 
class KSContext;
9
 
 
10
 
class KSClass_QButton : public KSClass_QWidget
11
 
{
12
 
public:
13
 
  KSClass_QButton( KSModule*, const char* name = "QButton" );
14
 
 
15
 
protected:
16
 
  virtual KSScriptObject* createObject( KSClass* c );
17
 
};
18
 
 
19
 
class KSObject_QButton : public KSObject_QWidget
20
 
{
21
 
public:
22
 
  KSObject_QButton( KSClass* );
23
 
 
24
 
  bool ksQButton( KSContext& );
25
 
  bool ksQButton_setText( KSContext& );
26
 
  bool ksQButton_clicked( KSContext& );
27
 
    
28
 
  KSValue::Ptr member( KSContext& context, const QString& name );
29
 
  bool setMember( KSContext& context, const QString& name, const KSValue::Ptr& v );
30
 
 
31
 
  bool inherits( const char* name ) { return ( strcmp( name, "KSObject_QButton" ) == 0 || KSObject_QWidget::inherits( name ) ); }
32
 
 
33
 
  static QButton* convert( KSValue* v ) { return (QButton*) ((KS_Qt_Object*)v->objectValue())->object(); }
34
 
 
35
 
  void setObject( QObject* obj );
36
 
};
37
 
 
38
 
#endif