-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #292 from PauloCarvalhoRJ/MCRF_bayesian
MCRFSim for Bayesian approach.
- Loading branch information
Showing
61 changed files
with
4,062 additions
and
205 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
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
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,19 @@ | ||
#include "listbuilderdialog.h" | ||
#include "ui_listbuilderdialog.h" | ||
|
||
#include "widgets/listbuilder.h" | ||
|
||
ListBuilderDialog::ListBuilderDialog(QWidget *parent) : | ||
QDialog(parent), | ||
ui(new Ui::ListBuilderDialog) | ||
{ | ||
ui->setupUi(this); | ||
|
||
m_listBuilder = new ListBuilder(this); //this will be deallocated by Qt | ||
ui->frmForListBuilder->layout()->addWidget( m_listBuilder ); | ||
} | ||
|
||
ListBuilderDialog::~ListBuilderDialog() | ||
{ | ||
delete ui; | ||
} |
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,33 @@ | ||
#ifndef LISTBUILDERDIALOG_H | ||
#define LISTBUILDERDIALOG_H | ||
|
||
#include <QDialog> | ||
|
||
class ListBuilder; | ||
|
||
namespace Ui { | ||
class ListBuilderDialog; | ||
} | ||
|
||
/** | ||
* This wraps a list builder widget in a dialog window with ok/cancel buttons. | ||
*/ | ||
class ListBuilderDialog : public QDialog | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit ListBuilderDialog(QWidget *parent = nullptr); | ||
~ListBuilderDialog(); | ||
|
||
|
||
/** Returns the pointer to the internal list builder widget. */ | ||
ListBuilder* getListBuilder(){ return m_listBuilder; } | ||
|
||
private: | ||
Ui::ListBuilderDialog *ui; | ||
|
||
ListBuilder* m_listBuilder; | ||
}; | ||
|
||
#endif // LISTBUILDERDIALOG_H |
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,102 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>ListBuilderDialog</class> | ||
<widget class="QDialog" name="ListBuilderDialog"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>497</width> | ||
<height>340</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Dialog</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<item> | ||
<widget class="QFrame" name="frmForListBuilder"> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="frameShape"> | ||
<enum>QFrame::StyledPanel</enum> | ||
</property> | ||
<property name="frameShadow"> | ||
<enum>QFrame::Raised</enum> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout_2"/> | ||
</widget> | ||
</item> | ||
<item> | ||
<layout class="QHBoxLayout" name="horizontalLayout"> | ||
<item> | ||
<widget class="QPushButton" name="btnCancel"> | ||
<property name="text"> | ||
<string>Cancel</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<spacer name="horizontalSpacer"> | ||
<property name="orientation"> | ||
<enum>Qt::Horizontal</enum> | ||
</property> | ||
<property name="sizeHint" stdset="0"> | ||
<size> | ||
<width>40</width> | ||
<height>20</height> | ||
</size> | ||
</property> | ||
</spacer> | ||
</item> | ||
<item> | ||
<widget class="QPushButton" name="btnOK"> | ||
<property name="text"> | ||
<string>OK</string> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
</layout> | ||
</widget> | ||
<resources/> | ||
<connections> | ||
<connection> | ||
<sender>btnOK</sender> | ||
<signal>clicked()</signal> | ||
<receiver>ListBuilderDialog</receiver> | ||
<slot>accept()</slot> | ||
<hints> | ||
<hint type="sourcelabel"> | ||
<x>435</x> | ||
<y>301</y> | ||
</hint> | ||
<hint type="destinationlabel"> | ||
<x>350</x> | ||
<y>304</y> | ||
</hint> | ||
</hints> | ||
</connection> | ||
<connection> | ||
<sender>btnCancel</sender> | ||
<signal>clicked()</signal> | ||
<receiver>ListBuilderDialog</receiver> | ||
<slot>reject()</slot> | ||
<hints> | ||
<hint type="sourcelabel"> | ||
<x>84</x> | ||
<y>305</y> | ||
</hint> | ||
<hint type="destinationlabel"> | ||
<x>137</x> | ||
<y>305</y> | ||
</hint> | ||
</hints> | ||
</connection> | ||
</connections> | ||
</ui> |
Oops, something went wrong.