Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6 | pingvin | 1 | #include "mainwindowimpl.h" |
2 | |||
3 | void MainWindowImpl::delete_all_actions(){ |
||
4 | treeWidget->removeAction(addMemoryAction); |
||
5 | treeWidget->removeAction(MB_na_skladAction); |
||
6 | treeWidget->removeAction(new_sotrydnikAction); |
||
7 | treeWidget->removeAction(novoe_oborydovanieAction); |
||
8 | treeWidget->removeAction(SpliterAction); |
||
9 | treeWidget->removeAction(metaDataAction); |
||
10 | treeWidget->removeAction(pereimenovat_otdelAction); |
||
11 | treeWidget->removeAction(yvolit_sotrydnikaAction); |
||
12 | treeWidget->removeAction(perevesti_sotrydnika_v_drygo1_otdelAction); |
||
13 | treeWidget->removeAction(naznachit_otvetstvennim_za_oborydovanieAction); |
||
14 | treeWidget->removeAction(ystanovit_novie_complektyushieAction); |
||
15 | treeWidget->removeAction(sozdat_otdelAction); |
||
16 | treeWidget->removeAction(novaya_MB_na_skladAction); |
||
17 | treeWidget->removeAction(insert_MB_to_system_blockAction); |
||
18 | treeWidget->removeAction(novaya_RAM_na_skladAction); |
||
19 | treeWidget->removeAction(novaya_CPU_na_skladAction); |
||
20 | treeWidget->removeAction(novaya_HDD_na_skladAction); |
||
21 | treeWidget->removeAction(novaya_CD_DVD_na_skladAction); |
||
22 | treeWidget->removeAction(novaya_VIDEO_na_skladAction); |
||
23 | treeWidget->removeAction(novaya_SoundCard_na_skladAction); |
||
24 | treeWidget->removeAction(novaya_LAN_na_skladAction); |
||
25 | treeWidget->removeAction(novaya_SYSTEM_BLOCK_na_skladAction); |
||
26 | treeWidget->removeAction(peredat_sys_block_pod_otveystvennostAction); |
||
27 | |||
28 | } |
||
29 | |||
30 | void MainWindowImpl::add_actions_for_otdel(){ |
||
31 | treeWidget->addAction(pereimenovat_otdelAction); |
||
32 | treeWidget->addAction(new_sotrydnikAction); |
||
33 | treeWidget->addAction(sozdat_otdelAction); |
||
34 | } |
||
35 | |||
36 | void MainWindowImpl::add_actions_for_sotrydnik(){ |
||
37 | // SpliterAction->setText(tr("Cîòðóäíèê")); |
||
38 | // perevesti_sotrydnika_v_drygo1_otdelAction->setEnabled(false); |
||
39 | treeWidget->addAction(perevesti_sotrydnika_v_drygo1_otdelAction); |
||
40 | |||
41 | // SpliterAction->setSeparator (true); |
||
42 | // treeWidget->addAction(SpliterAction); |
||
43 | |||
44 | treeWidget->addAction(yvolit_sotrydnikaAction); |
||
45 | treeWidget->addAction(naznachit_otvetstvennim_za_oborydovanieAction); |
||
46 | } |
||
47 | |||
48 | void MainWindowImpl::add_actions_for_system_block(){ |
||
49 | treeWidget->addAction(MB_na_skladAction); |
||
50 | treeWidget->addAction(ystanovit_novie_complektyushieAction); |
||
51 | |||
52 | } |
||
53 | |||
54 | void MainWindowImpl::add_actions_for_kompletyushie(){ |
||
55 | treeWidget->addAction(MB_na_skladAction); |
||
56 | } |
||
57 | |||
58 | |||
59 | void MainWindowImpl::add_actions_for_sklad(){ |
||
60 | treeWidget->addAction(sozdat_otdelAction); |
||
61 | } |
||
62 | |||
63 | void MainWindowImpl::add_actions_for_sklad_MB(){ |
||
64 | treeWidget->addAction(novaya_MB_na_skladAction); |
||
65 | } |
||
66 | |||
67 | void MainWindowImpl::add_actions_for_sklad_HDD(){ |
||
68 | treeWidget->addAction(novaya_HDD_na_skladAction); |
||
69 | } |
||
70 | |||
71 | void MainWindowImpl::add_actions_for_sklad_CD_DVD(){ |
||
72 | treeWidget->addAction(novaya_CD_DVD_na_skladAction); |
||
73 | } |
||
74 | |||
75 | void MainWindowImpl::add_actions_for_sklad_SoundCard(){ |
||
76 | treeWidget->addAction(novaya_SoundCard_na_skladAction); |
||
77 | } |
||
78 | |||
79 | void MainWindowImpl::add_actions_for_sklad_LAN(){ |
||
80 | treeWidget->addAction(novaya_LAN_na_skladAction); |
||
81 | } |
||
82 | |||
83 | |||
84 | void MainWindowImpl::add_actions_for_sklad_VIDEO(){ |
||
85 | treeWidget->addAction(novaya_VIDEO_na_skladAction); |
||
86 | } |
||
87 | |||
88 | void MainWindowImpl::add_actions_for_sklad_RAM(){ |
||
89 | treeWidget->addAction(novaya_RAM_na_skladAction); |
||
90 | } |
||
91 | |||
92 | void MainWindowImpl::add_actions_for_sklad_CPU(){ |
||
93 | treeWidget->addAction(novaya_CPU_na_skladAction); |
||
94 | } |
||
95 | |||
96 | |||
97 | void MainWindowImpl::add_actions_for_insert_MB_to_system_block(){ |
||
98 | treeWidget->addAction(insert_MB_to_system_blockAction); |
||
99 | } |
||
100 | |||
101 | |||
102 | void MainWindowImpl::add_actions_for_sklad_SB(){ |
||
103 | treeWidget->addAction(novaya_SYSTEM_BLOCK_na_skladAction); |
||
104 | } |
||
105 | |||
106 | |||
107 | void MainWindowImpl::add_actions_for_sklad_system_block(){ //Äëÿ ñèñòåìíèêîâ íà ñêëàäå äîáàâëÿåì àêöèþ "íàçíà÷èòü îòâåòñòâåííîãî çà ñèñòåìíûé áëîê" |
||
108 | treeWidget->addAction(peredat_sys_block_pod_otveystvennostAction); |
||
109 | } |
||
110 |