-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprocessCommandLine.cpp
More file actions
31 lines (26 loc) · 956 Bytes
/
processCommandLine.cpp
File metadata and controls
31 lines (26 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "mainWindow.h"
#include "commandLineOptions.h"
#include <iostream>
using namespace std;
#define P(X) qPrintable(X)
void MainWindow::processCommandLine(void)
{
CommandLineOptions options;
options.add("c",&_hideCursor);
options.add("d",&_directory);
options.add("f",&_displayFileName);
options.add("F",&_fullscreen);
options.add("r",&_randomMode);
options.add("s",&_secondsToShowImage);
options.add("sleep",&_sleepMode);
options.parse();
#if 0
cout << "--------------------------------------------------\n";
cout << "Directory " << P(_directory.toString()) << endl;
cout << "Display File Name " << _displayFileName.toBool() << endl;
cout << "Seconds " << _secondsToShowImage.toInt() << endl;
cout << "Sleep " << _sleepMode.toBool() << endl;
cout << "Hide Cursor " << _hideCursor.toBool() << endl;
cout << "--------------------------------------------------" << endl;
#endif
}