igarden-commit Mailing List for GardenSketch (Page 7)
Status: Beta
Brought to you by:
jlbedell
You can subscribe to this list here.
| 2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(24) |
Nov
(77) |
Dec
(122) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2007 |
Jan
(103) |
Feb
(278) |
Mar
(130) |
Apr
(66) |
May
(56) |
Jun
(31) |
Jul
(94) |
Aug
(73) |
Sep
(22) |
Oct
(306) |
Nov
(52) |
Dec
|
| 2008 |
Jan
(27) |
Feb
(90) |
Mar
(218) |
Apr
(145) |
May
(114) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Jeffrey B. <jlb...@us...> - 2008-04-12 21:24:13
|
Update of /cvsroot/igarden/CommonSource/YAAFExtensions In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv6529/YAAFExtensions Modified Files: Tag: Release_branch_v1 PictureSelectDialog.h PictureSelectDialog.cpp Log Message: Lock picture metadata fields for pictures loaded by the application (ex: from a web site) Index: PictureSelectDialog.cpp =================================================================== RCS file: /cvsroot/igarden/CommonSource/YAAFExtensions/PictureSelectDialog.cpp,v retrieving revision 1.13.2.8 retrieving revision 1.13.2.9 diff -C2 -d -r1.13.2.8 -r1.13.2.9 *** PictureSelectDialog.cpp 12 Apr 2008 19:02:16 -0000 1.13.2.8 --- PictureSelectDialog.cpp 12 Apr 2008 21:24:14 -0000 1.13.2.9 *************** *** 74,77 **** --- 74,78 ---- _pasted = false; _writable = true; + _metadataLocked = false; } *************** *** 174,179 **** long result = -1; long newSelect; - String titleStr; - RGHypertextView *mainTitleView; if(_writable) --- 175,178 ---- *************** *** 183,191 **** newSelect = strtol(src+strlen(kPictureSelectTag), &next, 10); SetDefaultPictureToIndexed(newSelect); - GetDefaultPicture(titleStr); - - mainTitleView = dynamic_cast<RGHypertextView*>(_dlog->FindViewByID(kPictureSelectMainTitle)); - AssertValidView(mainTitleView); - mainTitleView->SetText(titleStr.c_str()); LoadCurrentPictureProperties(); } --- 182,185 ---- *************** *** 263,269 **** RGBColor bg; String titleStr; - RGHypertextView *mainTitleView; _imagePane = dynamic_cast<CQTImagePane*>(dlog->FindViewByID(kPictureSelectMainPicture)); //new CQTImagePane(NULL, viewInit, kQTPaneDefaults); _imagePane->ScaleToFit(true); bg.red = 0; --- 257,264 ---- RGBColor bg; String titleStr; + _dlog = dlog; _imagePane = dynamic_cast<CQTImagePane*>(dlog->FindViewByID(kPictureSelectMainPicture)); //new CQTImagePane(NULL, viewInit, kQTPaneDefaults); + AssertValidView(_imagePane); _imagePane->ScaleToFit(true); bg.red = 0; *************** *** 274,277 **** --- 269,273 ---- picture = GetDefaultPicture(titleStr); + LoadCurrentPictureProperties(); if(picture != NULL) _imagePane->SetSourceCGWorld(picture); *************** *** 281,289 **** ! mainTitleView = dynamic_cast<RGHypertextView*>(dlog->FindViewByID(kPictureSelectMainTitle)); ! AssertValidView(mainTitleView); ! mainTitleView->SetText(titleStr.c_str()); - _dlog = dlog; RebuildBottomPane(); --- 277,282 ---- ! UpdateTitle(); RebuildBottomPane(); *************** *** 311,315 **** RebuildSupplierMenu(); - LoadCurrentPictureProperties(); HidePanel(); --- 304,307 ---- *************** *** 403,415 **** void PictureSelectDialog::PopupValue(XGDialog *dlog, long /*viewID*/) { - - String titleStr; - RGHypertextView *mainTitleView; - SaveCurrentPictureProperties(); ! GetDefaultPicture(titleStr); ! mainTitleView = dynamic_cast<RGHypertextView*>(dlog->FindViewByID(kPictureSelectMainTitle)); ! AssertValidView(mainTitleView); ! mainTitleView->SetText(titleStr.c_str()); RebuildBottomPane(); } --- 395,400 ---- void PictureSelectDialog::PopupValue(XGDialog *dlog, long /*viewID*/) { SaveCurrentPictureProperties(); ! UpdateTitle(); RebuildBottomPane(); } *************** *** 421,432 **** long PictureSelectDialog::EditChanged(XGDialog *dlog, long /*gadgetID*/) { - String titleStr; - RGHypertextView *mainTitleView; - SaveCurrentPictureProperties(); ! GetDefaultPicture(titleStr); ! mainTitleView = dynamic_cast<RGHypertextView*>(dlog->FindViewByID(kPictureSelectMainTitle)); ! AssertValidView(mainTitleView); ! mainTitleView->SetText(titleStr.c_str()); RebuildBottomPane(); --- 406,411 ---- long PictureSelectDialog::EditChanged(XGDialog *dlog, long /*gadgetID*/) { SaveCurrentPictureProperties(); ! UpdateTitle(); RebuildBottomPane(); *************** *** 461,471 **** XGEditText *textCtl; - RGHypertextView *titleCtl; RGBorderlessIcon*triangle = dynamic_cast<RGBorderlessIcon*>(_dlog->FindViewByID(kPictureDisclosureIcon)); ShowPanel(); - titleCtl = dynamic_cast<RGHypertextView*>(_dlog->FindViewByID(kPictureSelectMainTitle)); - AssertValidView(titleCtl); - titleCtl->SetText(""); textCtl = dynamic_cast<XGEditText*>(_dlog->FindViewByID(kPictureCopyright)); --- 440,447 ---- XGEditText *textCtl; RGBorderlessIcon*triangle = dynamic_cast<RGBorderlessIcon*>(_dlog->FindViewByID(kPictureDisclosureIcon)); + AssertValidView(triangle); ShowPanel(); textCtl = dynamic_cast<XGEditText*>(_dlog->FindViewByID(kPictureCopyright)); *************** *** 477,480 **** --- 453,459 ---- triangle->ShowView(); + SaveCurrentPictureProperties(); + UpdateTitle(); + _pasted = true; *************** *** 507,510 **** --- 486,490 ---- String choiceName; + AssertValidView(pop); pop->DeleteAll(); pop->Append(stx("(None)")); *************** *** 528,531 **** --- 508,513 ---- { XGPopControl *pop = dynamic_cast<XGPopControl*>(_dlog->FindViewByID(kPictureSupplier)); + + AssertValidView(pop); long curIndex = pop->GetValue()-2; if(curIndex != index) *************** *** 542,545 **** --- 524,529 ---- RGBorderlessIcon *triangle = dynamic_cast<RGBorderlessIcon*>(_dlog->FindViewByID(kPictureDisclosureIcon)); + AssertValidView(expansion); + AssertValidView(triangle); SetGadgetState(kPictureCopyright, false); SetGadgetState(kPictureCommon, false); *************** *** 560,563 **** --- 544,549 ---- RGBorderlessIcon *triangle = dynamic_cast<RGBorderlessIcon*>(_dlog->FindViewByID(kPictureDisclosureIcon)); + AssertValidView(expansion); + AssertValidView(triangle); SetGadgetState(kPictureCopyright, true); SetGadgetState(kPictureCommon, true); *************** *** 587,598 **** --- 573,587 ---- { textCtl = dynamic_cast<XGEditText*>(_dlog->FindViewByID(kPictureCopyright)); + AssertValidView(textCtl); textCtl->GetTitle(textBuf); copyright = textBuf; textCtl = dynamic_cast<XGEditText*>(_dlog->FindViewByID(kPictureCommon)); + AssertValidView(textCtl); textCtl->GetTitle(textBuf); title = textBuf; textCtl = dynamic_cast<XGEditText*>(_dlog->FindViewByID(kPictureCreator)); + AssertValidView(textCtl); textCtl->GetTitle(textBuf); author = textBuf; *************** *** 601,604 **** --- 590,594 ---- long index; + AssertValidView(popCtl); index = popCtl->GetValue(); if(index < 2) *************** *** 626,629 **** --- 616,620 ---- { XGEditText *textCtl; + RGDisclosureView *expansion = dynamic_cast<RGDisclosureView*>(_dlog->FindViewByID(kPictureDisclosurePane)); long locationChoice; String title, copyright, creator; *************** *** 632,642 **** --- 623,644 ---- textCtl = dynamic_cast<XGEditText*>(_dlog->FindViewByID(kPictureCopyright)); + AssertValidView(textCtl); textCtl->SetTitle(copyright.c_str()); textCtl = dynamic_cast<XGEditText*>(_dlog->FindViewByID(kPictureCommon)); + AssertValidView(textCtl); textCtl->SetTitle(title.c_str()); textCtl = dynamic_cast<XGEditText*>(_dlog->FindViewByID(kPictureCreator)); + AssertValidView(textCtl); textCtl->SetTitle(creator.c_str()); + _metadataLocked = IsMetadataLocked(); + + bool visible = expansion->IsShown(); + SetGadgetState(kPictureCopyright, visible); + SetGadgetState(kPictureCommon, visible); + SetGadgetState(kPictureCreator, visible); + SetLocationMenuToMatch(locationChoice); + UpdateTitle(); } *************** *** 648,652 **** { view->ShowView(); ! if(_writable) view->EnableView(); else --- 650,654 ---- { view->ShowView(); ! if(_writable && !_metadataLocked) view->EnableView(); else *************** *** 657,658 **** --- 659,670 ---- } + void PictureSelectDialog::UpdateTitle() + { + RGHypertextView *mainTitleView; + String titleStr; + GetDefaultPicture(titleStr); + + mainTitleView = dynamic_cast<RGHypertextView*>(_dlog->FindViewByID(kPictureSelectMainTitle)); + AssertValidView(mainTitleView); + mainTitleView->SetText(titleStr.c_str()); + } Index: PictureSelectDialog.h =================================================================== RCS file: /cvsroot/igarden/CommonSource/YAAFExtensions/PictureSelectDialog.h,v retrieving revision 1.9.2.2 retrieving revision 1.9.2.3 diff -C2 -d -r1.9.2.2 -r1.9.2.3 *** PictureSelectDialog.h 12 Apr 2008 19:02:16 -0000 1.9.2.2 --- PictureSelectDialog.h 12 Apr 2008 21:24:13 -0000 1.9.2.3 *************** *** 62,65 **** --- 62,66 ---- virtual void GetDefaultPictureProperties(String &title, String ©right, String &creator, long &locationChoice) = 0; virtual long CreateLocationChoice() = 0; + virtual bool IsMetadataLocked() = 0; virtual long NumLocationChoices(); virtual void GetIndexedLocationChoiceName(long index, String &name); *************** *** 73,83 **** void SetLocationMenuToMatch(long index); void SetReadOnly(bool readOnly); ! ! private: ! static dialogCBResult_t Eventhandler(XGDialog *d, class RGDialog *rgd,long msg,long arg,void *parg, void *callbackContext); void SaveCurrentPictureProperties(); void LoadCurrentPictureProperties(); void SetGadgetState(long id, bool visible); XGDialog *_dlog; CQTImagePane *_imagePane; --- 74,85 ---- void SetLocationMenuToMatch(long index); void SetReadOnly(bool readOnly); ! void UpdateTitle(); void SaveCurrentPictureProperties(); void LoadCurrentPictureProperties(); void SetGadgetState(long id, bool visible); + private: + static dialogCBResult_t Eventhandler(XGDialog *d, class RGDialog *rgd,long msg,long arg,void *parg, void *callbackContext); + XGDialog *_dlog; CQTImagePane *_imagePane; *************** *** 86,89 **** --- 88,92 ---- bool _pasted; bool _writable; + bool _metadataLocked; }; |
|
From: Jeffrey B. <jlb...@us...> - 2008-04-12 19:05:36
|
Update of /cvsroot/igarden/Garden/source/resources In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv22927/source/resources Modified Files: Tag: Release_branch_v1 Garden.rc Garden.cin Garden.rdata Garden.r Log Message: Load up metadata fields in picture select dialog. Add "created by" metadata field. Index: Garden.rc =================================================================== RCS file: /cvsroot/igarden/Garden/source/resources/Garden.rc,v retrieving revision 1.4.2.19 retrieving revision 1.4.2.20 diff -C2 -d -r1.4.2.19 -r1.4.2.20 *** Garden.rc 6 Apr 2008 04:02:42 -0000 1.4.2.19 --- Garden.rc 12 Apr 2008 19:05:31 -0000 1.4.2.20 *************** *** 4930,4941 **** 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ 0x0000, 0x0000, 0x1301, 0x0000, /* ........ */ ! 0xE801, 0x0000, 0xE001, 0x0000, /* ........ */ ! 0xE801, 0x0000, 0xE001, 0x0000, /* ........ */ ! 0xE801, 0x0000, 0x0000, 0x0000, /* ........ */ 0x0000, 0x5011, 0x6369, 0x7574, /* ...Pictu */ 0x6572, 0x5320, 0x6C65, 0x6365, /* re Selec */ 0x6974, 0x6E6F, 0x0000, 0x0000, /* tion.... */ 0x0000, 0x0100, 0x0000, 0x0200, /* ........ */ ! 0x0000, 0xCE02, 0x0000, 0x3A00, /* .......: */ 0x0000, 0x2A00, 0x6944, 0x6373, /* ...*Disc */ 0x0000, 0x0800, 0x0000, 0x0000, /* ........ */ --- 4930,4941 ---- 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ 0x0000, 0x0000, 0x1301, 0x0000, /* ........ */ ! 0xFE01, 0x0000, 0xE001, 0x0000, /* ........ */ ! 0xFE01, 0x0000, 0xE001, 0x0000, /* ........ */ ! 0xFE01, 0x0000, 0x0000, 0x0000, /* ........ */ 0x0000, 0x5011, 0x6369, 0x7574, /* ...Pictu */ 0x6572, 0x5320, 0x6C65, 0x6365, /* re Selec */ 0x6974, 0x6E6F, 0x0000, 0x0000, /* tion.... */ 0x0000, 0x0100, 0x0000, 0x0200, /* ........ */ ! 0x0000, 0xD002, 0x0000, 0x3A00, /* .......: */ 0x0000, 0x2A00, 0x6944, 0x6373, /* ...*Disc */ 0x0000, 0x0800, 0x0000, 0x0000, /* ........ */ *************** *** 4956,4961 **** 0x0000, 0x0000, 0xFFFF, 0xFFFF, /* ........ */ 0x0000, 0x0000, 0x0000, 0x1400, /* ........ */ ! 0x0000, 0x3401, 0x0000, 0xB400, /* ...4.... */ ! 0x0000, 0x5C01, 0x0000, 0xFFFF, /* ...\.... */ 0xFFFF, 0x7500, 0x0000, 0x0000, /* ...u.... */ 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ --- 4956,4980 ---- 0x0000, 0x0000, 0xFFFF, 0xFFFF, /* ........ */ 0x0000, 0x0000, 0x0000, 0x1400, /* ........ */ ! 0x0000, 0x1801, 0x0000, 0xB400, /* ........ */ ! 0x0000, 0x4001, 0x0000, 0xFFFF, /* ...@.... */ ! 0xFFFF, 0x7500, 0x0000, 0x0000, /* ...u.... */ ! 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0x4600, 0x0000, 0x0000, 0x0000, /* .F...... */ ! 0x3600, 0x6574, 0x7478, 0x0000, /* .6text.. */ ! 0x0000, 0x0000, 0x0000, 0xFFFF, /* ........ */ ! 0xFFFF, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0x1400, 0x0000, 0x0401, 0x0000, /* ........ */ ! 0x5F00, 0x0000, 0x1801, 0xFFFF, /* ._...... */ ! 0xFFFF, 0x0000, 0x430B, 0x6572, /* .....Cre */ ! 0x7461, 0x6465, 0x4220, 0x3A79, /* ated By: */ ! 0x0000, 0x0000, 0x0000, 0x5200, /* .......R */ ! 0x0000, 0x0000, 0x0000, 0x4200, /* .......B */ ! 0x6465, 0x7469, 0x0000, 0x0B00, /* edit.... */ ! 0x0000, 0x0000, 0xFFFF, 0xFFFF, /* ........ */ ! 0x0000, 0x0000, 0x0000, 0x1800, /* ........ */ ! 0x0000, 0x7601, 0x0000, 0xB800, /* ...v.... */ ! 0x0000, 0x9E01, 0xFFFF, 0xFFFF, /* ........ */ 0xFFFF, 0x7500, 0x0000, 0x0000, /* ...u.... */ 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ *************** *** 4966,5087 **** 0x0000, 0x0000, 0x0000, 0xFFFF, /* ........ */ 0xFFFF, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0x1400, 0x0000, 0x2001, 0x0000, /* ..... .. */ ! 0x5F00, 0x0000, 0x3401, 0x0000, /* ._...4.. */ ! 0xFFFF, 0x0000, 0x7508, 0x746E, /* .....unt */ ! 0x7469, 0x656C, 0x0064, 0x0000, /* itled... */ 0x0000, 0x0000, 0x5200, 0x0000, /* .....R.. */ 0x0000, 0x0000, 0x4200, 0x6465, /* .....Bed */ ! 0x7469, 0x0000, 0x0B00, 0x0000, /* it...... */ 0x0000, 0xFFFF, 0xFFFF, 0x0000, /* ........ */ 0x0000, 0x0000, 0x1400, 0x0000, /* ........ */ ! 0xFE00, 0x0000, 0xB400, 0x0000, /* ........ */ ! 0x2601, 0xFFFF, 0xFFFF, 0xFFFF, /* .&...... */ 0x7500, 0x0000, 0x0000, 0x0000, /* .u...... */ 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0x0000, 0x0000, 0x0000, 0x4400, /* .......D */ ! 0x0000, 0x0000, 0x0000, 0x3400, /* .......4 */ 0x6574, 0x7478, 0x0000, 0x0000, /* text.... */ 0x0000, 0x0000, 0xFFFF, 0xFFFF, /* ........ */ 0x0000, 0x0000, 0x0000, 0x1400, /* ........ */ ! 0x0000, 0xCC00, 0x0000, 0x6300, /* .......c */ ! 0x0000, 0xE000, 0xFFFF, 0xFFFF, /* ........ */ ! 0x0000, 0x5708, 0x6265, 0x5320, /* ...Web S */ ! 0x7469, 0x0065, 0x0000, 0x0000, /* ite..... */ ! 0x0000, 0x5200, 0x0000, 0x0000, /* ...R.... */ ! 0x0000, 0x4200, 0x6465, 0x7469, /* ...Bedit */ ! 0x0000, 0x0A00, 0x0000, 0x0000, /* ........ */ ! 0xFFFF, 0xFFFF, 0x0000, 0x0000, /* ........ */ ! 0x0000, 0x1400, 0x0000, 0x9200, /* ........ */ ! 0x0000, 0xB400, 0x0000, 0xBA00, /* ........ */ ! 0xFFFF, 0xFFFF, 0xFFFF, 0x7500, /* .......u */ ! 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0x0000, 0x0000, 0x4600, 0x0000, /* .....F.. */ ! 0x0000, 0x0000, 0x3600, 0x6574, /* .....6te */ ! 0x7478, 0x0000, 0x0000, 0x0000, /* xt...... */ 0x0000, 0xFFFF, 0xFFFF, 0x0000, /* ........ */ 0x0000, 0x0000, 0x1400, 0x0000, /* ........ */ ! 0x7E00, 0x0000, 0x6700, 0x0000, /* .~...g.. */ ! 0x9200, 0xFFFF, 0xFFFF, 0x0000, /* ........ */ ! 0x430B, 0x6D6F, 0x6F6D, 0x206E, /* .Common */ ! 0x614E, 0x656D, 0x0000, 0x0000, /* Name.... */ ! 0x0000, 0x5200, 0x0000, 0x0000, /* ...R.... */ ! 0x0000, 0x4200, 0x6465, 0x7469, /* ...Bedit */ ! 0x0000, 0x0900, 0x0000, 0x0000, /* ........ */ ! 0xFFFF, 0xFFFF, 0x0000, 0x0000, /* ........ */ ! 0x0000, 0x1400, 0x0000, 0x4C00, /* .......L */ ! 0x0000, 0xB400, 0x0000, 0x7400, /* .......t */ ! 0xFFFF, 0xFFFF, 0xFFFF, 0x7500, /* .......u */ ! 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0x0000, 0x0000, 0x3400, 0x6574, /* .....4te */ ! 0x7478, 0x0000, 0x0000, 0x0000, /* xt...... */ ! 0x0000, 0xFFFF, 0xFFFF, 0x0000, /* ........ */ ! 0x0000, 0x0000, 0x1400, 0x0000, /* ........ */ ! 0x3800, 0x0000, 0x5F00, 0x0000, /* .8..._.. */ ! 0x4800, 0xFFFF, 0xFFFF, 0x0000, /* .H...... */ ! 0x4309, 0x706F, 0x7279, 0x6769, /* .Copyrig */ ! 0x7468, 0x0000, 0x0000, 0x0000, /* ht...... */ ! 0x3E00, 0x0000, 0x0000, 0x0000, /* .>...... */ ! 0x2E00, 0x7948, 0x7270, 0x0000, /* ..Hypr.. */ ! 0x0600, 0x0000, 0x0000, 0xFFFF, /* ........ */ ! 0xFFFF, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0x0500, 0x0000, 0x9800, 0x0000, /* ........ */ ! 0x1301, 0x0000, 0xD800, 0xFFFF, /* ........ */ ! 0xFFFF, 0x0000, 0x0000, 0x8F00, /* ........ */ ! 0xFFFF, 0xFFFF, 0x0000, 0x4200, /* .......B */ ! 0x0000, 0x0000, 0x0000, 0x3200, /* .......2 */ ! 0x7471, 0x4D49, 0x0000, 0x0300, /* qtIM.... */ 0x0000, 0x0000, 0xFFFF, 0xFFFF, /* ........ */ ! 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0x0000, 0x0000, 0x0000, 0x1301, /* ........ */ ! 0x0000, 0x9900, 0xFFFF, 0xFFFF, /* ........ */ ! 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ 0x4200, 0x0000, 0x0000, 0x0000, /* .B...... */ ! 0x3200, 0x6962, 0x6E63, 0x0000, /* .2bicn.. */ ! 0x0700, 0x0000, 0x0000, 0xFFFF, /* ........ */ 0xFFFF, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0xFF00, 0x0000, 0xD800, 0x0000, /* ........ */ ! 0x0F01, 0x0000, 0xE800, 0xFFFF, /* ........ */ ! 0xFFFF, 0x0000, 0x0000, 0x0200, /* ........ */ ! 0x0000, 0xFA03, 0xFFFF, 0x0000, /* ........ */ ! 0x0000, 0x7A00, 0x0000, 0x3C00, /* ...z...< */ ! 0x0000, 0x2C00, 0x6373, 0x7672, /* ...,scrv */ ! 0x0000, 0x0500, 0x0000, 0x0000, /* ........ */ ! 0xFFFF, 0xFFFF, 0x0000, 0xFFFF, /* ........ */ ! 0x0000, 0x0000, 0x0000, 0xE600, /* ........ */ ! 0x0000, 0x1301, 0xFFFF, 0xE2FF, /* ........ */ 0xFFFF, 0xFFFF, 0x0000, 0x0000, /* ........ */ 0xFFFF, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0x0000, 0x0000, 0x0000, 0x2E00, /* ........ */ ! 0x7948, 0x7270, 0x0000, 0x0400, /* Hypr.... */ ! 0x0000, 0x0000, 0xFFFF, 0xFFFF, /* ........ */ ! 0xFFFF, 0xFFFF, 0x0000, 0x0100, /* ........ */ ! 0x0000, 0x0100, 0xFFFF, 0xFFFF, /* ........ */ 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, /* ........ */ ! 0x0000, 0x0000, 0x8F00, 0xFFFF, /* ........ */ ! 0xFFFF, 0x0000, 0x4600, 0x0000, /* .....F.. */ ! 0x0000, 0x0000, 0x3600, 0x6270, /* .....6pb */ ! 0x6E74, 0x0000, 0x0200, 0x0000, /* tn...... */ 0x0000, 0xFFFF, 0xFFFF, 0x0000, /* ........ */ ! 0x0000, 0x0000, 0x6400, 0x0000, /* .....d.. */ ! 0xCC01, 0x0000, 0xB800, 0x0000, /* ........ */ ! 0xE601, 0xFFFF, 0xFFFF, 0xFFFF, /* ........ */ ! 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0x4306, 0x6E61, 0x6563, 0x656C, /* .Cancele */ 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0x0000, 0x3200, 0x6270, 0x6E74, /* ...2pbtn */ ! 0x0000, 0x0100, 0x0000, 0x0000, /* ........ */ ! 0xFFFF, 0xFFFF, 0x0000, 0x0000, /* ........ */ ! 0x0000, 0xC200, 0x0000, 0xCC01, /* ........ */ ! 0x0000, 0x1601, 0x0000, 0xE601, /* ........ */ ! 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, /* ........ */ ! 0x0000, 0x0000, 0x0000, 0x4F02, /* .......O */ ! 0x744B, /* Kt */ END --- 4985,5087 ---- 0x0000, 0x0000, 0x0000, 0xFFFF, /* ........ */ 0xFFFF, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0x1400, 0x0000, 0xCC00, 0x0000, /* ........ */ ! 0x6300, 0x0000, 0xE000, 0xFFFF, /* .c...... */ ! 0xFFFF, 0x0000, 0x5708, 0x6265, /* .....Web */ ! 0x5320, 0x7469, 0x0065, 0x0000, /* Site... */ 0x0000, 0x0000, 0x5200, 0x0000, /* .....R.. */ 0x0000, 0x0000, 0x4200, 0x6465, /* .....Bed */ ! 0x7469, 0x0000, 0x0A00, 0x0000, /* it...... */ 0x0000, 0xFFFF, 0xFFFF, 0x0000, /* ........ */ 0x0000, 0x0000, 0x1400, 0x0000, /* ........ */ ! 0x9200, 0x0000, 0xB400, 0x0000, /* ........ */ ! 0xBA00, 0xFFFF, 0xFFFF, 0xFFFF, /* ........ */ 0x7500, 0x0000, 0x0000, 0x0000, /* .u...... */ 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0x0000, 0x0000, 0x0000, 0x4600, /* .......F */ ! 0x0000, 0x0000, 0x0000, 0x3600, /* .......6 */ 0x6574, 0x7478, 0x0000, 0x0000, /* text.... */ 0x0000, 0x0000, 0xFFFF, 0xFFFF, /* ........ */ 0x0000, 0x0000, 0x0000, 0x1400, /* ........ */ ! 0x0000, 0x7E00, 0x0000, 0x6700, /* ...~...g */ ! 0x0000, 0x9200, 0xFFFF, 0xFFFF, /* ........ */ ! 0x0000, 0x430B, 0x6D6F, 0x6F6D, /* ...Commo */ ! 0x206E, 0x614E, 0x656D, 0x0000, /* n Name.. */ ! 0x0000, 0x0000, 0x5200, 0x0000, /* .....R.. */ ! 0x0000, 0x0000, 0x4200, 0x6465, /* .....Bed */ ! 0x7469, 0x0000, 0x0900, 0x0000, /* it...... */ 0x0000, 0xFFFF, 0xFFFF, 0x0000, /* ........ */ 0x0000, 0x0000, 0x1400, 0x0000, /* ........ */ ! 0x4C00, 0x0000, 0xB400, 0x0000, /* .L...... */ ! 0x7400, 0xFFFF, 0xFFFF, 0xFFFF, /* .t...... */ ! 0x7500, 0x0000, 0x0000, 0x0000, /* .u...... */ 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0x0000, 0x0000, 0x0000, 0x3400, /* .......4 */ ! 0x6574, 0x7478, 0x0000, 0x0000, /* text.... */ 0x0000, 0x0000, 0xFFFF, 0xFFFF, /* ........ */ ! 0x0000, 0x0000, 0x0000, 0x1400, /* ........ */ ! 0x0000, 0x3800, 0x0000, 0x5F00, /* ...8..._ */ ! 0x0000, 0x4800, 0xFFFF, 0xFFFF, /* ...H.... */ ! 0x0000, 0x4309, 0x706F, 0x7279, /* ...Copyr */ ! 0x6769, 0x7468, 0x0000, 0x0000, /* ight.... */ ! 0x0000, 0x3E00, 0x0000, 0x0000, /* ...>.... */ ! 0x0000, 0x2E00, 0x7948, 0x7270, /* ....Hypr */ ! 0x0000, 0x0600, 0x0000, 0x0000, /* ........ */ ! 0xFFFF, 0xFFFF, 0x0000, 0x0000, /* ........ */ ! 0x0000, 0x0500, 0x0000, 0x9800, /* ........ */ ! 0x0000, 0x1301, 0x0000, 0xD800, /* ........ */ ! 0xFFFF, 0xFFFF, 0x0000, 0x0000, /* ........ */ ! 0x8F00, 0xFFFF, 0xFFFF, 0x0000, /* ........ */ 0x4200, 0x0000, 0x0000, 0x0000, /* .B...... */ ! 0x3200, 0x7471, 0x4D49, 0x0000, /* .2qtIM.. */ ! 0x0300, 0x0000, 0x0000, 0xFFFF, /* ........ */ 0xFFFF, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0x1301, 0x0000, 0x9900, 0xFFFF, /* ........ */ ! 0xFFFF, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0x0000, 0x4200, 0x0000, 0x0000, /* ...B.... */ ! 0x0000, 0x3200, 0x6962, 0x6E63, /* ...2bicn */ ! 0x0000, 0x0700, 0x0000, 0x0000, /* ........ */ ! 0xFFFF, 0xFFFF, 0x0000, 0x0000, /* ........ */ ! 0x0000, 0xFF00, 0x0000, 0xD800, /* ........ */ ! 0x0000, 0x0F01, 0x0000, 0xE800, /* ........ */ 0xFFFF, 0xFFFF, 0x0000, 0x0000, /* ........ */ + 0x0200, 0x0000, 0xFA03, 0xFFFF, /* ........ */ + 0x0000, 0x0000, 0x7A00, 0x0000, /* .....z.. */ + 0x3C00, 0x0000, 0x2C00, 0x6373, /* .<...,sc */ + 0x7672, 0x0000, 0x0500, 0x0000, /* rv...... */ + 0x0000, 0xFFFF, 0xFFFF, 0x0000, /* ........ */ 0xFFFF, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0xF000, 0x0000, 0x1301, 0xFFFF, /* ........ */ ! 0xE2FF, 0xFFFF, 0xFFFF, 0x0000, /* ........ */ ! 0x0000, 0xFFFF, 0x0000, 0x0000, /* ........ */ ! 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0x2E00, 0x7948, 0x7270, 0x0000, /* ..Hypr.. */ ! 0x0400, 0x0000, 0x0000, 0xFFFF, /* ........ */ ! 0xFFFF, 0xFFFF, 0xFFFF, 0x0000, /* ........ */ ! 0x0100, 0x0000, 0x0100, 0xFFFF, /* ........ */ 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, /* ........ */ ! 0xFFFF, 0x0000, 0x0000, 0x8F00, /* ........ */ ! 0xFFFF, 0xFFFF, 0x0000, 0x4600, /* .......F */ ! 0x0000, 0x0000, 0x0000, 0x3600, /* .......6 */ ! 0x6270, 0x6E74, 0x0000, 0x0200, /* pbtn.... */ ! 0x0000, 0x0000, 0xFFFF, 0xFFFF, /* ........ */ ! 0x0000, 0x0000, 0x0000, 0x4E00, /* .......N */ ! 0x0000, 0xE001, 0x0000, 0xAC00, /* ........ */ ! 0x0000, 0xFE01, 0xFFFF, 0xFFFF, /* ........ */ ! 0xFFFF, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0x0000, 0x4306, 0x6E61, 0x6563, /* ...Cance */ ! 0x656C, 0x0000, 0x0000, 0x0000, /* le...... */ ! 0x0000, 0x0000, 0x3200, 0x6270, /* .....2pb */ ! 0x6E74, 0x0000, 0x0100, 0x0000, /* tn...... */ 0x0000, 0xFFFF, 0xFFFF, 0x0000, /* ........ */ ! 0x0000, 0x0000, 0xB000, 0x0000, /* ........ */ ! 0xE001, 0x0000, 0x0E01, 0x0000, /* ........ */ ! 0xFE01, 0xFFFF, 0xFFFF, 0xFFFF, /* ........ */ 0x0000, 0x0000, 0x0000, 0x0000, /* ........ */ ! 0x4F02, 0x744B, /* .OKt */ END Index: Garden.rdata =================================================================== RCS file: /cvsroot/igarden/Garden/source/resources/Garden.rdata,v retrieving revision 1.4.2.19 retrieving revision 1.4.2.20 diff -C2 -d -r1.4.2.19 -r1.4.2.20 Binary files /tmp/cvsVhF1io and /tmp/cvsBfAAjc differ Index: Garden.cin =================================================================== RCS file: /cvsroot/igarden/Garden/source/resources/Garden.cin,v retrieving revision 1.61.2.50 retrieving revision 1.61.2.51 diff -C2 -d -r1.61.2.50 -r1.61.2.51 Binary files /tmp/cvswZOVpv and /tmp/cvsrcW2Ij differ Index: Garden.r =================================================================== RCS file: /cvsroot/igarden/Garden/source/resources/Garden.r,v retrieving revision 1.61.2.50 retrieving revision 1.61.2.51 diff -C2 -d -r1.61.2.50 -r1.61.2.51 *** Garden.r 6 Apr 2008 04:02:42 -0000 1.61.2.50 --- Garden.r 12 Apr 2008 19:05:32 -0000 1.61.2.51 *************** *** 4930,4941 **** $"0000000000000000" /* ........ */ $"0000000001130000" /* ........ */ ! $"01E8000001E00000" /* ........ */ ! $"01E8000001E00000" /* ........ */ ! $"01E8000000000000" /* ........ */ $"0000115069637475" /* ...Pictu */ $"72652053656C6563" /* re Selec */ $"74696F6E00000000" /* tion.... */ $"0000000100000002" /* ........ */ ! $"000002CE0000003A" /* .......: */ $"0000002A44697363" /* ...*Disc */ $"0000000800000000" /* ........ */ --- 4930,4941 ---- $"0000000000000000" /* ........ */ $"0000000001130000" /* ........ */ ! $"01FE000001E00000" /* ........ */ ! $"01FE000001E00000" /* ........ */ ! $"01FE000000000000" /* ........ */ $"0000115069637475" /* ...Pictu */ $"72652053656C6563" /* re Selec */ $"74696F6E00000000" /* tion.... */ $"0000000100000002" /* ........ */ ! $"000002D00000003A" /* .......: */ $"0000002A44697363" /* ...*Disc */ $"0000000800000000" /* ........ */ *************** *** 4956,4961 **** $"00000000FFFFFFFF" /* ........ */ $"0000000000000014" /* ........ */ ! $"00000134000000B4" /* ...4.... */ ! $"0000015C0000FFFF" /* ...\.... */ $"FFFF007500000000" /* ...u.... */ $"0000000000000000" /* ........ */ --- 4956,4980 ---- $"00000000FFFFFFFF" /* ........ */ $"0000000000000014" /* ........ */ ! $"00000118000000B4" /* ........ */ ! $"000001400000FFFF" /* ...@.... */ ! $"FFFF007500000000" /* ...u.... */ ! $"0000000000000000" /* ........ */ ! $"0000000000000000" /* ........ */ ! $"0000000000000000" /* ........ */ ! $"0046000000000000" /* .F...... */ ! $"0036746578740000" /* .6text.. */ ! $"000000000000FFFF" /* ........ */ ! $"FFFF000000000000" /* ........ */ ! $"0014000001040000" /* ........ */ ! $"005F00000118FFFF" /* ._...... */ ! $"FFFF00000B437265" /* .....Cre */ ! $"617465642042793A" /* ated By: */ ! $"0000000000000052" /* .......R */ ! $"0000000000000042" /* .......B */ ! $"656469740000000B" /* edit.... */ ! $"00000000FFFFFFFF" /* ........ */ ! $"0000000000000018" /* ........ */ ! $"00000176000000B8" /* ...v.... */ ! $"0000019EFFFFFFFF" /* ........ */ $"FFFF007500000000" /* ...u.... */ $"0000000000000000" /* ........ */ *************** *** 4966,5087 **** $"000000000000FFFF" /* ........ */ $"FFFF000000000000" /* ........ */ ! $"0014000001200000" /* ..... .. */ ! $"005F000001340000" /* ._...4.. */ ! $"FFFF000008756E74" /* .....unt */ ! $"69746C6564000000" /* itled... */ $"0000000000520000" /* .....R.. */ $"0000000000426564" /* .....Bed */ ! $"69740000000B0000" /* it...... */ $"0000FFFFFFFF0000" /* ........ */ $"0000000000140000" /* ........ */ ! $"00FE000000B40000" /* ........ */ ! $"0126FFFFFFFFFFFF" /* .&...... */ $"0075000000000000" /* .u...... */ $"0000000000000000" /* ........ */ $"0000000000000000" /* ........ */ ! $"0000000000000044" /* .......D */ ! $"0000000000000034" /* .......4 */ $"7465787400000000" /* text.... */ $"00000000FFFFFFFF" /* ........ */ $"0000000000000014" /* ........ */ ! $"000000CC00000063" /* .......c */ ! $"000000E0FFFFFFFF" /* ........ */ ! $"0000085765622053" /* ...Web S */ ! $"6974650000000000" /* ite..... */ ! $"0000005200000000" /* ...R.... */ ! $"0000004265646974" /* ...Bedit */ ! $"0000000A00000000" /* ........ */ ! $"FFFFFFFF00000000" /* ........ */ ! $"0000001400000092" /* ........ */ ! $"000000B4000000BA" /* ........ */ ! $"FFFFFFFFFFFF0075" /* .......u */ ! $"0000000000000000" /* ........ */ ! $"0000000000000000" /* ........ */ ! $"0000000000000000" /* ........ */ ! $"0000000000460000" /* .....F.. */ ! $"0000000000367465" /* .....6te */ ! $"7874000000000000" /* xt...... */ $"0000FFFFFFFF0000" /* ........ */ $"0000000000140000" /* ........ */ ! $"007E000000670000" /* .~...g.. */ ! $"0092FFFFFFFF0000" /* ........ */ ! $"0B436F6D6D6F6E20" /* .Common */ ! $"4E616D6500000000" /* Name.... */ ! $"0000005200000000" /* ...R.... */ ! $"0000004265646974" /* ...Bedit */ ! $"0000000900000000" /* ........ */ ! $"FFFFFFFF00000000" /* ........ */ ! $"000000140000004C" /* .......L */ ! $"000000B400000074" /* .......t */ ! $"FFFFFFFFFFFF0075" /* .......u */ ! $"0000000000000000" /* ........ */ $"0000000000000000" /* ........ */ $"0000000000000000" /* ........ */ $"0000000000000000" /* ........ */ ! $"0000000000347465" /* .....4te */ ! $"7874000000000000" /* xt...... */ ! $"0000FFFFFFFF0000" /* ........ */ ! $"0000000000140000" /* ........ */ ! $"00380000005F0000" /* .8..._.. */ ! $"0048FFFFFFFF0000" /* .H...... */ ! $"09436F7079726967" /* .Copyrig */ ! $"6874000000000000" /* ht...... */ ! $"003E000000000000" /* .>...... */ ! $"002E487970720000" /* ..Hypr.. */ ! $"000600000000FFFF" /* ........ */ ! $"FFFF000000000000" /* ........ */ ! $"0005000000980000" /* ........ */ ! $"0113000000D8FFFF" /* ........ */ ! $"FFFF00000000008F" /* ........ */ ! $"FFFFFFFF00000042" /* .......B */ ! $"0000000000000032" /* .......2 */ ! $"7174494D00000003" /* qtIM.... */ $"00000000FFFFFFFF" /* ........ */ ! $"0000000000000000" /* ........ */ ! $"0000000000000113" /* ........ */ ! $"00000099FFFFFFFF" /* ........ */ ! $"0000000000000000" /* ........ */ ! $"0000000000000000" /* ........ */ $"0042000000000000" /* .B...... */ ! $"00326269636E0000" /* .2bicn.. */ ! $"000700000000FFFF" /* ........ */ $"FFFF000000000000" /* ........ */ ! $"00FF000000D80000" /* ........ */ ! $"010F000000E8FFFF" /* ........ */ ! $"FFFF000000000002" /* ........ */ ! $"000003FAFFFF0000" /* ........ */ ! $"0000007A0000003C" /* ...z...< */ ! $"0000002C73637276" /* ...,scrv */ ! $"0000000500000000" /* ........ */ ! $"FFFFFFFF0000FFFF" /* ........ */ ! $"00000000000000E6" /* ........ */ ! $"00000113FFFFFFE2" /* ........ */ $"FFFFFFFF00000000" /* ........ */ $"FFFF000000000000" /* ........ */ ! $"000000000000002E" /* ........ */ ! $"4879707200000004" /* Hypr.... */ ! $"00000000FFFFFFFF" /* ........ */ ! $"FFFFFFFF00000001" /* ........ */ ! $"00000001FFFFFFFF" /* ........ */ $"FFFFFFFFFFFFFFFF" /* ........ */ ! $"00000000008FFFFF" /* ........ */ ! $"FFFF000000460000" /* .....F.. */ ! $"0000000000367062" /* .....6pb */ ! $"746E000000020000" /* tn...... */ $"0000FFFFFFFF0000" /* ........ */ ! $"0000000000640000" /* .....d.. */ ! $"01CC000000B80000" /* ........ */ ! $"01E6FFFFFFFFFFFF" /* ........ */ ! $"0000000000000000" /* ........ */ ! $"0643616E63656C65" /* .Cancele */ $"0000000000000000" /* ........ */ ! $"000000327062746E" /* ...2pbtn */ ! $"0000000100000000" /* ........ */ ! $"FFFFFFFF00000000" /* ........ */ ! $"000000C2000001CC" /* ........ */ ! $"00000116000001E6" /* ........ */ ! $"FFFFFFFFFFFF0000" /* ........ */ ! $"000000000000024F" /* .......O */ ! $"4B74" /* Kt */ }; --- 4985,5087 ---- $"000000000000FFFF" /* ........ */ $"FFFF000000000000" /* ........ */ ! $"0014000000CC0000" /* ........ */ ! $"0063000000E0FFFF" /* .c...... */ ! $"FFFF000008576562" /* .....Web */ ! $"2053697465000000" /* Site... */ $"0000000000520000" /* .....R.. */ $"0000000000426564" /* .....Bed */ ! $"69740000000A0000" /* it...... */ $"0000FFFFFFFF0000" /* ........ */ $"0000000000140000" /* ........ */ ! $"0092000000B40000" /* ........ */ ! $"00BAFFFFFFFFFFFF" /* ........ */ $"0075000000000000" /* .u...... */ $"0000000000000000" /* ........ */ $"0000000000000000" /* ........ */ ! $"0000000000000046" /* .......F */ ! $"0000000000000036" /* .......6 */ $"7465787400000000" /* text.... */ $"00000000FFFFFFFF" /* ........ */ $"0000000000000014" /* ........ */ ! $"0000007E00000067" /* ...~...g */ ! $"00000092FFFFFFFF" /* ........ */ ! $"00000B436F6D6D6F" /* ...Commo */ ! $"6E204E616D650000" /* n Name.. */ ! $"0000000000520000" /* .....R.. */ ! $"0000000000426564" /* .....Bed */ ! $"6974000000090000" /* it...... */ $"0000FFFFFFFF0000" /* ........ */ $"0000000000140000" /* ........ */ ! $"004C000000B40000" /* .L...... */ ! $"0074FFFFFFFFFFFF" /* .t...... */ ! $"0075000000000000" /* .u...... */ $"0000000000000000" /* ........ */ $"0000000000000000" /* ........ */ $"0000000000000000" /* ........ */ ! $"0000000000000034" /* .......4 */ ! $"7465787400000000" /* text.... */ $"00000000FFFFFFFF" /* ........ */ ! $"0000000000000014" /* ........ */ ! $"000000380000005F" /* ...8..._ */ ! $"00000048FFFFFFFF" /* ...H.... */ ! $"000009436F707972" /* ...Copyr */ ! $"6967687400000000" /* ight.... */ ! $"0000003E00000000" /* ...>.... */ ! $"0000002E48797072" /* ....Hypr */ ! $"0000000600000000" /* ........ */ ! $"FFFFFFFF00000000" /* ........ */ ! $"0000000500000098" /* ........ */ ! $"00000113000000D8" /* ........ */ ! $"FFFFFFFF00000000" /* ........ */ ! $"008FFFFFFFFF0000" /* ........ */ $"0042000000000000" /* .B...... */ ! $"00327174494D0000" /* .2qtIM.. */ ! $"000300000000FFFF" /* ........ */ $"FFFF000000000000" /* ........ */ ! $"0000000000000000" /* ........ */ ! $"011300000099FFFF" /* ........ */ ! $"FFFF000000000000" /* ........ */ ! $"0000000000000000" /* ........ */ ! $"0000004200000000" /* ...B.... */ ! $"000000326269636E" /* ...2bicn */ ! $"0000000700000000" /* ........ */ ! $"FFFFFFFF00000000" /* ........ */ ! $"000000FF000000D8" /* ........ */ ! $"0000010F000000E8" /* ........ */ $"FFFFFFFF00000000" /* ........ */ + $"0002000003FAFFFF" /* ........ */ + $"00000000007A0000" /* .....z.. */ + $"003C0000002C7363" /* .<...,sc */ + $"7276000000050000" /* rv...... */ + $"0000FFFFFFFF0000" /* ........ */ $"FFFF000000000000" /* ........ */ ! $"00F000000113FFFF" /* ........ */ ! $"FFE2FFFFFFFF0000" /* ........ */ ! $"0000FFFF00000000" /* ........ */ ! $"0000000000000000" /* ........ */ ! $"002E487970720000" /* ..Hypr.. */ ! $"000400000000FFFF" /* ........ */ ! $"FFFFFFFFFFFF0000" /* ........ */ ! $"000100000001FFFF" /* ........ */ $"FFFFFFFFFFFFFFFF" /* ........ */ ! $"FFFF00000000008F" /* ........ */ ! $"FFFFFFFF00000046" /* .......F */ ! $"0000000000000036" /* .......6 */ ! $"7062746E00000002" /* pbtn.... */ ! $"00000000FFFFFFFF" /* ........ */ ! $"000000000000004E" /* .......N */ ! $"000001E0000000AC" /* ........ */ ! $"000001FEFFFFFFFF" /* ........ */ ! $"FFFF000000000000" /* ........ */ ! $"00000643616E6365" /* ...Cance */ ! $"6C65000000000000" /* le...... */ ! $"0000000000327062" /* .....2pb */ ! $"746E000000010000" /* tn...... */ $"0000FFFFFFFF0000" /* ........ */ ! $"0000000000B00000" /* ........ */ ! $"01E00000010E0000" /* ........ */ ! $"01FEFFFFFFFFFFFF" /* ........ */ $"0000000000000000" /* ........ */ ! $"024F4B74" /* .OKt */ }; |
|
From: Jeffrey B. <jlb...@us...> - 2008-04-12 19:04:58
|
Update of /cvsroot/igarden/Garden/source/Document In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv22480/source/Document Modified Files: Tag: Release_branch_v1 MaterialPictSelectDialog.cpp MaterialPictSelectDialog.h Log Message: Load up metadata fields in picture select dialog. Add "created by" metadata field. Index: MaterialPictSelectDialog.h =================================================================== RCS file: /cvsroot/igarden/Garden/source/Document/MaterialPictSelectDialog.h,v retrieving revision 1.10.2.2 retrieving revision 1.10.2.3 diff -C2 -d -r1.10.2.2 -r1.10.2.3 *** MaterialPictSelectDialog.h 21 Jul 2007 12:21:25 -0000 1.10.2.2 --- MaterialPictSelectDialog.h 12 Apr 2008 19:04:59 -0000 1.10.2.3 *************** *** 45,50 **** virtual long NumLocationChoices(); virtual void GetIndexedLocationChoiceName(long index, String &name); ! virtual void SelectLocationChoice(long index); ! virtual void SaveDefaultPictureProperties(String &title, String ©right); virtual long CreateLocationChoice(); --- 45,50 ---- virtual long NumLocationChoices(); virtual void GetIndexedLocationChoiceName(long index, String &name); ! virtual void SaveDefaultPictureProperties(String &title, String ©right, String &creator, long locationChoice); ! virtual void GetDefaultPictureProperties(String &title, String ©right, String &creator, long &locationChoice); virtual long CreateLocationChoice(); *************** *** 54,59 **** long DoHyperlinkHit( long arg, void* parg ); void SelectLocationChoiceBySiteName(char *url); PictureCell *_cell; - CGWorld *_defaultPicture; PictureInfo _defaultPictEntry; --- 54,60 ---- long DoHyperlinkHit( long arg, void* parg ); void SelectLocationChoiceBySiteName(char *url); + void SelectLocationChoice(long index); + PictureCell *_cell; CGWorld *_defaultPicture; PictureInfo _defaultPictEntry; Index: MaterialPictSelectDialog.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/Document/MaterialPictSelectDialog.cpp,v retrieving revision 1.19.2.9 retrieving revision 1.19.2.10 diff -C2 -d -r1.19.2.9 -r1.19.2.10 *** MaterialPictSelectDialog.cpp 11 Apr 2008 10:39:00 -0000 1.19.2.9 --- MaterialPictSelectDialog.cpp 12 Apr 2008 19:04:59 -0000 1.19.2.10 *************** *** 278,282 **** XGFileSpecifier spec; bool foundPicture = false; - bool handled; XGFileHandle inHdl, outHdl; --- 278,281 ---- *************** *** 392,421 **** //******************************************* - /// SelectLocationChoice - // - void MaterialPictureSelectDialog::SelectLocationChoice(long index) - { - SourceMaterialFile *srcFile = SourceMaterialFile::GetSourceDatabase(); - InfoSupplier *sup; - XGUUID uid; - String extURL; - - if(index < 0) - _defaultPictEntry.SetSupplier(uid); // NilID - else - { - if(index < srcFile->NumSuppliers()) - { - sup = srcFile->GetIndexedSupplier(index); - sup->GetObjectID(uid); - extURL = sup->GetSiteURL(); - _defaultPictEntry.SetSupplier(uid); - _defaultPictEntry.SetExternalURL(extURL); - SetLocationMenuToMatch(index); - } - } - } - - //******************************************* /// CreateLocationChoice // --- 391,394 ---- *************** *** 437,446 **** /// SavePictureProperties // ! void MaterialPictureSelectDialog::SaveDefaultPictureProperties(String &title, String ©right) ! { _defaultPictEntry.SetTitle(title); _defaultPictEntry.SetCopyright(copyright); } //******************************************* /// OKClicked --- 410,452 ---- /// SavePictureProperties // ! void MaterialPictureSelectDialog::SaveDefaultPictureProperties(String &title, String ©right, String &creator, long locationChoice) ! { _defaultPictEntry.SetTitle(title); _defaultPictEntry.SetCopyright(copyright); + _defaultPictEntry.SetCreatedBy(creator); + SelectLocationChoice(locationChoice); + } + + //******************************************* + /// GetDefaultPictureProperties + // + void MaterialPictureSelectDialog::GetDefaultPictureProperties(String &title, String ©right, String &creator, long &locationChoice) + { + SourceMaterialFile *srcFile = SourceMaterialFile::GetSourceDatabase(); + InfoSupplier *sup; + XGUUID uid, supplierID, testID; + long i, count; + String extURL; + + title = _defaultPictEntry.GetTitle(); + copyright = _defaultPictEntry.GetCopyright(); + creator = _defaultPictEntry.GetCreatedBy(); + supplierID = _defaultPictEntry.GetSupplier(); + + locationChoice = -1; + count = srcFile->NumSuppliers(); + for(i = 0; i < count; i++) + { + sup = srcFile->GetIndexedSupplier(i); + sup->GetObjectID(testID); + if(testID == supplierID) + { + locationChoice = i; + break; + } + } } + //******************************************* /// OKClicked *************** *** 517,518 **** --- 523,546 ---- } + void MaterialPictureSelectDialog::SelectLocationChoice(long index) + { + SourceMaterialFile *srcFile = SourceMaterialFile::GetSourceDatabase(); + InfoSupplier *sup; + XGUUID uid; + String extURL; + + if(index < 0) + _defaultPictEntry.SetSupplier(uid); // NilID + else + { + if(index < srcFile->NumSuppliers()) + { + sup = srcFile->GetIndexedSupplier(index); + sup->GetObjectID(uid); + extURL = sup->GetSiteURL(); + _defaultPictEntry.SetSupplier(uid); + _defaultPictEntry.SetExternalURL(extURL); + SetLocationMenuToMatch(index); + } + } + } |
|
From: Jeffrey B. <jlb...@us...> - 2008-04-12 19:03:53
|
Update of /cvsroot/igarden/Garden/source/Document In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv21945/source/Document Modified Files: Tag: Release_branch_v1 CDatabasePanel.cpp Log Message: Fix an issue where paste would sometimes not work Index: CDatabasePanel.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/Document/CDatabasePanel.cpp,v retrieving revision 1.4.2.25 retrieving revision 1.4.2.26 diff -C2 -d -r1.4.2.25 -r1.4.2.26 *** CDatabasePanel.cpp 11 Apr 2008 10:40:23 -0000 1.4.2.25 --- CDatabasePanel.cpp 12 Apr 2008 19:03:54 -0000 1.4.2.26 *************** *** 285,288 **** --- 285,290 ---- return kIgnored; break; + default: + return kIgnored; } } |
|
From: Jeffrey B. <jlb...@us...> - 2008-04-12 19:02:21
|
Update of /cvsroot/igarden/CommonSource/YAAFExtensions In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv21438/YAAFExtensions Modified Files: Tag: Release_branch_v1 PictureSelectDialog.h PictureSelectDialog.cpp Log Message: Load up metadata fields in picture select dialog. Add "created by" metadata field. Index: PictureSelectDialog.cpp =================================================================== RCS file: /cvsroot/igarden/CommonSource/YAAFExtensions/PictureSelectDialog.cpp,v retrieving revision 1.13.2.7 retrieving revision 1.13.2.8 diff -C2 -d -r1.13.2.7 -r1.13.2.8 *** PictureSelectDialog.cpp 12 Apr 2008 12:35:26 -0000 1.13.2.7 --- PictureSelectDialog.cpp 12 Apr 2008 19:02:16 -0000 1.13.2.8 *************** *** 62,65 **** --- 62,66 ---- const int kPictureWebSite = 11; const int kPictureSupplier = 12; + const int kPictureCreator = 13; const char *kPictureSelectTag = "tag:www.redstartsw.com,2006:PictureSelect://"; *************** *** 187,190 **** --- 188,192 ---- AssertValidView(mainTitleView); mainTitleView->SetText(titleStr.c_str()); + LoadCurrentPictureProperties(); } else if(CIstrncmp(src, kPictureLoadTag, strlen(kPictureLoadTag)) == 0) *************** *** 219,223 **** { PictureSelectDialog *dialog = dynamic_cast<PictureSelectDialog*>(rgd); ! dialogCBResult_t result; if(msg == KXGHyperlinkHit) --- 221,225 ---- { PictureSelectDialog *dialog = dynamic_cast<PictureSelectDialog*>(rgd); ! dialogCBResult_t result = kIgnored; if(msg == KXGHyperlinkHit) *************** *** 279,283 **** - mainTitleView = dynamic_cast<RGHypertextView*>(dlog->FindViewByID(kPictureSelectMainTitle)); AssertValidView(mainTitleView); --- 281,284 ---- *************** *** 310,314 **** RebuildSupplierMenu(); ! HidePanel(); --- 311,316 ---- RebuildSupplierMenu(); ! LoadCurrentPictureProperties(); ! HidePanel(); *************** *** 328,350 **** // void PictureSelectDialog::OKClicked(XGDialog *dlog) ! { ! XGEditText *textCtl; ! char textBuf[256]; ! String title, copyright; ! if(_writable) ! { ! textCtl = dynamic_cast<XGEditText*>(dlog->FindViewByID(kPictureCopyright)); ! textCtl->GetTitle(textBuf); ! copyright = textBuf; ! ! textCtl = dynamic_cast<XGEditText*>(dlog->FindViewByID(kPictureCommon)); ! textCtl->GetTitle(textBuf); ! title = textBuf; ! ! SaveDefaultPictureProperties(title, copyright); ! ! // Exit(1); ! } XGBroadcast::RemoveBroadcast(_dlog); --- 330,336 ---- // void PictureSelectDialog::OKClicked(XGDialog *dlog) ! { if(_writable) ! SaveCurrentPictureProperties(); XGBroadcast::RemoveBroadcast(_dlog); *************** *** 417,446 **** void PictureSelectDialog::PopupValue(XGDialog *dlog, long /*viewID*/) { ! XGPopControl *popCtl = dynamic_cast<XGPopControl*>(dlog->FindViewByID(kPictureSupplier)); ! long index; ! ! index = popCtl->GetValue(); ! if(index < 2) ! SelectLocationChoice(-1); ! else ! { ! index -= 2; ! if(index >= NumLocationChoices()) ! { ! index = CreateLocationChoice(); ! if(index != 0) ! { ! RebuildSupplierMenu(); ! popCtl->SetValue(index+2); ! SelectLocationChoice(index); ! } ! } ! else ! SelectLocationChoice(index); ! } ! String titleStr; RGHypertextView *mainTitleView; GetDefaultPicture(titleStr); mainTitleView = dynamic_cast<RGHypertextView*>(dlog->FindViewByID(kPictureSelectMainTitle)); --- 403,411 ---- void PictureSelectDialog::PopupValue(XGDialog *dlog, long /*viewID*/) { ! String titleStr; RGHypertextView *mainTitleView; + SaveCurrentPictureProperties(); GetDefaultPicture(titleStr); mainTitleView = dynamic_cast<RGHypertextView*>(dlog->FindViewByID(kPictureSelectMainTitle)); *************** *** 456,476 **** long PictureSelectDialog::EditChanged(XGDialog *dlog, long /*gadgetID*/) { - XGEditText *textCtl; - char textBuf[256]; - String title, copyright; - - textCtl = dynamic_cast<XGEditText*>(dlog->FindViewByID(kPictureCopyright)); - textCtl->GetTitle(textBuf); - copyright = textBuf; - - textCtl = dynamic_cast<XGEditText*>(dlog->FindViewByID(kPictureCommon)); - textCtl->GetTitle(textBuf); - title = textBuf; - - SaveDefaultPictureProperties(title, copyright); - String titleStr; RGHypertextView *mainTitleView; GetDefaultPicture(titleStr); mainTitleView = dynamic_cast<RGHypertextView*>(dlog->FindViewByID(kPictureSelectMainTitle)); --- 421,428 ---- long PictureSelectDialog::EditChanged(XGDialog *dlog, long /*gadgetID*/) { String titleStr; RGHypertextView *mainTitleView; + SaveCurrentPictureProperties(); GetDefaultPicture(titleStr); mainTitleView = dynamic_cast<RGHypertextView*>(dlog->FindViewByID(kPictureSelectMainTitle)); *************** *** 482,485 **** --- 434,455 ---- } + #pragma mark overriden by subclass + + //******************************************* + /// NumLocationChoices + // + long PictureSelectDialog::NumLocationChoices() + { + return 0; + } + + //******************************************* + /// GetIndexedLocationChoiceName + // + void PictureSelectDialog::GetIndexedLocationChoiceName(long /*index*/, String & /*name*/) + { + } + + #pragma mark other //******************************************* *************** *** 488,502 **** void PictureSelectDialog::HandlePaste() { - RGBorderlessIcon *triangle = dynamic_cast<RGBorderlessIcon*>(_dlog->FindViewByID(kPictureDisclosureIcon)); - PRECONDITION(triangle != NULL); PRECONDITION(_writable); - triangle->ShowView(); XGEditText *textCtl; RGHypertextView *titleCtl; titleCtl = dynamic_cast<RGHypertextView*>(_dlog->FindViewByID(kPictureSelectMainTitle)); AssertValidView(titleCtl); ! titleCtl->SetText(stx("Click on the triangle control to add copyright information for this picture")); textCtl = dynamic_cast<XGEditText*>(_dlog->FindViewByID(kPictureCopyright)); --- 458,471 ---- void PictureSelectDialog::HandlePaste() { PRECONDITION(_writable); XGEditText *textCtl; RGHypertextView *titleCtl; + RGBorderlessIcon*triangle = dynamic_cast<RGBorderlessIcon*>(_dlog->FindViewByID(kPictureDisclosureIcon)); + ShowPanel(); titleCtl = dynamic_cast<RGHypertextView*>(_dlog->FindViewByID(kPictureSelectMainTitle)); AssertValidView(titleCtl); ! titleCtl->SetText(""); textCtl = dynamic_cast<XGEditText*>(_dlog->FindViewByID(kPictureCopyright)); *************** *** 506,509 **** --- 475,481 ---- textCtl = dynamic_cast<XGEditText*>(_dlog->FindViewByID(kPictureWebSite)); textCtl->SetTitle(""); + + triangle->ShowView(); + _pasted = true; } *************** *** 519,531 **** AssertValidView(expansion); if(triangle->GetValue()) - { ShowPanel(); - expansion->ShowDisclosure(true); - } else - { - expansion->ShowDisclosure(false); HidePanel(); - } return 0; --- 491,497 ---- *************** *** 573,580 **** void PictureSelectDialog::HidePanel() { ! _dlog->FindViewByID(kPictureCopyright)->HideView(); ! _dlog->FindViewByID(kPictureCommon)->HideView(); ! _dlog->FindViewByID(kPictureSupplier)->HideView(); ! _dlog->FindViewByID(kPictureWebSite)->HideView(); } --- 539,553 ---- void PictureSelectDialog::HidePanel() { ! RGDisclosureView *expansion = dynamic_cast<RGDisclosureView*>(_dlog->FindViewByID(kPictureDisclosurePane)); ! RGBorderlessIcon *triangle = dynamic_cast<RGBorderlessIcon*>(_dlog->FindViewByID(kPictureDisclosureIcon)); ! ! SetGadgetState(kPictureCopyright, false); ! SetGadgetState(kPictureCommon, false); ! SetGadgetState(kPictureSupplier, false); ! SetGadgetState(kPictureWebSite, false); ! SetGadgetState(kPictureCreator, false); ! ! expansion->ShowDisclosure(false); ! triangle->SetValue(0); } *************** *** 584,635 **** void PictureSelectDialog::ShowPanel() { ! XGView *view; ! ! view = _dlog->FindViewByID(kPictureCopyright); ! view->ShowView(); ! if(_writable) ! view->EnableView(); ! else ! view->DisableView(); ! view = _dlog->FindViewByID(kPictureCommon); ! view->ShowView(); ! if(_writable) ! view->EnableView(); ! else ! view->DisableView(); if(NumLocationChoices() != 0) { ! view = _dlog->FindViewByID(kPictureSupplier); ! view->ShowView(); ! if(_writable) ! view->EnableView(); ! else ! view->DisableView(); } ! // _dlog->FindViewByID(kPictureWebSite)->ShowView(); } //******************************************* ! /// NumLocationChoices // ! long PictureSelectDialog::NumLocationChoices() { ! return 0; } ! //******************************************* ! /// GetIndexedLocationChoiceName ! // ! void PictureSelectDialog::GetIndexedLocationChoiceName(long /*index*/, String & /*name*/) { } ! //******************************************* ! /// SelectLocationChoice ! // ! void PictureSelectDialog::SelectLocationChoice(long index) { } --- 557,658 ---- void PictureSelectDialog::ShowPanel() { ! RGDisclosureView *expansion = dynamic_cast<RGDisclosureView*>(_dlog->FindViewByID(kPictureDisclosurePane)); ! RGBorderlessIcon *triangle = dynamic_cast<RGBorderlessIcon*>(_dlog->FindViewByID(kPictureDisclosureIcon)); ! SetGadgetState(kPictureCopyright, true); ! SetGadgetState(kPictureCommon, true); ! SetGadgetState(kPictureCreator, true); if(NumLocationChoices() != 0) { ! SetGadgetState(kPictureSupplier, true); } ! ! expansion->ShowDisclosure(true); ! triangle->SetValue(1); } //******************************************* ! /// SaveCurrentPictureProperties // ! /// Save the data within the dialog. required override of OKPressed() to change outside the dialog. ! // ! void PictureSelectDialog::SaveCurrentPictureProperties() { ! XGEditText *textCtl; ! char textBuf[256]; ! String title, copyright, author; ! ! if(_writable) ! { ! textCtl = dynamic_cast<XGEditText*>(_dlog->FindViewByID(kPictureCopyright)); ! textCtl->GetTitle(textBuf); ! copyright = textBuf; ! ! textCtl = dynamic_cast<XGEditText*>(_dlog->FindViewByID(kPictureCommon)); ! textCtl->GetTitle(textBuf); ! title = textBuf; ! ! textCtl = dynamic_cast<XGEditText*>(_dlog->FindViewByID(kPictureCreator)); ! textCtl->GetTitle(textBuf); ! author = textBuf; ! ! XGPopControl *popCtl = dynamic_cast<XGPopControl*>(_dlog->FindViewByID(kPictureSupplier)); ! long index; ! ! index = popCtl->GetValue(); ! if(index < 2) ! SaveDefaultPictureProperties(title, copyright, author, -1); ! else ! { ! index -= 2; ! if(index >= NumLocationChoices()) ! { ! index = CreateLocationChoice(); ! if(index != 0) ! { ! RebuildSupplierMenu(); ! popCtl->SetValue(index+2); ! SaveDefaultPictureProperties(title, copyright, author, index); ! } ! } ! else ! SaveDefaultPictureProperties(title, copyright, author, index); ! } ! } } ! void PictureSelectDialog::LoadCurrentPictureProperties() { + XGEditText *textCtl; + long locationChoice; + String title, copyright, creator; + + GetDefaultPictureProperties(title, copyright, creator, locationChoice); + + textCtl = dynamic_cast<XGEditText*>(_dlog->FindViewByID(kPictureCopyright)); + textCtl->SetTitle(copyright.c_str()); + textCtl = dynamic_cast<XGEditText*>(_dlog->FindViewByID(kPictureCommon)); + textCtl->SetTitle(title.c_str()); + textCtl = dynamic_cast<XGEditText*>(_dlog->FindViewByID(kPictureCreator)); + textCtl->SetTitle(creator.c_str()); + + SetLocationMenuToMatch(locationChoice); } ! ! void PictureSelectDialog::SetGadgetState(long id, bool visible) { + XGView *view = _dlog->FindViewByID(id); + if(visible) + { + view->ShowView(); + if(_writable) + view->EnableView(); + else + view->DisableView(); + } + else + view->HideView(); } Index: PictureSelectDialog.h =================================================================== RCS file: /cvsroot/igarden/CommonSource/YAAFExtensions/PictureSelectDialog.h,v retrieving revision 1.9.2.1 retrieving revision 1.9.2.2 diff -C2 -d -r1.9.2.1 -r1.9.2.2 *** PictureSelectDialog.h 11 Apr 2008 10:25:58 -0000 1.9.2.1 --- PictureSelectDialog.h 12 Apr 2008 19:02:16 -0000 1.9.2.2 *************** *** 49,52 **** --- 49,55 ---- virtual long EditChanged(XGDialog *dlog, long gadgetID); virtual void PopupValue(XGDialog *dlog, long viewID); + + virtual void HidePanel(); + virtual void ShowPanel(); virtual long GetNumPictures() = 0; *************** *** 56,66 **** virtual void LoadAllPictures() = 0; virtual void SetDefaultPictureToIndexed(long index) = 0; ! virtual void SaveDefaultPictureProperties(String &title, String ©right) = 0; virtual long CreateLocationChoice() = 0; - virtual void HidePanel(); - virtual void ShowPanel(); virtual long NumLocationChoices(); virtual void GetIndexedLocationChoiceName(long index, String &name); - virtual void SelectLocationChoice(long index); virtual void ChangeDefaultPicture(CGWorld *picture); --- 59,67 ---- virtual void LoadAllPictures() = 0; virtual void SetDefaultPictureToIndexed(long index) = 0; ! virtual void SaveDefaultPictureProperties(String &title, String ©right, String &creator, long locationChoice) = 0; ! virtual void GetDefaultPictureProperties(String &title, String ©right, String &creator, long &locationChoice) = 0; virtual long CreateLocationChoice() = 0; virtual long NumLocationChoices(); virtual void GetIndexedLocationChoiceName(long index, String &name); virtual void ChangeDefaultPicture(CGWorld *picture); *************** *** 75,79 **** private: static dialogCBResult_t Eventhandler(XGDialog *d, class RGDialog *rgd,long msg,long arg,void *parg, void *callbackContext); ! XGDialog *_dlog; CQTImagePane *_imagePane; --- 76,83 ---- private: static dialogCBResult_t Eventhandler(XGDialog *d, class RGDialog *rgd,long msg,long arg,void *parg, void *callbackContext); ! void SaveCurrentPictureProperties(); ! void LoadCurrentPictureProperties(); ! void SetGadgetState(long id, bool visible); ! XGDialog *_dlog; CQTImagePane *_imagePane; |
|
From: Jeffrey B. <jlb...@us...> - 2008-04-12 12:35:21
|
Update of /cvsroot/igarden/CommonSource/YAAFExtensions In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv24695/YAAFExtensions Modified Files: Tag: Release_branch_v1 PictureSelectDialog.cpp Log Message: Add context menu Index: PictureSelectDialog.cpp =================================================================== RCS file: /cvsroot/igarden/CommonSource/YAAFExtensions/PictureSelectDialog.cpp,v retrieving revision 1.13.2.6 retrieving revision 1.13.2.7 diff -C2 -d -r1.13.2.6 -r1.13.2.7 *** PictureSelectDialog.cpp 12 Apr 2008 02:17:46 -0000 1.13.2.6 --- PictureSelectDialog.cpp 12 Apr 2008 12:35:26 -0000 1.13.2.7 *************** *** 50,53 **** --- 50,54 ---- #include "RGBorderlessIcon.h" #include "RGDisclosureView.h" + #include "RGContextMenu.h" const int kPictureSelectMainPicture = 3; *************** *** 235,238 **** --- 236,245 ---- result = kIgnored; } + else if(msg == KRGAddToContextMenu) + { + RGContextMenu *menu = reinterpret_cast<RGContextMenu*>(parg); + menu->AddItem(stx("Paste"), KXGEditPaste); + result = kAccepted; + } else { |
|
From: Jeffrey B. <jlb...@us...> - 2008-04-12 02:17:52
|
Update of /cvsroot/igarden/CommonSource/YAAFExtensions In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv22572/YAAFExtensions Modified Files: Tag: Release_branch_v1 PictureSelectDialog.cpp Log Message: Handle disclosure view on PictureDialog in the read-only vcase. Index: PictureSelectDialog.cpp =================================================================== RCS file: /cvsroot/igarden/CommonSource/YAAFExtensions/PictureSelectDialog.cpp,v retrieving revision 1.13.2.5 retrieving revision 1.13.2.6 diff -C2 -d -r1.13.2.5 -r1.13.2.6 *** PictureSelectDialog.cpp 11 Apr 2008 10:25:58 -0000 1.13.2.5 --- PictureSelectDialog.cpp 12 Apr 2008 02:17:46 -0000 1.13.2.6 *************** *** 285,290 **** AssertValidView(expansion); expansion->ShowDisclosure(false, true); - triangle->HideView(); if(_writable) { --- 285,294 ---- AssertValidView(expansion); expansion->ShowDisclosure(false, true); + if(picture != NULL) + triangle->ShowView(); + else + triangle->HideView(); + if(_writable) { *************** *** 583,586 **** --- 587,591 ---- view = _dlog->FindViewByID(kPictureCommon); + view->ShowView(); if(_writable) view->EnableView(); *************** *** 591,594 **** --- 596,600 ---- { view = _dlog->FindViewByID(kPictureSupplier); + view->ShowView(); if(_writable) view->EnableView(); |
|
From: Jeffrey B. <jlb...@us...> - 2008-04-11 10:40:20
|
Update of /cvsroot/igarden/Garden/source/Document In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv31048/source/Document Modified Files: Tag: Release_branch_v1 CDatabasePanel.cpp ClientDocument.cpp Log Message: If column set is read-only, then open a read-only version of the picture selection dialog Rcalculate scroll parameters when column set changes Index: ClientDocument.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/Document/ClientDocument.cpp,v retrieving revision 1.6.2.9 retrieving revision 1.6.2.10 diff -C2 -d -r1.6.2.9 -r1.6.2.10 *** ClientDocument.cpp 3 Apr 2008 00:10:10 -0000 1.6.2.9 --- ClientDocument.cpp 11 Apr 2008 10:40:23 -0000 1.6.2.10 *************** *** 270,273 **** --- 270,274 ---- _spec = spec; + DocEditorSave(); // Save state in prefs to write later if(useCompound) { Index: CDatabasePanel.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/Document/CDatabasePanel.cpp,v retrieving revision 1.4.2.24 retrieving revision 1.4.2.25 diff -C2 -d -r1.4.2.24 -r1.4.2.25 *** CDatabasePanel.cpp 8 Apr 2008 22:24:24 -0000 1.4.2.24 --- CDatabasePanel.cpp 11 Apr 2008 10:40:23 -0000 1.4.2.25 *************** *** 1999,2002 **** --- 1999,2003 ---- ColPtr(n)->visible = ColPtr(n)->newVisible; } + _table->RecalcScroll(); _table->EnableDrawing(); } |
|
From: Jeffrey B. <jlb...@us...> - 2008-04-11 10:38:57
|
Update of /cvsroot/igarden/Garden/source/Document In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv30209/source/Document Modified Files: Tag: Release_branch_v1 MaterialPictSelectDialog.cpp PictureCell.cpp Log Message: If column set is read-only, then open a read-only version of the picture selection dialog Rcalculate scroll parameters when column set changes Index: PictureCell.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/Document/PictureCell.cpp,v retrieving revision 1.10.2.13 retrieving revision 1.10.2.14 diff -C2 -d -r1.10.2.13 -r1.10.2.14 *** PictureCell.cpp 30 Mar 2008 21:59:12 -0000 1.10.2.13 --- PictureCell.cpp 11 Apr 2008 10:39:00 -0000 1.10.2.14 *************** *** 251,267 **** CGWorld* PictureCell::GetDefaultPicture(PictureInfo &entry) { ! if((_mat != NULL) && (_defaultPicture == NULL)) { if(_mat->GetDefaultPictureTag(entry)) { ! long nativeHeight, nativeWidth; ! CGWorld *gworld; ! XGFileSpecifier spec; ! ! CalcPathPictureSpec(spec, entry.GetLocalPath(), '/'); ! gworld = RGCompression::DecompressFile(spec, 0, 0, &nativeHeight, &nativeWidth); ! SetDefaultPicture(gworld, entry); } } return _defaultPicture; --- 251,275 ---- CGWorld* PictureCell::GetDefaultPicture(PictureInfo &entry) { ! if(_mat != NULL) { if(_mat->GetDefaultPictureTag(entry)) { ! if(_defaultPicture == NULL) ! { ! long nativeHeight, nativeWidth; ! CGWorld *gworld; ! XGFileSpecifier spec; ! ! CalcPathPictureSpec(spec, entry.GetLocalPath(), '/'); ! gworld = RGCompression::DecompressFile(spec, 0, 0, &nativeHeight, &nativeWidth); ! SetDefaultPicture(gworld, entry); ! } } } + else + { + entry.Clear(); + _defaultPicture = NULL; + } return _defaultPicture; Index: MaterialPictSelectDialog.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/Document/MaterialPictSelectDialog.cpp,v retrieving revision 1.19.2.8 retrieving revision 1.19.2.9 diff -C2 -d -r1.19.2.8 -r1.19.2.9 *** MaterialPictSelectDialog.cpp 19 Mar 2008 01:33:15 -0000 1.19.2.8 --- MaterialPictSelectDialog.cpp 11 Apr 2008 10:39:00 -0000 1.19.2.9 *************** *** 60,63 **** --- 60,64 ---- me = new MaterialPictureSelectDialog(proc, parent); me->_cell = cell; + me->SetReadOnly(cell->IsReadOnly()); me->SetAlternateExitKeys(exitChars); finished = me->Run(kPicturePickerDialog); *************** *** 236,239 **** --- 237,242 ---- pictureLoadInfo_t info; + PRECONDITION(!_cell->IsReadOnly()); + info.row = _cell->GetRow(); info.loadAll = true; *************** *** 246,249 **** --- 249,254 ---- void MaterialPictureSelectDialog::SetDefaultPictureToIndexed(long newSelect) { + PRECONDITION(!_cell->IsReadOnly()); + if(newSelect < GetNumPictures()) { *************** *** 273,279 **** --- 278,286 ---- XGFileSpecifier spec; bool foundPicture = false; + bool handled; XGFileHandle inHdl, outHdl; PictureSelectDialog::HandlePaste(); + uidName.Generate(); uidName.ConvertToString(uidStr); |
|
From: Jeffrey B. <jlb...@us...> - 2008-04-11 10:38:40
|
Update of /cvsroot/igarden/Garden/source/Plugins In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv30184/source/Plugins Modified Files: Tag: Release_branch_v1 PictureInfo.h PictureInfo.cpp Log Message: If column set is read-only, then open a read-only version of the picture selection dialog Rcalculate scroll parameters when column set changes Index: PictureInfo.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/Plugins/PictureInfo.cpp,v retrieving revision 1.6.2.2 retrieving revision 1.6.2.3 diff -C2 -d -r1.6.2.2 -r1.6.2.3 *** PictureInfo.cpp 12 Feb 2007 13:13:27 -0000 1.6.2.2 --- PictureInfo.cpp 11 Apr 2008 10:38:43 -0000 1.6.2.3 *************** *** 26,29 **** --- 26,46 ---- // --------------------------------------------------------------------------- + /// Clear + // + void PictureInfo::Clear() + { + String empty; + XGUUID nilUID; + + _url = empty; + _srcPath = empty; + _fullCanonical = empty; + _commonName = empty; + _copyright = empty; + _createdBy = empty; + _supplierID = nilUID; + } + + // --------------------------------------------------------------------------- /// SetExternalURL // Index: PictureInfo.h =================================================================== RCS file: /cvsroot/igarden/Garden/source/Plugins/PictureInfo.h,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -C2 -d -r1.3 -r1.3.2.1 *** PictureInfo.h 18 May 2006 11:16:43 -0000 1.3 --- PictureInfo.h 11 Apr 2008 10:38:43 -0000 1.3.2.1 *************** *** 27,30 **** --- 27,31 ---- { public: + void Clear(); void SetExternalURL(String &url); void SetLocalPath(String &url); |
|
From: Jeffrey B. <jlb...@us...> - 2008-04-11 10:38:22
|
Update of /cvsroot/igarden/Garden/source/SourceMaterialDB In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv30158/source/SourceMaterialDB Modified Files: Tag: Release_branch_v1 Material.cpp Log Message: If column set is read-only, then open a read-only version of the picture selection dialog Rcalculate scroll parameters when column set changes Index: Material.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/SourceMaterialDB/Material.cpp,v retrieving revision 1.43.2.11 retrieving revision 1.43.2.12 diff -C2 -d -r1.43.2.11 -r1.43.2.12 *** Material.cpp 21 Mar 2008 21:53:51 -0000 1.43.2.11 --- Material.cpp 11 Apr 2008 10:38:25 -0000 1.43.2.12 *************** *** 1266,1270 **** if(found) entry.SetEncodedString(nameStr); ! return found; } --- 1266,1272 ---- if(found) entry.SetEncodedString(nameStr); ! else ! entry.Clear(); ! return found; } |
|
From: Jeffrey B. <jlb...@us...> - 2008-04-11 10:26:12
|
Update of /cvsroot/igarden/CommonSource/YAAFExtensions In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv24728/YAAFExtensions Modified Files: Tag: Release_branch_v1 PictureSelectDialog.h RGTableView.cpp PictureSelectDialog.cpp Log Message: If column set is read-only, then open a read-only version of the picture selection dialog Rcalculate scroll parameters when column set changes Index: PictureSelectDialog.cpp =================================================================== RCS file: /cvsroot/igarden/CommonSource/YAAFExtensions/PictureSelectDialog.cpp,v retrieving revision 1.13.2.4 retrieving revision 1.13.2.5 diff -C2 -d -r1.13.2.4 -r1.13.2.5 *** PictureSelectDialog.cpp 19 Mar 2008 01:09:36 -0000 1.13.2.4 --- PictureSelectDialog.cpp 11 Apr 2008 10:25:58 -0000 1.13.2.5 *************** *** 71,74 **** --- 71,75 ---- _parentCallback = parent; _pasted = false; + _writable = true; } *************** *** 103,129 **** AssertValidView(scrollView); ! numOptions = GetNumPictures(); ! for(n = 0, text=""; n < numOptions; n++) { ! GetPicture(n, oneItem); ! text += oneItem; ! ! requiredLen = strlen(template3) + strlen(kPictureSelectTag) + 12; ! bufPtr = new char[requiredLen]; ! yformat(bufPtr, template3, kPictureSelectTag, n); ! text += bufPtr; ! delete [] bufPtr; ! ! text += "<br><hr>"; ! } ! if(CanLoadMorePictures()) ! { ! requiredLen = strlen(template4) + strlen(kPictureLoadTag); ! bufPtr = new char[requiredLen]; ! yformat(bufPtr, template4, kPictureLoadTag); ! text += bufPtr; ! delete [] bufPtr; } - displayView->SetText(text.c_str()); --- 104,132 ---- AssertValidView(scrollView); ! if(_writable) { ! numOptions = GetNumPictures(); ! for(n = 0, text=""; n < numOptions; n++) ! { ! GetPicture(n, oneItem); ! text += oneItem; ! ! requiredLen = strlen(template3) + strlen(kPictureSelectTag) + 12; ! bufPtr = new char[requiredLen]; ! yformat(bufPtr, template3, kPictureSelectTag, n); ! text += bufPtr; ! delete [] bufPtr; ! ! text += "<br><hr>"; ! } ! if(CanLoadMorePictures()) ! { ! requiredLen = strlen(template4) + strlen(kPictureLoadTag); ! bufPtr = new char[requiredLen]; ! yformat(bufPtr, template4, kPictureLoadTag); ! text += bufPtr; ! delete [] bufPtr; ! } } displayView->SetText(text.c_str()); *************** *** 135,139 **** textRect.left = textPos.h; if(textHeight < textSize.v) ! textHeight = textSize.v; textRect.bottom = textRect.top + textHeight; textRect.right = textRect.left + textSize.h; --- 138,142 ---- textRect.left = textPos.h; if(textHeight < textSize.v) ! textHeight = textSize.v; textRect.bottom = textRect.top + textHeight; textRect.right = textRect.left + textSize.h; *************** *** 147,150 **** --- 150,158 ---- } + void PictureSelectDialog::SetReadOnly(bool readOnly) + { + _writable = !readOnly; + } + #pragma mark PictureSelect *************** *** 167,201 **** RGHypertextView *mainTitleView; ! if(CIstrncmp(src, kPictureSelectTag, strlen(kPictureSelectTag)) == 0) ! { ! newSelect = strtol(src+strlen(kPictureSelectTag), &next, 10); ! SetDefaultPictureToIndexed(newSelect); ! GetDefaultPicture(titleStr); ! ! mainTitleView = dynamic_cast<RGHypertextView*>(_dlog->FindViewByID(kPictureSelectMainTitle)); ! AssertValidView(mainTitleView); ! mainTitleView->SetText(titleStr.c_str()); ! } ! else if(CIstrncmp(src, kPictureLoadTag, strlen(kPictureLoadTag)) == 0) ! { ! LoadAllPictures(); ! RebuildBottomPane(); ! } ! else { ! if(CIstrncmp(src, "http://", 7) == 0) ! strcpy(linkCopy, src); else { ! strcpy(linkCopy, "http://"); ! strcat(linkCopy, src); } - url = new CInternetConfig(RSGrdenCreator); // test application signature - url->Start(); - yaaf::cvtc2p(linkCopy); - (void)url->DoURL((unsigned char*)linkCopy); - delete url; - result = 0; } return result; --- 175,214 ---- RGHypertextView *mainTitleView; ! if(_writable) { ! if(CIstrncmp(src, kPictureSelectTag, strlen(kPictureSelectTag)) == 0) ! { ! newSelect = strtol(src+strlen(kPictureSelectTag), &next, 10); ! SetDefaultPictureToIndexed(newSelect); ! GetDefaultPicture(titleStr); ! ! mainTitleView = dynamic_cast<RGHypertextView*>(_dlog->FindViewByID(kPictureSelectMainTitle)); ! AssertValidView(mainTitleView); ! mainTitleView->SetText(titleStr.c_str()); ! } ! else if(CIstrncmp(src, kPictureLoadTag, strlen(kPictureLoadTag)) == 0) ! { ! LoadAllPictures(); ! RebuildBottomPane(); ! } else { ! if(CIstrncmp(src, "http://", 7) == 0) ! strcpy(linkCopy, src); ! else ! { ! strcpy(linkCopy, "http://"); ! strcat(linkCopy, src); ! } ! url = new CInternetConfig(RSGrdenCreator); // test application signature ! url->Start(); ! yaaf::cvtc2p(linkCopy); ! (void)url->DoURL((unsigned char*)linkCopy); ! delete url; ! result = 0; } } + else + XGBeep(); return result; *************** *** 274,277 **** --- 287,301 ---- triangle->HideView(); + if(_writable) + { + dlog->FindViewByID(2)->ShowView(); + dlog->SetTitle(stx("Picture Selection")); + } + else + { + dlog->FindViewByID(2)->HideView(); + dlog->SetTitle(stx("Picture Display")); + } + RebuildSupplierMenu(); *************** *** 298,312 **** String title, copyright; ! textCtl = dynamic_cast<XGEditText*>(dlog->FindViewByID(kPictureCopyright)); ! textCtl->GetTitle(textBuf); ! copyright = textBuf; ! ! textCtl = dynamic_cast<XGEditText*>(dlog->FindViewByID(kPictureCommon)); ! textCtl->GetTitle(textBuf); ! title = textBuf; ! SaveDefaultPictureProperties(title, copyright); - // Exit(1); XGBroadcast::RemoveBroadcast(_dlog); --- 322,340 ---- String title, copyright; ! if(_writable) ! { ! textCtl = dynamic_cast<XGEditText*>(dlog->FindViewByID(kPictureCopyright)); ! textCtl->GetTitle(textBuf); ! copyright = textBuf; ! ! textCtl = dynamic_cast<XGEditText*>(dlog->FindViewByID(kPictureCommon)); ! textCtl->GetTitle(textBuf); ! title = textBuf; ! SaveDefaultPictureProperties(title, copyright); ! ! // Exit(1); ! } XGBroadcast::RemoveBroadcast(_dlog); *************** *** 345,349 **** RGClipboard *clip = RGClipboard::GetClipboard(); ! if(clip->PictureKind() != kNotAPicture) { m->enable = true; --- 373,377 ---- RGClipboard *clip = RGClipboard::GetClipboard(); ! if(_writable && clip->PictureKind() != kNotAPicture) { m->enable = true; *************** *** 364,368 **** { case KXGEditPaste: ! HandlePaste(); return 0; break; --- 392,397 ---- { case KXGEditPaste: ! if(_writable) ! HandlePaste(); return 0; break; *************** *** 450,453 **** --- 479,483 ---- RGBorderlessIcon *triangle = dynamic_cast<RGBorderlessIcon*>(_dlog->FindViewByID(kPictureDisclosureIcon)); PRECONDITION(triangle != NULL); + PRECONDITION(_writable); triangle->ShowView(); *************** *** 543,550 **** void PictureSelectDialog::ShowPanel() { ! _dlog->FindViewByID(kPictureCopyright)->ShowView(); ! _dlog->FindViewByID(kPictureCommon)->ShowView(); if(NumLocationChoices() != 0) ! _dlog->FindViewByID(kPictureSupplier)->ShowView(); // _dlog->FindViewByID(kPictureWebSite)->ShowView(); } --- 573,599 ---- void PictureSelectDialog::ShowPanel() { ! XGView *view; ! ! view = _dlog->FindViewByID(kPictureCopyright); ! view->ShowView(); ! if(_writable) ! view->EnableView(); ! else ! view->DisableView(); ! ! view = _dlog->FindViewByID(kPictureCommon); ! if(_writable) ! view->EnableView(); ! else ! view->DisableView(); ! if(NumLocationChoices() != 0) ! { ! view = _dlog->FindViewByID(kPictureSupplier); ! if(_writable) ! view->EnableView(); ! else ! view->DisableView(); ! } // _dlog->FindViewByID(kPictureWebSite)->ShowView(); } Index: PictureSelectDialog.h =================================================================== RCS file: /cvsroot/igarden/CommonSource/YAAFExtensions/PictureSelectDialog.h,v retrieving revision 1.9 retrieving revision 1.9.2.1 diff -C2 -d -r1.9 -r1.9.2.1 *** PictureSelectDialog.h 9 Feb 2006 13:41:09 -0000 1.9 --- PictureSelectDialog.h 11 Apr 2008 10:25:58 -0000 1.9.2.1 *************** *** 71,74 **** --- 71,75 ---- void RebuildSupplierMenu(); void SetLocationMenuToMatch(long index); + void SetReadOnly(bool readOnly); private: *************** *** 80,83 **** --- 81,85 ---- void *_parentCallback; bool _pasted; + bool _writable; }; Index: RGTableView.cpp =================================================================== RCS file: /cvsroot/igarden/CommonSource/YAAFExtensions/RGTableView.cpp,v retrieving revision 1.28.2.35 retrieving revision 1.28.2.36 diff -C2 -d -r1.28.2.35 -r1.28.2.36 *** RGTableView.cpp 9 Apr 2008 03:36:52 -0000 1.28.2.35 --- RGTableView.cpp 11 Apr 2008 10:25:58 -0000 1.28.2.36 *************** *** 391,400 **** ColRecord *column = _colArray[selCol]; ! if(!_rowArray[selRow]->forceWritable || (cell != NULL && cell->GetType() == KTypeIcon)) { ! if ((column->display == true) || (cell != NULL && (cell->IsReadOnly() || cell->GetType() == KTypeIcon))) ! { ! SetSelectRow(selRow); ! return false; } } --- 391,403 ---- ColRecord *column = _colArray[selCol]; ! if(cell->GetType() != KTypePicture) // Always open picture type, as it can't be seen otehrwise { ! if(!_rowArray[selRow]->forceWritable || (cell != NULL && cell->GetType() == KTypeIcon)) ! { ! if ((column->display == true) || (cell != NULL && (cell->IsReadOnly() || cell->GetType() == KTypeIcon))) ! { ! SetSelectRow(selRow); ! return false; ! } } } *************** *** 655,662 **** h = draw.GetFontHeight(); if (_colArray.Length() >= 1) { ! ct = _colArray.Length() - 1; ! x = _colArray[ct]->origin + _colArray[ct]->width; } else --- 658,672 ---- h = draw.GetFontHeight(); + RecalcWidth(); if (_colArray.Length() >= 1) { ! for(ct = _colArray.Length() - 1; ct >= 0; ct--) ! { ! if(_colArray[ct]->visible) ! { ! x = _colArray[ct]->origin + _colArray[ct]->width; ! break; ! } ! } } else |
|
From: Jeffrey B. <jlb...@us...> - 2008-04-10 22:28:20
|
Update of /cvsroot/igarden/Garden/source/Document In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv31419/source/Document Modified Files: Tag: Release_branch_v1 SupplierCell.cpp Log Message: Clearing source column doesn't make an undo record correctly Index: SupplierCell.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/Document/SupplierCell.cpp,v retrieving revision 1.4.2.11 retrieving revision 1.4.2.12 diff -C2 -d -r1.4.2.11 -r1.4.2.12 *** SupplierCell.cpp 30 Mar 2008 21:59:05 -0000 1.4.2.11 --- SupplierCell.cpp 10 Apr 2008 22:28:19 -0000 1.4.2.12 *************** *** 254,262 **** --- 254,266 ---- { if(BooleanQueryDialog::DoBooleanQueryDialog(147)) // Ask "really delete?" + { ClearInfoSuppliers(menu, value, _client); + changed = true; + } } else if(value == 0) { ClearInfoSuppliers(menu, value, _client); + changed = true; } else if(value < menuSize-2) // item == numSuppliers is separator line |
|
From: Jeffrey B. <jlb...@us...> - 2008-04-09 03:36:50
|
Update of /cvsroot/igarden/CommonSource/YAAFExtensions In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv12602/YAAFExtensions Modified Files: Tag: Release_branch_v1 RGTableView.cpp RGTableView.h Log Message: Make columns wide enough to avoid splitting the longest word, and recompute title height with each new font. Index: RGTableView.cpp =================================================================== RCS file: /cvsroot/igarden/CommonSource/YAAFExtensions/RGTableView.cpp,v retrieving revision 1.28.2.34 retrieving revision 1.28.2.35 diff -C2 -d -r1.28.2.34 -r1.28.2.35 *** RGTableView.cpp 9 Apr 2008 03:03:17 -0000 1.28.2.34 --- RGTableView.cpp 9 Apr 2008 03:36:52 -0000 1.28.2.35 *************** *** 63,66 **** --- 63,68 ---- const long kDefaultTableFont = 138; + const short kBorderWidths = 8; // 4 pixels on either side + const short kTitleRows = 4; #pragma mark Construction / Destruction *************** *** 85,89 **** _sizeWidth = false; _setFocus = true; ! _titleHeight = (3+2) * draw.GetFontHeight(); _columnTitles.DeleteAll(); _titleClickMsg = 0; --- 87,91 ---- _sizeWidth = false; _setFocus = true; ! _titleHeight = kTitleRows * draw.GetFontHeight(); _columnTitles.DeleteAll(); _titleClickMsg = 0; *************** *** 144,148 **** _sizeWidth = false; _setFocus = true; ! _titleHeight = (3+2) * draw.GetFontHeight(); _columnTitles.DeleteAll(); _titleClickMsg = 0; --- 146,150 ---- _sizeWidth = false; _setFocus = true; ! _titleHeight = kTitleRows * draw.GetFontHeight(); _columnTitles.DeleteAll(); _titleClickMsg = 0; *************** *** 517,521 **** char oldName[256]; short oldSize; ! long origin, width, n, count; RGTableCell *cell; --- 519,523 ---- char oldName[256]; short oldSize; ! long origin, width, n, count, hdrWidth; RGTableCell *cell; *************** *** 525,531 **** --- 527,538 ---- if((oldSize != fontSize) || (strcmp(name, oldName) != 0)) { + XGDraw draw(this); + _font->SetFontName(name); _font->SetFontSize(fontSize); + draw.SetFontObject(_font); + _titleHeight = kTitleRows * draw.GetFontHeight(); + count = _colArray.Length(); for(n = 0, origin = 0; n < count; n++) *************** *** 550,553 **** --- 557,564 ---- if(width < _colArray[n]->initialWidth) width = _colArray[n]->initialWidth; + hdrWidth = MinHeadingWidth(_colArray[n]->title.c_str(), draw); + if(width < hdrWidth) + width = hdrWidth; + width += kBorderWidths; _colArray[n]->origin = origin; *************** *** 862,867 **** { struct ColRecord *info; ! short n, count, origin, minWidth, initialWidth; RGTableCell *cell; count = _colArray.Length(); --- 873,879 ---- { struct ColRecord *info; ! short n, count, origin, minWidth, initialWidth, hdrWidth; RGTableCell *cell; + XGDraw draw(this); count = _colArray.Length(); *************** *** 882,885 **** --- 894,901 ---- if(width < minWidth) width = minWidth; + hdrWidth = MinHeadingWidth(title, draw); + if(width < hdrWidth) + width = hdrWidth; + width += kBorderWidths; delete cell; *************** *** 899,902 **** --- 915,919 ---- info->menuRef = menuRef; info->client = client; + info->title.SetCString(title); if(client != NULL) { *************** *** 2683,2684 **** --- 2700,2723 ---- } + short RGTableView::MinHeadingWidth(const char *title, XGDraw &draw) + { + char *next; + short maxWidth = 0, oneWidth; + + draw.SetFontObject(_font); + next = strchr(title, ' '); + while(next != NULL) + { + oneWidth = draw.StringWidth(title, next-title); + if(oneWidth > maxWidth) + maxWidth = oneWidth; + + title = next+1; + next = strchr(title, ' '); + } + oneWidth = draw.StringWidth(title, strlen(title)); + if(oneWidth > maxWidth) + maxWidth = oneWidth; + + return maxWidth; + } \ No newline at end of file Index: RGTableView.h =================================================================== RCS file: /cvsroot/igarden/CommonSource/YAAFExtensions/RGTableView.h,v retrieving revision 1.16.2.14 retrieving revision 1.16.2.15 diff -C2 -d -r1.16.2.14 -r1.16.2.15 *** RGTableView.h 9 Apr 2008 03:03:12 -0000 1.16.2.14 --- RGTableView.h 9 Apr 2008 03:36:53 -0000 1.16.2.15 *************** *** 106,109 **** --- 106,110 ---- short cellType; uint32 menuRef; + String title; ClientColumn *client; }; *************** *** 337,340 **** --- 338,342 ---- void DrawHeaderButton(XGDraw &draw, Rect &s, buttonTask_t task, bool isPrinter); short NearDragEdge(Point pt); + short MinHeadingWidth(const char *title, XGDraw &draw); /* |
|
From: Jeffrey B. <jlb...@us...> - 2008-04-09 03:03:17
|
Update of /cvsroot/igarden/CommonSource/YAAFExtensions In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv15098/YAAFExtensions Modified Files: Tag: Release_branch_v1 RGTableView.h RGTableView.cpp Log Message: Adjust existing columns widths when font is changed Index: RGTableView.cpp =================================================================== RCS file: /cvsroot/igarden/CommonSource/YAAFExtensions/RGTableView.cpp,v retrieving revision 1.28.2.33 retrieving revision 1.28.2.34 diff -C2 -d -r1.28.2.33 -r1.28.2.34 *** RGTableView.cpp 8 Apr 2008 22:23:11 -0000 1.28.2.33 --- RGTableView.cpp 9 Apr 2008 03:03:17 -0000 1.28.2.34 *************** *** 515,521 **** void RGTableView::SetFont(char *name, long fontSize) { ! _font->SetFontName(name); ! _font->SetFontSize(fontSize); ! InvalView(); } --- 515,563 ---- void RGTableView::SetFont(char *name, long fontSize) { ! char oldName[256]; ! short oldSize; ! long origin, width, n, count; ! RGTableCell *cell; ! ! _font->GetFontName(oldName); ! oldSize = _font->GetFontSize(); ! ! if((oldSize != fontSize) || (strcmp(name, oldName) != 0)) ! { ! _font->SetFontName(name); ! _font->SetFontSize(fontSize); ! ! count = _colArray.Length(); ! for(n = 0, origin = 0; n < count; n++) ! { ! cell = (*(_colArray[n]->factory))(&_data, NULL, NULL, this); ! cell->SetEmpty(_colArray[n]->cellType); ! switch(_colArray[n]->cellType) ! { ! case KTypeMenu: ! cell->SetMenu(_colArray[n]->menuRef, 0); ! break; ! case KTypeBitfieldMenu: ! cell->SetBitfieldMenu(_colArray[n]->menuRef, 0); ! break; ! case KTypeBitfieldRangeMenu: ! cell->SetBitfieldRangeMenu(_colArray[n]->menuRef, 0); ! break; ! default: ! break; ! } ! width = cell->MinColumnWidth(); ! if(width < _colArray[n]->initialWidth) ! width = _colArray[n]->initialWidth; ! ! _colArray[n]->origin = origin; ! _colArray[n]->width = width; ! ! delete cell; ! origin += width; ! } ! ! InvalView(); ! } } *************** *** 820,824 **** { struct ColRecord *info; ! short n, count, origin, minWidth; RGTableCell *cell; --- 862,866 ---- { struct ColRecord *info; ! short n, count, origin, minWidth, initialWidth; RGTableCell *cell; *************** *** 836,839 **** --- 878,882 ---- cell->SetBitfieldRangeMenu(menuRef, 0); + initialWidth = width; minWidth = cell->MinColumnWidth(); if(width < minWidth) *************** *** 848,855 **** --- 891,901 ---- info->resize = false; info->origin = origin; + info->initialWidth = initialWidth; info->width = width; info->visible = true; info->ordered = false; info->factory = factory; + info->cellType = cellType; + info->menuRef = menuRef; info->client = client; if(client != NULL) Index: RGTableView.h =================================================================== RCS file: /cvsroot/igarden/CommonSource/YAAFExtensions/RGTableView.h,v retrieving revision 1.16.2.13 retrieving revision 1.16.2.14 diff -C2 -d -r1.16.2.13 -r1.16.2.14 *** RGTableView.h 30 Mar 2008 21:57:33 -0000 1.16.2.13 --- RGTableView.h 9 Apr 2008 03:03:12 -0000 1.16.2.14 *************** *** 99,106 **** --- 99,109 ---- bool resize; short origin; + short initialWidth; short width; bool visible; bool ordered; cellFactory_t factory; + short cellType; + uint32 menuRef; ClientColumn *client; }; |
|
From: Jeffrey B. <jlb...@us...> - 2008-04-09 03:02:14
|
Update of /cvsroot/igarden/Garden/source/Document In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv14080/source/Document Modified Files: Tag: Release_branch_v1 GerminationCell.h FlexCountCell.cpp FlexCountCell.h GerminationCell.cpp Log Message: Adjust existing columns widths when font is changed Index: FlexCountCell.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/Document/FlexCountCell.cpp,v retrieving revision 1.2.2.9 retrieving revision 1.2.2.10 diff -C2 -d -r1.2.2.9 -r1.2.2.10 *** FlexCountCell.cpp 30 Mar 2008 21:59:06 -0000 1.2.2.9 --- FlexCountCell.cpp 9 Apr 2008 03:02:04 -0000 1.2.2.10 *************** *** 150,154 **** if(drawGridBack) draw.EraseRect(back); ! draw.SetFontObject(XGFont::LoadFont(138)); // Handle flexCount here so that we wrap the text, but not the select color --- 150,154 ---- if(drawGridBack) draw.EraseRect(back); ! draw.SetFontObject(_font); // Handle flexCount here so that we wrap the text, but not the select color *************** *** 383,386 **** --- 383,399 ---- } + //******************************************* + /// MinColumnWidth + // + short FlexCountCell::MinColumnWidth() + { + XGDraw draw(_parent); + short width = WidthOfString("XXXX", draw); + + width += kFlexMenuIconWidth + 5; + return width; + } + + #pragma mark FlexCountSpecific Index: GerminationCell.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/Document/GerminationCell.cpp,v retrieving revision 1.4.2.11 retrieving revision 1.4.2.12 diff -C2 -d -r1.4.2.11 -r1.4.2.12 *** GerminationCell.cpp 30 Mar 2008 21:59:09 -0000 1.4.2.11 --- GerminationCell.cpp 9 Apr 2008 03:02:07 -0000 1.4.2.12 *************** *** 174,178 **** MarkReadOnly(draw, back, backColor); draw.SetForeColor(_textColor); ! draw.SetFontObject(XGFont::LoadFont(138)); // Handle flexCount here so that we wrap the text, but not the select color --- 174,178 ---- MarkReadOnly(draw, back, backColor); draw.SetForeColor(_textColor); ! draw.SetFontObject(_font); // Handle flexCount here so that we wrap the text, but not the select color *************** *** 247,250 **** --- 247,259 ---- } + //******************************************* + /// MinColumnWidth + // + short GerminationCell::MinColumnWidth() + { + XGDraw draw(_parent); + return WidthOfString("88/88/8888,100%", draw); + } + #pragma mark Cell-specific calls Index: GerminationCell.h =================================================================== RCS file: /cvsroot/igarden/Garden/source/Document/GerminationCell.h,v retrieving revision 1.3.2.2 retrieving revision 1.3.2.3 diff -C2 -d -r1.3.2.2 -r1.3.2.3 *** GerminationCell.h 30 Mar 2008 21:59:03 -0000 1.3.2.2 --- GerminationCell.h 9 Apr 2008 03:02:04 -0000 1.3.2.3 *************** *** 41,44 **** --- 41,45 ---- virtual long ComputeCellHeight(XGDraw& draw); virtual bool EditSelectItem(bool doPopup, Point *where); + virtual short MinColumnWidth(); void SetGerminationData(InstanceData *clientData, const char *data); Index: FlexCountCell.h =================================================================== RCS file: /cvsroot/igarden/Garden/source/Document/FlexCountCell.h,v retrieving revision 1.2.2.2 retrieving revision 1.2.2.3 diff -C2 -d -r1.2.2.2 -r1.2.2.3 *** FlexCountCell.h 30 Mar 2008 21:59:16 -0000 1.2.2.2 --- FlexCountCell.h 9 Apr 2008 03:02:06 -0000 1.2.2.3 *************** *** 44,47 **** --- 44,48 ---- virtual long ComputeCellHeight(XGDraw& draw); virtual bool EditSelectItem(bool doPopup, Point *where); + virtual short MinColumnWidth(); void SetFlexCount(FlexCount &count); |
|
From: Jeffrey B. <jlb...@us...> - 2008-04-08 22:26:46
|
Update of /cvsroot/igarden/Garden/source/LayoutDB In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv6264/source/LayoutDB Modified Files: Tag: Release_branch_v1 MaterialRef.cpp Log Message: Fix bug where you can't add "current height" on a row where maxHeight hasn't been set. Index: MaterialRef.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/LayoutDB/MaterialRef.cpp,v retrieving revision 1.119.2.32 retrieving revision 1.119.2.33 diff -C2 -d -r1.119.2.32 -r1.119.2.33 *** MaterialRef.cpp 26 Mar 2008 22:24:56 -0000 1.119.2.32 --- MaterialRef.cpp 8 Apr 2008 22:26:50 -0000 1.119.2.33 *************** *** 2099,2103 **** // 1 + e ! BoundedInstanceData(year, kPlantInstanceSpread, &before, &after); if(before != NULL) { --- 2099,2103 ---- // 1 + e ! BoundedInstanceData(year, instanceAttr, &before, &after); if(before != NULL) { |
|
From: Jeffrey B. <jlb...@us...> - 2008-04-08 22:24:23
|
Update of /cvsroot/igarden/Garden/source/Document In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv5369/source/Document Modified Files: Tag: Release_branch_v1 CDatabasePanel.h CDatabasePanel.cpp Log Message: Display color text for all instance columns. Index: CDatabasePanel.h =================================================================== RCS file: /cvsroot/igarden/Garden/source/Document/CDatabasePanel.h,v retrieving revision 1.17.2.12 retrieving revision 1.17.2.13 diff -C2 -d -r1.17.2.12 -r1.17.2.13 *** CDatabasePanel.h 19 Mar 2008 01:18:29 -0000 1.17.2.12 --- CDatabasePanel.h 8 Apr 2008 22:24:23 -0000 1.17.2.13 *************** *** 193,196 **** --- 193,197 ---- static UInt32 ThisYear(); void LoadFontFromPrefs(); + bool IsYearlyColumn(short column); DBRow_t *RowPtr(long row); Index: CDatabasePanel.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/Document/CDatabasePanel.cpp,v retrieving revision 1.4.2.23 retrieving revision 1.4.2.24 diff -C2 -d -r1.4.2.23 -r1.4.2.24 *** CDatabasePanel.cpp 5 Apr 2008 23:08:39 -0000 1.4.2.23 --- CDatabasePanel.cpp 8 Apr 2008 22:24:24 -0000 1.4.2.24 *************** *** 4184,4190 **** result = KXGColorBlack; // Assume until proven otherwise ! if(ColPtr(column)->type == kAttribute && ! ColPtr(column)->attrClass == kInstanceAttribute && ! _parentDoc != NULL) { inst = RowPtr(row)->ref->GetIndexedInstanceAttributes(subRow); --- 4184,4188 ---- result = KXGColorBlack; // Assume until proven otherwise ! if(IsYearlyColumn(column) && _parentDoc != NULL) { inst = RowPtr(row)->ref->GetIndexedInstanceAttributes(subRow); *************** *** 4650,4653 **** --- 4648,4663 ---- } + bool CDatabasePanel::IsYearlyColumn(short column) + { + DBColumn_t *cp = ColPtr(column); + if(cp->type == kAttribute && cp->attrClass == kInstanceAttribute) + return true; + else if(cp->type == kQuantity || cp->type == kItemHeight || + cp->type == kItemSpread || cp->type == kMaterialState || + cp->type == kInfoSupplierCol) + return true; + else + return false; + } #if OPT_MACOS == 1 |
|
From: Jeffrey B. <jlb...@us...> - 2008-04-08 22:23:09
|
Update of /cvsroot/igarden/CommonSource/YAAFExtensions In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv4966/YAAFExtensions Modified Files: Tag: Release_branch_v1 RGTableView.cpp Log Message: Fix bug where grid lines draw in color Index: RGTableView.cpp =================================================================== RCS file: /cvsroot/igarden/CommonSource/YAAFExtensions/RGTableView.cpp,v retrieving revision 1.28.2.32 retrieving revision 1.28.2.33 diff -C2 -d -r1.28.2.32 -r1.28.2.33 *** RGTableView.cpp 30 Mar 2008 21:57:35 -0000 1.28.2.32 --- RGTableView.cpp 8 Apr 2008 22:23:11 -0000 1.28.2.33 *************** *** 1395,1398 **** --- 1395,1399 ---- } + draw.SetForeColor(KXGColorBlack); draw.ClipRect(NULL); draw.SetPenWidth(2); *************** *** 1469,1472 **** --- 1470,1474 ---- if(ix == 0) { + draw.SetForeColor(KXGColorBlack); draw.MoveTo(body.left, t); draw.LineTo(rightEdge, t); |
|
From: Jeffrey B. <jlb...@us...> - 2008-04-08 22:22:33
|
Update of /cvsroot/igarden/CommonSource/YAAFExtensions In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv4531/YAAFExtensions Modified Files: Tag: Release_branch_v1 RGTableCell.cpp RGTableCell.h Log Message: Allow unhandled return key to exit dialogs Index: RGTableCell.h =================================================================== RCS file: /cvsroot/igarden/CommonSource/YAAFExtensions/RGTableCell.h,v retrieving revision 1.23.2.10 retrieving revision 1.23.2.11 diff -C2 -d -r1.23.2.10 -r1.23.2.11 *** RGTableCell.h 30 Mar 2008 21:57:29 -0000 1.23.2.10 --- RGTableCell.h 8 Apr 2008 22:22:36 -0000 1.23.2.11 *************** *** 240,249 **** class AddRemoveDialog : public RGDialog { ! virtual void Setup(XGDialog * /*dlog*/) {} ! virtual void OKClicked(XGDialog * /*dlog*/) { Exit(kDoAdd); } ! virtual void CancelClicked(XGDialog * /*dlog*/) { Exit(kdoCancel); } ! virtual void ControlClick(XGDialog * /*dlog*/, long /*viewID*/) { Exit(kDoReplace); } ! public: ! static bool DoBooleanQueryDialog(long resID); }; --- 240,248 ---- class AddRemoveDialog : public RGDialog { ! virtual void Setup(XGDialog * /*dlog*/); ! virtual void OKClicked(XGDialog * /*dlog*/); ! virtual void CancelClicked(XGDialog * /*dlog*/); ! virtual void ControlClick(XGDialog * /*dlog*/, long /*viewID*/); ! virtual bool KeyPressed(XGDialog *dlog, short low, short high); }; Index: RGTableCell.cpp =================================================================== RCS file: /cvsroot/igarden/CommonSource/YAAFExtensions/RGTableCell.cpp,v retrieving revision 1.46.2.21 retrieving revision 1.46.2.22 diff -C2 -d -r1.46.2.21 -r1.46.2.22 *** RGTableCell.cpp 30 Mar 2008 21:57:27 -0000 1.46.2.21 --- RGTableCell.cpp 8 Apr 2008 22:22:36 -0000 1.46.2.22 *************** *** 749,752 **** --- 749,753 ---- break; } + _parent->DoActivate(true); } } *************** *** 1691,1692 **** --- 1692,1724 ---- } + #pragma mark *** AddRemoveDialog *** + + void AddRemoveDialog::Setup(XGDialog * /*dlog*/) + { + } + + void AddRemoveDialog::OKClicked(XGDialog * /*dlog*/) + { + Exit(kDoAdd); + } + + void AddRemoveDialog::CancelClicked(XGDialog * /*dlog*/) + { + Exit(kdoCancel); + } + + void AddRemoveDialog::ControlClick(XGDialog * /*dlog*/, long /*viewID*/) + { + Exit(kDoReplace); + } + + bool AddRemoveDialog::KeyPressed(XGDialog *dlog, short low, short high) + { + if(high == 0 && low == '\r') + { + OKClicked(dlog); + return true; + } + else + return false; + } |
|
From: Jeffrey B. <jlb...@us...> - 2008-04-08 22:21:39
|
Update of /cvsroot/igarden/CommonSource/YAAFExtensions In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv3958/YAAFExtensions Modified Files: Tag: Release_branch_v1 RGDialog.h RGDialog.cpp Log Message: Allow unhandled return key to exit dialogs Index: RGDialog.h =================================================================== RCS file: /cvsroot/igarden/CommonSource/YAAFExtensions/RGDialog.h,v retrieving revision 1.5.2.6 retrieving revision 1.5.2.7 diff -C2 -d -r1.5.2.6 -r1.5.2.7 *** RGDialog.h 23 Mar 2008 21:44:59 -0000 1.5.2.6 --- RGDialog.h 8 Apr 2008 22:21:34 -0000 1.5.2.7 *************** *** 78,81 **** --- 78,85 ---- void SetDefaultCancel(short val); + protected: + short _defaultOK; + short _defaultCancel; + private: static long dialogProc(XGDialog *dlog, void *data, long msg, long arg, void *parg); *************** *** 84,89 **** RGPDialogCallbackProc _cb; void *_cbContext; - short _defaultOK; - short _defaultCancel; // ** char *_alternateExitKeys; --- 88,91 ---- Index: RGDialog.cpp =================================================================== RCS file: /cvsroot/igarden/CommonSource/YAAFExtensions/RGDialog.cpp,v retrieving revision 1.7.2.13 retrieving revision 1.7.2.14 diff -C2 -d -r1.7.2.13 -r1.7.2.14 *** RGDialog.cpp 23 Mar 2008 21:44:59 -0000 1.7.2.13 --- RGDialog.cpp 8 Apr 2008 22:21:34 -0000 1.7.2.14 *************** *** 118,122 **** else { ! obj->KeyPressed(dlog, low, high); return 0; } --- 118,129 ---- else { ! if(!obj->KeyPressed(dlog, low, high)) ! { ! if(high == 0 && low == '\r') ! { ! obj->OKClicked(dlog); ! obj->Exit(obj->_defaultOK); ! } ! } return 0; } |
|
From: Jeffrey B. <jlb...@us...> - 2008-04-08 22:20:45
|
Update of /cvsroot/igarden/CommonSource/CalendarView In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv3200/CalendarView Modified Files: Tag: Release_branch_v1 CalendarView.h CalendarView.cpp Log Message: Handle exiting date dialog with the OK button Index: CalendarView.cpp =================================================================== RCS file: /cvsroot/igarden/CommonSource/CalendarView/CalendarView.cpp,v retrieving revision 1.6.2.1 retrieving revision 1.6.2.2 diff -C2 -d -r1.6.2.1 -r1.6.2.2 *** CalendarView.cpp 22 Aug 2007 13:00:27 -0000 1.6.2.1 --- CalendarView.cpp 8 Apr 2008 22:20:42 -0000 1.6.2.2 *************** *** 144,148 **** theHotSpot = FindHotSpot(pt); if((theHotSpot != prevMonthHotSpot) && (theHotSpot != nextMonthHotSpot)) ! SendMessage(kCalendarDoubleClock,0,0); } return true; --- 144,148 ---- theHotSpot = FindHotSpot(pt); if((theHotSpot != prevMonthHotSpot) && (theHotSpot != nextMonthHotSpot)) ! SendMessage(kCalendarDoubleClick,0,0); } return true; *************** *** 157,160 **** --- 157,161 ---- { HotSpotResult(theHotSpot); + SendMessage(kCalendarSingleClick,0,0); } mMouseDown = false; Index: CalendarView.h =================================================================== RCS file: /cvsroot/igarden/CommonSource/CalendarView/CalendarView.h,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -C2 -d -r1.4 -r1.4.2.1 *** CalendarView.h 13 Jan 2006 22:54:19 -0000 1.4 --- CalendarView.h 8 Apr 2008 22:20:32 -0000 1.4.2.1 *************** *** 33,37 **** #include <XGSend.h> ! const long kCalendarDoubleClock = 'cdbl'; using namespace yaaf; --- 33,38 ---- #include <XGSend.h> ! const long kCalendarDoubleClick = 'cdbl'; ! const long kCalendarSingleClick = 'csgl'; using namespace yaaf; |
|
From: Jeffrey B. <jlb...@us...> - 2008-04-08 22:20:45
|
Update of /cvsroot/igarden/CommonSource/YAAFExtensions In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv3200/YAAFExtensions Modified Files: Tag: Release_branch_v1 DateSelectDialog.cpp Log Message: Handle exiting date dialog with the OK button Index: DateSelectDialog.cpp =================================================================== RCS file: /cvsroot/igarden/CommonSource/YAAFExtensions/DateSelectDialog.cpp,v retrieving revision 1.6.2.9 retrieving revision 1.6.2.10 diff -C2 -d -r1.6.2.9 -r1.6.2.10 *** DateSelectDialog.cpp 19 Mar 2008 01:09:40 -0000 1.6.2.9 --- DateSelectDialog.cpp 8 Apr 2008 22:20:44 -0000 1.6.2.10 *************** *** 77,82 **** { cal->SetCalendarDate(inDate, true); - _dateValid = true; } dlog->SetTitle(stx("Date Select")); text = dynamic_cast<XGStaticText*>(dlog->FindViewByID(4)); --- 77,82 ---- { cal->SetCalendarDate(inDate, true); } + _dateValid = true; dlog->SetTitle(stx("Date Select")); text = dynamic_cast<XGStaticText*>(dlog->FindViewByID(4)); *************** *** 228,231 **** --- 228,232 ---- AssertValidView(cal); cal->GetCalendarDate(outDate); + _date = outDate; } *************** *** 263,267 **** void DateSelectDialog::OtherEvent(XGDialog *dlog, long msg, long /*arg*/, void * /*parg*/) { ! if(msg == kCalendarDoubleClock) { CalendarView *cal; --- 264,272 ---- void DateSelectDialog::OtherEvent(XGDialog *dlog, long msg, long /*arg*/, void * /*parg*/) { ! if(msg == kCalendarSingleClick) ! { ! _dateValid = true; ! } ! else if(msg == kCalendarDoubleClick) { CalendarView *cal; |
|
From: Jeffrey B. <jlb...@us...> - 2008-04-06 04:05:50
|
Update of /cvsroot/igarden/CommonSource/YAAFExtensions In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv31559/YAAFExtensions Modified Files: Tag: Release_branch_v1 RGSimpleDialogs.cpp Log Message: Internationalize the binary question dialog Index: RGSimpleDialogs.cpp =================================================================== RCS file: /cvsroot/igarden/CommonSource/YAAFExtensions/RGSimpleDialogs.cpp,v retrieving revision 1.3.2.4 retrieving revision 1.3.2.5 diff -C2 -d -r1.3.2.4 -r1.3.2.5 *** RGSimpleDialogs.cpp 2 Mar 2008 01:36:56 -0000 1.3.2.4 --- RGSimpleDialogs.cpp 6 Apr 2008 04:05:54 -0000 1.3.2.5 *************** *** 69,73 **** if (text) { text->GetTitle(buffer); ! vyformat(outBuffer, buffer, _list); text->SetTitle(outBuffer); } --- 69,73 ---- if (text) { text->GetTitle(buffer); ! vyformat(outBuffer, stx(buffer), _list); text->SetTitle(outBuffer); } |
|
From: Jeffrey B. <jlb...@us...> - 2008-04-06 04:05:05
|
Update of /cvsroot/igarden/Garden/source/Document In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv31392/source/Document Modified Files: Tag: Release_branch_v1 CGardenForm.cpp Log Message: Handle double-clicking an example plan file Index: CGardenForm.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/Document/CGardenForm.cpp,v retrieving revision 1.4.2.9 retrieving revision 1.4.2.10 diff -C2 -d -r1.4.2.9 -r1.4.2.10 *** CGardenForm.cpp 3 Apr 2008 00:10:09 -0000 1.4.2.9 --- CGardenForm.cpp 6 Apr 2008 04:05:07 -0000 1.4.2.10 *************** *** 52,55 **** --- 52,56 ---- #include "XGProgress.h" #include "XGStaticText.h" + #include "RGSimpleDialogs.h" static OSStatus WindowEventHandler(EventHandlerCallRef inHandlerCallRef, EventRef inEvent, void *inUserData); *************** *** 1146,1150 **** CGardenPanel *sub; DocumentTags *tags; ! char str[256]; XGString top; CGardenForm *doc = NULL, *oldDoc; --- 1147,1151 ---- CGardenPanel *sub; DocumentTags *tags; ! char str[256], ext[64]; XGString top; CGardenForm *doc = NULL, *oldDoc; *************** *** 1153,1156 **** --- 1154,1201 ---- PRECONDITION(inFileSpec != NULL); inFileSpec->GetName(str); + inFileSpec->GetFileExtension(ext); + if(strcmp(ext, kRedstartExamplePlanExt) == 0) + { + long errLine; + + if(_numDocuments >= 1) + { + CGardenForm* oldForm; + XGString title; + ClientDocument *doc; + const char *name; + + oldForm = TopDocument(); + doc = oldForm->GetFile(); + + if(doc->IsDocumentNamed()) + { + oldForm->GetTitle(title); + name = title.c_str(); + } + else + name = stx("Untitled"); + + if(BooleanQueryDialog::DoBooleanQueryDialog(198, name)) + { + doc->ImportPlan(*inFileSpec, RSGardenTemplateType, errLine); + return oldForm; + } + else + return NULL; + } + else + { + if(BooleanQueryDialog::DoBooleanQueryDialog(199)) + { + CGardenForm* newForm = NewDocument(); + newForm->GetFile()->ImportPlan(*inFileSpec, RSGardenTemplateType, errLine); + return newForm; + } + else + return NULL; + } + } + nameLen = strlen(str); #if 0 |