Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Algorithms Library Toolkit Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Algorithms Library Toolkit
Algorithms Library Toolkit Core
Commits
ff738998
Commit
ff738998
authored
8 years ago
by
Václav Mareš
Committed by
Jan Trávníček
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Generating automaton in inputDialog
- connection to ALIB - changes in inputDialog
parent
fcfb0807
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
agui2/ALIB.pro
+3
-0
3 additions, 0 deletions
agui2/ALIB.pro
agui2/inputdialog.cpp
+1
-6
1 addition, 6 deletions
agui2/inputdialog.cpp
agui2/inputdialog.h
+0
-2
0 additions, 2 deletions
agui2/inputdialog.h
agui2/inputdialog.ui
+5
-4
5 additions, 4 deletions
agui2/inputdialog.ui
with
9 additions
and
12 deletions
agui2/ALIB.pro
+
3
−
0
View file @
ff738998
...
@@ -79,6 +79,9 @@ else:unix: LIBS += -L$$PWD/$${ALIB_PATH}/bin-debug/ -lalib2data
...
@@ -79,6 +79,9 @@ else:unix: LIBS += -L$$PWD/$${ALIB_PATH}/bin-debug/ -lalib2data
INCLUDEPATH
+=
$$
PWD
/
$$
{
ALIB_PATH
}
/
bin
-
debug
INCLUDEPATH
+=
$$
PWD
/
$$
{
ALIB_PATH
}
/
bin
-
debug
DEPENDPATH
+=
$$
PWD
/
$$
{
ALIB_PATH
}
/
bin
-
debug
DEPENDPATH
+=
$$
PWD
/
$$
{
ALIB_PATH
}
/
bin
-
debug
win32
:
CONFIG
(
release
,
debug
|
release
)
:
LIBS
+=
-
L
$$
PWD
/
$$
{
ALIB_PATH
}
/
bin
-
debug
/
release
/
-
lalib2algo
else
:
win32
:
CONFIG
(
debug
,
debug
|
release
)
:
LIBS
+=
-
L
$$
PWD
/
$$
{
ALIB_PATH
}
/
bin
-
debug
/
debug
/
-
lalib2algo
else
:
unix
:
LIBS
+=
-
L
$$
PWD
/
$$
{
ALIB_PATH
}
/
bin
-
debug
/
-
lalib2algo
INCLUDEPATH
+=
$$
PWD
/
$$
{
ALIB_PATH
}
/
alib2common
/
src
/
INCLUDEPATH
+=
$$
PWD
/
$$
{
ALIB_PATH
}
/
alib2common
/
src
/
INCLUDEPATH
+=
$$
PWD
/
$$
{
ALIB_PATH
}
/
alib2str
/
src
/
INCLUDEPATH
+=
$$
PWD
/
$$
{
ALIB_PATH
}
/
alib2str
/
src
/
...
...
This diff is collapsed.
Click to expand it.
agui2/inputdialog.cpp
+
1
−
6
View file @
ff738998
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
#include
"ui_inputdialog.h"
#include
"ui_inputdialog.h"
#include
<factory/XmlDataFactory.hpp>
#include
<factory/XmlDataFactory.hpp>
#include
<automaton/Automaton.h>
#include
<automaton/generate/RandomAutomatonFactory.h>
#include
<automaton/generate/RandomAutomatonFactory.h>
InputDialog
::
InputDialog
(
QWidget
*
parent
)
:
InputDialog
::
InputDialog
(
QWidget
*
parent
)
:
...
@@ -17,12 +16,8 @@ InputDialog::~InputDialog()
...
@@ -17,12 +16,8 @@ InputDialog::~InputDialog()
delete
ui
;
delete
ui
;
}
}
void
InputDialog
::
on_plainTextEdit_5_textChanged
()
{
}
void
InputDialog
::
on_pushButton_clicked
()
void
InputDialog
::
on_pushButton_clicked
()
{
{
automaton
::
NFA
<
>
res
=
automaton
::
generate
::
RandomAutomatonFactory
::
generateNFA
(
5
,
3
,
false
,
10.0
);
automaton
::
NFA
<
>
res
=
automaton
::
generate
::
RandomAutomatonFactory
::
generateNFA
(
5
,
3
,
false
,
10.0
);
ui
->
plainTextEdit_5
->
document
()
->
setPlainText
(
QString
::
fromStdString
(
alib
::
XmlDataFactory
::
toString
(
res
)
)
);
}
}
This diff is collapsed.
Click to expand it.
agui2/inputdialog.h
+
0
−
2
View file @
ff738998
...
@@ -16,8 +16,6 @@ public:
...
@@ -16,8 +16,6 @@ public:
~InputDialog();
~InputDialog();
private slots:
private slots:
void on_plainTextEdit_5_textChanged();
void on_pushButton_clicked();
void on_pushButton_clicked();
private:
private:
...
...
This diff is collapsed.
Click to expand it.
agui2/inputdialog.ui
+
5
−
4
View file @
ff738998
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<item>
<item>
<widget class="QLineEdit" name="lineEdit_5">
<widget class="QLineEdit" name="lineEdit_5">
<property name="text">
<property name="text">
<string
>/home/venca/automata/NFA1.xml</string
>
<string
/
>
</property>
</property>
</widget>
</widget>
</item>
</item>
...
@@ -48,9 +48,7 @@
...
@@ -48,9 +48,7 @@
</sizepolicy>
</sizepolicy>
</property>
</property>
<property name="plainText">
<property name="plainText">
<string><?xml version="1.0"?>
<string/>
<NFA><states><Integer ref="0">0</Integer><Integer ref="1">1</Integer><Integer ref="2">2</Integer><Integer ref="3">3</Integer><Integer ref="4">4</Integer></states><inputAlphabet><Character ref="5">a</Character><Character ref="6">b</Character><Character ref="7">c</Character></inputAlphabet><initialState><Integer ref="8">0</Integer></initialState><finalStates><Ref id="2"/><Ref id="3"/></finalStates><transitions><transition><from><Ref id="0"/></from><input><Ref id="6"/></input><to><Ref id="1"/></to></transition><transition><from><Ref id="1"/></from><input><Ref id="5"/></input><to><Ref id="4"/></to></transition><transition><from><Ref id="1"/></from><input><Ref id="6"/></input><to><Ref id="0"/></to></transition><transition><from><Ref id="1"/></from><input><Ref id="7"/></input><to><Ref id="1"/></to></transition><transition><from><Ref id="2"/></from><input><Ref id="5"/></input><to><Ref id="2"/></to></transition><transition><from><Ref id="3"/></from><input><Ref id="5"/></input><to><Ref id="2"/></to></transition><transition><from><Ref id="4"/></from><input><Ref id="6"/></input><to><Ref id="2"/></to></transition><transition><from><Ref id="4"/></from><input><Ref id="6"/></input><to><Ref id="3"/></to></transition></transitions></NFA>
</string>
</property>
</property>
</widget>
</widget>
</item>
</item>
...
@@ -68,6 +66,9 @@
...
@@ -68,6 +66,9 @@
<property name="text">
<property name="text">
<string>XML</string>
<string>XML</string>
</property>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</widget>
</item>
</item>
</layout>
</layout>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment