This commit is contained in:
Tristan B. Kildaire 2020-10-23 22:04:22 +02:00
parent e49824b58b
commit 9561e1cbb7
1 changed files with 35 additions and 0 deletions

35
source/UserDirectory.d Normal file
View File

@ -0,0 +1,35 @@
module UserDirectory;
import Connection;
import gtk.SearchBar;
import gtk.Entry;
import gtk.Window;
public final class UserDirectory
{
/* The associated connection */
private Connection connection;
this(Connection connection)
{
this.connection = connection;
initWindow();
}
private void initWindow()
{
Window userWindow = new Window(GtkWindowType.TOPLEVEL);
userWindow.setTitle("User directory");
SearchBar searchBar = new SearchBar();
Entry searchEntry = new Entry();
searchEntry.setText("fsdhjsdfhjkdsfhjksdfhjk");
// searchBar.handleEvent()
searchBar.connectEntry(searchEntry);
userWindow.add(searchBar);
userWindow.showAll();
}
}