-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathOS_Function.h
36 lines (25 loc) · 1.03 KB
/
OS_Function.h
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
32
33
34
35
36
//This Header is for application wide convenience functions.
#ifndef OS_FUNCTION_H
#define OS_FUNCTION_H
#include <QString>
#include <QStringList>
#include <QTextStream>
#include <QWidget>
//OPERATING SYSTEM COMPATIBILITY HELPER FUNCTIONS::
//dialog compatibility
QString CROSS_OS_GetSaveFileName(QWidget * parent = 0,
const QString & caption = QString(),
const QString & directory = QString(),
const QString & filter = QString(),
const QStringList &saveAbleExtensions = QStringList() );
//File Location Compatibility
QString CROSS_OS_GetDirectoryFromLocationTag(QString locationtag);
//Screen Saver Disabling
bool CROSS_OS_DisableSleeps(bool disable = 1);
//FILE HANDING HELPER FUNCTIONS
//streams in "some random text with spaces" from the opened text file.
QString StreamInTextQuotes(QTextStream &stream);
//Cursor waiting
void Enable_User_Waiting_Cursor();
void Disable_User_Waiting_Cursor();
#endif //