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

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

[Octave-bug-tracker] [bug #53729] Qt figure canvas does not resize with


From: A.R. Burgers
Subject: [Octave-bug-tracker] [bug #53729] Qt figure canvas does not resize with window while interpreter is paused or blocked
Date: Fri, 26 Oct 2018 03:20:47 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299

Follow-up Comment #13, bug #53729 (project octave):

One approach could be a wrapper in m-code around the current c++ that
implements the pause on/off/query functionality? I made a draft below:


function val = pause_new(secs_or_status)
  status = {'off', 'on'};
  persistent pause_status_on;
  if isempty(pause_status_on)
    pause_status_on = 1;
  end
  if nargin == 0
    if pause_status_on
      pause
    end
  elseif nargin == 1
    if isnumeric(secs_or_status) && isscalar(secs_or_status)
      if pause_status_on
        pause(secs_or_status);
      end
    elseif ischar(secs_or_status)
      val = status{pause_status_on + 1};
      switch lower(secs_or_status)
      case 'on'
        pause_status_on = 1;
      case 'off'
        pause_status_on = 0;
      case 'query'
      otherwise
        error('string argument must be on, off or query');
      end
    else
      error('argument to pause must be character string or numeric scalar');
    end
  else
    error('pause accepts only one argument');
  end
end



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?53729>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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