Started adding support for adding your own list of BBSes to choose from.
$Log$
- Revision 1.12 1999/12/15 03:01:07 smw
- Changed 'enter' so that it ONLY asks for a recipient when in mail.
- Changed goto so that it no longer deletes the message window when clicked
- on. This results in a potential infinitate number of room menus, which
- I'll fix when I have time. This was the ONLY instability. Previously
- clicking on goto (in the menu, the arrow button OR the 'goto' button) more
- than once would cause the program to crash. That's no longer the case.
- The *ix version is now stable.
+ Revision 1.13 2000/01/08 20:02:43 smw
+ Restabilized 'goto'.
+ Started adding support for adding your own list of BBSes to choose from.
- Fixed various problems in the MSW version, which will be released only in
- executable form when stabilized.
+Revision 1.12 1999/12/15 03:01:07 smw
+Changed 'enter' so that it ONLY asks for a recipient when in mail.
+Changed goto so that it no longer deletes the message window when clicked
+on. This results in a potential infinitate number of room menus, which
+I'll fix when I have time. This was the ONLY instability. Previously
+clicking on goto (in the menu, the arrow button OR the 'goto' button) more
+than once would cause the program to crash. That's no longer the case.
+The *ix version is now stable.
+
+Fixed various problems in the MSW version, which will be released only in
+executable form when stabilized.
Revision 1.11 1999/11/15 05:22:11 smw
On disconnect, changed the SetStatusText() to "" for 1, and 2 to blank
daphne: main.o citclient.o userlogin.o testwindow.o who.o \
utils.o express_message.o send_express.o prefs.o \
- roomtree.o roomview.o message.o enter.o \
+ roomtree.o roomview.o message.o enter.o hosts.o \
selectuser.o servprops.o
c++ main.o citclient.o userlogin.o testwindow.o who.o \
utils.o express_message.o send_express.o prefs.o \
- roomtree.o roomview.o message.o enter.o \
+ roomtree.o roomview.o message.o enter.o hosts.o\
selectuser.o servprops.o\
$(LFLAGS) -o daphne
install:
install -m 755 daphne /usr/local/bin/./
- install bitmaps/*.xpm /usr/local/share/bitmaps
- install bitmaps/*.bmp /usr/local/share/bitmaps
+ install -c bitmaps/*.xpm /usr/local/share/bitmaps
+ install -c bitmaps/*.bmp /usr/local/share/bitmaps
clean:
rm -f *.o core daphne
+class Hosts : public wxMDIChildFrame {
+public:
+ Hosts( CitClient *sock,
+ wxMDIParentFrame *MyMDI);
+private:
+ void OnButtonPressed(wxCommandEvent& whichbutton);
+ CitClient *citsock;
+ wxMDIParentFrame *citMyMDI;
+ wxTextCtrl *server_host, *server_port;
+ wxCheckBox *server_autoconnect;
+ DECLARE_EVENT_TABLE()
+};
+
// Just testing...
class TestWindow : public wxMDIChildFrame {
public:
RoomTree *RoomList;
wxConfig *ini;
-
// ----------------------------------------------------------------------------
// private classes
// ----------------------------------------------------------------------------
MENU_CONNECT,
MENU_TESTWIN,
EMENU_PREFS,
+ EMENU_HOSTS,
UMENU_WHO,
UMENU_SEND_EXPRESS,
RMENU_GOTO,
EVT_MENU( IG_About, MyFrame::OnAbout)
EVT_MENU( MENU_CONNECT, MyFrame::OnConnect)
EVT_MENU( EMENU_PREFS, MyFrame::OnEditMenu)
+ EVT_MENU( EMENU_HOSTS, MyFrame::OnEditMenu)
EVT_MENU( GOTO_MAIL, MyFrame::OnGotoMail)
EVT_MENU( MENU_TESTWIN, MyFrame::OnTestWin)
EVT_MENU( UMENU_WHO, MyFrame::OnUsersMenu)
ini->Read("/Window Sizes/Main", &sizestr, "789 451");
sscanf((const char *)sizestr, "%d %d", &w, &h);
+
// Connect to the server
citadel = new CitClient();
wxMenu *menuEdit = new wxMenu;
menuEdit->Append(EMENU_PREFS, "&Preferences...");
-
+ menuEdit->Append(EMENU_HOSTS, "&BBSes to log into");
wxMenu *menuUsers = new wxMenu;
menuUsers->Append(UMENU_WHO, "&Who is online?");
menuUsers->Append(UMENU_SEND_EXPRESS, "&Page another user");
if (id == EMENU_PREFS) {
new Preferences(citadel, this);
}
+ else if (id == EMENU_HOSTS) {
+ new Hosts(citadel, this);
+ }
}
wxMessageBox("You are not connected to a BBS.");
return;
} else
+ delete this;
sendcmd = "SLRP HIGHEST"; // mark messages as read
citsock->serv_trans(sendcmd, recvcmd, xferbuf, ThisRoom);
new RoomView(citsock, citMyMDI, RoomList->GetNextRoom());
void RoomView::do_readloop(wxString readcmd) {
+
wxString sendcmd, recvcmd, buf, allmsgs;
wxString xferbuf;
int i, r, pos;
if (citadel->IsConnected()==FALSE) {
wxMessageBox("You have lost your connection.");
- } else
-
- if (message_window != NULL) {
- delete message_window;
- message_window = NULL;
- }
-
+ }
// Transmit the "read messages" command
sendcmd = readcmd;
citsock->NodeName);
allmsgs += message->msgtext;
- delete message;
-
allmsgs += "<HR>";
}
message_window->SetPage(allmsgs);
Layout();
+
}
sendcmd = "MESG hello";
if (citsock->serv_trans(sendcmd, recvcmd, xferbuf)==1) {
- variformat_to_html(buf, xferbuf, FALSE);
- buf = "<HTML><BODY><CENTER>"
- + buf + "</CENTER></BODY></HTML>\n";
- hello->SetPage(buf);
+ variformat_to_html(buf, xferbuf, FALSE);
+ buf = "<HTML><font size=-1><BODY>"
+ + buf + "</BODY></HTML></font>\n";
+ hello->SetPage(buf);
}
username->SetFocus();
citsock = sock;
- /*who_refresh *ref = new who_refresh(this);*/
+/* who_refresh *ref = new who_refresh(this);
+ if(!this) { delete this; } */
// set the frame icon
/* SetIcon(wxICON(mondrian)); */
-/*
-who_refresh::who_refresh(who *parent_who)
+
+/*who_refresh::who_refresh(who *parent_who)
: wxTimer() {
+ if(!this) {
if (citadel->IsConnected()==FALSE) {
- Stop();
+ Stop();
delete this;
- } else
+ } else
which_who = parent_who; // Know which instance to refresh
- Start(30000, FALSE); // Call every 30 seconds
-} */
+ Start(15000, FALSE); // Call every 30 seconds
+}
-/*void who_refresh::Notify(void) {
+void who_refresh::Notify(void) {
which_who->LoadWholist();
-} */
+}
+*/