mirror of
https://github.com/altlinux/admc.git
synced 2025-02-13 17:57:25 +03:00
add find policy dialog
empty for now
This commit is contained in:
parent
229fbf8480
commit
9baa23e057
@ -79,6 +79,7 @@ set(ADMC_SOURCES
|
||||
changelog_dialog.cpp
|
||||
error_log_dialog.cpp
|
||||
fsmo_dialog.cpp
|
||||
find_policy_dialog.cpp
|
||||
|
||||
filter_widget/filter_widget.cpp
|
||||
filter_widget/filter_dialog.cpp
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include "status.h"
|
||||
#include "utils.h"
|
||||
#include "select_policy_dialog.h"
|
||||
#include "find_policy_dialog.h"
|
||||
|
||||
#include <QMenu>
|
||||
#include <QStandardItem>
|
||||
@ -420,7 +421,8 @@ void PolicyOUImpl::link_gpo_to_ou(const QModelIndex &ou_index, const QString &ou
|
||||
}
|
||||
|
||||
void PolicyOUImpl::find_gpo() {
|
||||
|
||||
auto dialog = new FindPolicyDialog(console);
|
||||
dialog->open();
|
||||
}
|
||||
|
||||
void policy_ou_impl_load_item_data(QStandardItem *item, const AdObject &object) {
|
||||
|
38
src/admc/find_policy_dialog.cpp
Normal file
38
src/admc/find_policy_dialog.cpp
Normal file
@ -0,0 +1,38 @@
|
||||
/*
|
||||
* ADMC - AD Management Center
|
||||
*
|
||||
* Copyright (C) 2020-2022 BaseALT Ltd.
|
||||
* Copyright (C) 2020-2022 Dmitry Degtyarev
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "find_policy_dialog.h"
|
||||
#include "ui_find_policy_dialog.h"
|
||||
|
||||
#include "settings.h"
|
||||
|
||||
FindPolicyDialog::FindPolicyDialog(QWidget *parent)
|
||||
: QDialog(parent) {
|
||||
ui = new Ui::FindPolicyDialog();
|
||||
ui->setupUi(this);
|
||||
|
||||
setAttribute(Qt::WA_DeleteOnClose);
|
||||
|
||||
settings_setup_dialog_geometry(SETTING_find_policy_dialog_geometry, this);
|
||||
}
|
||||
|
||||
FindPolicyDialog::~FindPolicyDialog() {
|
||||
delete ui;
|
||||
}
|
44
src/admc/find_policy_dialog.h
Normal file
44
src/admc/find_policy_dialog.h
Normal file
@ -0,0 +1,44 @@
|
||||
/*
|
||||
* ADMC - AD Management Center
|
||||
*
|
||||
* Copyright (C) 2020-2022 BaseALT Ltd.
|
||||
* Copyright (C) 2020-2022 Dmitry Degtyarev
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef FIND_POLICY_DIALOG_H
|
||||
#define FIND_POLICY_DIALOG_H
|
||||
|
||||
/**
|
||||
* Find policy objects and perform actions on them.
|
||||
*/
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
namespace Ui {
|
||||
class FindPolicyDialog;
|
||||
}
|
||||
|
||||
class FindPolicyDialog final : public QDialog {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Ui::FindPolicyDialog *ui;
|
||||
|
||||
FindPolicyDialog(QWidget *parent);
|
||||
~FindPolicyDialog();
|
||||
};
|
||||
|
||||
#endif /* FIND_POLICY_DIALOG_H */
|
68
src/admc/find_policy_dialog.ui
Normal file
68
src/admc/find_policy_dialog.ui
Normal file
@ -0,0 +1,68 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>FindPolicyDialog</class>
|
||||
<widget class="QDialog" name="FindPolicyDialog">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>400</width>
|
||||
<height>300</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Dialog</string>
|
||||
</property>
|
||||
<widget class="QDialogButtonBox" name="buttonBox">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>30</x>
|
||||
<y>240</y>
|
||||
<width>341</width>
|
||||
<height>32</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="orientation">
|
||||
<enum>Qt::Horizontal</enum>
|
||||
</property>
|
||||
<property name="standardButtons">
|
||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections>
|
||||
<connection>
|
||||
<sender>buttonBox</sender>
|
||||
<signal>accepted()</signal>
|
||||
<receiver>FindPolicyDialog</receiver>
|
||||
<slot>accept()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>248</x>
|
||||
<y>254</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>157</x>
|
||||
<y>274</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
<connection>
|
||||
<sender>buttonBox</sender>
|
||||
<signal>rejected()</signal>
|
||||
<receiver>FindPolicyDialog</receiver>
|
||||
<slot>reject()</slot>
|
||||
<hints>
|
||||
<hint type="sourcelabel">
|
||||
<x>316</x>
|
||||
<y>260</y>
|
||||
</hint>
|
||||
<hint type="destinationlabel">
|
||||
<x>286</x>
|
||||
<y>274</y>
|
||||
</hint>
|
||||
</hints>
|
||||
</connection>
|
||||
</connections>
|
||||
</ui>
|
@ -94,6 +94,7 @@ DEFINE_SETTING(SETTING_number_attribute_dialog_geometry);
|
||||
DEFINE_SETTING(SETTING_fsmo_dialog_geometry);
|
||||
DEFINE_SETTING(SETTING_create_shared_folder_dialog_geometry);
|
||||
DEFINE_SETTING(SETTING_create_contact_dialog_geometry);
|
||||
DEFINE_SETTING(SETTING_find_policy_dialog_geometry);
|
||||
|
||||
// Header state
|
||||
DEFINE_SETTING(SETTING_results_header);
|
||||
|
Loading…
x
Reference in New Issue
Block a user