Skip to content

Commit adc1094

Browse files
authored
Add files via upload
Code can be run in Qt creator v5.x.x. The UI is created using creator.
1 parent 0894781 commit adc1094

42 files changed

Lines changed: 7542 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

DichroIDP.ico

133 KB
Binary file not shown.

DichroIDP.pro

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
#-------------------------------------------------
2+
#
3+
# Project created by QtCreator 2018-12-12T17:39:27
4+
#
5+
#-------------------------------------------------
6+
7+
QT += core gui
8+
9+
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
10+
11+
TARGET = DichroIDP
12+
TEMPLATE = app
13+
#RC_FILE = myApp.rc
14+
15+
# The following define makes your compiler emit warnings if you use
16+
# any feature of Qt which has been marked as deprecated (the exact warnings
17+
# depend on your compiler). Please consult the documentation of the
18+
# deprecated API in order to know how to port your code away from it.
19+
DEFINES += QT_DEPRECATED_WARNINGS
20+
21+
# You can also make your code fail to compile if you use deprecated APIs.
22+
# In order to do so, uncomment the following line.
23+
# You can also select to disable deprecated APIs only up to a certain version of Qt.
24+
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
25+
26+
CONFIG += c++11
27+
28+
#CONFIG += no_keywords
29+
30+
SOURCES += \
31+
aboutdlg.cpp \
32+
main.cpp \
33+
mainwindow.cpp \
34+
../../Qt/QCustomPlot/qcustomplot/qcustomplot.cpp \
35+
interface.cpp \
36+
read_file.cpp \
37+
selcon.cpp \
38+
rmsd.cpp \
39+
sortrows.cpp\
40+
alglib/cpp/src/statistics.cpp \
41+
alglib/cpp/src/ap.cpp \
42+
alglib/cpp/src/alglibinternal.cpp \
43+
alglib/cpp/src/alglibmisc.cpp \
44+
alglib/cpp/src/dataanalysis.cpp \
45+
alglib/cpp/src/specialfunctions.cpp \
46+
alglib/cpp/src/solvers.cpp \
47+
alglib/cpp/src/optimization.cpp \
48+
alglib/cpp/src/linalg.cpp \
49+
alglib/cpp/src/interpolation.cpp \
50+
alglib/cpp/src/integration.cpp \
51+
alglib/cpp/src/fasttransforms.cpp \
52+
alglib/cpp/src/diffequations.cpp \
53+
global.cpp \
54+
dialogdatset.cpp \
55+
borderdelegate.cpp \
56+
tableitemdelegate.cpp
57+
58+
59+
HEADERS += \
60+
aboutdlg.h \
61+
mainwindow.h \
62+
../../Qt/QCustomPlot/qcustomplot/qcustomplot.h \
63+
read_file.h \
64+
selcon.h \
65+
interface.h \
66+
rmsd.h \
67+
sortrows.h \
68+
global.h \
69+
dialogdatset.h \
70+
borderdelegate.h \
71+
tableitemdelegate.h
72+
73+
74+
FORMS += \
75+
aboutdlg.ui \
76+
mainwindow.ui \
77+
interface.ui \
78+
dialogdatset.ui \
79+
# dialogeditdat.ui
80+
81+
INCLUDEPATH += ../../../../Qt/QCustomPlot/qcustomplot/
82+
INCLUDEPATH += alglib/cpp/src/
83+
#LIBS += alglib/cpp/src/
84+
#INCLUDEPATH +=../../../../
85+
#INCLUDEPATH += ../
86+
# Default rules for deployment.
87+
qnx: target.path = /tmp/$${TARGET}/bin
88+
else: unix:!android: target.path = /opt/$${TARGET}/bin
89+
!isEmpty(target.path): INSTALLS += target
90+
91+
#DISTFILES +=
92+
93+
RC_ICONS = DichroIDP.ico
94+
INCLUDEPATH += /doc/
95+
RESOURCES += \
96+
image.qrc
97+
# logo2.qrc
98+
# DISTFILES += \ # DichroApp.rc
99+
100+
DISTFILES +=
101+

DichroIDP.pro.user

Lines changed: 324 additions & 0 deletions
Large diffs are not rendered by default.

aboutDlg.ui

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ui version="4.0">
3+
<class>aboutDlg</class>
4+
<widget class="QDialog" name="aboutDlg">
5+
<property name="geometry">
6+
<rect>
7+
<x>0</x>
8+
<y>0</y>
9+
<width>383</width>
10+
<height>508</height>
11+
</rect>
12+
</property>
13+
<property name="minimumSize">
14+
<size>
15+
<width>383</width>
16+
<height>400</height>
17+
</size>
18+
</property>
19+
<property name="maximumSize">
20+
<size>
21+
<width>383</width>
22+
<height>590</height>
23+
</size>
24+
</property>
25+
<property name="windowTitle">
26+
<string>About DichroIDP</string>
27+
</property>
28+
<widget class="QGroupBox" name="groupBox">
29+
<property name="geometry">
30+
<rect>
31+
<x>30</x>
32+
<y>10</y>
33+
<width>331</width>
34+
<height>81</height>
35+
</rect>
36+
</property>
37+
<property name="title">
38+
<string/>
39+
</property>
40+
<widget class="QLabel" name="label_2">
41+
<property name="geometry">
42+
<rect>
43+
<x>50</x>
44+
<y>40</y>
45+
<width>211</width>
46+
<height>30</height>
47+
</rect>
48+
</property>
49+
<property name="maximumSize">
50+
<size>
51+
<width>16777215</width>
52+
<height>30</height>
53+
</size>
54+
</property>
55+
<property name="font">
56+
<font>
57+
<pointsize>10</pointsize>
58+
<weight>75</weight>
59+
<bold>true</bold>
60+
</font>
61+
</property>
62+
<property name="text">
63+
<string>DichroIDP version 1.0.1</string>
64+
</property>
65+
<property name="scaledContents">
66+
<bool>true</bool>
67+
</property>
68+
<property name="alignment">
69+
<set>Qt::AlignCenter</set>
70+
</property>
71+
</widget>
72+
</widget>
73+
<widget class="QLabel" name="label_3">
74+
<property name="geometry">
75+
<rect>
76+
<x>30</x>
77+
<y>110</y>
78+
<width>321</width>
79+
<height>331</height>
80+
</rect>
81+
</property>
82+
<property name="text">
83+
<string>Miles, A.J. and Wallace, B.A., Institute of Structural and Molecular Biology, Birkbeck College, University of London, London U.K.
84+
Developed with support from a Bioinformatics and Biological Research grant to B.A.W. from the U.K. Biotechnology and Biological Sciences Research Council (BBSRC).
85+
No responsibility or liability by the authors is assumed for its contents nor for any results produced using this software. Furthermore, no responsibility or liability by the authors will be taken should any usage of this package cause inadvertent damage to any files or hardware of the user. By downloading this application, you are signifying acceptance of the above conditions.
86+
it is freely available for use by the research community, but when publishing any material that has used this software for data processing or analyses, you agree to cite the paper: Andrew J. Miles, Elliot D. Drew, B.A. Wallace. Nature : communications Biology, 2023&quot;</string>
87+
</property>
88+
<property name="alignment">
89+
<set>Qt::AlignCenter</set>
90+
</property>
91+
<property name="wordWrap">
92+
<bool>true</bool>
93+
</property>
94+
</widget>
95+
<widget class="QPushButton" name="OKButton">
96+
<property name="geometry">
97+
<rect>
98+
<x>140</x>
99+
<y>460</y>
100+
<width>93</width>
101+
<height>28</height>
102+
</rect>
103+
</property>
104+
<property name="text">
105+
<string>OK</string>
106+
</property>
107+
</widget>
108+
</widget>
109+
<resources/>
110+
<connections/>
111+
</ui>

aboutdlg.cpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#include "aboutdlg.h"
2+
#include "ui_aboutdlg.h"
3+
4+
aboutDlg::aboutDlg(QWidget *parent) :
5+
QDialog(parent),
6+
ui(new Ui::aboutDlg)
7+
{
8+
ui->setupUi(this);
9+
}
10+
11+
aboutDlg::~aboutDlg()
12+
{
13+
delete ui;
14+
}
15+
void aboutDlg::on_OKButton_clicked()
16+
{
17+
this->done(0);
18+
}

aboutdlg.h

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#ifndef ABOUTDLG_H
2+
#define ABOUTDLG_H
3+
4+
#include <QDialog>
5+
6+
namespace Ui {
7+
class aboutDlg;
8+
}
9+
10+
class aboutDlg : public QDialog
11+
{
12+
Q_OBJECT
13+
14+
public:
15+
explicit aboutDlg(QWidget *parent = nullptr);
16+
~aboutDlg();
17+
private slots:
18+
void on_OKButton_clicked();
19+
20+
private:
21+
Ui::aboutDlg *ui;
22+
};
23+
24+
#endif // ABOUTDLG_H

bk.jpg

66.6 KB
Loading

bk.png

211 KB
Loading

borderdelegate.cpp

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#include "borderdelegate.h"
2+
3+
// draws a thick border between reults on results table
4+
BorderDelegate::BorderDelegate(QObject *parent):QStyledItemDelegate (parent)
5+
{
6+
7+
}
8+
void BorderDelegate::paint( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const
9+
{
10+
QPen pen;
11+
pen.setWidth(5);
12+
const QRect rect( option.rect );
13+
painter->setPen( pen );
14+
painter->drawLine( rect.topLeft(), rect.topRight() );
15+
//painter->drawLine( rect.bottomLeft(), rect.bottomRight() );
16+
17+
// Draw left edge of left-most cell
18+
// if ( index.column() == 0 )
19+
// painter->drawLine( rect.topLeft(), rect.bottomLeft() );
20+
21+
// Draw right edge of right-most cell
22+
// if ( index.column() == index.model()->columnCount() - 1 )
23+
// painter->drawLine( rect.topRight(), rect.bottomRight() );
24+
25+
QStyledItemDelegate::paint( painter, option, index );
26+
}
27+
//tableWidget->setItemDelegateForRow( row, new DrawBorderDelegate( this ) );

borderdelegate.h

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#ifndef BORDERDELEGATE_H
2+
#define BORDERDELEGATE_H
3+
4+
#include <QObject>
5+
#include<QStyledItemDelegate>
6+
#include<QPainter>
7+
8+
class BorderDelegate: public QStyledItemDelegate
9+
{
10+
Q_OBJECT
11+
public:
12+
explicit BorderDelegate(QObject *parent = nullptr);
13+
14+
// public: BorderDelegate( QObject* parent = nullptr ) : QStyledItemDelegate( parent ) {}
15+
void paint( QPainter* painter, const QStyleOptionViewItem& option, const QModelIndex& index ) const;
16+
17+
};
18+
19+
#endif // BORDERDELEGATE_H

0 commit comments

Comments
 (0)