]> code.citadel.org Git - citadel.git/commitdiff
Changed the left pane to a tree control in preparation for making it an
authorArt Cancro <ajc@citadel.org>
Sun, 14 Mar 1999 19:00:25 +0000 (19:00 +0000)
committerArt Cancro <ajc@citadel.org>
Sun, 14 Mar 1999 19:00:25 +0000 (19:00 +0000)
actual room list.

daphne/main.cpp

index 5899bcc2e95e0680b747816f7067d529e4874380..5797d530e80aefbd9929fd5ace6ed426f2bae50f 100644 (file)
@@ -56,7 +56,7 @@ public:
 private:
        void OnUsersMenu(wxCommandEvent& cmd);
        void OnWindowMenu(wxCommandEvent& cmd);
-       wxTextCtrl *textWindow;
+       wxTreeCtrl *RoomList;
        wxButton *do_cmd;
        void InitToolBar(wxToolBar* toolBar);
 
@@ -167,17 +167,25 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
 
        // Set up the left-side thingie
 
-       textWindow = new wxTextCtrl(
-                       this, -1, "", wxDefaultPosition, wxDefaultSize,
-                       wxTE_MULTILINE|wxSUNKEN_BORDER);
-       textWindow->SetValue("Hic!  A maus!");
+       RoomList = new wxTreeCtrl(
+                       this, -1, 
+                       wxDefaultPosition, wxDefaultSize,
+                       wxTR_HAS_BUTTONS | wxSUNKEN_BORDER,
+                       wxDefaultValidator,
+                       "RoomList");
+
+       RoomList->AddRoot(
+               "Room List",
+               -1,
+               -1,
+               NULL);
 
         wxLayoutConstraints *t2 = new wxLayoutConstraints;
         t2->top.SameAs(this, wxTop, 4);
         t2->left.SameAs(this, wxLeft, 0);
        t2->right.PercentOf(this, wxWidth, 25);
         t2->bottom.SameAs(this, wxBottom, 0);
-        textWindow->SetConstraints(t2);
+        RoomList->SetConstraints(t2);
 
        wxLayoutConstraints *t3 = new wxLayoutConstraints;
        t3->top.SameAs(this, wxTop, 4);