#define INADDR_NONE -1
#endif
-#ifndef ENODATA /* not defined on BSD systems */
-#define ENODATA EPIPE
-#endif
-
#ifdef HAVE_WIN32
#define socketRead(fd, buf, len) recv(fd, buf, len, 0)
#define socketWrite(fd, buf, len) send(fd, buf, len, 0)
#include "jcr.h"
#include <netdb.h>
+#ifndef ENODATA /* not defined on BSD systems */
+#define ENODATA EPIPE
+#endif
+
#ifdef HAVE_WIN32
#define socketRead(fd, buf, len) ::recv(fd, buf, len, 0)
#define socketWrite(fd, buf, len) ::send(fd, buf, len, 0)
/*
* Version $Id: batstack.cpp 4230 2007-02-21 20:07:37Z kerns $
*
- * Kern Sibbald, January 2007
+ * Dirk Bartley, March 2007
*/
#include "batstack.h"
void BatStack::AddTostack()
{
/* These two lines are for making sure if it is being changed from a window
- * That it has the proper window flag and parent. */
+ * that it has the proper window flag and parent.
+ */
setWindowFlags(Qt::Widget);
setParent(m_parent);
+
/* This was being done already */
m_parent->addWidget(this);
+
/* Set stacked flag */
m_stacked=true;
}
}
}
-/* needed this so that the console class could set m_treeItem */
-//void BatStack::SetBSTreeWidgetItem(QTreeWidgetItem *treeItem)
-//{
-// m_treeItem=treeItem;
-//}
bool BatStack::isStacked()
{
return m_stacked;
}
-void BatStack::closeEvent(QCloseEvent* event){
- /* Avoid a warning */
- event->type();
+void BatStack::closeEvent(QCloseEvent* /*event*/)
+{
/* A Widget was closed, lets toggle it back into the window, and set it in front. */
AddTostack();
- /* FIXME Really having problems getting it to the front, toggles back into the stack fine though */
- /*int stackindex=m_parent->indexOf( this );
+
+#ifdef xxx
+ /* FIXME Really having problems getting it to the front,
+ toggles back into the stack fine though */
+ int stackindex=m_parent->indexOf( this );
if( stackindex >= 0 ){
show();
m_parent->setCurrentIndex(stackindex);
- }*/
-}
-
-void BatStack::PgSeltreeWidgetClicked(){
+ }
+#endif
}
-void BatStack::PgSeltreeWidgetDoubleClicked(){
-}
void BatStack::SetPassedValues(QStackedWidget* passedStackedWidget, QTreeWidgetItem* passedTreeItem, int indexseq )
{
/*
* Version $Id: batstack.h 4230 2007-02-21 20:07:37Z kerns $
*
- * Kern Sibbald, January 2007
+ * Dirk Bartley, March 2007
*/
#include <QtGui>
void AddTostack();
void RemoveFromstack();
void Togglestack();
- //void SetBSTreeWidgetItem(QTreeWidgetItem *treeItem);
bool isStacked();
QStackedWidget *m_parent;
QTreeWidgetItem *m_treeItem;
- virtual void PgSeltreeWidgetClicked();
- virtual void PgSeltreeWidgetDoubleClicked();
void SetPassedValues(QStackedWidget*, QTreeWidgetItem*, int );
public slots:
if( stackindex >= 0 ){
stackedWidget->setCurrentIndex(stackindex);
}
- /* run the virtual function in case this class overrides it */
- m_bstacklist[treeindex]->PgSeltreeWidgetClicked();
}
/*
/* Just pull it back in without prompting */
m_bstacklist[treeindex]->Togglestack();
}
- /* Here is the virtual function so that different classes can do different things */
- m_bstacklist[treeindex]->PgSeltreeWidgetDoubleClicked();
}
void MainWin::labelDialogClicked()
General:
27Mar07
+kes Add context menu for floating a window.
+kes Some minor cleanup and name changes in qt-console
+kes Add doing mt setblk 0 in Win32 mtx-changer.
+kes Apply Martin's bug fix to move definition of ENODATA for
+ FreeBSD to bsock.c
ebl Add a BUSY handler to sqlite to be able to use multi_db = 1 with
sqlite2 and sqlite3.
26Mar07