Kitlist
A list manager for maintaining kit lists
Loading...
Searching...
No Matches
ItemDialog Class Reference

A dialog for editing or creating an Item. More...

#include "kitlistgui.hpp"

Inheritance diagram for ItemDialog:

Public Member Functions

 ItemDialog (wxWindow *parent, const wxString &title)
const std::string get_name () const
 The name.
bool is_checked () const
 Whether checkbox was checked.

Private Attributes

wxCheckBox * checkbox_ctrl
 The checkbox control.
wxTextCtrl * name_ctrl
 The input control for the item name.

Detailed Description

A dialog for editing or creating an Item.

Definition at line 596 of file kitlistgui.hpp.

Constructor & Destructor Documentation

◆ ItemDialog()

ItemDialog::ItemDialog ( wxWindow * parent,
const wxString & title )

Constructor.

Parameters
parentThe parent window.
titleThis dialog's title.

Definition at line 1075 of file kitlistgui.cpp.

Member Function Documentation

◆ get_name()

const std::string ItemDialog::get_name ( ) const
inline

The name.

Returns
the name input by the user.

Definition at line 617 of file kitlistgui.hpp.

◆ is_checked()

bool ItemDialog::is_checked ( ) const
inline

Whether checkbox was checked.

Returns
True if it was selected.

Definition at line 627 of file kitlistgui.hpp.

Member Data Documentation

◆ checkbox_ctrl

wxCheckBox* ItemDialog::checkbox_ctrl
private

The checkbox control.

Definition at line 599 of file kitlistgui.hpp.

◆ name_ctrl

wxTextCtrl* ItemDialog::name_ctrl
private

The input control for the item name.

Definition at line 602 of file kitlistgui.hpp.


The documentation for this class was generated from the following files:
Copyright 2008-2025 Frank Dean