Diffstat (limited to 'noncore/apps/opie-reader/version.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/version.cpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/noncore/apps/opie-reader/version.cpp b/noncore/apps/opie-reader/version.cpp new file mode 100644 index 0000000..3796b67 --- a/dev/null +++ b/noncore/apps/opie-reader/version.cpp | |||
@@ -0,0 +1,39 @@ | |||
1 | #include "version.h" | ||
2 | #include "names.h" | ||
3 | #include <qmessagebox.h> | ||
4 | |||
5 | bool CheckVersion(int& major, int& bkmktype, char& minor) | ||
6 | { | ||
7 | if ( | ||
8 | (major != MAJOR) | ||
9 | || | ||
10 | (bkmktype != BKMKTYPE) | ||
11 | || | ||
12 | (minor != MINOR) | ||
13 | ) | ||
14 | { | ||
15 | major = MAJOR; | ||
16 | bkmktype = BKMKTYPE; | ||
17 | minor = MINOR; | ||
18 | /* | ||
19 | QMessageBox::warning(NULL, PROGNAME, | ||
20 | "This is the first time that you have\n" | ||
21 | "run this version of OpieReader.\n\n" | ||
22 | "There are two new icons visible at\n" | ||
23 | "the left end of the toolbar. The left\n" | ||
24 | "one brings up the menus, the next\n" | ||
25 | "one brings up the settings dialog.\n\n" | ||
26 | "Start by tapping the settings icon\n" | ||
27 | "and selecting the Buttons tab to\n" | ||
28 | "make sure that the buttons are\n" | ||
29 | "mapped as you expect\n\n" | ||
30 | "Next go to Settings/Toolbars via the\n" | ||
31 | "menu icon to set up your toolbars."); | ||
32 | */ | ||
33 | return true; | ||
34 | } | ||
35 | else | ||
36 | { | ||
37 | return false; | ||
38 | } | ||
39 | } | ||