Skip to content

Commit

Permalink
New code from Bruce Kirchoff.
Browse files Browse the repository at this point in the history
  • Loading branch information
bjagg committed Sep 24, 2018
1 parent a7b4e84 commit 6a303dc
Show file tree
Hide file tree
Showing 57 changed files with 7,464 additions and 0 deletions.
53 changes: 53 additions & 0 deletions Amino/Amino.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4) {
QT += widgets
QT += printsupport
}

TARGET = Amino
TEMPLATE = app

INCLUDEPATH += $$PWD/../common

DEFINES += "APP_AMINO"

SOURCES += main.cpp\
quizapp.cpp \
SelectAminoAcidDialog.cpp \
AminoAcidList.cpp \
AminoAcid.cpp \
../common/StudyOptionsDialog.cpp \
../common/StudyDialog.cpp \
../common/QuizOptionsDialog.cpp \
../common/QuizDialog.cpp \
../common/ProgressReport.cpp \
../common/AdvancedOptionsDialog.cpp \
../common/sysfolders.cpp \
../common/sysscale.cpp

macx {
LIBS += -framework Foundation
SOURCES += ../common/macfolders.m

QMAKE_LFLAGS += -Wl,-rpath,@loader_path/../,-rpath,@executable_path/../,-rpath,@executable_path/../Frameworks

QMAKE_INFO_PLIST = Info.plist
}

HEADERS += quizapp.h \
SelectAminoAcidDialog.h \
AminoAcidList.h \
AminoAcid.h \
../common/StudyOptionsDialog.h \
../common/StudyDialog.h \
../common/QuizOptionsDialog.h \
../common/QuizDialog.h \
../common/ProgressReport.h \
../common/AdvancedOptionsDialog.h \
../common/sysfolders.h \
../common/sysscale.h

win32:LIBS += gdi32.lib user32.lib
win32:RC_FILE += Amino.rc


1 change: 1 addition & 0 deletions Amino/Amino.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
IDI_ICON1 ICON DISCARDABLE "amino.ico"
39 changes: 39 additions & 0 deletions Amino/AminoAcid.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#include "AminoAcid.h"

AminoAcid::AminoAcid( void )
{
}

void AminoAcid::setId( int aaId )
{
id = aaId;
}

void AminoAcid::appendName( QString name )
{
nameList.append( name );
}

void AminoAcid::appendProperty( QString prperty )
{
propertyList.append( prperty );
}

int AminoAcid::getId()
{
return id;
}

QString AminoAcid::getNameAt(int index )
{
return nameList.at( index );
}

QString AminoAcid::getPropertyAt( int index )
{
return propertyList.at( index );
}

AminoAcid::~AminoAcid( void )
{
}
23 changes: 23 additions & 0 deletions Amino/AminoAcid.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#include <QString>
#include <QStringList>

class AminoAcid
{
private:
int id;
QStringList nameList;
QStringList propertyList;

public:
AminoAcid( void );

void setId( int );
void appendName( QString );
void appendProperty( QString );

int getId();
QString getNameAt( int );
QString getPropertyAt( int );

~AminoAcid( void );
};
18 changes: 18 additions & 0 deletions Amino/AminoAcidList.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#include "AminoAcidList.h"

AminoAcidList *AminoAcidList::s_instance = 0;

AminoAcidList::AminoAcidList(void)
{
}

AminoAcidList* AminoAcidList::instance()
{
if (!s_instance)
s_instance = new AminoAcidList;
return s_instance;
}

AminoAcidList::~AminoAcidList(void)
{
}
13 changes: 13 additions & 0 deletions Amino/AminoAcidList.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#include <QList>
#include "AminoAcid.h"

class AminoAcidList
{
AminoAcidList(void);
static AminoAcidList *s_instance;

public:
static AminoAcidList* instance();
QList< AminoAcid > aminoAcidList;
~AminoAcidList(void);
};
20 changes: 20 additions & 0 deletions Amino/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>Amino</string>
<key>CFBundleGetInfoString</key>
<string>Created by Qt/QMake</string>
<key>CFBundleIconFile</key>
<string>amino</string>
<key>CFBundleIdentifier</key>
<string>com.yourcompany.Amino</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>NOTE</key>
<string>This file was generated by Qt/QMake.</string>
</dict>
</plist>
Loading

0 comments on commit 6a303dc

Please sign in to comment.