mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 06:05:49 -06:00
40 lines
1 KiB
C++
40 lines
1 KiB
C++
//////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// pgAdmin III - PostgreSQL Tools
|
|
//
|
|
// Copyright (C) 2002 - 2016, The pgAdmin Development Team
|
|
// This software is released under the PostgreSQL Licence
|
|
//
|
|
// dlgManageFavourites.h - Manage favourites
|
|
//
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef dlgManageFavourites_H
|
|
#define dlgManageFavourites_H
|
|
|
|
#include "dlg/dlgClasses.h"
|
|
#include "utils/favourites.h"
|
|
|
|
// Class declarations
|
|
class dlgManageFavourites : public pgDialog
|
|
{
|
|
public:
|
|
dlgManageFavourites(wxWindow *parent, queryFavouriteFolder *favourites);
|
|
~dlgManageFavourites();
|
|
int ManageFavourites(); // returns: 0=no changes, 1=changes to save, -1=changes to rollback
|
|
|
|
private:
|
|
queryFavouriteFolder *favourites;
|
|
void OnOK(wxCommandEvent &ev);
|
|
void OnCancel(wxCommandEvent &ev);
|
|
void OnTreeChange(wxTreeEvent &ev);
|
|
void OnRename(wxCommandEvent &ev);
|
|
void OnDelete(wxCommandEvent &ev);
|
|
void OnNewFolder(wxCommandEvent &ev);
|
|
|
|
bool anythingChanged;
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
};
|
|
|
|
#endif
|