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.
72 lines
2.0 KiB
72 lines
2.0 KiB
15 years ago
|
/***************************************************************************
|
||
|
mainwidget.h - description
|
||
|
-------------------
|
||
|
begin : Mon Nov 8 1999
|
||
|
copyright : (C) 1999 by Falk Brettschneider
|
||
13 years ago
|
email : falkbr@tdevelop.org
|
||
15 years ago
|
***************************************************************************/
|
||
|
|
||
|
/***************************************************************************
|
||
|
* *
|
||
|
* 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 MAINWIDGET_H
|
||
|
#define MAINWIDGET_H
|
||
|
|
||
14 years ago
|
#include <tqcheckbox.h>
|
||
13 years ago
|
#include <tqlayout.h>
|
||
14 years ago
|
#include <tqlabel.h>
|
||
|
#include <tqdom.h>
|
||
12 years ago
|
#include <tdemdimainfrm.h>
|
||
15 years ago
|
|
||
|
/**
|
||
|
*@author Falk Brettschneider
|
||
|
*/
|
||
|
class MainWidget : public KMdiMainFrm
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
14 years ago
|
MainWidget(TQDomElement& dockConfig,KMdi::MdiMode mode);
|
||
15 years ago
|
virtual ~MainWidget();
|
||
|
void initMenu();
|
||
|
|
||
|
protected: // Protected methods
|
||
14 years ago
|
virtual void resizeEvent( TQResizeEvent *pRSE);
|
||
15 years ago
|
private:
|
||
14 years ago
|
TQDomElement m_dockConfig;
|
||
15 years ago
|
};
|
||
|
|
||
|
|
||
|
|
||
|
/**
|
||
|
*@author Falk Brettschneider
|
||
|
* This allows me to test KMdiMainFrm::read/writeDockConfig by
|
||
|
* closing and restarting the MainWidget via checkbox click.
|
||
|
*/
|
||
|
class RestartWidget : public KMainWindow
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
// methods
|
||
|
public:
|
||
|
RestartWidget();
|
||
|
void setWindow(MainWidget *w);
|
||
|
|
||
|
private slots:
|
||
|
void onStateChanged(int on);
|
||
|
|
||
|
// attributes
|
||
|
public:
|
||
14 years ago
|
TQDomDocument domDoc;
|
||
|
TQDomElement dockConfig;
|
||
15 years ago
|
KMdi::MdiMode mdimode;
|
||
|
private:
|
||
|
MainWidget *m_w;
|
||
|
};
|
||
|
|
||
|
#endif
|