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

Selecting and copying a sub-matrix (GH #2345). More...

#include <wx/app.h>
#include <wx/bitmap.h>
#include <wx/dcmemory.h>
#include <wx/frame.h>
#include <wx/log.h>
#include "Configuration.h"
#include "MathParser.h"
#include "cells/GroupCell.h"
#include "cells/MatrCell.h"
#include "worksheet/Worksheet.h"
#include <catch2/catch.hpp>
Include dependency graph for test_MatrixBlockSelection.cpp:

Data Structures

class  TestApp
 

Functions

 SCENARIO ("Dragging across several entries of a matrix selects just that block")
 
 SCENARIO ("A copied block keeps a heading only if it includes it")
 
 SCENARIO ("A matrix, or a block of one, can be copied as CSV (GH #2364)")
 
 SCENARIO ("Shift+arrow keys grow or shrink a selected block (GH #2370)")
 
 SCENARIO ("Stepping over elided rows takes a single step (GH #2370)")
 
 wxDECLARE_APP (TestApp)
 
int main (int argc, char **argv)
 

Detailed Description

Selecting and copying a sub-matrix (GH #2345).

Dragging a rectangle across several entries of a matrix used to select the whole matrix. It now selects the block of entries the rectangle touches, and every "Copy ..." command copies just that block. These tests drive Worksheet::SelectOutputRect() – what a mouse drag in an output calls – with points taken from the laid-out entries, and check what gets selected and copied. The matrices are parsed from the XML Maxima sends, so no Maxima is needed, and nothing touches the system clipboard.