SIP4 python bindings for TQt
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.

qdockwindow.sip 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. // This is the SIP interface definition for TQDockWindow.
  2. //
  3. // Copyright (c) 2007
  4. // Riverbank Computing Limited <info@riverbankcomputing.co.uk>
  5. //
  6. // This file is part of PyTQt.
  7. //
  8. // This copy of PyTQt is free software; you can redistribute it and/or modify it
  9. // under the terms of the GNU General Public License as published by the Free
  10. // Software Foundation; either version 2, or (at your option) any later
  11. // version.
  12. //
  13. // PyTQt is supplied in the hope that it will be useful, but WITHOUT ANY
  14. // WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  15. // FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
  16. // details.
  17. //
  18. // You should have received a copy of the GNU General Public License along with
  19. // PyTQt; see the file LICENSE. If not, write to the Free Software Foundation,
  20. // Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  21. %ExportedDoc
  22. <Sect2><Title>TQDockWindow (TQt v3+)</Title>
  23. <Para>
  24. <Literal>TQDockWindow</Literal> is fully implemented.
  25. </Para>
  26. </Sect2>
  27. %End
  28. %If (TQt_3_0_0 -)
  29. class TQDockWindow : TQFrame
  30. {
  31. %TypeHeaderCode
  32. #include <qdockwindow.h>
  33. %End
  34. public:
  35. enum Place {
  36. InDock,
  37. OutsideDock
  38. };
  39. enum CloseMode {
  40. Never,
  41. Docked,
  42. Undocked,
  43. Always
  44. };
  45. TQDockWindow(Place = InDock,TQWidget * /TransferThis/ = 0,
  46. const char * = 0,WFlags = 0);
  47. %If (TQt_3_1_0 -)
  48. TQDockWindow(TQWidget * /TransferThis/,const char * = 0,WFlags = 0);
  49. %End
  50. virtual void setWidget(TQWidget *);
  51. TQWidget *widget() const;
  52. Place place() const;
  53. TQDockArea *area() const;
  54. virtual void setCloseMode(int);
  55. bool isCloseEnabled() const;
  56. int closeMode() const;
  57. virtual void setResizeEnabled(bool);
  58. virtual void setMovingEnabled(bool);
  59. bool isResizeEnabled() const;
  60. bool isMovingEnabled() const;
  61. virtual void setHorizontallyStretchable(bool);
  62. virtual void setVerticallyStretchable(bool);
  63. bool isHorizontallyStretchable() const;
  64. bool isVerticallyStretchable() const;
  65. bool isStretchable() const;
  66. virtual void setOffset(int);
  67. int offset() const;
  68. virtual void setFixedExtentWidth(int);
  69. virtual void setFixedExtentHeight(int);
  70. TQSize fixedExtent() const;
  71. virtual void setNewLine(bool);
  72. bool newLine() const;
  73. TQt::Orientation orientation() const;
  74. TQSize sizeHint() const;
  75. TQSize minimumSize() const;
  76. TQSize minimumSizeHint() const;
  77. TQBoxLayout *boxLayout();
  78. virtual void setOpaqueMoving(bool);
  79. bool opaqueMoving() const;
  80. bool eventFilter(TQObject *,TQEvent *);
  81. signals:
  82. void orientationChanged(Orientation);
  83. void placeChanged(TQDockWindow::Place);
  84. void visibilityChanged(bool);
  85. public slots:
  86. virtual void undock(TQWidget *);
  87. virtual void undock();
  88. virtual void dock();
  89. virtual void setOrientation(Orientation);
  90. void setCaption(const TQString &);
  91. protected:
  92. void resizeEvent(TQResizeEvent *);
  93. void showEvent(TQShowEvent *);
  94. void hideEvent(TQHideEvent *);
  95. void contextMenuEvent(TQContextMenuEvent *);
  96. %If (TQt_3_0_1 -)
  97. void drawFrame(TQPainter *);
  98. %End
  99. %If (TQt_3_1_0 -)
  100. void drawContents(TQPainter *);
  101. %End
  102. bool event(TQEvent *);
  103. private:
  104. TQDockWindow(const TQDockWindow &);
  105. };
  106. %End