wxMaxima
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
test_FloatingPaneHeight.cpp File Reference

Tests for LimitFloatingPaneHeight(). More...

#include <wx/app.h>
#include <wx/aui/aui.h>
#include <wx/frame.h>
#include <wx/log.h>
#include <wx/panel.h>
#include "FloatingPaneHeight.h"
#include <catch2/catch.hpp>
Include dependency graph for test_FloatingPaneHeight.cpp:

Data Structures

class  TestApp
 

Functions

 wxDECLARE_APP (TestApp)
 
 SCENARIO ("A floating pane can be widened but not made higher than its contents")
 
 SCENARIO ("A docked pane is left alone")
 
 SCENARIO ("A hidden floating pane is left alone")
 
int main (int argc, char **argv)
 

Detailed Description

Tests for LimitFloatingPaneHeight().

The find/replace sidebar and the wizard have a natural height; a floating one used to be resizable to any height, which only added empty space. These tests float a pane in a real wxAuiManager and check that its frame can be widened but not made higher than its contents, and that the function leaves docked and hidden panes alone.