-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add stubbed-out versions of missing source files.
Should at least compile/link cleanly now (on 32bits, GCC2). Both TraX and FastTraX seem functional (except the Settings window).
- Loading branch information
Showing
8 changed files
with
144 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Stubbed out Globals.h for Tim Vernum's TraX. | ||
|
||
#ifndef GLOBALS_H | ||
#define GLOBALS_H | ||
|
||
#include "ResultsHandler.h" | ||
|
||
static ResultsHandler gResults; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Stubbed out Joins.h for Tim Vernum's TraX. | ||
|
||
#ifndef JOINS_H | ||
#define JOINS_H | ||
|
||
static const char* const kOpenStrings[] = { "", "(" }; | ||
static const char* const kCloseStrings[] = { "", ")" }; | ||
static const char* const kNotStrings[] = { "", "not" }; | ||
static const char* const kConjunctionStrings[] = { "", "and" }; | ||
|
||
// Fixme: these are just wild guesses for now: | ||
static const char* const kOpenValues[] = { "", "(" }; | ||
static const char* const kCloseValues[] = { "", ")" }; | ||
static const char* const kNotValues[] = { "", "!" }; | ||
static const char* const kConjunctionValues[] = { "", "&&" }; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Stubbed out ResultsHandler.{h,cpp} for Tim Vernum's TraX. | ||
|
||
#include "ResultsHandler.h" | ||
#include "ResultsWindow.h" | ||
|
||
|
||
ResultsHandler::ResultsHandler() | ||
{ | ||
} | ||
|
||
|
||
void | ||
ResultsHandler::Init() | ||
{ | ||
} | ||
|
||
|
||
int | ||
ResultsHandler::AddResult(const char* foobar) | ||
{ | ||
return ResultsWindow::AddResult(foobar); | ||
} | ||
|
||
|
||
void | ||
ResultsHandler::NewSearch() | ||
{ | ||
} | ||
|
||
|
||
void | ||
ResultsHandler::EndSearch() | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Stubbed out ResultsHandler.{h,cpp} for Tim Vernum's TraX. | ||
|
||
#ifndef RESULTSHANDLER_H | ||
#define RESULTSHANDLER_H | ||
|
||
|
||
class ResultsHandler { | ||
public: | ||
ResultsHandler(); | ||
|
||
void Init(); | ||
|
||
void NewSearch(); | ||
void EndSearch(); | ||
|
||
static int AddResult(const char*); | ||
}; | ||
|
||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Stubbed out Settings.cpp for Tim Vernum's TraX. | ||
|
||
#include "Settings.h" | ||
|
||
TraxSettings gSettings; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Stubbed out Settings.h for Tim Vernum's TraX. | ||
|
||
#ifndef SETTINGS_H | ||
#define SETTINGS_H | ||
|
||
|
||
typedef struct settings { | ||
enum { | ||
eShowBrackets, | ||
eShowJoinPanel, | ||
eShowNot | ||
}; | ||
|
||
int fConjunction; | ||
const char* fDefaultFolder; | ||
bool fUseTracker; | ||
int fShow; | ||
} TraxSettings; | ||
|
||
|
||
extern TraxSettings gSettings; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Stubbed out SettingsWindow.{h,cpp} for Tim Vernum's TraX. | ||
|
||
#include "SettingsWindow.h" | ||
|
||
|
||
SettingsWindow::SettingsWindow() | ||
: BWindow(BRect( 100, 100, 400, 250 ) , "Settings", B_DOCUMENT_WINDOW, B_NOT_CLOSABLE | B_NOT_RESIZABLE) | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Stubbed out SettingsWindow.{h,cpp} for Tim Vernum's TraX. | ||
|
||
#ifndef SETTINGSWINDOW_H | ||
#define SETTINGSWINDOW_H | ||
|
||
#include <Window.h> | ||
|
||
|
||
class SettingsWindow : public BWindow | ||
{ | ||
public: | ||
SettingsWindow(); | ||
|
||
// These methods are present in the TraX BeOS binaries: | ||
// void LoadSettings(); | ||
// void SaveSettings(); | ||
|
||
// void GetSettings(FastTraxSetting*); | ||
// void DefaultSettings(); | ||
|
||
// void BroadcaseSettings(); | ||
// virtual void MessageReceived(BMessage* msg); | ||
}; | ||
|
||
#endif |