Commit Graph

401 Commits

Author SHA1 Message Date
Florian Bruhin
dea30e3f4d Ensure developer extras are enabled for webinspector 2014-04-17 15:46:29 +02:00
Florian Bruhin
457e173592 More config cleanup.
This renames the config instance from "config" to "instance" and adds a
convenience get() function in the config module.
2014-04-17 15:26:27 +02:00
Florian Bruhin
b323706f5f Use maxsplit (passed to str.split()) instead bool 2014-04-17 12:06:27 +02:00
Florian Bruhin
72340575af Remove value from on_config_changed signal again.
Turns out this causes more trouble than it's worth, and it's unintuitive
from which layer we get the value.
2014-04-17 11:39:25 +02:00
Florian Bruhin
c0236b8d22 Use a proper separated model for cmd history 2014-04-17 11:08:14 +02:00
Florian Bruhin
6b72c3dbdf Fix long line 2014-04-17 09:51:05 +02:00
Florian Bruhin
4b1dcbd82a Refactor tab/browser widgets 2014-04-17 09:44:26 +02:00
Florian Bruhin
58ae1f7441 Add comment about CurCommandDispatcher 2014-04-17 08:24:59 +02:00
Florian Bruhin
57baafbf30 Change configdata from function to attribute 2014-04-16 16:32:14 +02:00
Florian Bruhin
2adcde1c89 Implement web inspector 2014-04-16 14:12:04 +02:00
Florian Bruhin
e878fc538d Fix some checks 2014-04-16 10:02:34 +02:00
Florian Bruhin
4ca8cc9537 Add value to config.changed signal 2014-04-16 09:50:24 +02:00
Florian Bruhin
a410d56a78 Implement command history 2014-04-16 09:08:56 +02:00
Florian Bruhin
dad6451b7e style fixes 2014-04-15 17:21:12 +02:00
Florian Bruhin
88b522fa16 Only clear selection model if it exists 2014-04-15 17:16:28 +02:00
Florian Bruhin
f959c0c137 Add completion for settings values 2014-04-14 17:54:11 +02:00
Florian Bruhin
44ce804bdf Highlight all rows in completion 2014-04-13 23:06:41 +02:00
Florian Bruhin
27046b5186 Give completion items a bit more space 2014-04-13 22:35:55 +02:00
Florian Bruhin
f59f8cac6c Clear completion model after an item is selected 2014-04-13 22:11:47 +02:00
Florian Bruhin
04807489b7 Update everything needed when config is changed 2014-04-10 23:30:45 +02:00
Florian Bruhin
aa616e5ac7 Start implementing config changed signal 2014-04-10 18:01:16 +02:00
Florian Bruhin
175eabdc80 Remove fallback values from config 2014-04-10 14:40:02 +02:00
Florian Bruhin
c5ca0e56be Remove blank lines before """ in docstrings.
pep257 has changed in this regard so we reflect this change.
2014-04-10 14:21:27 +02:00
Florian Bruhin
c26430d08d Remove annoying two-word completions 2014-04-10 06:58:58 +02:00
Florian Bruhin
782242de04 Fix marking of items 2014-04-09 21:21:15 +02:00
Florian Bruhin
18bcae40c5 Fix completing when text ends with space #2 2014-04-09 21:15:18 +02:00
Florian Bruhin
d485d8cc4e Remove strech from statusbar 2014-04-09 21:11:11 +02:00
Florian Bruhin
7eb27c86ee Fix some completion bugs 2014-04-09 20:57:25 +02:00
Florian Bruhin
3f7635619a Complete multi-part values correctly 2014-04-09 17:54:41 +02:00
Florian Bruhin
3c343ecff7 Handle prefixes correctly in on_change_completed_part 2014-04-09 16:03:35 +02:00
Florian Bruhin
ad742d51d8 Set text correctly when completing 2014-04-09 07:14:26 +02:00
Florian Bruhin
fd3262e2ba Move split_cmdline to commands.parsers 2014-04-09 07:07:32 +02:00
Florian Bruhin
deb286272c Use command parser for completions 2014-04-09 06:58:17 +02:00
Florian Bruhin
361dc7d037 Fix checks and spellings 2014-04-07 17:20:14 +02:00
Florian Bruhin
c865cc1b84 Don't set pattern etc. when model is None 2014-03-26 20:20:09 +01:00
Florian Bruhin
3635a40c56 Always set model when needed. 2014-03-26 20:19:46 +01:00
Florian Bruhin
1132f7bb6c Lint fixes 2014-03-24 11:48:56 +01:00
Florian Bruhin
678b4d54af Refactor completion chosing 2014-03-24 11:37:41 +01:00
Florian Bruhin
a5702c781f Actually append cmd text on append_cmd_text 2014-03-23 21:36:01 +01:00
Florian Bruhin
8ebd2929fd Rename model to _model for completionview 2014-03-23 21:34:02 +01:00
Florian Bruhin
ea0ef4fb01 Add FIXME for backspacing 2014-03-23 21:15:17 +01:00
Florian Bruhin
cea6c0934f Don't set model in init 2014-03-21 20:17:03 +01:00
Florian Bruhin
384e7c1927 Don't append space when completing 2014-03-21 20:12:49 +01:00
Florian Bruhin
b9492d0f1e Revert "Remove ignore_next"
This reverts commit df6c1fd26d.
2014-03-21 20:11:20 +01:00
Florian Bruhin
bd2aa2d723 Only change completion when necessary 2014-03-21 20:11:18 +01:00
Florian Bruhin
df6c1fd26d Remove ignore_next 2014-03-21 20:02:17 +01:00
Florian Bruhin
fa6f464e23 Refactor completion model changing 2014-03-21 20:01:13 +01:00
Florian Bruhin
a643bcd617 Store complete model correctly 2014-03-21 19:19:55 +01:00
Florian Bruhin
ed4f168779 Attempt to use separate QSFPMs 2014-03-21 17:00:20 +01:00
Florian Bruhin
df26d4ad91 Completion pattern update 2014-03-10 00:39:15 +01:00
Florian Bruhin
ecf405c7af Set source model properly 2014-03-10 00:39:15 +01:00
Florian Bruhin
e33b87f713 sourcemodel and logging updates 2014-03-10 00:39:15 +01:00
Florian Bruhin
bd4dba1ed3 Broken setting completion 2014-03-10 00:39:15 +01:00
Florian Bruhin
4e78775d3c Fix checks 2014-03-10 00:39:14 +01:00
Florian Bruhin
98d15de460 Fix style issues 2014-03-10 00:39:14 +01:00
Florian Bruhin
f079d6bf3b More config update/adoption 2014-03-10 00:39:14 +01:00
Florian Bruhin
6f093d33c1 Fix paste command 2014-03-04 16:52:56 +01:00
Florian Bruhin
9ee4e93e0a Split browser.py into smaller files 2014-03-03 21:35:13 +01:00
Florian Bruhin
98fb1a0250 Remove unused imports 2014-03-03 21:24:33 +01:00
Florian Bruhin
97ae3adb4a Working towards using getattr instead 2014-03-03 18:47:42 +01:00
Florian Bruhin
032ccb8b43 Try some broken component register foo 2014-03-03 17:56:53 +01:00
Florian Bruhin
b22b19d881 Start using (broken) decorators 2014-03-03 06:09:23 +01:00
Florian Bruhin
66852aa736 Add FIXME for CompletionItemDelegate 2014-02-26 21:54:24 +01:00
Florian Bruhin
a9a4b2ac92 Add profile.py 2014-02-26 21:18:53 +01:00
Florian Bruhin
4925d25c36 Remove wrong 'cur.' for BrowserTab 2014-02-24 17:37:48 +01:00
Florian Bruhin
76a627bb10 Move style related stuff to config.style 2014-02-23 18:15:08 +01:00
Florian Bruhin
3b648a4c0d Move config to config subfolder 2014-02-23 18:14:40 +01:00
Florian Bruhin
b59f0e9a34 Rename types.py to usertypes.py 2014-02-23 16:30:07 +01:00
Florian Bruhin
5f78b96cb1 Move cur_* methods for TabbedBrowser to CurCommandDispatcher class 2014-02-21 22:00:41 +01:00
Florian Bruhin
e47d13d725 Fix initial tab opening 2014-02-21 20:06:42 +01:00
Florian Bruhin
38ef8fe8c7 First attempt at proper AboutSchemeHandler 2014-02-20 23:08:27 +01:00
Florian Bruhin
ec1951c56c Move abouthandler to network subpackage 2014-02-20 22:26:25 +01:00
Florian Bruhin
65ae1882f0 Move NetworkManager to own file 2014-02-20 22:26:25 +01:00
Florian Bruhin
82f7e46459 Use NeighborList for history in statusbar. 2014-02-20 20:47:26 +01:00
Florian Bruhin
cf2133bb96 Add zoomin/zoomout commands. 2014-02-20 19:55:35 +01:00
Florian Bruhin
dc179a65bb Add temp_message signal to BrowserTab 2014-02-20 19:55:35 +01:00
Florian Bruhin
ab8fef3cdb Add new NeighborList datatype 2014-02-20 19:55:35 +01:00
Florian Bruhin
561a7e1cdd Add workaround to keystring so it gets cleared properly. 2014-02-19 23:08:38 +01:00
Florian Bruhin
1c921a77f6 Set scroll percentage to 0 in __init__ 2014-02-19 16:25:15 +01:00
Florian Bruhin
21cf1cc700 Remove unnecessary lambda 2014-02-19 15:57:13 +01:00
Florian Bruhin
3a140b9a1c Split text to normal/error/tmp again, show text.
This splits the text shown in the statusbar into normal/error/temporary
text again, and shows the text when idle instead of the command.
2014-02-19 15:40:43 +01:00
Florian Bruhin
c2e3039702 Only hide temporary error message on non-modifiers 2014-02-19 14:57:31 +01:00
Florian Bruhin
cb47ae1b43 Fix pyqtSlot() decorations. 2014-02-19 14:57:16 +01:00
Florian Bruhin
b03932400f Simplify displaying text a lot.
This now only has one category of text, and displays it in a
QStackedWidget with the Command.
2014-02-19 14:44:40 +01:00
Florian Bruhin
ab87c8e8b9 Clear temporary text on keypress. 2014-02-19 14:44:38 +01:00
Florian Bruhin
c57e78b765 Display temporary messages in statusbar.
For some odd reason, old messages still don't get cleared properly.
2014-02-19 14:44:37 +01:00
Florian Bruhin
4b91915090 Bugfix: initialize _url_stack for Browser properly. 2014-02-19 14:44:00 +01:00
Florian Bruhin
93065188a7 All-caps constants 2014-02-19 11:11:19 +01:00
Florian Bruhin
9a990d56d9 Nicer docstrings 2014-02-19 10:58:32 +01:00
Florian Bruhin
581f88fcce Avoid pylint maybe-no-member warnings for ConfigParser. 2014-02-18 19:32:00 +01:00
Florian Bruhin
6d709d9fd8 Allow completion widget height to be configured in % 2014-02-18 19:05:56 +01:00
Florian Bruhin
9318558eb6 Make completion height configurable 2014-02-18 18:42:43 +01:00
Florian Bruhin
9568be3d2a Use default geometry if no geometry was saved. 2014-02-18 18:38:48 +01:00
Florian Bruhin
96747c9d58 Reordering in widget submodules 2014-02-18 18:32:07 +01:00
Florian Bruhin
034f85b1d4 Use property for CompletionFilterModel.srcmodel 2014-02-18 17:57:58 +01:00
Florian Bruhin
0425ce7b48 Extend paintEvent instead of using an eventFilter 2014-02-18 17:26:26 +01:00
Florian Bruhin
2fe2ca85c2 Set WA_StyledBackground for statusbar instead of overriding paintEvent 2014-02-18 16:57:10 +01:00
Florian Bruhin
911d5d3b4a Refactor ALL the things 2014-02-18 16:51:01 +01:00
Florian Bruhin
3d37b22fb0 Cleanup 2014-02-18 14:21:39 +01:00
Florian Bruhin
234d171483 Use Qt saveGeometry and restoreGeometry 2014-02-18 14:14:27 +01:00
Florian Bruhin
c9e4f2417d Add more shutdown debugging 2014-02-18 13:05:42 +01:00
Florian Bruhin
27d354633c Save/restore window geometry. 2014-02-18 11:57:35 +01:00
Florian Bruhin
8ba4661838 bugfix: Fix command history 2014-02-18 10:50:41 +01:00
Florian Bruhin
d349a987c7 CrashDialog: add Stretch before buttons. 2014-02-18 08:52:37 +01:00
Florian Bruhin
8c1619236b CrashDialog: fix layout setting issue 2014-02-18 08:52:25 +01:00
Florian Bruhin
8d9280d1d8 Set more parents 2014-02-18 08:37:05 +01:00
Florian Bruhin
2779b2f42e Fix cur_scroll_page regression. 2014-02-17 22:24:17 +01:00
Florian Bruhin
14a090c087 More shutdown/crashing improvments. 2014-02-17 20:30:09 +01:00
Florian Bruhin
9c0f0e8ac5 Add last_close setting. 2014-02-17 16:50:41 +01:00
Florian Bruhin
01096b995c Store more Qt properties as class attributes. 2014-02-17 16:09:27 +01:00
Florian Bruhin
8c37e1c33a Make closing/crashing much more reliable. 2014-02-17 14:17:56 +01:00
Florian Bruhin
966ceba1e6 Import cleanup 2014-02-17 12:23:52 +01:00
Florian Bruhin
d5807169d1 Decorate slots with pyqtSlot.
This seems to reduce memory usage a bit and make things a bit faster.
2014-02-17 12:00:08 +01:00
Florian Bruhin
0abb5cf738 Try to shut down everything cleanly. 2014-02-17 10:20:57 +01:00
Florian Bruhin
9257f0c98a Don't keep static references to QPainter.
For some reason, this seems to cause a segfault.
2014-02-17 08:42:12 +01:00
Florian Bruhin
76a459f604 Add more hard references.
This should prevent some segfaults, as pointed out by [1].

 [1]: https://github.com/integricho/path-of-a-pyqter/tree/master/qttut02
2014-02-17 08:19:30 +01:00
Florian Bruhin
933296f47f Move models to qutebrowser.models 2014-02-14 17:41:12 +01:00
Florian Bruhin
434a904335 Add icon= to error html format() 2014-02-14 07:50:31 +01:00
Florian Bruhin
e56ed54102 Add broken error pages 2014-02-14 07:17:36 +01:00
Florian Bruhin
203fa3eb34 Docstring grammar fixes 2014-02-13 18:57:19 +01:00
Florian Bruhin
62f140cf88 Remove unneeded self.show()s 2014-02-13 18:47:39 +01:00
Florian Bruhin
176c1aa7d6 Use float() where applicable, not int() 2014-02-13 11:48:25 +01:00
Florian Bruhin
029813c8eb Implement page-wise scrolling. 2014-02-13 10:28:09 +01:00
Florian Bruhin
7deab20820 Cleanup, more checks 2014-02-13 09:10:53 +01:00
Florian Bruhin
963b90ae74 Disable pylint maybe-no-member in TabWidget._init_config 2014-02-13 09:00:07 +01:00
Florian Bruhin
5b0e24b799 Make tabbar configurable. 2014-02-13 08:56:01 +01:00
Florian Bruhin
d7f58015bb Set sizePolicy of Command to minimumExpanding. 2014-02-13 07:16:47 +01:00
Florian Bruhin
4271200846 Emit urlChanged immediately when opening a new tab. 2014-02-13 07:11:18 +01:00
Florian Bruhin
ca97a50820 Call tab.openurl _after_ connecting signals. 2014-02-13 07:10:41 +01:00
Florian Bruhin
0326a66758 Don't color progress bar anymore. 2014-02-13 07:06:34 +01:00
Florian Bruhin
6538dbbdf1 Colorize URLs in statusbar, fix hovering.
Before, when hovering from an URL to another URL, the old hover-URL was
saved as old-url. This is now fixed.
2014-02-13 06:58:17 +01:00
Florian Bruhin
76ba7921d4 Elide statusbar text/URLs correctly. 2014-02-12 23:56:23 +01:00
Florian Bruhin
626b9fc3b8 Ignore StatusBar sizehint 2014-02-12 23:04:46 +01:00
Florian Bruhin
d343ea26af Don't use QMainWindow 2014-02-12 23:04:46 +01:00
Florian Bruhin
f893b11f1b Fix progress bar being red hopefully. 2014-02-12 17:13:31 +01:00
Florian Bruhin
5342b88519 linting update 2014-02-12 17:00:50 +01:00
Florian Bruhin
c0dc9f8622 Use Qt properties for condition coloring. 2014-02-12 17:00:39 +01:00
Florian Bruhin
002118953c Use separate QHBoxLayout elements for statusbar. 2014-02-12 08:48:54 +01:00
Florian Bruhin
c77589a821 Make SignalCache an own class. 2014-02-11 14:04:36 +01:00
Florian Bruhin
d4e69c955e Show hovered link in statusbar. 2014-02-11 13:33:33 +01:00
Florian Bruhin
1134461953 Make it possible to ignore signals for cache. 2014-02-11 13:27:26 +01:00
Florian Bruhin
d37318b851 Immediately emit cur_url_changed when opening new tab. 2014-02-11 13:08:15 +01:00
Florian Bruhin
9aa49b7fe8 Pad scroll percentage. 2014-02-11 13:06:02 +01:00
Florian Bruhin
d89098582f Show URL in statusbar. 2014-02-11 11:50:37 +01:00
Florian Bruhin
7486cb628a Revert "Delete QWebViews when tabs are closed."
This reverts commit 83276b9576.

This causes lots of segfaults and other strange stuff when a tab is
closed.
2014-02-11 11:31:20 +01:00
Florian Bruhin
83276b9576 Delete QWebViews when tabs are closed. 2014-02-11 11:17:53 +01:00
Florian Bruhin
78c89981ab Implement custom style for Ubuntu madness. 2014-02-11 07:01:59 +01:00
Florian Bruhin
6cf85ff52e Replace QUrl::url by QUrl::toString. 2014-02-10 19:12:12 +01:00
Florian Bruhin
094640b39b Fix signal_cache init, more debugging. 2014-02-10 17:54:24 +01:00
Florian Bruhin
39ed73c3cf python package cleanup 2014-02-10 15:06:46 +01:00