Skip to content

Commit

Permalink
Generating new images
Browse files Browse the repository at this point in the history
  • Loading branch information
Bs0Dd committed Oct 31, 2021
1 parent 696c1e0 commit e659aa7
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 38 deletions.
2 changes: 1 addition & 1 deletion ccos_image
Submodule ccos_image updated 9 files
+10 −0 README.md
+77 −55 ccos_image.c
+11 −1 ccos_image.h
+89 −12 ccos_private.c
+14 −2 ccos_private.h
+2 −2 common.h
+13 −1 main.c
+66 −56 wrapper.c
+5 −6 wrapper.h
7 changes: 4 additions & 3 deletions dialogs/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ MainWindow::MainWindow(QWidget *parent)
QTableWidget* twig[] = {ui->tableWidget, ui->tableWidget_2};
for (int i = 0; i < 2; i++){
twig[i]->horizontalHeader()->resizeSection(0, 155);
twig[i]->horizontalHeader()->resizeSection(2, szcor);
twig[i]->horizontalHeader()->resizeSection(2, 45);
twig[i]->horizontalHeader()->resizeSection(3, 80);
twig[i]->horizontalHeader()->resizeSection(4, 80);
twig[i]->horizontalHeader()->resizeSection(5, 80);
Expand Down Expand Up @@ -731,10 +731,11 @@ void MainWindow::New(){
if (dat[acdisk] != nullptr)
if (!CloseImg()) return;

//ccos_make_new_image(&dat[acdisk], &siz[acdisk]);
siz[acdisk] = 0;
dat[acdisk] = ccos_create_new_image(&siz[acdisk]);

inodeon[acdisk].clear();
isch[acdisk] = 0;
isch[acdisk] = 1;
isop[acdisk] = 1;
name[acdisk] = nullptr;
ccos_inode_t* root = ccos_get_root_dir(dat[acdisk], siz[acdisk]);
Expand Down
2 changes: 0 additions & 2 deletions dialogs/mainwindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ extern "C"{ //Include for ccos_inode_t type
}

#if defined(WIN32)
#define szcor 20
#define MKDIR(filename, mode) mkdir(filename)
#else
#define szcor 42
#define MKDIR(filename, mode) mkdir(filename, mode)
#endif

Expand Down
67 changes: 35 additions & 32 deletions dialogs/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -346,19 +346,6 @@
</layout>
</widget>
</item>
<item>
<widget class="QLabel" name="label">
<property name="font">
<font>
<family>Arial</family>
<pointsize>9</pointsize>
</font>
</property>
<property name="text">
<string>Free space:</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
Expand Down Expand Up @@ -481,25 +468,42 @@
</layout>
</widget>
</item>
<item>
<widget class="QLabel" name="label_2">
<property name="font">
<font>
<family>Arial</family>
<pointsize>9</pointsize>
</font>
</property>
<property name="text">
<string>Free space:</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QLabel" name="label_2">
<property name="font">
<font>
<family>Arial</family>
<pointsize>9</pointsize>
</font>
</property>
<property name="text">
<string>Free space:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label">
<property name="font">
<font>
<family>Arial</family>
<pointsize>9</pointsize>
</font>
</property>
<property name="text">
<string>Free space:</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QMenuBar" name="menubar">
Expand All @@ -508,7 +512,7 @@
<x>0</x>
<y>0</y>
<width>800</width>
<height>23</height>
<height>21</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">
Expand All @@ -530,11 +534,13 @@
<addaction name="actionAdd"/>
<addaction name="actionCopy"/>
<addaction name="actionRename"/>
<addaction name="actionDelete"/>
<addaction name="actionMake_dir"/>
<addaction name="separator"/>
<addaction name="actionChange_date"/>
<addaction name="actionChange_label"/>
<addaction name="actionChange_version"/>
<addaction name="actionDelete"/>
<addaction name="actionMake_dir"/>
<addaction name="separator"/>
<addaction name="actionExtract"/>
<addaction name="actionExtract_all"/>
</widget>
Expand Down Expand Up @@ -727,9 +733,6 @@
</property>
</action>
<action name="actionNew">
<property name="enabled">
<bool>false</bool>
</property>
<property name="text">
<string>New</string>
</property>
Expand Down
Binary file modified mainwindow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e659aa7

Please sign in to comment.