LibreOffice Module cui (master)  1
DiagramDialog.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9 
10 #pragma once
11 
12 #include <tools/link.hxx>
13 #include <vcl/weld.hxx>
14 
16 
19 {
20 public:
21  DiagramDialog(weld::Window* pWindow, std::shared_ptr<DiagramDataInterface> pDiagramData);
22  virtual ~DiagramDialog() override;
23 
24 private:
25  std::shared_ptr<DiagramDataInterface> mpDiagramData;
26  std::unique_ptr<weld::Button> mpBtnOk;
27  std::unique_ptr<weld::Button> mpBtnCancel;
28  std::unique_ptr<weld::Button> mpBtnAdd;
29  std::unique_ptr<weld::Button> mpBtnRemove;
30  std::unique_ptr<weld::TreeView> mpTreeDiagram;
31  std::unique_ptr<weld::TextView> mpTextAdd;
32 
33  DECL_LINK(OnAddClick, weld::Button&, void);
34  DECL_LINK(OnRemoveClick, weld::Button&, void);
35 
36  void populateTree(const weld::TreeIter* pParent, const OUString& rParentId);
37 };
38 
39 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void populateTree(const weld::TreeIter *pParent, const OUString &rParentId)
std::unique_ptr< weld::Button > mpBtnCancel
std::unique_ptr< weld::Button > mpBtnRemove
std::unique_ptr< weld::TreeView > mpTreeDiagram
std::unique_ptr< weld::Button > mpBtnAdd
virtual ~DiagramDialog() override
DiagramDialog(weld::Window *pWindow, std::shared_ptr< DiagramDataInterface > pDiagramData)
Edit Diagram dialog.
std::unique_ptr< weld::TextView > mpTextAdd
std::unique_ptr< weld::Button > mpBtnOk
DECL_LINK(OnAddClick, weld::Button &, void)
std::shared_ptr< DiagramDataInterface > mpDiagramData