|
wxMaxima
|
Selecting some of the characters of a text output with the mouse (GH #825). 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/TextCell.h"#include "worksheet/OutputTextSelection.h"#include "worksheet/Worksheet.h"#include <catch2/catch.hpp>Data Structures | |
| class | TestApp |
Functions | |
| SCENARIO ("Positions between characters of a text cell") | |
| SCENARIO ("Maths doesn't take part in selecting characters") | |
| SCENARIO ("Dragging inside a text cell selects characters (GH #825)") | |
| SCENARIO ("Selected characters may span several cells and lines") | |
| SCENARIO ("Selected characters are copied as they read") | |
| SCENARIO ("Selecting characters and selecting cells don't get in each other's way") | |
| wxDECLARE_APP (TestApp) | |
| int | main (int argc, char **argv) |
Selecting some of the characters of a text output with the mouse (GH #825).
The drags go through Worksheet::SelectOutputRect(), which is what a mouse move during a drag in an output calls, so what is tested is what the mouse does. Besides selecting characters, the tests pin how this gets along with the other kinds of selection: a drag that leaves the text selects whole cells, coming back selects characters again, and any other change of the selection forgets the characters. The output is parsed from the XML Maxima sends, so no Maxima is needed.