7#include "dslrinfodialog.h"
9#include <KLocalizedString>
10#include "ksnotification.h"
24 connect(buttonBox, SIGNAL(accepted()),
this, SLOT(
save()));
32 sensorMaxWidth = maxWidth->value();
33 sensorMaxHeight = maxHeight->value();
34 sensorPixelW = pixelX->value();
35 sensorPixelH = pixelY->value();
37 if (sensorMaxWidth == 0 || sensorMaxHeight == 0 || sensorPixelW == 0 || sensorPixelH == 0)
39 KSNotification::error(
i18n(
"Invalid values. Please set all values."));
43 ISD::CameraChip *primaryChip = currentCCD->getChip(ISD::CameraChip::PRIMARY_CCD);
44 primaryChip->setImageInfo(sensorMaxWidth, sensorMaxHeight, sensorPixelW, sensorPixelH, 8);
45 primaryChip->setFrame(0, 0, sensorMaxWidth, sensorMaxHeight);
47 currentCCD->setConfig(SAVE_CONFIG);
CameraChip class controls a particular chip in camera.
Camera class controls an INDI Camera device.
QString i18n(const char *text, const TYPE &arg...)
QIcon fromTheme(const QString &name)
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:38:42 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.