-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
57 changed files
with
7,464 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,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 | ||
|
||
|
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 @@ | ||
IDI_ICON1 ICON DISCARDABLE "amino.ico" |
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,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 ) | ||
{ | ||
} |
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 @@ | ||
#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 ); | ||
}; |
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,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) | ||
{ | ||
} |
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,13 @@ | ||
#include <QList> | ||
#include "AminoAcid.h" | ||
|
||
class AminoAcidList | ||
{ | ||
AminoAcidList(void); | ||
static AminoAcidList *s_instance; | ||
|
||
public: | ||
static AminoAcidList* instance(); | ||
QList< AminoAcid > aminoAcidList; | ||
~AminoAcidList(void); | ||
}; |
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 @@ | ||
<?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> |
Oops, something went wrong.