2017-10-22 12:52:12 -06:00
|
|
|
/* Copyright (C) 2017 Mike Fleetwood
|
|
|
|
*
|
|
|
|
* 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 2 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 GPARTED_DIALOGPASSWORDENTRY_H
|
|
|
|
#define GPARTED_DIALOGPASSWORDENTRY_H
|
|
|
|
|
|
|
|
#include "Partition.h"
|
|
|
|
|
|
|
|
#include <gtkmm/dialog.h>
|
2018-03-26 00:55:19 -06:00
|
|
|
#include <glibmm/ustring.h>
|
2017-10-22 12:52:12 -06:00
|
|
|
#include <gtkmm/entry.h>
|
2018-03-26 00:55:19 -06:00
|
|
|
#include <gtkmm/label.h>
|
2017-10-22 12:52:12 -06:00
|
|
|
|
|
|
|
namespace GParted
|
|
|
|
{
|
|
|
|
|
|
|
|
class DialogPasswordEntry : public Gtk::Dialog
|
|
|
|
{
|
|
|
|
public:
|
2021-04-02 04:33:37 -06:00
|
|
|
DialogPasswordEntry(const Partition& partition, const Glib::ustring& reason);
|
2017-10-22 12:52:12 -06:00
|
|
|
~DialogPasswordEntry();
|
2018-03-22 11:12:45 -06:00
|
|
|
const char * get_password();
|
2018-03-26 00:55:19 -06:00
|
|
|
void set_error_message( const Glib::ustring & message );
|
2017-10-22 12:52:12 -06:00
|
|
|
|
|
|
|
private:
|
2018-05-26 01:53:50 -06:00
|
|
|
void on_button_unlock();
|
|
|
|
|
2017-10-22 12:52:12 -06:00
|
|
|
Gtk::Entry *entry;
|
2018-03-26 00:55:19 -06:00
|
|
|
Gtk::Label *error_message;
|
2017-10-22 12:52:12 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
} //GParted
|
|
|
|
|
|
|
|
#endif /* GPARTEDPASSWORDENTRY_H */
|