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.
73 lines
2.1 KiB
73 lines
2.1 KiB
15 years ago
|
/***************************************************************************
|
||
|
copyright : (C) 1999 by Judin Max
|
||
|
email : novaprint@mtu-net.ru
|
||
|
***************************************************************************/
|
||
|
|
||
|
/***************************************************************************
|
||
|
* *
|
||
|
* This program is free software; you can redistribute it and/or modify *
|
||
|
* it under the terms of the GNU General Public License as published by *
|
||
|
* the Free Software Foundation; either version 2 of the License, or *
|
||
|
* (at your option) any later version. *
|
||
|
* *
|
||
|
***************************************************************************/
|
||
|
|
||
|
#ifndef KDOCKWIDGETTEST_H
|
||
|
#define KDOCKWIDGETTEST_H
|
||
|
|
||
|
#include <kdockwidget.h>
|
||
|
#include <kdockwidget_p.h>
|
||
15 years ago
|
#include <tqtabwidget.h>
|
||
|
#include <tqlabel.h>
|
||
15 years ago
|
class TQPushButton;
|
||
15 years ago
|
|
||
|
class DockApplication : public KDockMainWindow
|
||
|
{Q_OBJECT
|
||
|
public:
|
||
|
DockApplication( const char* name );
|
||
|
~DockApplication();
|
||
|
|
||
|
public slots:
|
||
|
void rConfig();
|
||
|
void wConfig();
|
||
|
void cap();
|
||
|
void greenMain();
|
||
|
void blueMain();
|
||
|
void nullMain();
|
||
|
void gSetPix1();
|
||
|
void gSetPix2();
|
||
|
|
||
|
protected:
|
||
|
void initMenuBar();
|
||
|
void initToolBars();
|
||
|
void initStatusBar();
|
||
|
|
||
|
private:
|
||
|
void updateButton();
|
||
|
KDockWidget* dock;
|
||
|
KDockWidget* dock1;
|
||
|
KDockWidget* dock4;
|
||
|
KDockWidget* dock5;
|
||
|
KDockWidget* dock6;
|
||
|
|
||
15 years ago
|
TQWidget* mainW;
|
||
|
TQWidget* l;
|
||
|
TQPushButton* m_bname;
|
||
15 years ago
|
};
|
||
|
|
||
15 years ago
|
class CTW:public TQTabWidget,public KDockContainer
|
||
15 years ago
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
15 years ago
|
CTW(TQWidget *parent):TQTabWidget(parent,"MyDockContainer"),KDockContainer(){insertTab(new TQLabel("BLAH",this),"BLUP");}
|
||
15 years ago
|
virtual ~CTW(){;}
|
||
|
KDockWidget *parentDockWidget(){return ((KDockWidget*)parent());}
|
||
15 years ago
|
void insertWidget (KDockWidget *w, TQPixmap, const TQString &, int &){qDebug("widget inserted"); insertTab(w,"NO");}
|
||
|
void setToolTip (KDockWidget *, TQString &){qDebug("Tooltip set");}
|
||
15 years ago
|
};
|
||
|
|
||
|
|
||
|
#endif
|
||
|
|
||
|
|