diff examples/addressbook/AddressBook.d @ 82:9c2803aea121

Fix Addressbook example and HG ignores
author Frank Benoit <benoit@tionex.de>
date Mon, 12 May 2008 16:29:26 +0200
parents 8a1930f94cbb
children cfd5fa2ce475
line wrap: on
line diff
--- a/examples/addressbook/AddressBook.d	Sun May 11 21:38:15 2008 +0200
+++ b/examples/addressbook/AddressBook.d	Mon May 12 16:29:26 2008 +0200
@@ -45,6 +45,9 @@
 import examples.addressbook.DataEntryDialog;
 import examples.addressbook.FindListener;
 
+version(JIVE){
+    import jive.stacktrace;
+}
 void main() {
     Display display = new Display();
     auto application = new AddressBook();
@@ -108,7 +111,7 @@
 
     createMenuBar();
 
-    searchDialog = new SearchDialog(shell);
+    searchDialog = new SearchDialog(shell, resAddressBook );
     searchDialog.setSearchAreaNames(columnNames);
     searchDialog.setSearchAreaLabel(resAddressBook.getString("Column"));
     searchDialog.addFindListener(new class() FindListener {
@@ -204,7 +207,7 @@
     box.open();
 }
 private void editEntry(TableItem item) {
-    DataEntryDialog dialog = new DataEntryDialog(shell);
+    DataEntryDialog dialog = new DataEntryDialog(shell, resAddressBook );
     dialog.setLabels(columnNames);
     char[][] values = new char[][table.getColumnCount()];
     for (int i = 0; i < values.length; i++) {
@@ -283,7 +286,7 @@
     isModified = false;
 }
 private void newEntry() {
-    DataEntryDialog dialog = new DataEntryDialog(shell);
+    DataEntryDialog dialog = new DataEntryDialog(shell, resAddressBook);
     dialog.setLabels(columnNames);
     char[][] data = dialog.open();
     if (data !is null) {