Announcements :  K-Meleon Forum
 

Pages: 12345...LastNext
Current Page: 1 of 8
Results 1 - 30 of 226
5 days ago
adodupan
Everything above must be ok. Now, it is necessary to register observer to get notification 'kmeleon-init'. This will initiate our code. The easiest way to do this is to edit a file browser\omni.ja\components\kmHelper.js. There is already registered observer and some code that we need. We will make a small modification in our code, we will replace constant JSB with KMeleon, then we will put
Forum: Development
5 days ago
adodupan
Be patient, i will show you all you need that you can finish your update. I agree, callback to check if formhistory database empty, is not simple. Put this in your xul file: add new line in init() function <!-- Added for Form History options --> this.initFormBtn(); // new line This is your callback - new function: <!-- Added for Form History options --> initFormBtn: func
Forum: Development
6 days ago
adodupan
At the beginning, you should forget macros.dll and kmm files. This code will add a menu item 'Clear &Forms History' in popup '&Clear Data' using a function SetMenuCallback(). I recommend function SetMenu() in this case, because this menu item will be enabled or not depending on whether formhistory database is empty or not. But in your update missing part whether 'Clear' button is enable
Forum: Development
7 days ago
adodupan
Dorian must add a ClearForms() function to privacy.dll kplugin and add entry in menus: In file: \K-Meleon75\browser\defaults\settings\menus.cfg - Also add it to Clear Au&tomatically...=privacy(Config) "Privacy Plugin Settings" dialog. - And modify macro function Clear All in file: \K-Meleon75\macros\main.kmm I don't know if you follow what Dorian doing in the last months,
Forum: Development
12 days ago
adodupan
But I can't install other XPI extentions,K-Meleon will crash!And they don't work in KM75,except the NewsFox!Anybody can try ... There must be some mess in chrome, because i use only core files from official version in my km and everything works perfectly. I use last updates (updates before the last two full packages), and this is the most stable core so far. My os is win7 64bit. Edit: I ha
Forum: Announcements
30 days ago
adodupan
Using enabled parameter in function RegisterCmd on the button has the effect of freezing, not disabling. There missing possibility to add toolbar and toolbar item with text, this is only possible to make in 'Main' toolbar. Also, there missing possibility to add toolbar item with icon and with text. Toolbar item should look as a menu item, try this example: Components.utils.import('resource
Forum: Announcements
4 weeks ago
adodupan
Very nice. There missing possibility to get a toolbar list, and possibility to hide and show the toolbar. Also, there missing function as statusbar Important: Any idea how to set icon on MENU_POPUP ? This is irrelevant, even if it is possible, it is bad and can not be the solution. Building menus should improve. how to set menu icon for callbacks without registering command
Forum: Announcements
5 weeks ago
adodupan
Enabled and checked (last two parameters in RegisterCmd) work fine on the buttons, but has no effect on menu items. Function GetWindows crashes km. Paste this code in error console and open several windows and tabs in km: Components.utils.import('resource://gre/modules/Services.jsm'); const JSB = Components.classes['@kmeleon/jsbridge;1'].getService(Components.interfaces.nsIJSBridge); var te
Forum: Announcements
6 weeks ago
adodupan
When you make a improvement for it, you just give me an example how to use 'menugrayed' and how to use 'buttongrayed'. there missing possibility to get a tab list (imagine this as nsIDOMWindow for each tab), Can you offer a good solution for this? There missing possibility to get a toolbar list, and possibility to hide and show the toolbar. Also, there missing function as statusbar
Forum: Announcements
6 weeks ago
adodupan
That is what i tried, but it is not working. I'm using the last RC and last update 3. Same example, paste this code in error console: Components.utils.import('resource://gre/modules/Services.jsm'); const JSB = Components.classes['@kmeleon/jsbridge;1'].getService(Components.interfaces.nsIJSBridge); var enabled = true, checked = false, checkedcommand = function () { checked = !checked;
Forum: Announcements
6 weeks ago
adodupan
Give me your test example for last two parameters. (in RegisterCmd)
Forum: Announcements
7 weeks ago
adodupan
There are still missing functions: menuchecked menugrayed also, there missing possibility to get a tab list (imagine this as nsIDOMWindow for each tab), also, possibility to listen to events TabOpen TabClose TabSelect I hope you will not spend one more year for this. After restarting, if previous session has more than one tab, km crashes after reload all tabs. If checked 'Show closing
Forum: Announcements
2 months ago
adodupan
Registered command in cpp with defined description has the effect defined description appear in statusbar on mouseover, same effect has defined description using macroinfo function. When i register command using nsIJSBridge.RegisterCmd(), and when i get command list with their properties, defined description is there but does not appear in statusbar. Unexpectedly, when i use same command as a
Forum: Announcements
2 months ago
adodupan
how to get popup or inline child list What do you mean? Can you imagine menu items as node objects?
Forum: Announcements
2 months ago
adodupan
JamesD, just as you wrote, works fine. /** ADD SEPARATOR **/ const JSB = Components.classes['@kmeleon/jsbridge;1'].getService(Components.interfaces.nsIJSBridge); JSB.SetMenu('Misc', JSB.MENU_SEPARATOR, 1, '', 1); /** REMOVE SEPARATOR **/ const JSB = Components.classes['@kmeleon/jsbridge;1'].getService(Components.interfaces.nsIJSBridge); JSB.SetMenu('Misc', JSB.MENU_SEPARATOR, '', '', ''); E
Forum: Announcements
2 months ago
adodupan
Registered kmICommand.desc is listed, but does not appear in statusbar. How to remove separator from the menu? Edit: If possible: how to get popup or inline child list how to move menu item using just a index (without deleting menu item)
Forum: Announcements
2 months ago
adodupan
Bug nsIPromptService.prompt does not return correct checkbox value. Components.utils.import('resource://gre/modules/Services.jsm'); var input = {value: 'Test'}, check = {value: false}, result = Services.prompt.prompt(null, 'Test', 'Test nsIPromptService.prompt', input,
Forum: Announcements
2 months ago
adodupan
A few more questions: how to use SetAccel for callbacks without registering command how to set menu icon for callbacks without registering command how to remove added icon how to use data:image It would be useful functions such menugrayed menuchecked addtoolbar Not so important, but it would be nice to add functions for controlling statusbar (text and icons).
Forum: Announcements
2 months ago
adodupan
I see now. Events draft and other useless stuffs Scary :) Edit: OK, it's avoided. If someone need this: Components.utils.import('resource://gre/modules/Services.jsm'); const JSB = Components.classes['@kmeleon/jsbridge;1'].getService(Components.interfaces.nsIJSBridge); var exampleCallback = function (arg1, arg2, arg3) { Services.console.logStringMessage('HAS ARGUMENT: ' + (ar
Forum: Announcements
2 months ago
adodupan
When you use accel there shouldn't be argument, but accel sends object window as an argument. callbacks are called with 2 parameters: the domwindow of the active tab and a flag with not much usage for now. To see the difference, you should try code above in beta3, there works fine. consoleservice should be enabled
Forum: Announcements
2 months ago
adodupan
Bug Components.utils.import('resource://gre/modules/Services.jsm'); const JSB = Components.classes['@kmeleon/jsbridge;1'].getService(Components.interfaces.nsIJSBridge); var exampleCallback = function (arg) { Services.console.logStringMessage('HAS ARGUMENT: ' + (arg ? 'Yes = ' + arg : 'No')); }; JSB.SetMenuCallback('Misc', 'Test', (function (arg) { return function () { e
Forum: Announcements
5 months ago
adodupan
Indeed, my sexual life suffer from my work on kmeleon, therefore I should stop. It seems my joke is touched a painful place. Not tomorrow or today, you should stop yesterday. Sex in the morning and sex after lunch, you should not ignore it :) Best regards to all
Forum: Announcements
5 months ago
adodupan
It's done. About your kplugins question, is it your sexual life in crisis, or what :) I have already replied to you about that. Ok, one more time, perhaps this argument is good enough. Do you plan to disable kplugins in km - answer is no. So, you should make it possible to load kplugins inside addons.
Forum: Announcements
5 months ago
adodupan
It is not possible to add a new menu to 'Main' const JSB = Components.classes['@kmeleon/jsbridge;1'].getService(Components.interfaces.nsIJSBridge); JSB.SetMenu('Main', JSB.MENU_POPUP, '&JSBridge Test', '', ''); JSB.SetMenu('&JSBridge Test', JSB.MENU_COMMAND, 'Test About', 'ID_APP_ABOUT', ''); from macro is ok setmenu(Main, popup, _("&JSBridge Test")); setmenu
Forum: Announcements
5 months ago
adodupan
It seems it is not possible to get a nsIJSBridge in bootstrap.js. '@kmeleon/jsbridge;1' in Components.classes is false I know. The plugin is not initialised when bootstrap is called. The only solution I can think of for now, is to move jsbridge inside kmeleon. Edit: this is why initAddon in kmHelper.js is currently called from 'content-document-global-created' You should move jsbrid
Forum: Announcements
5 months ago
adodupan
Is this address alive blist _at_ free.fr
Forum: Announcements
5 months ago
adodupan
So, the subject of this topic: really HOW are Firefox extensions installed AND how to run them. I know it is quite experimental, but, god, George Hall was able to do this big job adapting addons, shouldn't be that hard!!! Or, just a simple answer, this addon can't work, but tell me why so I can test and I can help. I feel quite useless :/ Wihtout a way to select cideos with the line chrom
Forum: Extensions
6 months ago
adodupan
Yogi, you need to try new JSBridge functions and everything will be clearer. Here is a simple code with new functions, just paste it in the error console: Components.utils.import('resource://gre/modules/Services.jsm'); const JSB = Components.classes['@kmeleon/jsbridge;1'].getService(Components.interfaces.nsIJSBridge); var TEST = { menuName: 'MenuName', menu: 'Menu Test', btn: 'Button T
Forum: Announcements
6 months ago
adodupan
Dorian, i can send you code, but if your code works, you just show us your 'basic test'. Edit: When i use a function AddButton, the images are rotated. Also, how to get an image from png files with several images inside.
Forum: Announcements
6 months ago
adodupan
Dorian, it's about what i expect, not about what i need. I expect some day you will finish a story about km addons, and i expect that day will come soon.
Forum: Announcements
Pages: 12345...LastNext
Current Page: 1 of 8

K-Meleon forum is powered by Phorum.