diff --git a/Classes/ChatRoomViewController.h b/Classes/ChatRoomViewController.h index c1a10d0b7..c83364ae2 100644 --- a/Classes/ChatRoomViewController.h +++ b/Classes/ChatRoomViewController.h @@ -46,6 +46,8 @@ @property (nonatomic, retain) IBOutlet UIView *messageView; @property (nonatomic, retain) IBOutlet UIImageView *messageBackgroundImage; @property (nonatomic, retain) IBOutlet UIImageView *footerBackgroundImage; +@property (nonatomic, retain) IBOutlet UITapGestureRecognizer *listTapGestureRecognizer; + @property (nonatomic, copy) NSString *remoteAddress; - (IBAction)onBackClick:(id)event; diff --git a/Classes/ChatRoomViewController.m b/Classes/ChatRoomViewController.m index b82d0215c..180017b5e 100644 --- a/Classes/ChatRoomViewController.m +++ b/Classes/ChatRoomViewController.m @@ -37,6 +37,7 @@ @synthesize messageView; @synthesize messageBackgroundImage; @synthesize footerBackgroundImage; +@synthesize listTapGestureRecognizer; #pragma mark - Lifecycle Functions @@ -63,6 +64,7 @@ [messageView release]; [messageBackgroundImage release]; [footerBackgroundImage release]; + [listTapGestureRecognizer release]; [super dealloc]; } @@ -292,6 +294,15 @@ static void message_status(LinphoneChatMessage* msg,LinphoneChatMessageState sta #pragma mark - UITextFieldDelegate Functions +- (BOOL)growingTextViewShouldBeginEditing:(HPGrowingTextView *)growingTextView { + if(editButton.selected) { + [tableController setEditing:FALSE animated:TRUE]; + [editButton setOff]; + [listTapGestureRecognizer setEnabled:TRUE]; + } + return TRUE; +} + - (void)growingTextView:(HPGrowingTextView *)growingTextView willChangeHeight:(float)height { int diff = height - growingTextView.bounds.size.height; @@ -323,6 +334,7 @@ static void message_status(LinphoneChatMessage* msg,LinphoneChatMessageState sta } - (IBAction)onEditClick:(id)event { + [listTapGestureRecognizer setEnabled:[tableController isEditing]]; [tableController setEditing:![tableController isEditing] animated:TRUE]; [messageField resignFirstResponder]; } diff --git a/Classes/LinphoneUI/UIChatRoomCell.m b/Classes/LinphoneUI/UIChatRoomCell.m index e0bc54616..0ccfcce18 100644 --- a/Classes/LinphoneUI/UIChatRoomCell.m +++ b/Classes/LinphoneUI/UIChatRoomCell.m @@ -205,7 +205,7 @@ static UIFont *CELL_FONT = nil; #pragma mark - Action Functions -- (IBAction)onDeleteClick: (id) event { +- (IBAction)onDeleteClick:(id)event { if(chat != NULL) { UIView *view = [self superview]; // Find TableViewCell diff --git a/Classes/LinphoneUI/UIChatRoomCell.xib b/Classes/LinphoneUI/UIChatRoomCell.xib index cda2cfccd..7710f22af 100644 --- a/Classes/LinphoneUI/UIChatRoomCell.xib +++ b/Classes/LinphoneUI/UIChatRoomCell.xib @@ -117,6 +117,7 @@ _NS:9 YES + NO IBCocoaTouchFramework @@ -334,7 +335,7 @@ 7 - 20 + 32 @@ -447,7 +448,7 @@ com.apple.InterfaceBuilder.IBCocoaTouchPlugin com.apple.InterfaceBuilder.IBCocoaTouchPlugin - + com.apple.InterfaceBuilder.IBCocoaTouchPlugin com.apple.InterfaceBuilder.IBCocoaTouchPlugin com.apple.InterfaceBuilder.IBCocoaTouchPlugin @@ -461,7 +462,7 @@ - 31 + 32 diff --git a/Classes/en.lproj/ChatRoomViewController.xib b/Classes/en.lproj/ChatRoomViewController.xib index 3bde993df..76a72edf1 100644 --- a/Classes/en.lproj/ChatRoomViewController.xib +++ b/Classes/en.lproj/ChatRoomViewController.xib @@ -492,6 +492,14 @@ 70 + + + listTapGestureRecognizer + + + + 71 + dataSource @@ -761,7 +769,7 @@ - 70 + 71 @@ -813,6 +821,7 @@ UIImageView UIView UIView + UITapGestureRecognizer UIImageView HPGrowingTextView UIView @@ -848,6 +857,10 @@ headerView UIView + + listTapGestureRecognizer + UITapGestureRecognizer + messageBackgroundImage UIImageView diff --git a/Classes/fr.lproj/ChatRoomViewController.xib b/Classes/fr.lproj/ChatRoomViewController.xib index 00108b6b3..d529292f6 100644 --- a/Classes/fr.lproj/ChatRoomViewController.xib +++ b/Classes/fr.lproj/ChatRoomViewController.xib @@ -474,6 +474,14 @@ 70 + + + listTapGestureRecognizer + + + + 71 + dataSource @@ -743,7 +751,7 @@ - 70 + 71 @@ -795,6 +803,7 @@ UIImageView UIView UIView + UITapGestureRecognizer UIImageView HPGrowingTextView UIView @@ -830,6 +839,10 @@ headerView UIView + + listTapGestureRecognizer + UITapGestureRecognizer + messageBackgroundImage UIImageView diff --git a/linphone.ldb/Contents.plist b/linphone.ldb/Contents.plist index e446bc3c4..70072ae50 100644 --- a/linphone.ldb/Contents.plist +++ b/linphone.ldb/Contents.plist @@ -212,17 +212,17 @@ backup - 10 + 11 class BLWrapperHandle name - Classes/ChatRoomViewController/10/ChatRoomViewController.xib + Classes/ChatRoomViewController/11/ChatRoomViewController.xib change date - 2012-09-13T15:16:23Z + 2012-09-13T16:01:39Z changed values class @@ -232,7 +232,7 @@ flags 0 hash - 17cff3d2e83eebab4ab29a3d6e6361ce + 1017e47ad2fcb46b91d384f53e88bb41 name ChatRoomViewController.xib @@ -443,9 +443,9 @@ versions en - 10 + 11 fr - 10 + 11 diff --git a/linphone.ldb/Resources/Classes/ChatRoomViewController/10/ChatRoomViewController.xib b/linphone.ldb/Resources/Classes/ChatRoomViewController/11/ChatRoomViewController.xib similarity index 98% rename from linphone.ldb/Resources/Classes/ChatRoomViewController/10/ChatRoomViewController.xib rename to linphone.ldb/Resources/Classes/ChatRoomViewController/11/ChatRoomViewController.xib index 3bde993df..76a72edf1 100644 --- a/linphone.ldb/Resources/Classes/ChatRoomViewController/10/ChatRoomViewController.xib +++ b/linphone.ldb/Resources/Classes/ChatRoomViewController/11/ChatRoomViewController.xib @@ -492,6 +492,14 @@ 70 + + + listTapGestureRecognizer + + + + 71 + dataSource @@ -761,7 +769,7 @@ - 70 + 71 @@ -813,6 +821,7 @@ UIImageView UIView UIView + UITapGestureRecognizer UIImageView HPGrowingTextView UIView @@ -848,6 +857,10 @@ headerView UIView + + listTapGestureRecognizer + UITapGestureRecognizer + messageBackgroundImage UIImageView