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.

84 lines
1.6 KiB

//Author: Timothy Pearson <kb9vqf@pearsoncomputing.net>, (C) 2012
//Copyright: See COPYING file that comes with this distribution
#ifndef _REMOTEMDI_H_
#define _REMOTEMDI_H_
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <tqvaluelist.h>
#include <kmdimainfrm.h>
#include "lib/tdekrbsocket.h"
class KMdiChildView;
class KListBox;
class TQListBoxItem;
class KToggleAction;
/**
* @short Remote Laboratory Main Window
* @author Timothy Pearson <kb9vqf@pearsoncomputing.net>
* @version 0.1
*/
class RemoteMDI : public KMdiMainFrm
{
Q_OBJECT
public:
/**
* Default Constructor
*/
RemoteMDI();
/**
* Default Destructor
*/
virtual ~RemoteMDI();
void setServerHost(TQString server);
public slots:
virtual void childWindowCloseRequest(KMdiChildView *pWnd);
void processCloseList();
protected slots:
void openNewWindow(KMdiChildView *view=0);
void currentChanged(KMdiChildView *current);
void closeCurrent();
void listBoxExecuted(TQListBoxItem *);
void listBoxRightClicked(TQListBoxItem *);
void childClosed(KMdiChildView *w);
private slots:
void configToolbars();
void configKeys();
void connectToServer();
void disconnectFromServer();
void connectionClosedHandler();
void processLockouts();
void startSpectrumAnalyzer();
protected:
virtual bool queryClose();
unsigned m_children;
TQString m_serverHost;
TQValueList<KMdiChildView*> m_window;
TQValueList<KMdiChildView*> m_closelist;
KListBox *m_listBox;
TDEKerberosClientSocket* m_rsvSvrSocket;
private:
KAction *connect_action;
KAction *disconnect_action;
KAction *inst_sa_menu;
};
#endif // _REMOTEMDI_H_