UltraScan III
us_editor_gui.cpp
Go to the documentation of this file.
1 #include "us_editor_gui.h"
2 #include "us_gui_settings.h"
3 
5 {
6  setWindowTitle( tr( "Analyte Details" ) );
7  setPalette( US_GuiSettings::frameColor() );
8  setAttribute( Qt::WA_DeleteOnClose );
9 
10  QHBoxLayout* main = new QHBoxLayout( this );
11  main->setSpacing ( 2 );
12  main->setContentsMargins ( 2, 2, 2, 2 );
13 
14  editor = new US_Editor( US_Editor::LOAD, true );
15  editor->e->setFont( QFont( "monospace", US_GuiSettings::fontSize() ) );
16 
17  resize( 400, 300 );
18 
19  main->addWidget( editor );
20 }
21 
22