forked from sstsimulator/sst-workbench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DialogManageModules.h
62 lines (49 loc) · 1.88 KB
/
DialogManageModules.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
////////////////////////////////////////////////////////////////////////
// Copyright 2009-2015 Sandia Corporation. Under the terms
// of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S.
// Government retains certain rights in this software.
//
// Copyright (c) 2009-2015, Sandia Corporation
// All rights reserved.
//
// This file is part of the SST software package. For license
// information, see the LICENSE file in the top level directory of the
// distribution.
////////////////////////////////////////////////////////////////////////
#ifndef DIALOGMANAGEMODULES_H
#define DIALOGMANAGEMODULES_H
#include "GlobalIncludes.h"
#include "GraphicItemComponent.h"
//////////////////////////////////////////////////////////////////////////////
namespace Ui {
class DialogManageModules;
}
//////////////////////////////////////////////////////////////////////////////
class DialogManageModules : public QDialog
{
Q_OBJECT
public:
explicit DialogManageModules(GraphicItemComponent* SelectedComponent, SSTInfoData* InfoData, QWidget* parent = 0);
~DialogManageModules();
private:
// Table Management
void SetupTables();
void PopulateComponentModulesTable();
void PopulateAvailableModulesTable();
void AddModuleNameToComponentSide(QString ModuleName);
void RemoveModuleNameFromComponentSide(QString ModuleName);
// Save the Changes back to the Port
void SaveData();
private slots:
void on_BtnMoveLeft_clicked();
void on_BtnMoveRight_clicked();
void on_closeButton_clicked();
void keyPressEvent(QKeyEvent* evt);
void on_listWidgetAvailableModules_itemDoubleClicked(QListWidgetItem *item);
void on_listWidgetComponentModules_itemDoubleClicked(QListWidgetItem *item);
private:
Ui::DialogManageModules* ui;
GraphicItemComponent* m_SelectedComponent;
SSTInfoData* m_SSTInfoData;
};
#endif // DIALOGMANAGEMODULES_H