85 settings.beginGroup(
"DisplayFormat" );
86 settings.beginGroup( QString(
"Type%1" ).arg( (
int )
modality( ) ) );
90 settings.setValue(
"defaultViews", (
int )
defaultViews );
95 settings.beginGroup(
"DisplayFormat" );
96 settings.beginGroup( QString(
"Type%1" ).arg( (
int )
modality( ) ) );
97 if( settings.contains(
"numberOfViews" ) ) {
101 catch( std::invalid_argument e ) {
105 if( settings.contains(
"currentLayout" ) ) {
109 catch( std::invalid_argument e ) {
113 if( settings.contains(
"currentViews" ) ) {
117 catch( std::invalid_argument e ) {
121 if( settings.contains(
"defaultViews" ) ) {
179 std::array< bool, 4 > views;
206 COMMENT(
"Layout set to " << (
int ) currentLayout, 0 );
212 COMMENT(
"currentViews set to " << (
int ) currentViews, 0 );
221 COMMENT(
"Overlay set to " << overlay, 0 );
233 if( numberOfViews != 1 ) {
234 throw std::invalid_argument(
"The number of views cannot be changed!" );
239 COMMENT(
"Number of views set to " << numberOfViews <<
".", 0 );
240 if( ( numberOfViews != 1 ) && ( numberOfViews != 3 ) ) {
241 throw std::invalid_argument(
"Invalid number of views!" );
243 if( numberOfViews == 1 ) {
258 if( ( numberOfViews != 1 ) && ( numberOfViews != 4 ) ) {
259 throw std::invalid_argument(
"Invalid number of views!" );
261 if( numberOfViews == 1 ) {
Content: Commonly used macros, types, static variables and functions. Description: Some macros used...