You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
149 lines
3.9 KiB
149 lines
3.9 KiB
13 years ago
|
// This is the SIP interface definition for TQAction and TQActionGroup.
|
||
13 years ago
|
//
|
||
|
// Copyright (c) 2007
|
||
|
// Riverbank Computing Limited <info@riverbankcomputing.co.uk>
|
||
|
//
|
||
13 years ago
|
// This file is part of PyTQt.
|
||
13 years ago
|
//
|
||
13 years ago
|
// This copy of PyTQt is free software; you can redistribute it and/or modify it
|
||
13 years ago
|
// under the terms of the GNU General Public License as published by the Free
|
||
|
// Software Foundation; either version 2, or (at your option) any later
|
||
|
// version.
|
||
|
//
|
||
13 years ago
|
// PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY
|
||
13 years ago
|
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||
|
// FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||
|
// details.
|
||
|
//
|
||
|
// You should have received a copy of the GNU General Public License along with
|
||
13 years ago
|
// PyTQt; see the file LICENSE. If not, write to the Free Software Foundation,
|
||
13 years ago
|
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||
|
|
||
|
|
||
|
%ExportedDoc
|
||
13 years ago
|
<Sect2><Title>TQAction (TQt v2.2+)</Title>
|
||
13 years ago
|
<Para>
|
||
13 years ago
|
<Literal>TQAction</Literal> is fully implemented.
|
||
13 years ago
|
</Para>
|
||
|
|
||
|
</Sect2>
|
||
13 years ago
|
<Sect2><Title>TQActionGroup (TQt v2.2+)</Title>
|
||
13 years ago
|
<Para>
|
||
13 years ago
|
<Literal>TQActionGroup</Literal> is fully implemented.
|
||
13 years ago
|
</Para>
|
||
|
</Sect2>
|
||
|
%End
|
||
|
|
||
|
|
||
13 years ago
|
%If (TQt_ACTION)
|
||
13 years ago
|
|
||
13 years ago
|
class TQAction : TQObject
|
||
13 years ago
|
{
|
||
|
%TypeHeaderCode
|
||
13 years ago
|
#include <tqaction.h>
|
||
13 years ago
|
%End
|
||
|
|
||
|
public:
|
||
13 years ago
|
TQAction(TQObject * /TransferThis/,const char * = 0);
|
||
|
TQAction(const TQString &,TQKeySequence,TQObject * /TransferThis/,
|
||
13 years ago
|
const char * = 0);
|
||
13 years ago
|
TQAction(const TQIconSet &,const TQString &,TQKeySequence,
|
||
|
TQObject * /TransferThis/,const char * = 0);
|
||
13 years ago
|
// Obsolete.
|
||
13 years ago
|
TQAction(const TQString &,const TQIconSet &,const TQString &,TQKeySequence,
|
||
|
TQObject * /TransferThis/,const char * = 0,bool = 0);
|
||
13 years ago
|
// Obsolete.
|
||
13 years ago
|
TQAction(const TQString &,const TQString &,TQKeySequence,
|
||
|
TQObject * /TransferThis/,const char * = 0,bool = 0);
|
||
13 years ago
|
// Obsolete.
|
||
13 years ago
|
TQAction(TQObject * /TransferThis/,const char *,bool);
|
||
|
|
||
|
virtual void setIconSet(const TQIconSet &);
|
||
|
TQIconSet iconSet() const;
|
||
|
virtual void setText(const TQString &);
|
||
|
TQString text() const;
|
||
|
virtual void setMenuText(const TQString &);
|
||
|
TQString menuText() const;
|
||
|
virtual void setToolTip(const TQString &);
|
||
|
TQString toolTip() const;
|
||
|
virtual void setStatusTip(const TQString &);
|
||
|
TQString statusTip() const;
|
||
|
virtual void setWhatsThis(const TQString &);
|
||
|
TQString whatsThis() const;
|
||
|
virtual void setAccel(const TQKeySequence &);
|
||
|
TQKeySequence accel() const;
|
||
13 years ago
|
virtual void setToggleAction(bool);
|
||
|
bool isToggleAction() const;
|
||
|
bool isOn() const;
|
||
|
bool isEnabled() const;
|
||
|
bool isVisible() const;
|
||
13 years ago
|
virtual bool addTo(TQWidget *);
|
||
|
virtual bool removeFrom(TQWidget *);
|
||
13 years ago
|
|
||
|
protected:
|
||
13 years ago
|
virtual void addedTo(TQWidget *,TQWidget *);
|
||
|
virtual void addedTo(int,TQPopupMenu *);
|
||
13 years ago
|
|
||
|
public slots:
|
||
|
void activate();
|
||
|
void toggle();
|
||
|
virtual void setOn(bool);
|
||
|
virtual void setEnabled(bool);
|
||
|
void setDisabled(bool);
|
||
|
void setVisible(bool);
|
||
|
|
||
|
signals:
|
||
|
void activated();
|
||
|
void toggled(bool);
|
||
|
|
||
|
private:
|
||
13 years ago
|
TQAction(const TQAction &);
|
||
13 years ago
|
};
|
||
|
|
||
|
|
||
13 years ago
|
class TQActionGroup : TQAction
|
||
13 years ago
|
{
|
||
|
%TypeHeaderCode
|
||
13 years ago
|
#include <tqaction.h>
|
||
13 years ago
|
%End
|
||
|
|
||
|
public:
|
||
13 years ago
|
TQActionGroup(TQObject * /TransferThis/,const char * = 0);
|
||
13 years ago
|
// Obsolete.
|
||
13 years ago
|
TQActionGroup(TQObject * /TransferThis/,const char *,bool);
|
||
13 years ago
|
|
||
|
void setExclusive(bool);
|
||
|
bool isExclusive() const;
|
||
13 years ago
|
void add(TQAction *);
|
||
13 years ago
|
void addSeparator();
|
||
13 years ago
|
bool addTo(TQWidget *);
|
||
|
bool removeFrom(TQWidget *);
|
||
13 years ago
|
void setEnabled(bool);
|
||
|
void setToggleAction(bool);
|
||
|
void setOn(bool);
|
||
|
|
||
|
void setUsesDropDown(bool);
|
||
|
bool usesDropDown() const;
|
||
|
|
||
13 years ago
|
void setIconSet(const TQIconSet &);
|
||
|
void setText(const TQString &);
|
||
|
void setMenuText(const TQString &);
|
||
|
void setToolTip(const TQString &);
|
||
|
void setWhatsThis(const TQString &);
|
||
13 years ago
|
|
||
|
protected:
|
||
13 years ago
|
void childEvent(TQChildEvent *);
|
||
|
virtual void addedTo(TQWidget *,TQWidget *,TQAction *);
|
||
|
virtual void addedTo(int,TQPopupMenu *,TQAction *);
|
||
|
virtual void addedTo(TQWidget *,TQWidget *);
|
||
|
virtual void addedTo(int,TQPopupMenu *);
|
||
13 years ago
|
|
||
|
signals:
|
||
13 years ago
|
void selected(TQAction *);
|
||
13 years ago
|
|
||
|
private:
|
||
13 years ago
|
TQActionGroup(const TQActionGroup &);
|
||
13 years ago
|
};
|
||
|
|
||
|
%End
|