Commit Graph

306 Commits

Author SHA1 Message Date
kh1
6ac6be5db2 Rewrite of the whole help modul initialization.
We now do as much as possible lazy initialisation, e.g only start the
full text search indexer if we really access the search widget. Also
moved the QFutur progress into the search widget. Changed all ctors to
be called without an argument, since we share the help engines from
help manager all over the place. Make use of the fact that we only need
to call setupData on the gui engine if we access the help mode, otherwise
all data is fetched thru the core engine whichs setupData is really fast.
2010-03-23 18:13:12 +01:00
kh1
c3326eb627 Implement our own search for keywords using QSql.
Currently we can only retrieve a list of keywords from the help index
model, which is slow and needs a fully setup gui help engine. This needs
to be implmeneted in the help lib though.
2010-03-23 18:13:10 +01:00
kh1
42e01eaaab Move the constants where they belong. 2010-03-23 18:13:07 +01:00
kh1
fa32d9a9d0 Make use of the core engine, no need for gui stuff. 2010-03-23 18:13:04 +01:00
Friedemann Kleint
bbcacaf59f Header cleaning spree in Core/Debugger and Symbian/Maemo-code of Qt4. 2010-03-18 10:59:06 +01:00
kh1
54be2fed8a We need to create the right pane also in case we handle a help request. 2010-03-16 19:33:25 +01:00
kh1
3357458101 Some more refactoring, reuse existing code.
Reuse the core help engine in the settings pages. Do not setup the gui
help engine at all since any getter will do so. Split update documentation
into smaller pieces for better performance.

Reviewed-by: ck
2010-03-16 15:54:41 +01:00
kh1
37871bc43c Lazy reset the unfiltered filter.
Reviewed-by: ck
2010-03-16 15:54:40 +01:00
kh1
c06323032a Lazy instantiate the right side pane and reuse core engine.
Reviewed-by: ck
2010-03-16 15:54:39 +01:00
kh1
3cd98b3387 Make use of the core engine in the general settings page.
Reviewed-by: ck
2010-03-16 15:54:38 +01:00
Tobias Hunger
999323c032 Fix DOCPATH on non-Mac builds
Reviewed-by: kh1
2010-03-11 12:20:33 +01:00
Robert Loehning
cfbd84639d Compile fix 2010-03-10 21:45:40 +01:00
kh1
0ec23fefd1 Fix split mode after last change for welcome page examples.
We need to append "?view=split"to force the split mode check. Make the
check more readable in viewerForContextMode.
2010-03-10 18:42:13 +01:00
kh1
4e7bbbdaaf Fix broken behavior for welcome page links if no docs are installed.
In case of split mode we did not check if the actual requested doc
exists and thus did fail to open the browser if it could not be found.

Reviewed-by: Daniel Molkentin
2010-03-10 18:42:12 +01:00
kh1
98a0663e0d Don't open a help page while swtiching to 'Contents'. New default home.
Reviewed-by: ck
2010-03-10 15:03:55 +01:00
kh1
b748f99c69 Lazy start the full text search indexer. Fix missing progress for more
the one run of the indexer.

Reviewed-by: ck
2010-03-05 16:09:19 +01:00
hjk
9595504bda Long live the king! 2010-03-05 11:28:13 +01:00
kh1
23a876c5c0 Some more improvements for the startup time.
After this change and the change we did to 4.7, we are down to ~100ms
time in extensionsInitialized on Windows, should be even more on Linux.
2010-03-04 18:48:51 +01:00
kh1
9426caeeed In case we remove docs, but do not add some we need to setup too. 2010-03-02 18:05:01 +01:00
kh1
a53594cf80 Implement index documentation progress bar and make it interruptible.
Reviewed-by: ck
2010-03-02 10:55:26 +01:00
Kai Koehne
6c4b9ba227 Reapply unconnected changes from reverted commit
Only revert stuff that is linked to fast string concat.
2010-02-08 11:13:55 +01:00
Kai Koehne
999c73ad9d Revert "compile everything with QT_USE_FAST_CONCATENATION"
This reverts commit e70530c5ad. It
did break builds on older gcc versions (gcc 4.1.2 64 bit Linux,
gcc 4.0.1 on Mac OS X):

parser/qmljsgrammar_p.h: In static member function ???static int
QmlJSGrammar::nt_action(int, int)???:
parser/qmljsgrammar_p.h:188: error: ???QmlJSGrammar::<anonymous enum>???
is/uses anonymous type
parser/qmljsgrammar_p.h:188: error:   trying to instantiate
???template<class T> struct QConcatenable???
...
2010-02-08 10:56:50 +01:00
Oswald Buddenhagen
e70530c5ad compile everything with QT_USE_FAST_CONCATENATION 2010-02-05 15:20:25 +01:00
kh1
e94ff514ed Move HelpManager it's own source files.
Reviewed-by: ck
2010-02-02 14:27:11 +01:00
kh1
c859a721f0 Some cleanup, no intended functional change. 2010-02-02 14:26:15 +01:00
kh1
9959b16465 Small refactoring to avoid the massive setupData calls.
SetupData triggers all kind of updates, most notable restarting the
content, index widget and full text search indexer threads which might
hurt startup performance.

Reviewed-by: ck
2010-02-02 12:06:33 +01:00
Friedemann Kleint
2fd8b2d7ff Fix some code scanning issues.
QString: Use QChar where appropriate.
2010-02-01 12:43:56 +01:00
kh1
a0af55e7bd Add an combo box to switch between the opened tabs.
Follow the text editor and provide a combo box for opened documents. We
might consider removing the tabs all together to look more consistent.

Task-number: QTCREATORBUG-584
Reviewed-by: ck
2010-01-18 15:22:07 +01:00
ck
e83c2e40a6 Help plugin: Simplify code path in doc registering. 2010-01-13 15:08:07 +01:00
con
733fa8f781 Mixing of namespace and file name.
Reviewed-by: Thorbjørn
2010-01-13 14:34:22 +01:00
Kai Koehne
f0c9caf97c Remove stale entries in assistant db blocking qch file registering
registerDocumentation failed if a namespace/qch file had been registered
before, but the qch file is not accessible any more. This prevented
the registration of the same namespace/qch file at a different location.

Fix this by explicitly removing entries that have no valid qch file any
more from the db.

Reviewed-by: con
2010-01-12 14:20:39 +01:00
con
7185e42b25 Merge remote branch 'origin/1.3' 2010-01-05 10:58:06 +01:00
Erik Verbruggen
4416dda243 Added a name component to the SideBar's saveSettings/restoreSettings to allow for multiple instances in a plug-in. 2010-01-04 14:36:29 +01:00
con
031d6c1690 Don't switch to Help mode if help side bar is already visible. 2009-12-21 12:16:22 +01:00
mae
b7635dda19 tune editor mouse cursor behaviour
the fix makes the mouse cursor visible when the editor loses focus.
This fixes an issue with the completion box, where on mac and windows
no mouse cursor would be visible (it worked on X11 due to the way
X11 does mouse grabbing for popup windows).
2009-11-30 19:14:48 +01:00
mae
d6e4a787d5 separate font zoom from font size
Introduce "Reset Font Size" action, bound to Ctrl+0
2009-11-30 19:01:04 +01:00
Oswald Buddenhagen
913f6161a1 Merge remote branch 'origin/1.3'
Conflicts:
	src/plugins/cpptools/cppcodecompletion.cpp
	src/plugins/help/helpplugin.cpp
	src/plugins/projectexplorer/projectexplorer.cpp
2009-11-20 17:25:39 +01:00
con
ad4c227ca4 Make context help work also when switching user interface language.
Also avoids errors because of users messing with the "Unfiltered"
filter, which is used for e.g. context help.
The strategy now is to remove the "Unfiltered" filter from previous runs
(possibly in a different language), and re-register a fresh filter with
the name in the current language, and guaranteed to not filter out
anything.

Reviewed-by: kh1
2009-11-20 16:02:52 +01:00
con
c8bb7e174b Merge commit 'origin/1.3'
Conflicts:
	src/plugins/qt4projectmanager/qt4project.cpp
2009-11-04 19:15:14 +01:00
dt
a67e13942b Fix memory leak in welcome plugin and right hand side pane 2009-11-04 17:20:33 +01:00
con
be3fafc311 Merge commit '2be0845c7492ad991f23ce5c90c322df788b62b5'
Conflicts:
	src/plugins/projectexplorer/projectexplorer.h
	src/plugins/qt4projectmanager/qt4projectconfigwidget.cpp
	src/plugins/qt4projectmanager/qt4runconfiguration.cpp
	src/plugins/qt4projectmanager/qtversionmanager.cpp
2009-10-29 18:54:17 +01:00
Jarek Kobus
7c141110fb Missing tr()
RevBy: Friedemann Kleint <Friedemann.Kleint@nokia.com>
2009-10-29 09:30:58 +01:00
con
441ece365a Merge commit 'origin/1.3'
Conflicts:
	src/plugins/cpptools/cppcodecompletion.h
	src/plugins/debugger/gdb/gdbengine.cpp
	src/plugins/qmleditor/QmlEditor.pluginspec
2009-10-26 13:51:56 +01:00
Oswald Buddenhagen
f3aefdf589 don't print error messages in quotes 2009-10-23 19:07:35 +02:00
Maurice Kalinowski
6c5cf1c32a check the collection file for updates
- In case documentation has been added to the collection,
  creator registers the documentation on startup.

Reviewed-By: ck
2009-10-21 12:38:35 +02:00
Roberto Raggi
6ccc08fb40 Restore the state of QObject::blockSignals() 2009-10-05 12:45:14 +02:00
Friedemann Kleint
5948e284bb Rename namespace Core::Utils into Utils
Also move Designer::Internal::FormWindowEditor ->
Designer::FormWindowEditor.
2009-10-05 11:06:05 +02:00
Friedemann Kleint
74a3828f19 Purge out include files in exported headers 2009-10-01 16:38:08 +02:00
con
09cd063cdc Help->Contents also opens the Qt Creator manual now. 2009-10-01 14:06:34 +02:00
con
cfa47a71a4 Also remove old Qt Creator filters. 2009-09-15 18:41:16 +02:00