📜 ⬆️ ⬇️

GUI for Wave



In one of the articles I described the installation of the wave demo server FedOne . In the "bundle" to the server there is a client, with a very primitive text interface. I am sure that many of those who tested FedOne had the idea of ​​writing a GUI client for it.

And Thomas Beverley posted the source code for the FedOne client with a graphical user interface. In the screenshot you can see how it all looks under Windows XP. A server and two clients are running.
There are buttons for almost all the commands that are now available in the API (even an empty “Test butt” button is prepared, apparently for the future). In the center you see a modal window for adding a new member to the wave. A similar window appears when deleting a member.
')
The installation procedure for this version of the client is simple. You need to download the sources and replace the \ src \ org \ waveprotocol \ wave \ examples \ fedone \ waveclient \ console folder with them. After that, run “ant clean” (thanks to D.Unkovsky for the reminder :) and then “ant” for recompilation.
As the author writes, you can easily change the client using the existing class WaveConnector.java. This class is fully documented and allows you to simplify interaction with the Google-wave. Based on it, you can build your own text client or create your own version of the graphical interface. For an example, see the class ConsoleClient.java.


PS And finally - a small trick (Windows only), now from me.
Since we are talking about a graphical interface, let's make it more convenient to manage the server and clients. Now we have to run them using bat-files, and the windows with running processes cannot be minimized to the tray.
But we can use the handy utility LNK file improver by Dmitry Koteroff (dk@dklab.ru) from the Denwer kit. It allows you to run any program and minimize its window to tray. If you look into the text of this small (6,656 bytes) softlink by some editor, you will see that you can edit its parameters directly in the source text: the starting directory, the launch string with arguments, the address of the icon, whether you want to run start several instances and whether to make the “Terminate” item available in the context menu (by right-clicking) of this tiny one.
The only thing that must be observed when changing the text - to make the replacement of characters, and not insert.
I made myself three versions of this executable file (server and two clients), added an icon from Google Wave and now I don’t have several DOS-shaped windows on my screen, but only a couple of wave snakes in the tray (you can see them in bottom right of the screenshot).

Additional links:
Google group , blog and twitter on Google Wave.
Unfortunately, on Habré, while there is no special thematic blog about the Wave, so for now, read the Google Habrablog .

pps News for those who do not have an invite to the sandbox. There are people in our group who agree to share their test account. Discussion is here .

Source: https://habr.com/ru/post/67220/


All Articles