Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
2277e6e6
Commit
2277e6e6
authored
May 03, 2014
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doxywizard: make the Next button on the last page of the expert tab switch to the run tab
parent
fbc60af2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
5 deletions
+21
-5
doxywizard.cpp
addon/doxywizard/doxywizard.cpp
+2
-0
expert.cpp
addon/doxywizard/expert.cpp
+17
-5
expert.h
addon/doxywizard/expert.h
+2
-0
No files found.
addon/doxywizard/doxywizard.cpp
View file @
2277e6e6
...
@@ -128,6 +128,7 @@ MainWindow::MainWindow()
...
@@ -128,6 +128,7 @@ MainWindow::MainWindow()
connect
(
showSettings
,
SIGNAL
(
clicked
()),
SLOT
(
showSettings
()));
connect
(
showSettings
,
SIGNAL
(
clicked
()),
SLOT
(
showSettings
()));
connect
(
m_expert
,
SIGNAL
(
changed
()),
SLOT
(
configChanged
()));
connect
(
m_expert
,
SIGNAL
(
changed
()),
SLOT
(
configChanged
()));
connect
(
m_wizard
,
SIGNAL
(
done
()),
SLOT
(
selectRunTab
()));
connect
(
m_wizard
,
SIGNAL
(
done
()),
SLOT
(
selectRunTab
()));
connect
(
m_expert
,
SIGNAL
(
done
()),
SLOT
(
selectRunTab
()));
loadSettings
();
loadSettings
();
updateLaunchButtonState
();
updateLaunchButtonState
();
...
@@ -372,6 +373,7 @@ void MainWindow::saveSettings()
...
@@ -372,6 +373,7 @@ void MainWindow::saveSettings()
void
MainWindow
::
selectTab
(
int
id
)
void
MainWindow
::
selectTab
(
int
id
)
{
{
if
(
id
==
0
)
m_wizard
->
refresh
();
if
(
id
==
0
)
m_wizard
->
refresh
();
else
if
(
id
==
1
)
m_expert
->
refresh
();
}
}
void
MainWindow
::
selectRunTab
()
void
MainWindow
::
selectRunTab
()
...
...
addon/doxywizard/expert.cpp
View file @
2277e6e6
...
@@ -683,7 +683,7 @@ void Expert::activateTopic(QTreeWidgetItem *item,QTreeWidgetItem *)
...
@@ -683,7 +683,7 @@ void Expert::activateTopic(QTreeWidgetItem *item,QTreeWidgetItem *)
QWidget
*
w
=
m_topics
[
item
->
text
(
0
)];
QWidget
*
w
=
m_topics
[
item
->
text
(
0
)];
m_topicStack
->
setCurrentWidget
(
w
);
m_topicStack
->
setCurrentWidget
(
w
);
m_prev
->
setEnabled
(
m_topicStack
->
currentIndex
()
!=
0
);
m_prev
->
setEnabled
(
m_topicStack
->
currentIndex
()
!=
0
);
m_next
->
setEnabled
(
m_topicStack
->
currentIndex
()
!=
m_topicStack
->
count
()
-
1
);
m_next
->
setEnabled
(
true
);
}
}
}
}
...
@@ -824,10 +824,17 @@ void Expert::showHelp(Input *option)
...
@@ -824,10 +824,17 @@ void Expert::showHelp(Input *option)
void
Expert
::
nextTopic
()
void
Expert
::
nextTopic
()
{
{
if
(
m_topicStack
->
currentIndex
()
+
1
==
m_topicStack
->
count
())
// last topic
{
done
();
}
else
{
m_topicStack
->
setCurrentIndex
(
m_topicStack
->
currentIndex
()
+
1
);
m_topicStack
->
setCurrentIndex
(
m_topicStack
->
currentIndex
()
+
1
);
m_next
->
setEnabled
(
m_topicStack
->
count
()
!=
m_topicStack
->
currentIndex
()
+
1
);
m_next
->
setEnabled
(
m_topicStack
->
count
()
!=
m_topicStack
->
currentIndex
()
+
1
);
m_prev
->
setEnabled
(
m_topicStack
->
currentIndex
()
!=
0
);
m_prev
->
setEnabled
(
m_topicStack
->
currentIndex
()
!=
0
);
m_treeWidget
->
setCurrentItem
(
m_treeWidget
->
invisibleRootItem
()
->
child
(
m_topicStack
->
currentIndex
()));
m_treeWidget
->
setCurrentItem
(
m_treeWidget
->
invisibleRootItem
()
->
child
(
m_topicStack
->
currentIndex
()));
}
}
}
void
Expert
::
prevTopic
()
void
Expert
::
prevTopic
()
...
@@ -931,3 +938,8 @@ bool Expert::pdfOutputPresent(const QString &workingDir) const
...
@@ -931,3 +938,8 @@ bool Expert::pdfOutputPresent(const QString &workingDir) const
return
fi
.
exists
()
&&
fi
.
isFile
();
return
fi
.
exists
()
&&
fi
.
isFile
();
}
}
void
Expert
::
refresh
()
{
m_treeWidget
->
setCurrentItem
(
m_treeWidget
->
invisibleRootItem
()
->
child
(
0
));
}
addon/doxywizard/expert.h
View file @
2277e6e6
...
@@ -42,6 +42,7 @@ class Expert : public QSplitter, public DocIntf
...
@@ -42,6 +42,7 @@ class Expert : public QSplitter, public DocIntf
public
slots
:
public
slots
:
void
activateTopic
(
QTreeWidgetItem
*
,
QTreeWidgetItem
*
);
void
activateTopic
(
QTreeWidgetItem
*
,
QTreeWidgetItem
*
);
QWidget
*
createTopicWidget
(
QDomElement
&
elem
);
QWidget
*
createTopicWidget
(
QDomElement
&
elem
);
void
refresh
();
private
slots
:
private
slots
:
void
showHelp
(
Input
*
);
void
showHelp
(
Input
*
);
...
@@ -50,6 +51,7 @@ class Expert : public QSplitter, public DocIntf
...
@@ -50,6 +51,7 @@ class Expert : public QSplitter, public DocIntf
signals
:
signals
:
void
changed
();
void
changed
();
void
done
();
private
:
private
:
void
createTopics
(
const
QDomElement
&
);
void
createTopics
(
const
QDomElement
&
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment