Commit e30c3e92 authored by Jan Möbius's avatar Jan Möbius

More documentation fot snapshot functions

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12298 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 086983b2
......@@ -1249,7 +1249,7 @@ void Core::slotGetDescription(QString _function, QString& _fnDescript
}
}
void Core::snapshotBaseFileName(const QString& _fname, unsigned int _viewerId ){
void Core::snapshotBaseFileName(QString _fname, unsigned int _viewerId ){
if ( OpenFlipper::Options::gui() ) {
if ( _viewerId >= OpenFlipper::Options::examinerWidgets() ) {
......@@ -1262,7 +1262,7 @@ void Core::snapshotBaseFileName(const QString& _fname, unsigned int _viewerId ){
}
void Core::snapshotFileType(const QString& _type, unsigned int _viewerId ){
void Core::snapshotFileType(QString _type, unsigned int _viewerId ){
if ( OpenFlipper::Options::gui() ) {
if ( _viewerId >= OpenFlipper::Options::examinerWidgets() ) {
......@@ -1417,10 +1417,12 @@ void Core::setDescriptions(){
QStringList(tr("enabled")), QStringList(tr("restriction switch")));
emit setSlotDescription("setMaxFrameRate(int)", tr("set the maximal framerate (automatically enables framerate restriction)"),
QStringList(tr("frameRate")), QStringList(tr("Maximum frameRate")));
emit setSlotDescription("snapshotBaseFileName(QString&)", tr("Set a filename for storing snapshots.")
emit setSlotDescription("snapshotBaseFileName(QString)", tr("Set a filename for storing snapshots.")
, QStringList(), QStringList());
emit setSlotDescription("snapshotFileType(QString&)", tr("Set a filetype for storing snapshots.")
, QStringList(), QStringList());
emit setSlotDescription("snapshotFileType(QString)", tr("Set a filetype for storing snapshots.")
, QStringList(), QStringList());
emit setSlotDescription("snapshotCounterStart(int)", tr("Set the starting number for the snapshot counter.")
, QStringList("StartValue"), QStringList("Starting number for the counter"));
emit setSlotDescription("snapshot()", tr("Make a snapshot of the viewer. If no filename"
" was set using snapshotBaseFileName() the snapshot is stored"
" in snap.png in the current directory. The captured image will have "
......
......@@ -650,10 +650,10 @@ public slots:
/// set the baseFilename for snapshots (a counter is automatically increased when
/// snapshot() is called)
void snapshotBaseFileName(const QString& _fname, unsigned int _viewerId = 0);
void snapshotBaseFileName(QString _fname, unsigned int _viewerId = 0);
/// Set the file type for snapshots.
void snapshotFileType(const QString& _type, unsigned int _viewerId = 0);
void snapshotFileType(QString _type, unsigned int _viewerId = 0);
/// Set the start index for the snapshot counter
void snapshotCounterStart(const int _counter, unsigned int _viewerId = 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment