зеркало из https://github.com/mozilla/pjs.git
add toolbar item for form fill
This commit is contained in:
Родитель
062dfffb70
Коммит
fc21a2dbd3
|
@ -3094,6 +3094,7 @@
|
|||
0FFE0A82079B147F00966027,
|
||||
0FFE0A83079B147F00966027,
|
||||
3FFFEBDA081C2CC500843C07,
|
||||
3FBDC8E00827C44B00D7F8E0,
|
||||
);
|
||||
isa = PBXResourcesBuildPhase;
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
|
@ -6956,6 +6957,7 @@
|
|||
3FBDC86008253C8C00D7F8E0,
|
||||
3FBDC86108253C8C00D7F8E0,
|
||||
3FBDC86208253C8C00D7F8E0,
|
||||
3FBDC8E10827C44B00D7F8E0,
|
||||
);
|
||||
isa = PBXResourcesBuildPhase;
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
|
@ -10291,6 +10293,26 @@
|
|||
settings = {
|
||||
};
|
||||
};
|
||||
3FBDC8DF0827C44B00D7F8E0 = {
|
||||
isa = PBXFileReference;
|
||||
lastKnownFileType = image.tiff;
|
||||
name = autofill.tif;
|
||||
path = resources/images/toolbar/autofill.tif;
|
||||
refType = 2;
|
||||
sourceTree = SOURCE_ROOT;
|
||||
};
|
||||
3FBDC8E00827C44B00D7F8E0 = {
|
||||
fileRef = 3FBDC8DF0827C44B00D7F8E0;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
3FBDC8E10827C44B00D7F8E0 = {
|
||||
fileRef = 3FBDC8DF0827C44B00D7F8E0;
|
||||
isa = PBXBuildFile;
|
||||
settings = {
|
||||
};
|
||||
};
|
||||
3FC0FB7F05A0D2DC002F47DE = {
|
||||
fileEncoding = 30;
|
||||
isa = PBXFileReference;
|
||||
|
@ -13097,6 +13119,7 @@
|
|||
F5566DC1038E075F01A80166,
|
||||
F5566DC3038E075F01A80166,
|
||||
3F63719B057CE0DE00B62EE2,
|
||||
3FBDC8DF0827C44B00D7F8E0,
|
||||
);
|
||||
isa = PBXGroup;
|
||||
name = "Toolbar-Browser";
|
||||
|
|
Двоичный файл не отображается.
Двоичные данные
camino/resources/localized/English.lproj/Localizable.strings
Двоичные данные
camino/resources/localized/English.lproj/Localizable.strings
Двоичный файл не отображается.
|
@ -126,6 +126,7 @@ static NSString* const NewTabToolbarItemIdentifier = @"New Tab Toolbar Item
|
|||
static NSString* const CloseTabToolbarItemIdentifier = @"Close Tab Toolbar Item";
|
||||
static NSString* const SendURLToolbarItemIdentifier = @"Send URL Toolbar Item";
|
||||
static NSString* const DLManagerToolbarItemIdentifier = @"Download Manager Toolbar Item";
|
||||
static NSString* const FormFillToolbarItemIdentifier = @"Form Fill Toolbar Item";
|
||||
|
||||
int TabBarVisiblePrefChangedCallback(const char* pref, void* data);
|
||||
static const char* const gTabBarVisiblePref = "camino.tab_bar_always_visible";
|
||||
|
@ -889,6 +890,7 @@ enum BWCOpenDest {
|
|||
NSToolbarSpaceItemIdentifier,
|
||||
NSToolbarSeparatorItemIdentifier,
|
||||
DLManagerToolbarItemIdentifier,
|
||||
FormFillToolbarItemIdentifier,
|
||||
nil];
|
||||
}
|
||||
|
||||
|
@ -1153,6 +1155,14 @@ enum BWCOpenDest {
|
|||
[toolbarItem setTarget:[ProgressDlgController sharedDownloadController]];
|
||||
[toolbarItem setAction:@selector(showWindow:)];
|
||||
}
|
||||
else if ([itemIdent isEqual:FormFillToolbarItemIdentifier]) {
|
||||
[toolbarItem setLabel:NSLocalizedString(@"Fill Form", nil)];
|
||||
[toolbarItem setPaletteLabel:NSLocalizedString(@"Fill Form", nil)];
|
||||
[toolbarItem setToolTip:NSLocalizedString(@"FillFormToolTip", nil)];
|
||||
[toolbarItem setImage:[NSImage imageNamed:@"autofill"]];
|
||||
[toolbarItem setTarget:self];
|
||||
[toolbarItem setAction:@selector(fillForm:)];
|
||||
}
|
||||
else {
|
||||
toolbarItem = nil;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче