Skip to content

Commit

Permalink
Add stubbed-out versions of missing source files.
Browse files Browse the repository at this point in the history
Should at least compile/link cleanly now (on 32bits, GCC2).

Both TraX and FastTraX seem functional (except the Settings window).
  • Loading branch information
OscarL committed Sep 14, 2023
1 parent 46f2618 commit e38a6a5
Show file tree
Hide file tree
Showing 8 changed files with 144 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Common/UI/Globals.h
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
17 changes: 17 additions & 0 deletions Common/UI/Joins.h
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
34 changes: 34 additions & 0 deletions Common/UI/ResultsHandler.cpp
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()
{
}
20 changes: 20 additions & 0 deletions Common/UI/ResultsHandler.h
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
5 changes: 5 additions & 0 deletions Common/UI/Settings.cpp
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;
23 changes: 23 additions & 0 deletions Common/UI/Settings.h
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
10 changes: 10 additions & 0 deletions Common/UI/SettingsWindow.cpp
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)
{

}
25 changes: 25 additions & 0 deletions Common/UI/SettingsWindow.h
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

0 comments on commit e38a6a5

Please sign in to comment.