octave-patch-tracker
[Top][All Lists]
Advanced

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

[Octave-patch-tracker] [patch #7990] Add builtin Qt equivalents of UI di


From: John W. Eaton
Subject: [Octave-patch-tracker] [patch #7990] Add builtin Qt equivalents of UI dialogs, i.e., , qterrordlg, qtinputdlg, etc.
Date: Tue, 02 Apr 2013 21:52:28 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.11) Gecko/20100101 Firefox/10.0.11 Iceweasel/10.0.11

Follow-up Comment #2, patch #7990 (project octave):

Thanks for working on these functions.  We definitely need something in Qt to
do this job for the Qt GUI.

I'm not sure what your thoughts are for using these functions to provide the
errordlg, helpdlg, etc. functions that users will actually be calling, but I'd
prefer to avoid having errordlg doing something like


  if (qt_gui)
    qterrordlg (..);
  elseif (gtk_gui)
    gtkerrordlg (..);
  else
    ...
  endif


because that means that a new GUI has to go find all those functions and
insert a new case.  That's why I've been adding hooks/callbacks that the GUI
can install.  Then a new GUI simply needs to install a list of function
pointers and no other code needs to change.

Also, if these functions are not accessible unless the GUI installs them as
hook/callback functions, then there is no need for any "is_the_gui_running"
check because the only way the function pointers will be installed is if the
GUI is running.

In any case, I think we should install this changeset since it is a good
starting point.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?7990>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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