aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/ServerDialog.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Begin work on XDGBDS compliance and overrideable configs902024-03-151-8/+8
|
* Fix correct background in Fl_Input_ChoicePierre Ossman2023-07-141-0/+2
| | | | | Work around a bug in Fl_Input_Choice where it forgets to set the proper "input background" on some parts.
* Use std::string for string memory managementPierre Ossman2023-02-041-12/+9
| | | | | Avoids a bit of complexity by delegating that handling to a string object.
* Use std::string instead of CharArrayPierre Ossman2023-02-041-0/+1
| | | | | Let's use a more common type instead of something homegrown. Should be more familiar to new developers.
* Remove trailing slash from getvnchomedir()Pierre Ossman2023-02-041-2/+2
| | | | | It should return a path to the directory itself, just like its sister function getuserhomedir().
* Namespace directory functionsPierre Ossman2023-02-041-4/+4
| | | | All library functions should be in a proper namespace.
* Return static char buffer from some methodsPierre Ossman2023-02-041-8/+6
| | | | | | | | | This mimics how some system functions (like inet_ntop()) work, and avoids complexity around ownership of the returned string buffer. The downside is that the string must be consumed directly as it will be overwritten on the next call, but that is not an issue with the current usage.
* Explicitly mark unused parametersPierre Ossman2023-01-041-6/+6
| | | | | This allows us to separate accidentally unused, from explicitly unused parameters, which allows us to turn on such checks in the compiler.
* Make ServerDialog use standard layout constantsPierre Ossman2022-12-221-35/+35
| | | | Makes it easier to adjust the UI from a central place.
* Move general FLTK stuff to own directoryPierre Ossman2022-09-071-1/+1
| | | | | | | Let's separate TigerVNC specific things from stuff that could be part of upstream FLTK. These are files that we would like to collaborate with other FLTK users, so they are more liberally licensed and avoid using TigerVNC specific things.
* Handle empty lines in server historyPierre Ossman2021-12-231-4/+8
|
* Merge pull request #1350 from samhed/serverdialogmodalSamuel Mannehed2021-10-061-2/+0
|\ | | | | Remove modal property from ServerDialog
| * Remove modal property from ServerDialogSamuel Mannehed2021-10-051-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modal windows are meant to be child windows such as menus or popups that are intended to always appear in front of its parent. Modal FLTK windows without a parent seem to behave strangely on macOS. Such windows can appear in front of their modal children windows. When opening OptionsDialog from ServerDialog, it was easy to get to a broken state by then switching focus back to the ServerDialog. This would cause the ServerDialog to appear in front, but not be useable as the options window would still have control of mouse and keyboard. Additionally, modal windows without parents appear in front of other normal applications on macOS. This means that the ServerDialog couldn't be put behind Safari for example. The fact that ServerDialog was a "modal" window was a bit strange, seeing as it doesn't have any parent windows. Removing the modal property from this window causes all the strange-ness to go away.
* | Adjust default directory for configuration file save and loadJohannes2021-09-211-9/+28
|/
* Clean up some error stringsPierre Ossman2021-09-081-8/+4
| | | | | Try to reuse and split things so that it makes things easier for the translators.
* Consistently use exceptions for parameter errorsPierre Ossman2021-09-081-7/+35
| | | | | Clean up the structure around storing and loading parameters and server history so that failures will always be reported by using exceptions.
* Use classic FILE I/O for storing server historyPierre Ossman2021-09-081-28/+50
| | | | Error handling is more straight forward in the C file interface.
* Have a history of used vnc servers to select from in the vncviewerJohannes2021-01-111-8/+105
|
* Fix memory leaksJan Grulich2018-11-201-5/+5
|
* Mark strings for translationAlexander Shopov2017-04-291-6/+6
|
* Re-add the "-via" parameter support on UNIX platforms.Adam Tkac2013-01-231-8/+7
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5032 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Make it possible to load and save configuration files. Also, whenPeter Åstrand2012-08-081-17/+152
| | | | | | | | | connecting, the options are saved as default settings. This patch fixes SF bugs 3481470 and 3499216. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4950 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Make sure to include config.h in every compilation unit. Otherwise,Peter Åstrand2011-08-231-0/+4
| | | | | | | | | | the necessary defines will only be visible as a side effect of including other headers, leading to problems with things like translations, which will fail in various places. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4646 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Create a proper header file for the exported functions from vncviewer.cxx.Pierre Ossman2011-07-121-2/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4579 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Initial options dialog (read-only) loosly based on the Unix vncviewer.Pierre Ossman2011-05-161-2/+12
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4416 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Implement connection dialog based on unix vncviewer.Pierre Ossman2011-05-131-0/+100
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4412 3789f03b-4d11-0410-bbf8-ca57d06f2519