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

Tests that the worksheet tells its owner when something needs the user's attention, and when that is over. 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 "worksheet/Worksheet.h"
#include <vector>
#include <catch2/catch.hpp>
Include dependency graph for test_WorksheetAttention.cpp:

Data Structures

class  TestApp
 

Functions

 SCENARIO ("A notification asks for attention until it is cleared")
 
 wxDECLARE_APP (TestApp)
 
int main (int argc, char **argv)
 

Detailed Description

Tests that the worksheet tells its owner when something needs the user's attention, and when that is over.

The tray icon is shown only while this is the case (see TrayIcon), so a notification that is raised without the callback firing would leave the icon hidden when it is needed, and a missing "cleared" call would leave it in the tray forever.