Commit graph

72 commits

Author SHA1 Message Date
Christian Dywan
b354aed640 Enumerate script object property names. 2008-04-29 00:12:23 +02:00
Christian Dywan
133cd688b9 Initial addon panel feature, only userscripts for now. 2008-04-28 22:38:57 +02:00
Christian Dywan
2e580f0503 Integrate panel toolbars properly outside scrolled areas. 2008-04-26 02:43:32 +02:00
Christian Dywan
a580cf281b Fix focus in location if starting up with a Blank page
At the point of loading the first page the web view
hasn't loaded anything, so we need to manually focus
the Location if the page is blank.

Incidentally midori_browser_activate_action can activate
any action, so it will probably be much more useful
in the future.
2008-04-25 21:31:57 +02:00
Christian Dywan
62cbafe12a Attempt to fix handling of background and foreground tabs. 2008-04-25 00:20:43 +02:00
Christian Dywan
7a7499d8db Show hidden location/ web search temporarily when needed.
If the location or web search was hidden, and one attempted
to use the menus or shortcuts for Location or Web search,
an appropriate dialog with an entry was shown.

Now we show the according widget temporarily and hide it again
once it loses focus.
2008-04-22 23:36:37 +02:00
Christian Dywan
d9f7abc5c7 Update interface and web featureswith preference changes.
The toolbar style, small toolbar, New Tab, Web Search and
Trash buttons are shown or hidden respectively as
the preference values change.
This is also an attempt at updating the web view's settings
immediately. Although it seems to work, an ugly warning is
emitted to the console on every change.
2008-04-22 22:19:24 +02:00
Christian Dywan
68e0e521f4 Resolve helpers and globals into sokoke. 2008-04-20 21:44:56 +02:00
Enrico Tröger
3811549791 Fix crash on startup caused by invalid settings. 2008-04-20 18:29:14 +02:00
Christian Dywan
1264eb0667 Implement a font combobox and use it for Default Font Family. 2008-04-20 18:13:20 +02:00
Christian Dywan
4d11cf3555 Move UNIMPLEMENTED macro to sokoke. 2008-04-20 06:41:26 +02:00
Christian Dywan
50ab1e8bc7 Turn prefs into MidoriPreferences 2008-04-20 03:30:24 +02:00
Christian Dywan
d1b085f61a Update German localisation plus a tiny string fix. 2008-04-19 14:19:37 +02:00
Christian Dywan
f98b652996 Fix background tabs, strings and new tab focus. 2008-04-18 02:40:53 +02:00
Christian Dywan
fae6058c26 Focus the web view when opening an URL via the location 2008-04-17 01:58:02 +02:00
Christian Dywan
169973f3fe Remove old configuration logic entirely
Almost all uses of the old system were superseded
by the use of MidoriWebSettings now, the
migration is almost finished.
2008-04-17 01:38:22 +02:00
Christian Dywan
cdde1293ab Switch configuration to MidoriWebSettings.
Switch configuration logic from a custom structure to
fully rely on MidoriWebSettings. This includes revamping
the preferences dialog. The old logic is not yet
replaced completely, this will follow soon, thus several
settings will have no effect right now.
2008-04-13 21:51:43 +02:00
Christian Dywan
f11b76b6ef Remove unused signal pointers from settings. 2008-04-13 11:40:27 +02:00
Christian Dywan
e91d077a84 Enhance Web Settings greatly with new properties.
A lot of new properties are added, which are going to
be the basis of the coming configuration replacement.

Also a little cleanup is done in a few places.
2008-04-13 11:36:42 +02:00
Christian Dywan
39bf592772 Remove 'External programs' logic 2008-04-12 15:48:33 +02:00
Przemek Sitek
616b43004c Open selection in new tab via Control. 2008-04-07 06:54:02 +02:00
Przemek Sitek
ef7113caca Save the return value of the panel's 'close' signal. 2008-04-07 01:19:53 +02:00
Przemek Sitek
e70925d064 Append the closed tabs items as a proper submenu. 2008-04-07 01:15:09 +02:00
Christian Dywan
00df47913d Use a default tab icon. 2008-04-05 16:22:42 +02:00
Christian Dywan
f261464c90 Use an empty URI if Load on Startup is Blank page. 2008-04-05 15:33:54 +02:00
Christian Dywan
793b030d3a Fix Reload/ Stop menu items.
The menu items were sensitive in reversed logic and the Stop item
had the icon and accelerator of the Reload item.

Now the sensitivity is fixed and the Stop item is Stop again.
2008-04-03 23:33:32 +02:00
Christian Dywan
f4abaeb00f Recognize the Enter key in the location entry. 2008-03-30 21:23:42 +02:00
Christian Dywan
a482dc36a8 Quick fix: Open URIs again. 2008-03-30 17:07:56 +02:00
Christian Dywan
ccba177ecb The location is empty and focused by default
When a new tab is opened it won't default to about:blank
but be empty and also gain focus automatically.
2008-03-30 16:55:46 +02:00
Przemek Sitek
b01eb78c9d Implement proper menu positioning.
Menu position is computed according to the widget position
and size as well as a hint indicating alignment to the
mouse pointer, left or right.
2008-03-29 22:38:59 +01:00
Christian Dywan
00976c0536 Implement the Console panel for script messages. 2008-03-27 01:21:29 +01:00
Christian Dywan
2bb99e0030 Show the panel's name in the toolbar. 2008-03-27 00:55:09 +01:00
Christian Dywan
c8332ddf54 Fix panel close button. 2008-03-24 14:15:23 +01:00
Christian Dywan
e9710d3b3b Destroy the tab, not only the web view 2008-03-22 23:20:22 +01:00
Christian Dywan
be89221aea Implement localization via Gettext.
Based on the implementation of localization via Gettext
contributed by Enrico Tröger, a few adjustments were made
to allow Midori to be properly localized. Initially
German is fully supported.
2008-03-22 03:38:23 +01:00
Christian Dywan
44bc12c305 Add common context menu items and cleanup.
Add the actions UndoTabClose, BookmarkNew, SaveAs, SourceView and Print
to the context menu. Also add UndoTabClose to the Go menu, remove
STOCK_SOURCE_VIEW and remove ui.h which is obsolete.
2008-03-19 14:46:08 +01:00
Christian Dywan
02d7848c5d Add Open Link in New Tab and Open URL in New Tab.
Enhance the context menu to allow opening of links in a
new tab as well as any selected text that looks like an URL.
2008-03-13 01:21:59 +01:00
Christian Dywan
4a1e0ab67b Fix Back button and opening new tabs. 2008-03-11 20:27:23 +01:00
Christian Dywan
9abae486dd Build fix: Accidentally removed the wrong action. 2008-03-10 22:48:12 +01:00
Christian Dywan
e1f62329f1 Initial refactoring work, regressions expected
The 'browser' struct is superseded by MidoriBrowser, which actually
represents a window that holds pages, i.e. tabs. The tabs are currently
of the type MidoriWebView, which is a slightly enhanced WebView. Also
MidoriWebSettings is introduced to hold additional settings that Midori
needs.

The other two new classes are MidoriTrash, representing closed tabs and
windows and MidoriPanel, representing the side panel.

The refactoring allows for several features to be much more easily
implemented, such as full support for multiple windows and instant
saving of modified files, such as bookmarks or the session. Regressions
are expected and not everything is done yet.
2008-03-10 22:26:09 +01:00
Nicholas E. Manley
622f8ee445 Don't restrict the minimum font size. 2008-02-11 07:37:29 +01:00
Christian Dywan
25ac3e9932 Build fix: Webkit's header and pkgconfig name have changed. 2008-02-03 10:51:35 +01:00
Christian Dywan
65535e1d87 Build fix: Don't use regular expressions 2008-01-26 15:18:32 +01:00
Christian Dywan
1522f47002 Implement Fullscreen mode
A new menuitem toggles Fullscreen mode, which means that the
menubar is hidden, the window is maximized and window manager
decoration is removed. A new button appears in the navibar
which reverts this process.

Fullscreen relies entirely on the window manager, which has the
advantage that window manager keybindings have the same effect
as activating the Fullscreen menuitem. At the same time this
means that Fullscreen won't work at all without it.
2008-01-26 08:49:48 +01:00
Christian Dywan
184b54e311 Add more preferences and Middle click goto
Add default font name and size, minimum font size and encoding
preferences. And implement Middle click goto with a preference.

Also the preferences dialog is a bit cleaned up.
2008-01-26 06:44:28 +01:00
Christian Dywan
6477032a6d Add a preference to choose a user stylesheet. 2008-01-23 05:27:54 +01:00
Christian Dywan
b2c0363cb4 Implement a few preferences with new settings API in WebKit
Allow changing a few preferences that WebKit now has API for
and clear the way for more to come.
2008-01-23 04:28:50 +01:00
Christian Dywan
22b277d94b Implement Add Bookmark and a small panel toolbar
Initially new bookmarks can be added. The panel gains a small
toolbar to Add, Edit and Delete items.

Besides a serious bug in the XBEL implementation is fixed and
a number of error checks is added..
2008-01-20 23:07:01 +01:00
Christian Dywan
f614f5874a Escape search engine name and description. 2008-01-20 18:10:53 +01:00
Christian Dywan
e94d8c74e8 Cleanup and WebKit API update 2008-01-20 18:05:16 +01:00