[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] Running without a GUI plus other ideas and tasks

From: Miguel de Benito Delgado
Subject: Re: [Texmacs-dev] Running without a GUI plus other ideas and tasks
Date: Sun, 7 Nov 2010 00:54:14 +0100

On Sun, Nov 7, 2010 at 00:13, Gubinelli Massimiliano <address@hidden> wrote:
1) make the file chooser dialog native. At the moment this is disabled since on the mac there is a difficulty: a native  file open dialog do not allow to type the file name. You have to take different actions in the case of a file load or a file save and the old texmacs api didn't differentiate the two possibilities. Now Joris has made some changes and when the dialog has to be created we know if it is for a load or a save, so that in principle we can choose the right native widget. Relevant lines in Graphics/Gui/widget.hpp are

widget file_chooser_widget (command cmdstring typebool save);
  // file chooser widget for files of a given 'type';
  // for files of type "image", the widget includes a previsualizer for images
  // 'save' indicates whether we intend to save the file

This looks easy enough, so let's say I tinker with this for a while. What "coding practices" should I adhere to? I can see how you like indentation, spacing and function layout, but:
Miguel de  Benito.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]