11#include <QDesktopServices>
18#include <QRadioButton>
20#include <QDoubleSpinBox>
21#include <QInputDialog>
24#include <QProgressDialog>
166 image =
new QImage();
190 image =
new QImage();
227 image =
new QImage();
276 void setDefaultValues(
string imzmlfilename,
int defaultmaxx,
int defaultmaxy,
int defaultpixelsizex,
int defaultpixelsizey,
eVendorType vendor);
307 QToolBar* toolbarFile;
308 QAction* actionLoadLayers;
309 QAction* actionSaveLayers;
310 QAction* actionSaveLayersAs;
311 QAction* actionOpenImage;
312 QAction* actionImportDialog;
313 QAction* actionExportImage;
314 QAction* actionClearAll;
315 QAction* actionCloseWindow;
317 QToolBar* toolbarView;
318 QAction* actionShowSelection;
319 QAction* actionColorScale;
320 QAction* actionAbsoluteIntensity;
321 QAction* actionZoomIn;
322 QAction* actionZoomOut;
323 QAction* actionZoomReset;
324 QAction* actionFlipHistologyHorizontal;
325 QAction* actionFlipHistologyVertical;
326 QAction* actionFlipMicroscopyHorizontal;
327 QAction* actionFlipMicroscopyVertical;
330 QDoubleSpinBox* rulerValue;
332 QToolBar* toolbarRegion;
333 QWidget* regionwidget;
334 QHBoxLayout* regionhbox;
343 QPushButton* setregionbutton;
344 QPushButton* resetregionbutton;
346 QToolBar* toolbarMaxCoordinates;
347 QWidget* maxcoordinateswidget;
348 QHBoxLayout* maxcoordinateshbox;
349 QLabel* leftshiftlabel;
351 QLabel* topshiftlabel;
357 QLabel* pixelsizexlabel;
358 QSpinBox* pixelsizexspinbox;
359 QLabel* pixelsizeylabel;
360 QSpinBox* pixelsizeyspinbox;
361 QPushButton* setmaxbutton;
362 QPushButton* setdefaultbutton;
364 QToolBar* toolbarHistology;
365 QWidget* histologywidget;
366 QHBoxLayout* histologyhbox;
367 QLabel* histologyxlabel;
368 QSpinBox* histologyx;
369 QLabel* histologyylabel;
370 QSpinBox* histologyy;
371 QLabel* histologywidthlabel;
372 QSpinBox* histologywidth;
373 QLabel* histologyheightlabel;
374 QSpinBox* histologyheight;
375 QLabel* histologyanglelabel;
376 QDoubleSpinBox* histologyangle;
378 QToolBar* toolbarMicroscopy;
379 QWidget* microscopywidget;
380 QHBoxLayout* microscopyhbox;
381 QLabel* microscopyxlabel;
382 QDoubleSpinBox* microscopyx;
383 QLabel* microscopyylabel;
384 QDoubleSpinBox* microscopyy;
385 QLabel* microscopywidthlabel;
386 QDoubleSpinBox* microscopywidth;
387 QLabel* microscopyheightlabel;
388 QDoubleSpinBox* microscopyheight;
389 QLabel* microscopyanglelabel;
390 QDoubleSpinBox* microscopyangle;
391 QLabel* microscopynavigationlabel;
392 QComboBox* microscopynavigationcombobox;
393 QPushButton* microscopydefaultbutton;
394 QPushButton* microscopygobutton;
395 QPushButton* microscopyprevbutton;
396 QPushButton* microscopynextbutton;
398 QToolBar* toolbarHelp;
399 QAction* actionHTMLDocumentation;
402 QImage* histologyimage;
409 vector<microscopyLayerInfo> microscopylayers;
412 QGridLayout* layerslayout;
413 QWidget* layerswidget;
414 QScrollArea* layersscrollarea;
415 QSplitter* mainwidget;
420 QString lastdiropticalimage;
421 QString lastdirhistologyimage;
422 QString lastdirmicroscopyimage;
423 QString lastdirexportimage;
424 QString lastdirlayersfile;
426 bool layersfileloaded;
429 string imzmlfilename;
434 int defaultpixelsizex;
435 int defaultpixelsizey;
441 void colorSpinBoxes(
int layerid);
443 void openOpticalImage();
445 void reopenOpticalImage(QString filename);
447 void openHistologyImage();
449 void reopenHistologyImage(QString filename);
451 bool parseMicroscopyImage(QString& filename,
double& pixelwidth,
double& pixelheight,
int& resolutionx,
int& resolutiony,
double& realwidth,
double& stagex,
double& stagey);
453 void openMicroscopyImage(
int layer,
const QString &layername);
455 void reopenMicroscopyImage(
int layer, QString filename,
bool reopen);
459 void updateMicroscopyNavigationCombobox(
int numberofitems);
461 bool checkLoadedImage(QImage* image);
463 void readLifImageOptical(
string filename,
cLifMetadata& metadata, QImage& image,
bool enableprogress);
465 void readLifImageFluorescence(
string filename,
cLifMetadata& metadata, QImage& image,
int minthreshold,
int maxthreshold,
bool enableprogress);
467 void openLifImage(
string liffilename,
int layer,
cLifMetadata& metadata,
bool enableprogress);
469 void setNavigationLayer(
int layer,
int navigation);
495 void selectImageType();
498 void imageTypeSelected(
const QString &s);
501 void openImportDialog();
507 void setFilterOptionsSlot(vector<cCoordinateInfo> coordinates,
bool operatortype,
string columnname1,
string comparatorname1,
string filterstring1,
string columnname2,
string comparatorname2,
string filterstring2,
bool casesensitive,
bool wholeword);
510 void setMaxButtonReleased();
513 void setDefaultButtonReleased();
516 void setRegionButtonReleased();
519 void histologyChanged();
522 void histologyPositionChanged(
int value);
525 void histologyAngleChanged(
double value);
528 void microscopyChanged();
531 void microscopyDefaultButtonReleased();
534 void microscopyGoButtonReleased();
537 void microscopyPrevButtonReleased();
540 void microscopyNextButtonReleased();
543 void microscopyPositionChanged(
double value);
546 void microscopyAngleChanged(
double value);
549 void microscopyFlipStateChanged(
bool state);
552 void showHTMLDocumentation();
555 void updateSelection(
int xmin,
int xmax,
int ymin,
int ymax);
558 void clearSelection();
561 void resetSelection();
564 void updatePointsArea(
int xmin,
int xmax,
int ymin,
int ymax);
567 void layerSpinBoxChangedSlot(
int alpha);
570 void layerZValueChangedSlot(
int zvalue);
573 void layerCheckBoxChangedSlot(
int state);
576 void activeLayerChangedSlot(
bool checked);
579 void updateHistologySlot(
int x,
int y,
int width,
int height,
double angle);
582 void updateMicroscopySlot(
bool flipx,
bool flipy,
double x,
double y,
double width,
double height,
double angle);
585 void updateRulerSlot(
double value);
588 void imageDoubleClickedSlot(
int spectrumid);
600 void clearAllLayersSlot();
603 void microscopyNavigationChanged(
int index);
630 void layerChanged(
int layerid,
bool checked,
int alpha,
int zvalue,
bool redraw);
The representation of a set of peptide sequence candidates.
The implementation of import dialog in image window.
The implementation of a tab used to import images from light microscopy.
The class storing global preferences.
Definition: cGlobalPreferences.h:104
Image window.
Definition: cImageWindow.h:240
void activeLayerChanged(int layerid)
The signal is emitted when a layer is selected.
void keyReleaseEvent(QKeyEvent *event)
Handle a key release event.
Definition: cImageWindow.cpp:954
void keyPressEvent(QKeyEvent *event)
Handle a key press event.
Definition: cImageWindow.cpp:933
void updateSummaryPeaksTableFilter(int xmin, int xmax, int ymin, int ymax)
The signal is emitted when the region selection was changed.
void doubleClickedSpectrumIDSignal(int spectrumid)
The signal is emitted the image is double clicked.
void applyGlobalPreferences(cGlobalPreferences *globalpreferences)
Apply new global preferences.
Definition: cImageWindow.cpp:826
void addLayer(QString name)
Add a layer.
Definition: cImageWindow.cpp:747
void closeEvent(QCloseEvent *event)
Handle the window close event.
Definition: cImageWindow.cpp:715
~cImageWindow()
The destructor.
Definition: cImageWindow.cpp:614
cImageWindow(cGlobalPreferences *globalpreferences, QWidget *parent=(QWidget *) 0)
The constructor.
Definition: cImageWindow.cpp:16
void setDefaultValues(string imzmlfilename, int defaultmaxx, int defaultmaxy, int defaultpixelsizex, int defaultpixelsizey, eVendorType vendor)
Set the filename and some default values parsed from the imzML file.
Definition: cImageWindow.cpp:721
void layerChanged(int layerid, bool checked, int alpha, int zvalue, bool redraw)
The signal is emitted when a layer was changed.
Import dialog in image window.
Definition: cImageWindowImportDialog.h:28
Paramaters of a microscopy layer.
Definition: cImageWindow.h:47
microscopyLayerInfo()
The constructor.
Definition: cImageWindow.h:165
double y
Y position.
Definition: cImageWindow.h:93
int thresholdmin
Noise threshold.
Definition: cImageWindow.h:153
double height
Height.
Definition: cImageWindow.h:105
int navigationlayer
Index of navigation layer.
Definition: cImageWindow.h:57
int thresholdmax
Signal threshold.
Definition: cImageWindow.h:159
double stagex
Stage X.
Definition: cImageWindow.h:129
double angle
Rotation angle [degrees].
Definition: cImageWindow.h:111
QString sourcename
Source file name.
Definition: cImageWindow.h:63
bool flipy
Flip vertically.
Definition: cImageWindow.h:81
double width
Width.
Definition: cImageWindow.h:99
QImage * image
QImage.
Definition: cImageWindow.h:141
bool flipx
Flip horizontally.
Definition: cImageWindow.h:75
~microscopyLayerInfo()
The destructor.
Definition: cImageWindow.h:201
microscopyLayerInfo(const microscopyLayerInfo &layer)
The copy constructor.
Definition: cImageWindow.h:174
void clear()
Clear the structure.
Definition: cImageWindow.h:209
bool reduced
True if the image size has been reduced.
Definition: cImageWindow.h:147
double defaultheight
Default height.
Definition: cImageWindow.h:123
double x
X position.
Definition: cImageWindow.h:87
QString imagename
Image name.
Definition: cImageWindow.h:69
double stagey
Stage Y.
Definition: cImageWindow.h:135
int type
Type (0 = FEI SEM, 1 = LEICA LIF).
Definition: cImageWindow.h:51
double defaultwidth
Default width.
Definition: cImageWindow.h:117
Auxiliary funtions and structures.
eVendorType
Vendor types.
Definition: utilities.h:82