room_members_search

-> rename VectorContactTableViewCell to ContactTableViewCell
This commit is contained in:
yannick
2015-12-21 10:27:07 +01:00
parent 6bb821e965
commit f9b8a0d53e
7 changed files with 32 additions and 32 deletions
@@ -18,7 +18,7 @@
#import "AppDelegate.h"
#import "VectorContactTableViewCell.h"
#import "ContactTableViewCell.h"
#import "VectorDesignValues.h"
@@ -113,20 +113,20 @@
return [[NSMutableArray alloc] init];
}
- (void)customizeContactCell:(VectorContactTableViewCell*)vectorContactTableViewCell atIndexPath:(NSIndexPath *)indexPath
- (void)customizeContactCell:(ContactTableViewCell*)contactTableViewCell atIndexPath:(NSIndexPath *)indexPath
{
vectorContactTableViewCell.mxSession = self.roomCreationInputs.mxSession;
contactTableViewCell.mxSession = self.roomCreationInputs.mxSession;
if (indexPath.section == participantsSection)
{
if (!userMatrixId || (indexPath.row != 0))
{
if (!vectorContactTableViewCell.showCustomAccessoryView)
if (!contactTableViewCell.showCustomAccessoryView)
{
vectorContactTableViewCell.showCustomAccessoryView = YES;
contactTableViewCell.showCustomAccessoryView = YES;
}
if (vectorContactTableViewCell.customAccessoryView.subviews.count == 0)
if (contactTableViewCell.customAccessoryView.subviews.count == 0)
{
UIImageView* accessView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 24, 24)];
accessView.image = [UIImage imageNamed:@"remove_icon"];
@@ -139,26 +139,26 @@
[accessView addGestureRecognizer:accessViewTapGesture];
// add the cross image once.
[vectorContactTableViewCell.customAccessoryView addSubview:accessView];
[contactTableViewCell.customAccessoryView addSubview:accessView];
}
else
{
// update the tag because it provides the row to delete
UIImageView* accessView = [vectorContactTableViewCell.customAccessoryView.subviews objectAtIndex:0];
UIImageView* accessView = [contactTableViewCell.customAccessoryView.subviews objectAtIndex:0];
accessView.tag = indexPath.row;
}
}
else
{
vectorContactTableViewCell.showCustomAccessoryView = NO;
contactTableViewCell.showCustomAccessoryView = NO;
}
vectorContactTableViewCell.selectionStyle = UITableViewCellSelectionStyleNone;
contactTableViewCell.selectionStyle = UITableViewCellSelectionStyleNone;
}
else
{
vectorContactTableViewCell.showCustomAccessoryView = NO;
vectorContactTableViewCell.selectionStyle = UITableViewCellSelectionStyleDefault;
contactTableViewCell.showCustomAccessoryView = NO;
contactTableViewCell.selectionStyle = UITableViewCellSelectionStyleDefault;
}
}
@@ -16,7 +16,7 @@
#import <MatrixKit/MatrixKit.h>
#import "VectorContactTableViewCell.h"
#import "ContactTableViewCell.h"
/**
'RoomParticipantsViewController' instance is used to edit members of the room defined by the property 'mxRoom'.
@@ -66,7 +66,7 @@
@param contactCell the cell to customize.
@param indexPath path of the cell in the tableview.
*/
- (void)customizeContactCell:(VectorContactTableViewCell*)contactCell atIndexPath:(NSIndexPath *)indexPath;
- (void)customizeContactCell:(ContactTableViewCell*)contactCell atIndexPath:(NSIndexPath *)indexPath;
@end
@@ -476,7 +476,7 @@
return count;
}
- (void)customizeContactCell:(VectorContactTableViewCell*)contactCell atIndexPath:(NSIndexPath*) indexPath
- (void)customizeContactCell:(ContactTableViewCell*)contactCell atIndexPath:(NSIndexPath*) indexPath
{
// TODO by the inherited class
}
@@ -499,11 +499,11 @@
}
else if ((indexPath.section == searchResultSection) || (indexPath.section == participantsSection))
{
VectorContactTableViewCell* participantCell = [tableView dequeueReusableCellWithIdentifier:[VectorContactTableViewCell defaultReuseIdentifier]];
ContactTableViewCell* participantCell = [tableView dequeueReusableCellWithIdentifier:[ContactTableViewCell defaultReuseIdentifier]];
if (!participantCell)
{
participantCell = [[VectorContactTableViewCell alloc] init];
participantCell = [[ContactTableViewCell alloc] init];
// do not show the custom accessory view
participantCell.showCustomAccessoryView = NO;
}
@@ -23,7 +23,7 @@
/**
'ContactTableCell' extends MXKTableViewCell.
*/
@interface VectorContactTableViewCell : MXKTableViewCell <MXKCellRendering>
@interface ContactTableViewCell : MXKTableViewCell <MXKCellRendering>
@property (strong, nonatomic) IBOutlet MXKImageView *thumbnailView;
@property (strong, nonatomic) IBOutlet UILabel *contactDisplayNameLabel;
@@ -14,7 +14,7 @@
limitations under the License.
*/
#import "VectorContactTableViewCell.h"
#import "ContactTableViewCell.h"
#import "MXKContactManager.h"
@@ -22,7 +22,7 @@
#import "AvatarGenerator.h"
@interface VectorContactTableViewCell()
@interface ContactTableViewCell()
{
/**
The current displayed contact.
@@ -36,7 +36,7 @@
}
@end
@implementation VectorContactTableViewCell
@implementation ContactTableViewCell
@synthesize mxRoom, mxSession;
- (void)awakeFromNib
@@ -7,7 +7,7 @@
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="L2L-l5-wPx" customClass="VectorContactTableViewCell">
<tableViewCell contentMode="scaleToFill" selectionStyle="blue" hidesAccessoryWhenEditing="NO" indentationLevel="1" indentationWidth="0.0" id="L2L-l5-wPx" customClass="ContactTableViewCell">
<rect key="frame" x="0.0" y="0.0" width="600" height="74"/>
<autoresizingMask key="autoresizingMask"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="L2L-l5-wPx" id="aXz-IR-jj5">