Commit Graph

115 Commits (c906f917eb3ae11ccbbd9e7d5eb1091b470bd976)

Author SHA1 Message Date
Hleb Valoshka c906f917eb [i18n] translate more strings 2021-05-08 13:13:37 +03:00
Hleb Valoshka ca95ccc4b8 [qt] Place colons before closing "b" tag 2021-05-05 15:04:47 +03:00
Hleb Valoshka 332840fdd1 Refactor Url class
* Critical change:
   - Drop Url versions 1, 2 and 4. Versions 1 and 2 are
     too old and can't be handled properly. Version 4
     was added to handle 64 bit RenderFlags but we can
     encode them in backward compatible way by adding a
     new parameter "nrf" ignored by Celestia 1.6.

 * Use string_view to reduce memory allocation during Url
   parsing.

 * Use non-throwing functions to parse numbers.
2021-03-08 14:08:36 +03:00
Hleb Valoshka db9dd5cb18 Extract string utilities to own file 2021-03-08 14:08:36 +03:00
Hleb Valoshka 7043d45164 Restore possibility to blacklist GL extensions 2021-03-03 20:18:32 +03:00
Hleb Valoshka 18c5126459 Copy console output into a file
Currently Qt frontend only, can be activated by passing -l/--log option:
celestia-qt --log /tmp/celestia.log
2021-01-14 16:45:57 +03:00
Hleb Valoshka ba308e4f19 Fix typo 2020-06-10 09:06:57 +03:00
Hleb Valoshka 5c4f6aae87 Update information shown in "OpenGL Info" window 2020-04-19 20:40:28 +03:00
Hleb Valoshka 7e5965d437 Remove vsync support
# X11 only
# Basically useless with double buffering
2020-04-10 12:22:28 +03:00
Hleb Valoshka bd7f9ebc9b Use libepoxy instead of GLEW
Unlike GLEW libepoxy supports OpenGL ES and better handles cases with
functions provided by different extensions, e.g. the same functions
provided by vendor/EXT/ARB/core.
2020-03-26 11:24:56 +03:00
Hleb Valoshka f67b331f02 Show error if an incorrect URL passed to CelestiaCore::goToUrl 2020-03-07 15:40:39 +03:00
Hleb Valoshka f8831d4d2e Common OpenGL information code
Closes: #609
2020-02-18 15:13:06 +03:00
Hleb Valoshka fb4bede3d1 Allow building without NLS 2020-02-15 00:20:13 +03:00
Hleb Valoshka 6969373ec4 Add and use time-related helper methods 2020-01-25 11:50:28 +03:00
Hleb Valoshka db90b02646 [qt] Dump more technical information 2020-01-23 19:54:40 +03:00
Hleb Valoshka 6e871064e4 Replace deprecated QDesktop::numScreens() call 2019-11-20 12:15:27 +03:00
laikh 3019e497e9 Use Ctrl+C and Ctrl+V to handle both the console copy-and-paste and the URL copy-and-paste 2019-09-02 21:18:02 +02:00
laikh e2854c0698 Remove F5 F6 shortcuts for copy and paste to solve conflicts with setTargetSpeed 2019-09-02 21:18:02 +02:00
Li Linfeng eb51fa8228 adapt to context menu handler change 2019-08-30 20:57:07 +08:00
Li Linfeng 71ca974838 Replace the apple macro in qt project 2019-08-21 11:59:40 +03:00
Hleb Valoshka b6b543438d Port to filesystem API 2019-08-16 18:11:24 +03:00
Li Linfeng 6617d94672 Remove unused code 2019-08-07 12:15:32 +03:00
Li Linfeng 589face93e Use relative path for data and config on macOS platform 2019-08-07 12:15:32 +03:00
Hleb Valoshka 204ba15f37 [qt] Use QStandardPaths to get data location (Closes: #335) 2019-08-03 17:34:48 +03:00
Hleb Valoshka 852874b32f Add frame capture function to Renderer 2019-06-24 23:58:30 +03:00
Hleb Valoshka b09b48b1ab Disable GLContext usage as it does nothing now 2019-06-20 13:03:02 +03:00
Hleb Valoshka 2475a7f1b3 Make a few methods const 2019-06-20 13:02:27 +03:00
Hleb Valoshka e255a34c7a Initialize some variables 2019-06-20 13:02:27 +03:00
Hleb Valoshka 6ff875dab3 [qt] Open wikibook instead of local manual
... as we don't have local manual

Based on https://build.opensuse.org/package/view_file/home:munix9:unstable/celestia/fix-manual-file-url.patch?expand=1
2019-06-04 17:27:56 +03:00
pirogronian b2d88df04a Qt: add copy/paste search console text actions. 2019-03-28 09:05:04 +01:00
Hleb Valoshka da8d3701d1 Don't use native OSX resourse paths by default 2019-03-11 22:01:14 +03:00
pirogronian 03be74e3c7 Revert "Replace deprecated QGLWidget with QOpenGLWidget"
This reverts commit 2f7adf19d0.
2019-01-06 23:20:35 +03:00
pirogronian 2f7adf19d0 Replace deprecated QGLWidget with QOpenGLWidget 2018-12-27 23:06:53 +03:00
Hleb Valoshka 4eabb17ba2 Fix application start on Windows 2018-12-19 19:47:23 +03:00
Hleb Valoshka 6fcaadb207 Fix ~/.celestia.cfg reading 2018-12-02 16:24:33 +03:00
Hleb Valoshka 82ef4e3b95 [qt] Add "Go to object" dialog
Like it was in Gtk and OSX backends
2018-11-28 10:24:07 +03:00
Hleb Valoshka d5f41a28c7 Change "Custom FPS" accelerator (Closes: #120) 2018-11-20 20:15:28 +03:00
Hleb Valoshka deeca96ddb Update URL to handle 64bit render flags, bump URL version to 4 2018-11-16 21:25:16 +01:00
Hleb Valoshka 60c42c2588 Add new Renderer flags
* ShowDwarfPlanets
 * ShowMoons
 * ShowMinorMoons
 * ShowAsteroids
 * ShowComets
 * ShowSpacecrafts
 * ShowFadingOrbits (not used yet)
2018-11-16 21:25:16 +01:00
pirogronian 358268ad61 Make fps menu smart enough to detect actual fps rate setting. 2018-11-16 12:07:03 +01:00
pirogronian e82a87018a Make FPS control menu checkable, move VSync option to it and rename properly. 2018-11-16 12:07:03 +01:00
pirogronian 8d5b729b52 Direct manual control over frame rate. Useful on weaker machines. 2018-11-09 15:21:39 +01:00
Hleb Valoshka 9d5c914e4b Don't use localtime_r on Windows
That code was not tested actually.
On windows struct tm doesn't have localtime_r and tm_zone
2018-11-08 11:06:17 +03:00
Hleb Valoshka 02e920d703 Fix some QString -> std::string conversions 2018-11-08 11:06:17 +03:00
Hleb Valoshka 5e41e38a8a [qt] Add menu to toggle VSync 2018-10-31 22:33:12 +03:00
Hleb Valoshka b4a8279b40 [qt] Set missing dialog titles 2018-10-31 22:33:12 +03:00
Hleb Valoshka 334c6e76f7 [qt] Change InfoPanel data when selection is changed in a *Browser 2018-10-31 22:33:12 +03:00
Hleb Valoshka 8c613c67f5 [qt] Use QString::fromStdString instead of QString::fromUtf8(s.c_str()) 2018-10-31 22:33:12 +03:00
Hleb Valoshka 253aaa4985 [qt] Make InfoPanel more L10n friendly 2018-10-31 22:33:12 +03:00
Hleb Valoshka eab70c96cb Fix more coverity issues
Mostly uninitialized variables plus one memory leak
2018-10-30 23:52:19 +03:00