Permalink
...
Checking mergeability…
Don’t worry, you can still create the pull request.
Comparing changes
Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Choose a Base Repository
ncbi/sra-tools
Bhumi28/sra-tools
ClaireMGreen/sra-tools
DCGenomics/sra-tools
ImAWolf/sra-tools
Jingyu9/sra-tools
Klortho/sra-tools
MMesbahU/sra-tools
MinzhuXie/sra-tools
Nalisarc/sra-tools
ShanSabri/sra-tools
Shicheng-Guo/sra-tools
TankMermaid/sra-tools
Yeung678/sra-tools
a1aks/sra-tools
airbj31/sra-tools
alenzhao/sra-tools
aries87/sra-tools
atdurian/sra-tools
baabdella/sra-tools
bioarpit/sra-tools
biobuilds/sra-tools
bjt67/sra-tools
chadchouGitHub/sra-tools
chendijun2010/sra-tools
corburn/sra-tools
daweih/sra-tools
dayedepps/sra-tools
dmr41/sra-tools
dummey/sra-tools
durbrow/sra-tools
elucify/sra-tools
ep1983/sra-tools
fabioG28/sra-tools
hlkfoz/sra-tools
jasmine55555/sra-tools
jiywang3/sra-tools
jmrinaldi/sra-tools
jn7163/sra-tools
jrtorres42/sra-tools
lessc0de/sra-tools
lini-828127/sra-tools
loversaber/sra-tools
mbaughn/sra-tools
mdshw5/sra-tools
naimmahi/sra-tools
pedropaz18/sra-tools
sdwfrost/sra-tools
shawnspei/sra-tools
sm3723/sra-tools
syauwjl/sra-tools
theintuitivesoul/sra-tools
wanggl2017/sra-tools
weizhiting/sra-tools
wilkox/sra-tools
xtmgah/sra-tools
yangzqchina/sra-tools
zacshi/sra-tools
zengfengbo/sra-tools
Nothing to show
Choose a base branch
2.8.2rc
VAR_EXPAND
VDB-1603-finish-gen-loader
VDB-2960
VDB-3173
VDB-3212-move-general-loader
VDB-3226
VDB-3237
VDB-3241-evaluation
VDB-3252
VDB-3254
VDB-3256
VDB-3267-VDBManager
VDB-3275
VDB-3303
VDB-3310
VDB-3322
VDB-3334
VDB-3335
VDB-3341
VDB-3345
VDB-3347
VDB-3381
VDB-3385
VDB-3400
VDB-3408
VDB-3409
VDB-3410-cache-slows-down-reading
VDB-3413
VDB-3420
VDB-3435
demo-vdb-dump-branch
engineering
gh-pages
master
new_fuser
trace-loader
Nothing to show
Choose a Head Repository
ncbi/sra-tools
Bhumi28/sra-tools
ClaireMGreen/sra-tools
DCGenomics/sra-tools
ImAWolf/sra-tools
Jingyu9/sra-tools
Klortho/sra-tools
MMesbahU/sra-tools
MinzhuXie/sra-tools
Nalisarc/sra-tools
ShanSabri/sra-tools
Shicheng-Guo/sra-tools
TankMermaid/sra-tools
Yeung678/sra-tools
a1aks/sra-tools
airbj31/sra-tools
alenzhao/sra-tools
aries87/sra-tools
atdurian/sra-tools
baabdella/sra-tools
bioarpit/sra-tools
biobuilds/sra-tools
bjt67/sra-tools
chadchouGitHub/sra-tools
chendijun2010/sra-tools
corburn/sra-tools
daweih/sra-tools
dayedepps/sra-tools
dmr41/sra-tools
dummey/sra-tools
durbrow/sra-tools
elucify/sra-tools
ep1983/sra-tools
fabioG28/sra-tools
hlkfoz/sra-tools
jasmine55555/sra-tools
jiywang3/sra-tools
jmrinaldi/sra-tools
jn7163/sra-tools
jrtorres42/sra-tools
lessc0de/sra-tools
lini-828127/sra-tools
loversaber/sra-tools
mbaughn/sra-tools
mdshw5/sra-tools
naimmahi/sra-tools
pedropaz18/sra-tools
sdwfrost/sra-tools
shawnspei/sra-tools
sm3723/sra-tools
syauwjl/sra-tools
theintuitivesoul/sra-tools
wanggl2017/sra-tools
weizhiting/sra-tools
wilkox/sra-tools
xtmgah/sra-tools
yangzqchina/sra-tools
zacshi/sra-tools
zengfengbo/sra-tools
Nothing to show
Choose a head branch
2.8.2rc
VAR_EXPAND
VDB-1603-finish-gen-loader
VDB-2960
VDB-3173
VDB-3212-move-general-loader
VDB-3226
VDB-3237
VDB-3241-evaluation
VDB-3252
VDB-3254
VDB-3256
VDB-3267-VDBManager
VDB-3275
VDB-3303
VDB-3310
VDB-3322
VDB-3334
VDB-3335
VDB-3341
VDB-3345
VDB-3347
VDB-3381
VDB-3385
VDB-3400
VDB-3408
VDB-3409
VDB-3410-cache-slows-down-reading
VDB-3413
VDB-3420
VDB-3435
demo-vdb-dump-branch
engineering
gh-pages
master
new_fuser
trace-loader
Nothing to show
6
contributors
Commits on Mar 06, 2017
|
|
kwrodarmer |
change log for 2.8.2
|
58fc9c0
|
Commits on Mar 07, 2017
|
|
durbrow |
initialized variable
|
fdd9971
|
Commits on Mar 10, 2017
Commits on Mar 13, 2017
|
|
durbrow |
previously uninitialized variable hid a scope bug
|
46953fc
|
|||
|
|
durbrow |
changed text
|
6650c16
|
Commits on Mar 14, 2017
|
|
aboshkin |
VDB-3314 make targets runtests/slowtests now depend on 'all'
|
1363078
|
|||
|
|
aboshkin |
VDB-3314 make targets runtests/slowtests now depend on 'all', additio…
…nal fix |
53f931c
|
Commits on Mar 16, 2017
|
|
klymenko |
VDB-3175: print free disk space as long unsigned
|
5bc31d8
|
Commits on Mar 22, 2017
|
|
ksrodarmer |
Initial commit
|
028b810
|
Commits on Apr 04, 2017
|
|
wraetz |
added enumeration of static columns
|
c166a6d
|
Commits on Apr 05, 2017
|
|
ksrodarmer |
Adding a lot of code that will require a real ngc file to work.
|
cdbd3db
|
|||
|
|
ksrodarmer |
Re-org
|
a1ab7be
|
Commits on Apr 10, 2017
|
|
wraetz |
function added to just enumerate or print static columns
|
e9b0265
|
Commits on Apr 12, 2017
|
|
wraetz |
fastq-option fixed
|
1017a58
|
|||
|
|
wraetz |
test function needed one more argument
|
88f574e
|
Commits on Apr 13, 2017
|
|
ksrodarmer |
SRAConfig should now be interchangeable with vdb-config - i
|
c4e2976
|
Commits on Apr 26, 2017
|
|
kwrodarmer |
spelling modification
|
3045154
|
|||
|
|
kwrodarmer |
git is an intelligent code management system
|
3dce2ba
|
Commits on May 03, 2017
|
|
wraetz |
new len-spread feature
|
3bc87c8
|
Commits on May 17, 2017
|
|
ksrodarmer |
beginning to break apart the all in one sraconfig class. started by
adding an class that will act as the interface to the vdbconf-model |
e9efc1d
|
Commits on May 18, 2017
|
|
ksrodarmer |
The model interface class has now replaced all direct calls to the
vdbconf-model. |
0e2900c
|
Commits on May 24, 2017
|
|
ksrodarmer |
Merge remote-tracking branch 'origin/engineering' into VDB-3334
Branch had bee out of sync for a while |
b6d6385
|
|||
|
|
ksrodarmer |
Forgot to disable some unfinished features
|
0eaf3fb
|
Unified
Split
Showing
with
2,803 additions
and 163 deletions.
- +30 −0 CHANGES.md
- +5 −5 build/Makefile.env
- +1 −0 test/Makefile
- +35 −0 test/vdb-config/Makefile
- +12 −0 test/vdb-config/test-vdb-config.pl
- +8 −0 test/vdb-dump/Makefile
- +1 −1 tools/bam-loader/loader-imp.c
- +1 −1 tools/sra-dump/fastq.c
- +2 −2 tools/util/test-sra.c
- +1 −1 tools/vdb-config/interactive.cpp
- BIN tools/vdb-config/sra-config/images/aws_icon.png
- BIN tools/vdb-config/sra-config/images/general_icon.png
- BIN tools/vdb-config/sra-config/images/images.ncbi.png
- BIN tools/vdb-config/sra-config/images/network_icon.png
- BIN tools/vdb-config/sra-config/images/troubleshooting.png
- +64 −0 tools/vdb-config/sra-config/main.cpp
- +9 −0 tools/vdb-config/sra-config/resources.qrc
- +49 −0 tools/vdb-config/sra-config/sra-config.pro
- +339 −0 tools/vdb-config/sra-config/sra-config.pro.user
- +1,021 −0 tools/vdb-config/sra-config/sraconfig.cpp
- +127 −0 tools/vdb-config/sra-config/sraconfig.h
- +223 −0 tools/vdb-config/sra-config/sraconfigmodel.cpp
- +102 −0 tools/vdb-config/sra-config/sraconfigmodel.h
- +6 −0 tools/vdb-config/sra-config/srapreferences.cpp
- +12 −0 tools/vdb-config/sra-config/srapreferences.h
- +41 −0 tools/vdb-config/sra-tools-gui/interfaces/ktoolbaritem.h
- +60 −0 tools/vdb-config/sra-tools-gui/libs/ktoolbaritem.cpp
- +1 −1 tools/vdb-config/util.cpp
- +3 −2 tools/vdb-config/vdb-config-model.cpp
- +8 −3 tools/vdb-config/vdb-config-model.hpp
- +2 −0 tools/vdb-config/vdb-config.c
- +102 −0 tools/vdb-dump/vdb-dump-coldefs.c
- +2 −0 tools/vdb-dump/vdb-dump-coldefs.h
- +3 −0 tools/vdb-dump/vdb-dump-context.c
- +4 −0 tools/vdb-dump/vdb-dump-context.h
- +340 −24 tools/vdb-dump/vdb-dump-fastq.c
- +2 −0 tools/vdb-dump/vdb-dump-fastq.h
- +1 −1 tools/vdb-dump/vdb-dump-str.c
- +109 −0 tools/vdb-dump/vdb-dump-tools.c
- +6 −0 tools/vdb-dump/vdb-dump-tools.h
- +71 −122 tools/vdb-dump/vdb-dump.c
View
30
CHANGES.md
| @@ -1,6 +1,36 @@ | ||
| # NCBI External Developer Release: | ||
| +## SRA Toolkit 2.8.2 | ||
| +**March 6, 2017** | ||
| + | ||
| + **blast**: Updated blast library to be able to process runs having empty rows | ||
| + **blast, build**: removed library dependencies that were preventing users from launching these tools | ||
| + **blast, sra-tools**: Prepared completely static build of blast tools for windows with HTTPS support | ||
| + **build**: **bam-load**: changed memcpy to memmove when regions overlap - seems to corrupt data on centos7 | ||
| + **build**: Added ability to specify ncbi-vdb/configure --with-magic-prefix. Look for libraries in (lib lib64) when running "configure --with-...-prefix" | ||
| + **build**: configure detects location of ngs libraries | ||
| + **build**: configure was fixed to skip options unrecognized by gcc 4.4.7 | ||
| + **build**: created sra-toolkit Debian package | ||
| + **build**: fixed a bug in 'configure' when in could not find source files in repository saved with non-standard name | ||
| + **build, ncbi-vdb, sra-tools**: installation will back up old configuration files if they differ from the ones being installed | ||
| + **cg-load**: added loading of CG File format v2.4 | ||
| + **kns**: SRA tools respect standard set of environment variables for proxy specification | ||
| + **kns**: updated mbedtls library to version 2.4.1 | ||
| + **ncbi-vdb, ngs, ngs-tools, sra-tools**: eliminated memcpy from sources due to potential for overlap | ||
| + **ngs, sra-search**: now supports search on reference | ||
| + **ngs-tools**: updated the NCBI download page to incorporate ngs versions into 3rd party package names | ||
| + **prefetch**: Fixed error message "path excessive while opening directory" when prefetch is trying to get vdbcache | ||
| + **prefetch**: Fixed regression in prefetch-2.8.1 when downloading dbGaP files via HTTP | ||
| + **prefetch**: Fixed regression in prefetch-2.8.1 when downloading vdbcache files from dbGaP via HTTP | ||
| + **sam-dump**: consistency of sam-dump in fastq-mod improved | ||
| + **sam-dump**: consistency of sam-dump in fastq-mode improved | ||
| + **sra-stat**: sra-stat does XML-escaping when printing spot-groups | ||
| + **test-sra**: extended test-sra to debug user problems with https connections to NCBI | ||
| + **test-sra**: test-sra print amount of available disk space in user repositories | ||
| + **vdb-config**: vdb-config correctly works when there is non-canonical path in configuration | ||
| + | ||
| + | ||
| ## SRA Toolkit 2.8.1-2 | ||
| **January 19, 2017** | ||
View
10
build/Makefile.env
| @@ -200,7 +200,7 @@ endif | ||
| .PHONY: stdclean removelinks makedirs vers-includes rebuild-dirlinks | ||
| .PHONY: stdjclean makejdirs | ||
| -# configuration targets | ||
| +# configuration targets | ||
| out: | ||
| @ echo $(OUTDIR) > $(TOP)/build/OUTDIR.$(BUILD_OS) | ||
| @ $(MAKE) TOP=$(TOP) -f $(TOP)/build/Makefile.env rebuild-dirlinks | ||
| @@ -362,11 +362,11 @@ LDFLAGS = $(DBG) $(PROF) $(CARCH) $(MIN_DEPLOY_OS_OPT) $(LDPATHS) | ||
| #------------------------------------------------------------------------------- | ||
| # runtests | ||
| -# | ||
| +# | ||
| # MallocScribble=1 is for catching allocation problems on Mac | ||
| # | ||
| ifeq ($(RUNTESTS_OVERRIDE),) | ||
| -runtests: std $(TEST_TOOLS) | ||
| +runtests: all $(TEST_TOOLS) | ||
| @ export VDB_CONFIG=$(VDB_CONFIG);export LD_LIBRARY_PATH=$(LIBDIR):$$LD_LIBRARY_PATH;export MallocScribble=1;\ | ||
| for i in $(TEST_TOOLS);\ | ||
| do\ | ||
| @@ -380,11 +380,11 @@ endif | ||
| #------------------------------------------------------------------------------- | ||
| # slowtests | ||
| -# | ||
| +# | ||
| # $(SLOWTESTSDATADIR) should be used to create temporary test files | ||
| SLOWTESTSDATADIR ?= /panfs/pan1.be-md.ncbi.nlm.nih.gov/sra-test/slowtests/$(shell whoami) | ||
| -slowtests: std $(SLOW_TEST_TOOLS) | ||
| +slowtests: all $(SLOW_TEST_TOOLS) | ||
| @ export LD_LIBRARY_PATH=$(LIBDIR):$$LD_LIBRARY_PATH;\ | ||
| for i in $(SLOW_TEST_TOOLS);\ | ||
| do\ | ||
View
1
test/Makefile
| @@ -35,6 +35,7 @@ include $(TOP)/build/Makefile.config | ||
| # default | ||
| # | ||
| SUBDIRS = \ | ||
| + vdb-config \ | ||
| fastq-loader \ | ||
| vcf-loader \ | ||
| kget \ | ||
View
35
test/vdb-config/Makefile
| @@ -0,0 +1,35 @@ | ||
| +# =========================================================================== | ||
| +# | ||
| +# PUBLIC DOMAIN NOTICE | ||
| +# National Center for Biotechnology Information | ||
| +# | ||
| +# This software/database is a "United States Government Work" under the | ||
| +# terms of the United States Copyright Act. It was written as part of | ||
| +# the author's official duties as a United States Government employee and | ||
| +# thus cannot be copyrighted. This software/database is freely available | ||
| +# to the public for use. The National Library of Medicine and the U.S. | ||
| +# Government have not placed any restriction on its use or reproduction. | ||
| +# | ||
| +# Although all reasonable efforts have been taken to ensure the accuracy | ||
| +# and reliability of the software and data, the NLM and the U.S. | ||
| +# Government do not and cannot warrant the performance or results that | ||
| +# may be obtained by using this software or data. The NLM and the U.S. | ||
| +# Government disclaim all warranties, express or implied, including | ||
| +# warranties of performance, merchantability or fitness for any particular | ||
| +# purpose. | ||
| +# | ||
| +# Please cite the author in any work or product based on this material. | ||
| +# | ||
| +# =========================================================================== | ||
| + | ||
| +default: runtests | ||
| + | ||
| +TOP ?= $(abspath ../..) | ||
| +include $(TOP)/build/Makefile.env # BINDIR | ||
| + | ||
| +runtests: test-vdb-config | ||
| + | ||
| +test-vdb-config: | ||
| + @ printf "Testing exit code vdb-config of vdb-config... " | ||
| + @ PATH=$(BINDIR):$(PATH) ; ./test-vdb-config.pl | ||
| + @ echo OK |
View
12
test/vdb-config/test-vdb-config.pl
| @@ -0,0 +1,12 @@ | ||
| +#!/usr/bin/perl -w | ||
| + | ||
| +use strict; | ||
| + | ||
| +use File::Temp "tempdir"; | ||
| + | ||
| +my $tmp = tempdir ( "phgvXXXX", CLEANUP => 1 ); | ||
| +$ENV{VDB_CONFIG}=$tmp; | ||
| +$ENV{NCBI_SETTINGS}="$tmp/u.mkfg"; | ||
| + | ||
| +`vdb-config -s foo=bar`; | ||
| +die "vdb-config exited with " . ( $? >> 8 ) if ( $? ); |
View
8
test/vdb-dump/Makefile
| @@ -53,6 +53,14 @@ $(ALL_TOOLS): makedirs | ||
| .PHONY: all std $(ALL_TOOLS) | ||
| #------------------------------------------------------------------------------- | ||
| +# all | ||
| +# | ||
| +$(TARGDIR)/all: \ | ||
| + $(addprefix $(BINDIR)/,$(ALL_TOOLS)) | ||
| + | ||
| +.PHONY: $(TARGDIR)/all | ||
| + | ||
| +#------------------------------------------------------------------------------- | ||
| # std | ||
| # | ||
| $(TARGDIR)/std: \ | ||
View
2
tools/bam-loader/loader-imp.c
| @@ -1548,6 +1548,7 @@ static rc_t ProcessBAM(char const bamFile[], context_t *ctx, VDatabase *db, | ||
| KDataBuffer fragBuf; | ||
| KDataBuffer cigBuf; | ||
| rc_t rc; | ||
| + const BAMRefSeq *refSeq = NULL; | ||
| int32_t lastRefSeqId = -1; | ||
| bool wasRenamed = false; | ||
| size_t rsize; | ||
| @@ -1650,7 +1651,6 @@ static rc_t ProcessBAM(char const bamFile[], context_t *ctx, VDatabase *db, | ||
| uint16_t flags; | ||
| int64_t rpos=0; | ||
| char *seqDNA; | ||
| - const BAMRefSeq *refSeq; | ||
| ctx_value_t *value; | ||
| bool wasInserted; | ||
| int32_t refSeqId=-1; | ||
View
2
tools/sra-dump/fastq.c
| @@ -3694,7 +3694,7 @@ rc_t SRADumper_Init( SRADumperFmt* fmt ) | ||
| /* DO NOT ADD IN THE MIDDLE ORDER IS IMPORTANT IN USAGE FUNCTION ABOVE!!! */ | ||
| {NULL, "split-spot", NULL, {"Split spots into individual reads", NULL}}, /* H_splip_sot = 0 */ | ||
| - {"W", "clip", NULL, {"Clip adapter sequences", NULL}}, /* H_clip = 1 */ | ||
| + {"W", "clip", NULL, {"Remove adapter sequences from reads", NULL}}, /* H_clip = 1 */ | ||
| {"M", "minReadLen", "len", {"Filter by sequence length >= <len>", NULL}}, /* H_minReadLen = 2 */ | ||
| {"E", "qual-filter", NULL, {"Filter used in early 1000 Genomes data:", /* H_qual_filter = 3 */ | ||
View
4
tools/util/test-sra.c
| @@ -3438,11 +3438,11 @@ static rc_t MainFreeSpace ( const Main * self, const KDirectory * dir ) { | ||
| if ( self -> xml ) | ||
| OUTMSG ( ( | ||
| - " <Space free=\"%d\" total=\"%d\" units=\"KBytes\"/>\n", | ||
| + " <Space free=\"%lu\" total=\"%lu\" units=\"KBytes\"/>\n", | ||
| free_bytes_available, total_number_of_bytes ) ); | ||
| else | ||
| OUTMSG ( ( | ||
| - " Space free=\"%d\" total=\"%d\" units=\"KBytes\"\n", | ||
| + " Space free=\"%lu\" total=\"%lu\" units=\"KBytes\"\n", | ||
| free_bytes_available, total_number_of_bytes ) ); | ||
| return rc; | ||
View
2
tools/vdb-config/interactive.cpp
| @@ -883,7 +883,7 @@ bool vdbconf_controller::on_set_location_error( Dlg &dlg, ESetRootState s ) | ||
| case eSetRootState_NewDirNotEmpty : vdbconf_msg( dlg, r, "the given location is not empty" ); break; | ||
| case eSetRootState_NewNotDir : vdbconf_msg( dlg, r, "new location is not a directory" ); break; | ||
| case eSetRootState_Error : vdbconf_msg( dlg, r, "error changing location" ); break; | ||
| - default : vdbconf_msg( dlg, r, "unknow enum" ); break; | ||
| + default : vdbconf_msg( dlg, r, "unknown enum" ); break; | ||
| } | ||
| return result; | ||
| } | ||
View
BIN
tools/vdb-config/sra-config/images/aws_icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN
tools/vdb-config/sra-config/images/general_icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN
tools/vdb-config/sra-config/images/images.ncbi.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN
tools/vdb-config/sra-config/images/network_icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN
tools/vdb-config/sra-config/images/troubleshooting.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
64
tools/vdb-config/sra-config/main.cpp
| @@ -0,0 +1,64 @@ | ||
| +/*=========================================================================== | ||
| +* | ||
| +* PUBLIC DOMAIN NOTICE | ||
| +* National Center for Biotechnology Information | ||
| +* | ||
| +* This software/database is a "United States Government Work" under the | ||
| +* terms of the United States Copyright Act. It was written as part of | ||
| +* the author's official duties as a United States Government employee and | ||
| +* thus cannot be copyrighted. This software/database is freely available | ||
| +* to the public for use. The National Library of Medicine and the U.S. | ||
| +* Government have not placed any restriction on its use or reproduction. | ||
| +* | ||
| +* Although all reasonable efforts have been taken to ensure the accuracy | ||
| +* and reliability of the software and data, the NLM and the U.S. | ||
| +* Government do not and cannot warrant the performance or results that | ||
| +* may be obtained by using this software or data. The NLM and the U.S. | ||
| +* Government disclaim all warranties, express or implied, including | ||
| +* warranties of performance, merchantability or fitness for any particular | ||
| +* purpose. | ||
| +* | ||
| +* Please cite the author in any work or product based on this material. | ||
| +* | ||
| +* =========================================================================== | ||
| +* | ||
| +*/ | ||
| + | ||
| +#include "sraconfig.h" | ||
| + | ||
| +#include "../configure.h" | ||
| +#include "../interactive.h" | ||
| +#include "../vdb-config-model.hpp" | ||
| + | ||
| +#include <klib/rc.h> | ||
| + | ||
| +#include <QApplication> | ||
| +#include <QDesktopWidget> | ||
| +#include <QPoint> | ||
| +#include <QProcess> | ||
| + | ||
| +#include <QDebug> | ||
| + | ||
| +static QApplication * app; | ||
| +extern "C" | ||
| +{ | ||
| + rc_t run_interactive ( vdbconf_model &m ) | ||
| + { | ||
| + const QRect avail_geometry = QApplication :: desktop () -> availableGeometry ( QPoint ( 0, 0 ) ); | ||
| + SRAConfig config_window ( m, avail_geometry ); | ||
| + config_window . show (); | ||
| + int status = app -> exec (); | ||
| + if ( status != 0 ) | ||
| + exit ( status ); | ||
| + return 0; | ||
| + } | ||
| + } | ||
| + | ||
| +int main(int argc, char *argv[]) | ||
| +{ | ||
| + QApplication a ( argc, argv ); | ||
| + app = & a; | ||
| + | ||
| + rc_t rc = configure ( eCfgModeVisual ); | ||
| + return ( rc == 0 ) ? 0 : 3; | ||
| +} |
View
9
tools/vdb-config/sra-config/resources.qrc
| @@ -0,0 +1,9 @@ | ||
| +<RCC> | ||
| + <qresource prefix="/"> | ||
| + <file>images/general_icon.png</file> | ||
| + <file>images/aws_icon.png</file> | ||
| + <file>images/images.ncbi.png</file> | ||
| + <file>images/network_icon.png</file> | ||
| + <file>images/troubleshooting.png</file> | ||
| + </qresource> | ||
| +</RCC> |
View
49
tools/vdb-config/sra-config/sra-config.pro
| @@ -0,0 +1,49 @@ | ||
| +#------------------------------------------------- | ||
| +# | ||
| +# Project created by QtCreator 2017-03-22T11:17:53 | ||
| +# | ||
| +#------------------------------------------------- | ||
| + | ||
| +QT += core gui | ||
| + | ||
| +greaterThan(QT_MAJOR_VERSION, 4): QT += widgets | ||
| + | ||
| +TARGET = sra-config | ||
| +TEMPLATE = app | ||
| + | ||
| +# The following define makes your compiler emit warnings if you use | ||
| +# any feature of Qt which as been marked as deprecated (the exact warnings | ||
| +# depend on your compiler). Please consult the documentation of the | ||
| +# deprecated API in order to know how to port your code away from it. | ||
| +DEFINES += QT_DEPRECATED_WARNINGS | ||
| + | ||
| +# You can also make your code fail to compile if you use deprecated APIs. | ||
| +# In order to do so, uncomment the following line. | ||
| +# You can also select to disable deprecated APIs only up to a certain version of Qt. | ||
| +#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 | ||
| +LIBS += -L/Users/rodarme1/ncbi-outdir/ncbi-vdb/mac/clang/x86_64/dbg/lib -lncbi-vdb | ||
| + | ||
| +INCLUDEPATH += ../../../../ncbi-vdb/interfaces \ | ||
| + ../../../../ncbi-vdb/interfaces/os/mac \ | ||
| + ../../../../ncbi-vdb/interfaces/os/unix \ | ||
| + ../../../../ncbi-vdb/interfaces/cc/gcc \ | ||
| + ../../../../ncbi-vdb/interfaces/cc/gcc/x86_64 | ||
| + | ||
| +SOURCES += main.cpp\ | ||
| + sraconfig.cpp \ | ||
| + ../configure.cpp \ | ||
| + ../vdb-config-model.cpp \ | ||
| + ../util.cpp \ | ||
| + ../sra-tools-gui/libs/ktoolbaritem.cpp \ | ||
| + srapreferences.cpp \ | ||
| + sraconfigmodel.cpp | ||
| + | ||
| + | ||
| +HEADERS += sraconfig.h \ | ||
| + ../sra-tools-gui/interfaces/ktoolbaritem.h \ | ||
| + srapreferences.h \ | ||
| + sraconfigmodel.h | ||
| + | ||
| +RESOURCES += \ | ||
| + resources.qrc | ||
| + |
Oops, something went wrong.