Commit Graph

132 Commits

Author SHA1 Message Date
Chris PeBenito
cf2adac95b ApolMainWindow: Adjust save tab error messages. 2016-07-03 13:39:01 -04:00
Chris PeBenito
0712651b3d apol: Add TabError exception for tab save errors.
Also fix error message in workspace save error message.
2016-07-03 10:02:39 -04:00
Chris PeBenito
09bca896da ApolMainWindow: Do not save tab/workspace if there are errors.
Tabs should raise RuntimeError in save() if they have criteria errors.

For #97 and #98.
2016-07-01 22:14:35 -04:00
Chris PeBenito
a82be1fbdb apol: Improve tab loading error handling.
Add explicit type conversions so the Qt C++ code always gets the expected
type.  Add additional handlers to catch the exceptions and provide better
error messages.
2016-06-26 11:05:20 -04:00
Chris PeBenito
4c287ba23e FSUseQueryTab: Add missing filesystem type field to save/load functions. 2016-06-26 10:49:21 -04:00
Chris PeBenito
acbccd31f9 UserQueryTab: Add save/load tab functions.
For #97 and #98.
2016-06-24 10:26:52 -04:00
Chris PeBenito
15c5d97b75 TypeQueryTab: Add save/load tab functions.
For #97 and #98.
2016-06-24 10:18:29 -04:00
Chris PeBenito
0707a7fb88 TypeAttributeQueryTab: Add save/load tab functions.
For #97 and #98.
2016-06-24 10:18:23 -04:00
Chris PeBenito
607ad82867 RoleQueryTab: Add save/load tab functions.
For #97 and #98.
2016-06-24 10:16:48 -04:00
Chris PeBenito
cf71ab3bc8 ObjClassQueryTab: Add save/load tab functions.
For #97 and #98.
2016-06-24 08:57:02 -04:00
Chris PeBenito
fec1f17a7a apol: Add save/load functions for label query tabs.
For #97 and #98.
2016-06-23 13:30:22 -04:00
Chris PeBenito
5367f1a288 apol: Whitespace fixes in tab save/load functions. 2016-06-22 14:23:55 -04:00
Chris PeBenito
a59a5c5a66 InfoFlowAnalysisTab: Add save/load tab functions.
For #97 and #98.
2016-06-22 14:12:40 -04:00
Chris PeBenito
e9332819d2 DomainTransitionAnalysisTab: Add save/load of excluded types.
Missed this from the original change.

For #97 and #98.
2016-06-20 13:48:48 -04:00
Chris PeBenito
7f20bd5be7 DomainTransitionAnalysisTab: Add save/restore tab functions.
For #97 and #98.
2016-06-17 14:28:13 -04:00
Chris PeBenito
cc8ed3cc12 apol: Add workspace functions for save/restore QSpinBoxes.
For #97 and #98.
2016-06-17 14:25:28 -04:00
Chris PeBenito
e12ff2e94f DefaultQueryTab: Add save/load tab functions.
For #97 and #98.
2016-06-17 14:07:00 -04:00
Chris PeBenito
4b357379d8 apol: Add workspace functions for save/load QComboBoxes.
For #97 and #98.
2016-06-17 14:00:36 -04:00
Chris PeBenito
c012a2446f ConstraintQueryTab: Add save/load tab.
For #97 and #98.
2016-06-17 09:09:17 -04:00
Chris PeBenito
2e9700d9bc CommonQueryTab: Add save/restore
For #97 and #98.
2016-06-16 16:03:11 -04:00
Chris PeBenito
1acfc41a70 Bool/Bounds/Category/SensitivityQuery: Add save/load functions.
For #97 and #98.
2016-06-13 08:40:43 -04:00
Chris PeBenito
83f232e55f MLS/RBACRuleQueryTab: Add tab save/restore functions.
For #97 and #98.
2016-06-09 09:35:27 -04:00
Chris PeBenito
7c540405ea TERuleQueryTab: Implement save/load tab settings functions.
Related to #97 and #98.
2016-06-01 12:55:50 -04:00
Chris PeBenito
dd98098eed SummaryTab: Implement save/load tab settings functions.
Related to #97 and #98.
2016-06-01 12:55:50 -04:00
Chris PeBenito
7b2c99cbfe apol: Implement core save/load tabs and workspace functions.
Still needs funtions on each individual tab for saving/loading settings.

Related to #97 and #98.
2016-06-01 12:55:50 -04:00
Chris PeBenito
dff3b19c29 ExcludeTypes: Keep the current scroll location when lists change.
Previously, when including or excluding a type, the lists would reset to
the top.  Now the current scroll location is preserved while updating the
lists.

Closes #124
2016-05-17 07:14:33 -04:00
Chris PeBenito
0ca66d2302 ExcludeTypes: Add combo box for filtering lists by attribute membership.
This by itself does not include/exclude types.

Closes #125
2016-05-11 08:44:55 -04:00
Chris PeBenito
f5c2ff345a ExcludeTypes: Convert from QListWidget to QListView for lists. 2016-05-11 08:44:55 -04:00
Chris PeBenito
e5c3f24f69 DomainTransitionAnalysisTab: Add additional sorting for stable output. 2016-05-06 15:09:13 -04:00
Chris PeBenito
d75cc27e03 PermissionMapEditor: Python 2.7 fix
Python 2.7 list class does not have a .clear() function.

For #126
2016-04-20 12:40:25 -04:00
Chris PeBenito
a22fc0f669 ChooseAnalysis: Fix Ok button.
Also move double-click signal connection to .ui.
2016-04-20 09:55:10 -04:00
Chris PeBenito
2828db4a64 apol: Implement help menu
Populate with some help text from setools3.

Related to #114
2016-04-19 16:03:15 -04:00
Chris PeBenito
edde585e5f apol: Add an "about" dialog 2016-04-19 16:03:15 -04:00
Chris PeBenito
6b00b01e10 apol: implement browser for domain transition and infoflow analyses.
Closes #100
2016-04-18 10:01:55 -04:00
Chris PeBenito
fa32092a3c ApolMainWindow: improve file open/save dialogs 2016-04-15 11:19:17 -04:00
Chris PeBenito
d09bfdd09b apol: implement default query tab
Closes #121
2016-04-14 10:03:34 -04:00
Chris PeBenito
d8256cee4a apol: implement bounds query
Closes #120
2016-04-14 09:55:40 -04:00
Chris PeBenito
243e94e740 apol: InfoFlow/DTA tabs: remove cancel button from busy dialog.
Prevention/work-around for #119.
2016-04-13 13:05:22 -04:00
Chris PeBenito
3fd98337f7 apol: implement sensitivity query
Closes #88
2016-04-13 09:14:35 -04:00
Chris PeBenito
e3047740a6 apol: implement category query tab
Closes #76
2016-04-13 08:58:49 -04:00
Chris PeBenito
897427e5da InfoFlowAnalysisTab: add permission exclude option 2016-04-12 15:07:02 -04:00
Chris PeBenito
7938a89e0d apol: implement permission map editor
Closes #91
2016-04-12 15:02:45 -04:00
Chris PeBenito
c16653666a SummaryTab: disable irrelevant fields when MLS is disabled.
Also add tooltips restating that MLS is disabled.
2016-04-11 08:48:28 -04:00
Chris PeBenito
256adbbebc apol: implement SummaryTab
Closes #115
2016-04-10 10:46:34 -04:00
Chris PeBenito
153f2acd7a InfoFlowAnalysisTab: add perm_map property for getting map updates
Also fail to start analysis if no perm map is loaded.
2016-04-08 13:30:13 -04:00
Chris PeBenito
9d8258523d ExcludeTypes: revise to override QDialog accept method.
This is a more typical implementation.
2016-04-08 13:30:13 -04:00
Chris PeBenito
ce347e4537 ChooseAnalysis: revise design to support switching MLS on/off
Due to the previous design, if the user loaded several policies with
different MLS on/off settings, the MLS-only analyses would continue
to appear, even if MLS was not enabled in the policy.

Also revise to override QDialog accept and show methods to bring in line
with typical design.
2016-04-08 13:30:01 -04:00
Chris PeBenito
91046e8ddb apol: move ChooseAnalysis to its own module 2016-04-08 11:47:37 -04:00
Chris PeBenito
2b6b35e558 ApolMainWindow: change tab creation to put analysis widget in directly
No need to put an empty widget in.
2016-04-08 09:48:03 -04:00
Chris PeBenito
6502bae091 apol: revise match all vs. equal options
Where subset is available, keep "match all" option since that is more
likely to be used.  Otherwise, change GUI to "Equal" for correctness.
2016-04-05 15:26:49 -04:00