Chameleon Applications

Chameleon Applications Commit Details

Date:2010-01-21 18:36:17 (14 years 3 months ago)
Author:Rekursor
Commit:27
Parents: 26
Message:Enhance filtering of non bootable partitions (fixed dmg would appear in dynamical enumeration of parts). Refactored cstring label and fsdik handling api.
Changes:
M/trunk/ChameleonPrefPane/ChameleonPrefPane.xcodeproj/project.pbxproj
M/trunk/ChameleonPrefPane/Sources/process.cpp
M/trunk/ChameleonPrefPane/Sources/ChameleonPrefPane.mm
M/trunk/ChameleonPrefPane/Sources/process.h
M/trunk/ChameleonPrefPane/CHANGES

File differences

trunk/ChameleonPrefPane/Sources/process.cpp
138138
139139
140140
141
141142
142
143
144
143145
144146
145147
partInfo.disk(disk);
partInfo.partition(part);
partInfo.label(checkForRename(label, partInfo.toHdStr().c_str()));
size_t len = partInfo.label().length();
// filter useless partitions:
if (partInfo.label()!="*" &&
if ( len > 0 &&
partInfo.clabel()[len-1] !='*' &&
partInfo.fsType()!="EFI" &&
partInfo.fsType()!="Apple_partition_scheme" &&
partInfo.fsType()!="Apple_partition_map" &&
trunk/ChameleonPrefPane/Sources/ChameleonPrefPane.mm
429429
430430
431431
432
433
432
433
434434
435435
436436
......
529529
530530
531531
532
532
533533
534534
535535
536
537
538
536
539537
540538
541539
snprintf(partDesc, sizeof(partDesc)-1, "%d%c%d%c%s%c%s",
p.disk(), cPartDescSep,
p.partition(), cPartDescSep,
p.label().c_str(), cPartDescSep,
p.fsType().c_str());
p.clabel(), cPartDescSep,
p.cfsType());
// write it to the dictionary
NSString * key = [[NSString alloc] initWithUTF8String: keyPartN];
}
else if (tableColumn == mFileSystemColumn)
{
ret = [NSString stringWithFormat: @"%s", partInfo[row].fsType().c_str() ];
ret = [NSString stringWithFormat: @"%s", partInfo[row].cfsType() ];
}
else if (tableColumn == mPartitionNameColumn)
{
ret = [NSString stringWithFormat: @"%s",
partInfo[row].label().c_str()
];
ret = [NSString stringWithFormat: @"%s", partInfo[row].clabel()];
}
else if (tableColumn == mPartitionIDColumn)
{
trunk/ChameleonPrefPane/Sources/process.h
4545
4646
4747
48
4849
4950
5051
5152
5253
5354
55
5456
5557
5658
void partition(int part) { _part=part;}
int partition () const { return _part;}
const char * clabel() const { return _label.c_str();}
const std::string& label() const { return _label;}
void label(const char * l) {
if (l) _label = l;
removeSpaces(_label);
}
const char * cfsType() const { return _fsType.c_str();}
const std::string& fsType() const { return _fsType;}
void fsType(const char * fs) {
if (fs) _fsType = fs;
trunk/ChameleonPrefPane/CHANGES
1
12
23
34
- Fixed dmg archives would appear in dynamic partition listing
- Added FREEZE (lock) features, see README.
- Refined cosmetics for the GUI
- Added images icon on the first column of each partition entries
trunk/ChameleonPrefPane/ChameleonPrefPane.xcodeproj/project.pbxproj
122122
123123
124124
125
125126
126
127
127128
128
129129
130130
131131
children = (
01B0E80E1108B85A00ACF21B /* ChameleonPrefPane.h */,
01B0E80F1108B85A00ACF21B /* ChameleonPrefPane.mm */,
01B0E8111108B85A00ACF21B /* process.h */,
01B0E8101108B85A00ACF21B /* process.cpp */,
01B0E8111108B85A00ACF21B /* process.h */,
01B0E8131108B85A00ACF21B /* property_list.h */,
01B0E8121108B85A00ACF21B /* property_list.cpp */,
01B0E8131108B85A00ACF21B /* property_list.h */,
);
name = Classes;
sourceTree = "<group>";

Archive Download the corresponding diff file

Revision: 27