- $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.
+<<<<<<< ChangeLog
+$Log$
+Revision 1.17 2000/01/26 18:42:24 smw
+Fixed enter so it's stable again.
+Made minor tweaks for compatibility between wxGTK and wxMSW
+Fixed roomview so that 'skip' shows up again in button bar
+Still working on windoze images. They're only showing half-height.
+Fixed wholist so that it fires up maximized. Fixed the button problems
+in 'wholist' under wxMSW.
+REfixed roomtree.cpp so that under wxMSW it is clickable again.
+Certain things here are for tests. DoChat was one of them. This is not
+yet a release version of the software, LS, so please don't give me crap
+about things I'm testing.
+
+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.
+=======
+$Log$
+Revision 1.17 2000/01/26 18:42:24 smw
+Fixed enter so it's stable again.
+Made minor tweaks for compatibility between wxGTK and wxMSW
+Fixed roomview so that 'skip' shows up again in button bar
+Still working on windoze images. They're only showing half-height.
+Fixed wholist so that it fires up maximized. Fixed the button problems
+in 'wholist' under wxMSW.
+REfixed roomtree.cpp so that under wxMSW it is clickable again.
+Certain things here are for tests. DoChat was one of them. This is not
+yet a release version of the software, LS, so please don't give me crap
+about things I'm testing.
+
+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.
+>>>>>>> 1.16
Revision 1.14 2000/01/08 20:06:38 smw
Added hosts.cpp (for user configurable bbs additions to bbslist)
CurrentRoom = "";
#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)";
+ sendcmd = "IDEN 0|6|001|Daphne (M$ Windows)";
#endif
+
+#ifdef __WXGTK__
+ sendcmd = "IDEN 0|6|001|Daphne (Unix-GTK)";
+#endif
+
+#ifdef __WXMOTIF__
+ sendcmd = "IDEN 0|6|001|Daphne (Unix-Motif)";
+
+#endif
+
+
serv_trans(sendcmd);
sendcmd = "INFO";
// There may also be the opportunity to present a recipient.
// FIX ... disable this if we're not in a mail room
- // Fixed, smw - 12/14/99
-
- if (roomname == "Mail") {
- wxStaticText *tolabel = new wxStaticText(this, -1, "To: ");
+ wxStaticText *tolabel = new wxStaticText(this, -1, "To: ");
wxLayoutConstraints *c8 = new wxLayoutConstraints;
c8->centreY.SameAs(fromname, wxCentreY);
c8->height.AsIs();
tolabel->SetConstraints(c8);
- toname = new wxTextCtrl(this, -1, "",
+ toname = new wxTextCtrl(this, -1, "",
wxDefaultPosition, wxSize(150,25));
wxLayoutConstraints *c9 = new wxLayoutConstraints;
d1->height.AsIs();
findrecp->SetConstraints(d1);
-}
// The main portion of this screen is a text entry box.
private:
wxTreeItemId GetNextRoomId(void);
void InitTreeIcons(void);
- void OnDoubleClick(wxTreeEvent& evt);
+ void OnLeftClick(wxTreeEvent& evt);
+ void OnDoubleClick(wxTreeEvent& evt);
CitClient *citsock;
wxMDIParentFrame *citMyMDI;
wxTreeItemId floorboards[MAXFLOORS];
OBJECTS = $(MY_OBJECTS)
-include $(WXDIR)/src/makeprog.g95
\ No newline at end of file
+WXDIR = /wx2
+include $(WXDIR)/src/makeprog.g95
ROOMTREE_CTRL
};
+#ifdef __WXMSW__
BEGIN_EVENT_TABLE(RoomTree, wxTreeCtrl)
- EVT_TREE_ITEM_ACTIVATED(ROOMTREE_CTRL, RoomTree::OnDoubleClick)
+ EVT_LEFT_DCLICK(RoomTree::OnLeftClick)
END_EVENT_TABLE()
+#else
+
+BEGIN_EVENT_TABLE(RoomTree, wxTreeCtrl)
+ EVT_TREE_ITEM_ACTIVATED(ROOMTREE_CTRL, RoomTree::OnDoubleClick)
+END_EVENT_TABLE()
+
+#endif
RoomTree::RoomTree(wxMDIParentFrame *parent, CitClient *sock)
-
+#ifdef __WXMSW__
+void RoomTree::OnLeftClick(wxTreeEvent& evt) {
+#else
void RoomTree::OnDoubleClick(wxTreeEvent& evt) {
+#endif
wxTreeItemId itemId;
int i;
RoomItem *r;
// Ok, it's a leaf node...
r = (RoomItem *)GetItemData(itemId);
- switch (r->NodeType) {
+ evt.Skip();
+ switch (r->NodeType) {
case RI_ROOM:
new RoomView(citsock, citMyMDI, r->RoomName);
" Read all ",
wxDefaultPosition);
- wxLayoutConstraints *c3 = new wxLayoutConstraints;
- c3->top.SameAs(goto_button, wxTop);
- c3->bottom.SameAs(goto_button, wxBottom);
- c3->width.AsIs();
- c3->right.LeftOf(goto_button, 3);
- readall_button->SetConstraints(c3);
+ wxLayoutConstraints *c2 = new wxLayoutConstraints;
+ c2->top.SameAs(skip_button, wxTop);
+ c2->bottom.SameAs(skip_button, wxBottom);
+ c2->width.AsIs();
+ c2->right.LeftOf(skip_button, 3);
+ readall_button->SetConstraints(c2);
wxButton *enter_button = new wxButton(
this,
wxLayoutConstraints *c1 = new wxLayoutConstraints;
c1->top.SameAs(this, wxTop, 10); // 10 from the top
- c1->bottom.SameAs(this, wxBottom, 10);
- c1->left.SameAs(this, wxLeft, 10);
+#ifdef __WXMSW__
+ c1->bottom.SameAs(this, wxBottom, 40);
+#endif
+#ifdef __WXGTK__
+ c1->bottom.SameAs(this, wxBottom, 10);
+#endif
+ c1->left.SameAs(this, wxLeft, 10);
c1->right.SameAs(this, wxRight, 10);
wholist->SetConstraints(c1);
refresh_button->SetConstraints(b2);
SetAutoLayout(TRUE);
+ Maximize(TRUE);
Show(TRUE);
LoadWholist();
Layout();