HatchKeeper  0.90
The Free Open-Source Egg Incubation Software
Declare.h
Go to the documentation of this file.
1 /*******************************************************************/
9 #ifndef _DECLARE_H__
10 #define _DECLARE_H__
11 
12 #include "Batches.h"
13 #include "Storage.h"
14 #include "KeyValue.h"
15 #include "Documents.h"
16 #include "File.h"
17 #include "Database.h"
18 #include "Notifications.h"
19 #include "Language.h"
20 #include <vector>
21 #include <string>
22 
23 //This Is Where HatchKeeper Stores Data
24 #ifdef __WXOSX_COCOA__
25 wxFileName data;
26 std::string HATCHKEEPER_DATA = data.GetHomeDir().ToStdString() + "/.HatchKeeper_Data_90/";
27 #endif //__WXOSX_COCOA__
28 
29 #ifndef __WXOSX_COCOA__
30 std::string HATCHKEEPER_DATA = "./.HatchKeeper_Data_90/";
31 #endif
32 
35 
43 
45 
48 
50 
52 std::string l(std::string Text) {
53  if(Language.GetLanguage() == "English")
54  return Text;
55 
56  std::string Translated = Language.Translate(Text);
57 
58 #ifdef __SHOW_UNTRANSLATED__
59  if(Translated == Text)
60  std::cout<<"Log: Untranslated String: "<<Text<<std::endl;
61 #endif
62 
63  return Translated;
64 }
65 
66 vector<string> BackupName;
68 #endif
Declare HK_Batches Class Methods.
HK_Language Language
Definition: Declare.h:49
HK_KeyValue Settings
Definition: Declare.h:36
vector< string > BackupName
Definition: Declare.h:66
HK_Info Info
Definition: Declare.h:34
HK_Date Today
Definition: Declare.h:33
HK_Notifications Notify
Definition: Declare.h:42
HK_Batches Batches
Definition: Declare.h:44
HK_Storage Types
Definition: Declare.h:38
HK_Storage Remind
Definition: Declare.h:40
std::string HATCHKEEPER_DATA
Definition: Declare.h:30
HK_File Files
Definition: Declare.h:47
HK_Storage Breeds
Definition: Declare.h:37
HK_Database Database(HATCHKEEPER_DATA+"HatchKeeper.db")
std::string l(std::string Text)
A Helper Function For HK_Language.
Definition: Declare.h:52
HK_Storage Groups
Definition: Declare.h:41
HK_Storage Schedules
Definition: Declare.h:39
HK_Documents ExportImport
Definition: Declare.h:46
Declares HK_Documents Class.
Declares HK_KeyValue And Derivative Classes.
Declare HK_Notifications.
A Class For Managing Mulitple HK_Batch Objects.
Definition: Batches.h:22
A Wrapper For The Sqlite3 Database.
Definition: Database.h:29
A Class For Managing Dates.
Definition: Date.h:25
A Class For Generating/Manipulating HKBF, iCal, Reports And Other Documents.
Definition: Documents.h:27
Simple Platform Independent File Management Functions.
Definition: File.h:26
Version And Other Information For HatchKeeper.
Definition: Info.h:22
A Key and Value Type Storage.
Definition: KeyValue.h:25
Allows The App To Show Different Languages.
Definition: Language.h:23
std::string GetLanguage()
Returns What The Translated Language Is.
Definition: HK_Language.cpp:73
std::string Translate(std::string Text)
The Actual Translate Function This function checks Text against the base languages strings,...
Definition: HK_Language.cpp:83
Class For Managing Notifications In Database.
Definition: Notifications.h:22
A Class For Storing Values.
Definition: Storage.h:26