$Log$
+ Revision 1.16 2000/01/11 22:51:42 nbryant
+ * citclient.cpp: different IDEN string depending on __WXMSW__ etc.
+ macros
+ * hosts.cpp, prefs.cpp: pass FALSE to ini->Flush() as this is supposed
+ to be the default but WX headers appear to lack the default on
+ Windows
+ * includes.hpp: renamed class DoChat to class ChatWindow -- WTF was it
+ named like this?
+ * main.cpp: load bitmaps from resouces if __WXMSW__ is defined
+ * makefile.g95: add hosts.o
+ * daphne.rc: new file; Windows resource definitions. right now just
+ contains the bitmaps
+
Revision 1.15 2000/01/08 20:25:21 smw
Fixed a condition in goto where the message window would eat itself
prior to importing the messages, forcing daphne to crash.
Revision 1.1 1999/11/07 17:56:38 ajc
* Began the ChangeLog for this project.
-
+// $Id$
+
#include "includes.hpp"
#include <wx/protocol/protocol.h>
CurrentRoom = "";
- sendcmd = "IDEN 0|6|001|Daphne";
+#ifdef __WXMSW__
+ sendcmd = "IDEN 0|6|001|Daphne (Windows)";
+#elif defined(__WXGTK__)
+ sendcmd - "IDEN 0|6|001|Daphne (GTK)";
+#elif defined(__WXMOTIF__)
+ sendcmd = "IDEN 0|6|001|Daphne (Motif)";
+#else
+ sendcmd = "IDEN 0|6|001|Daphne (Unknown window system)";
+#endif
serv_trans(sendcmd);
sendcmd = "INFO";
--- /dev/null
+// $Id$
+
+chat BITMAP "bitmaps/chat.bmp"
+floor BITMAP "bitmaps/floor.bmp"
+globe BITMAP "bitmaps/globe.bmp"
+goto BITMAP "bitmaps/goto.bmp"
+mail BITMAP "bitmaps/mail.bmp"
+mailroom BITMAP "bitmaps/mailroom.bmp"
+newroom BITMAP "bitmaps/newroom.bmp"
+oldroom BITMAP "bitmaps/oldroom.bmp"
+root BITMAP "bitmaps/root.bmp"
+who BITMAP "bitmaps/who.bmp"
+xglobe BITMAP "bitmaps/xglobe.bmp"
+
+#include "wx/msw/wx.rc"
+
+// $Id$
+
// =========================================================================
// declarations
// =========================================================================
ini->Write("/BBSList/Host", server_host->GetValue());
ini->Write("/BBSList/Port", server_port->GetValue());
- ini->Flush();
+ ini->Flush(FALSE);
}
}
+// $Id$
+
#include <wx/wx.h> // General-purpose wxWin header
#include <wx/listctrl.h>
#include <wx/socket.h> // TCP socket client
};
// Just testing...
-class DoChat : public wxMDIChildFrame {
+class ChatWindow : public wxMDIChildFrame {
public:
ChatWindow(CitClient *sock, wxMDIParentFrame *MyMDI);
private:
/////////////////////////////////////////////////////////////////////////////
// Name: main.cpp
// Purpose: Main screen type thing
+// Version: $Id$
/////////////////////////////////////////////////////////////////////////////
// ============================================================================
#endif
// Set up the toolbar icons (BMP is available on both GTK and MSW)
-#ifndef __WXMOTIF__
+#ifdef __WXMSW__
+ bitmaps[0] = new wxBitmap("globe", wxBITMAP_TYPE_BMP_RESOURCE);
+ bitmaps[1] = new wxBitmap("mail", wxBITMAP_TYPE_BMP_RESOURCE);
+ bitmaps[2] = new wxBitmap("who", wxBITMAP_TYPE_BMP_RESOURCE);
+ bitmaps[3] = new wxBitmap("chat", wxBITMAP_TYPE_BMP_RESOURCE);
+ bitmaps[4] = new wxBitmap("xglobe", wxBITMAP_TYPE_BMP_RESOURCE);
+ bitmaps[5] = new wxBitmap("goto", wxBITMAP_TYPE_BMP_RESOURCE);
+#elif !defined(__WXMOTIF__)
bitmaps[0] = new wxBitmap("/usr/local/share/bitmaps/globe.bmp", wxBITMAP_TYPE_BMP);
bitmaps[1] = new wxBitmap("/usr/local/share/bitmaps/mail.bmp", wxBITMAP_TYPE_BMP);
bitmaps[2] = new wxBitmap("/usr/local/share/bitmaps/who.bmp", wxBITMAP_TYPE_BMP);
MY_OBJECTS = citclient.o enter.o express_message.o main.o message.o \
prefs.o roomtree.o roomview.o selectuser.o send_express.o \
- servprops.o testwindow.o userlogin.o \
+ servprops.o testwindow.o userlogin.o hosts.o \
utils.o who.o
OBJECTS = $(MY_OBJECTS)
+// $Id$
+
// =========================================================================
// declarations
// =========================================================================
ini->Write("/Citadel Server/ConnectOnStartup",
((server_autoconnect->GetValue()==TRUE)
? wxString("yes") : wxString("no")));
- ini->Flush();
+ ini->Flush(FALSE);
delete this;
}
}