[dasher] MacOSX: Activate the "Import Training Text" command (on file menu).
- From: Patrick Welche <pwelche src gnome org>
- To: svn-commits-list gnome org
- Subject: [dasher] MacOSX: Activate the "Import Training Text" command (on file menu).
- Date: Wed, 1 Jul 2009 15:18:01 +0000 (UTC)
commit 4d47ab831d9ba5bcbf73a4f09295125e41d55232
Author: Alan Lawrence <acl33 inf phy cam ac uk>
Date: Wed Jul 1 16:12:14 2009 +0100
MacOSX: Activate the "Import Training Text" command (on file menu).
ChangeLog | 5 +++++
Src/MacOSX/COSXDasherControl.mm | 3 +--
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 90c3abd..e1a9c92 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-07-01 Alan Lawrence <acl33 inf phy cam ac uk>
+
+ * Fix MacOSX project and add .gitignore for build / user files.
+ * MacOSX: Activate the "Import Training Text" command (on file menu).
+
2009-06-18 Will Zou <zouyouzhi gmail com>
* Chinese dasher:
diff --git a/Src/MacOSX/COSXDasherControl.mm b/Src/MacOSX/COSXDasherControl.mm
index 3b29147..f16453b 100644
--- a/Src/MacOSX/COSXDasherControl.mm
+++ b/Src/MacOSX/COSXDasherControl.mm
@@ -226,8 +226,7 @@ int COSXDasherControl::GetFileSize(const std::string &strFileName) {
void COSXDasherControl::Train(NSString *fileName) {
std::string f = StdStringFromNSString(fileName);
NSLog(@"Read train file: %s", f.c_str());
- NSLog(@"method disappeared!! doing nuffink");
-// CDasherInterfaceBase::TrainFile(f, GetFileSize(f), 0);
+ CDasherInterfaceBase::ImportTrainingText(f);
}
void COSXDasherControl::WriteTrainFile(const std::string &strNewText) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]