2021-02-09 17:37:26 +02:00
|
|
|
/* koto-window.h
|
|
|
|
*
|
|
|
|
* Copyright 2021 Joshua Strobl
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2021-02-24 20:17:18 +02:00
|
|
|
#include <gtk-4.0/gtk/gtk.h>
|
2021-05-07 16:45:57 +03:00
|
|
|
#include "db/cartographer.h"
|
|
|
|
#include "playlist/playlist.h"
|
2021-02-09 17:37:26 +02:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#define KOTO_TYPE_WINDOW (koto_window_get_type())
|
|
|
|
|
|
|
|
G_DECLARE_FINAL_TYPE (KotoWindow, koto_window, KOTO, WINDOW, GtkApplicationWindow)
|
|
|
|
|
2021-05-07 16:45:57 +03:00
|
|
|
void koto_window_add_page(KotoWindow *self, gchar *page_name, GtkWidget *page);
|
|
|
|
void koto_window_go_to_page(KotoWindow *self, gchar *page_name);
|
|
|
|
void koto_window_handle_playlist_added(KotoCartographer *carto, KotoPlaylist *playlist, gpointer user_data);
|
|
|
|
void koto_window_hide_dialogs(KotoWindow *self);
|
|
|
|
void koto_window_remove_page(KotoWindow *self, gchar *page_name);
|
|
|
|
void koto_window_show_dialog(KotoWindow *self, gchar *dialog_name);
|
2021-02-09 17:37:26 +02:00
|
|
|
|
2021-02-24 20:17:18 +02:00
|
|
|
void create_new_headerbar(KotoWindow *self);
|
2021-05-07 16:45:57 +03:00
|
|
|
void handle_album_added();
|
2021-02-09 17:37:26 +02:00
|
|
|
void load_library(KotoWindow *self);
|
2021-02-25 18:15:36 +02:00
|
|
|
void set_optimal_default_window_size(KotoWindow *self);
|
2021-04-07 13:17:33 +03:00
|
|
|
|
|
|
|
G_END_DECLS
|